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; }
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; }
public static void ServerInitialize(Transport vic, PlayerGameObject controllingPlayer, Vector2 position) { Vehicle.ServerInitialize(vic, controllingPlayer, position, 20); }