New branch: Move mesecon to node definition instead of functions like register_conductor; first steps: move everything to legacy

This commit is contained in:
Jeija
2012-12-08 14:14:04 +01:00
parent 12206ac190
commit e0aa5b1d3d
4 changed files with 189 additions and 101 deletions

19
mesecons/presets.lua Normal file
View File

@ -0,0 +1,19 @@
mesecon.rules={}
mesecon.state = {}
mesecon.rules.default =
{{x=0, y=0, z=-1},
{x=1, y=0, z=0},
{x=-1, y=0, z=0},
{x=0, y=0, z=1},
{x=1, y=1, z=0},
{x=1, y=-1, z=0},
{x=-1, y=1, z=0},
{x=-1, y=-1, z=0},
{x=0, y=1, z=1},
{x=0, y=-1, z=1},
{x=0, y=1, z=-1},
{x=0, y=-1, z=-1}}
mesecon.state.on = "on"
mesecon.state.off = "off"