24 lines
391 B
Text
24 lines
391 B
Text
|
# =====
|
||
|
# Doors
|
||
|
# =====
|
||
|
|
||
|
Doors = {};
|
||
|
|
||
|
Doors.new = func {
|
||
|
obj = { parents : [Doors],
|
||
|
crew : aircraft.door.new("instrumentation/doors/crew", 8.0),
|
||
|
};
|
||
|
return obj;
|
||
|
};
|
||
|
|
||
|
Doors.crewexport = func {
|
||
|
me.crew.toggle();
|
||
|
}
|
||
|
|
||
|
# ==============
|
||
|
# Initialization
|
||
|
# ==============
|
||
|
|
||
|
# objects must be here, otherwise local to init()
|
||
|
doorsystem = Doors.new();
|