equal
deleted
inserted
replaced
54 |
54 |
55 procedure initModule; |
55 procedure initModule; |
56 procedure freeModule; |
56 procedure freeModule; |
57 |
57 |
58 implementation |
58 implementation |
59 {$IFDEF USE_LUA_SCRIPT} |
|
60 |
59 |
61 uses LuaPas, |
60 uses LuaPas, |
62 uConsole, |
61 uConsole, |
63 uConsts, |
62 uConsts, |
64 uGears, |
63 uGears, |
102 ScriptLoaded : boolean; |
101 ScriptLoaded : boolean; |
103 mapDims : boolean; |
102 mapDims : boolean; |
104 PointsBuffer: shortstring; |
103 PointsBuffer: shortstring; |
105 prevCursorPoint: TPoint; // why is tpoint still in sdlh... |
104 prevCursorPoint: TPoint; // why is tpoint still in sdlh... |
106 |
105 |
|
106 {$IFDEF USE_LUA_SCRIPT} |
107 procedure ScriptPrepareAmmoStore; forward; |
107 procedure ScriptPrepareAmmoStore; forward; |
108 procedure ScriptApplyAmmoStore; forward; |
108 procedure ScriptApplyAmmoStore; forward; |
109 procedure ScriptSetAmmo(ammo : TAmmoType; count, probability, delay, reinforcement: Byte); forward; |
109 procedure ScriptSetAmmo(ammo : TAmmoType; count, probability, delay, reinforcement: Byte); forward; |
110 procedure ScriptSetAmmoDelay(ammo : TAmmoType; delay: Byte); forward; |
110 procedure ScriptSetAmmoDelay(ammo : TAmmoType; delay: Byte); forward; |
111 |
111 |
3450 |
3450 |
3451 procedure ScriptOnScreenResize; |
3451 procedure ScriptOnScreenResize; |
3452 begin |
3452 begin |
3453 end; |
3453 end; |
3454 |
3454 |
|
3455 procedure ScriptOnPreviewInit; |
|
3456 begin |
|
3457 end; |
|
3458 |
|
3459 procedure ScriptSetInteger(name : shortstring; value : LongInt); |
|
3460 begin |
|
3461 end; |
|
3462 |
|
3463 procedure ScriptSetString(name : shortstring; value : shortstring); |
|
3464 begin |
|
3465 end; |
|
3466 |
|
3467 procedure LuaParseString(s : ShortString); |
|
3468 begin |
|
3469 end; |
|
3470 |
3455 procedure initModule; |
3471 procedure initModule; |
3456 begin |
3472 begin |
3457 mapDims:= false; |
3473 mapDims:= false; |
3458 PointsBuffer:= ''; |
3474 PointsBuffer:= ''; |
3459 prevCursorPoint.X:= NoPointX; |
3475 prevCursorPoint.X:= NoPointX; |