Example #1
0
 private Door ships_NewDoor(LuaTable entrances)
 {
     var res = new Door.DoorEntrance[entrances.Keys.Count];
     for (int i = 0; i < entrances.Keys.Count; i++)
     {
         LuaTable e = (LuaTable)entrances[i + 1];
         res[i] = new Door.DoorEntrance((int)(double)e["Room"], (int)(double)e["X"], (int)(double)e["Y"], (string)e["Dir"]);
     }
     return new Door(res);
 }
 public DoorEntranceRenderer(ShipRenderer shipRenderer, Door door, Door.DoorEntrance doorEntrance)
 {
     this.shipRenderer = shipRenderer;
     this.door = door;
     this.entrance = doorEntrance;
 }