public static CombatVehicle CombatVehicleFactory(GameObjectCollection collection, PlayerGameObject controllingPlayer, Vector2 position)
 {
     CombatVehicle vehicle = new CombatVehicle(collection);
     collection.Add(vehicle);
     CombatVehicle.ServerInitialize(vehicle, controllingPlayer, position);
     return vehicle;
 }
示例#2
0
 public static Transport TransportFactory(GameObjectCollection collection, PlayerGameObject controllingPlayer, Vector2 position)
 {
     Transport vehicle = new Transport(collection);
     collection.Add(vehicle);
     Transport.ServerInitialize(vehicle, controllingPlayer, position);
     return vehicle;
 }
示例#3
0
 public static GameObject Construct(Type type, GameObjectCollection collection, int id)
 {
     object[] constuctorParams = new object[1];
     constuctorParams[0] = collection;
     GameObject obj = (GameObject)GameObjectTypes.constructorDictionary[type].Invoke(constuctorParams);
     obj.id = id;
     collection.Add(obj);
     return obj;
 }