Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
 public void AddTransportVehicle(Transport vic)
 {
     if (vic.Company != null)
     {
         vic.Company.RemoveVehicle(vic);
     }
     vic.Company = this;
     transportVehicles.Value.Add(vic);
 }
 public AddTransportVehicleToCompany(LocalPlayer player, Company co, Transport vic)
 {
     this.Append(co.ID);
     this.Append(vic.ID);
     player.SendTCP(this);
 }
 public TransportVehicleSelected(UIContext nextInStack, Transport vehicle)
     : base(nextInStack)
 {
     this.vehicle = vehicle;
 }
Ejemplo n.º 5
0
 public static void ServerInitialize(Transport vic, PlayerGameObject controllingPlayer, Vector2 position)
 {
     Vehicle.ServerInitialize(vic, controllingPlayer, position, 20);
 }