args lineendings...

stable-5.1
Richard Gerum 2010-02-22 01:32:38 +01:00
parent 7e08450052
commit 881b3bd7ff
4 changed files with 54 additions and 54 deletions

View File

@ -1,11 +1,11 @@
[DefCore]
id=PIWI
Version=4,9,8,8
Category=C4D_StaticBack
Width=1
Height=1
Vertices=2
Value=0
Mass=0
Picture=0,0,1,1
Line=C4D_LinePower
[DefCore]
id=PIWI
Version=4,9,8,8
Category=C4D_StaticBack
Width=1
Height=1
Vertices=2
Value=0
Mass=0
Picture=0,0,1,1
Line=C4D_LinePower

View File

@ -1,42 +1,42 @@
/*--- Priming wire ---*/
#strict 2
local fHasMessage;
protected func Initialize ()
{
// Put the first to vertices on the actual position
SetVertex(0,0,GetX()); SetVertex(0,1,GetY());
SetVertex(1,0,GetX()); SetVertex(1,1,GetY());
}
public func Connect(pTarget1, pTarget2)
{
SetAction("Connect", pTarget1, pTarget2);
}
private func GetLineLength()
{
var i = GetVertexNum()-1;
var iDist = 0;
while(i--)
{
// Calculate the length between the vertices
iDist += Distance(GetVertex(i,0),GetVertex(i,1),GetVertex(i+1,0),GetVertex(i+1,1));
}
return iDist;
}
func Definition(def) {
SetProperty("ActMap", {
Connect = {
Prototype = Action,
Name = "Connect",
Length = 0,
Delay = 0,
Procedure = DFA_CONNECT,
NextAction = "Connect",
}, }, def);
SetProperty("Name", "$Name$", def);
/*--- Priming wire ---*/
#strict 2
local fHasMessage;
protected func Initialize ()
{
// Put the first to vertices on the actual position
SetVertex(0,0,GetX()); SetVertex(0,1,GetY());
SetVertex(1,0,GetX()); SetVertex(1,1,GetY());
}
public func Connect(pTarget1, pTarget2)
{
SetAction("Connect", pTarget1, pTarget2);
}
private func GetLineLength()
{
var i = GetVertexNum()-1;
var iDist = 0;
while(i--)
{
// Calculate the length between the vertices
iDist += Distance(GetVertex(i,0),GetVertex(i,1),GetVertex(i+1,0),GetVertex(i+1,1));
}
return iDist;
}
func Definition(def) {
SetProperty("ActMap", {
Connect = {
Prototype = Action,
Name = "Connect",
Length = 0,
Delay = 0,
Procedure = DFA_CONNECT,
NextAction = "Connect",
}, }, def);
SetProperty("Name", "$Name$", def);
}

View File

@ -1 +1 @@
Name=Zündschnur
Name=Zündschnur

View File

@ -1 +1 @@
Name=Priming wire
Name=Priming wire