Exemple #1
0
 public static void RegisterSwitchToElevator(ref SwitchModel sw, ref ElevatorModel elev)
 {
     elev.RegisterSwitch(ref sw);
 }
Exemple #2
0
 public static SwitchModel BuildSwitch(Pointf switchPosition, ref MapModel map)
 {
     SwitchModel toAdd = new SwitchModel(map.Game, switchPosition);
     map.AddComponent(toAdd);
     return toAdd;
 }