Пример #1
0
        public uint AddVehicle(VehiclePrototype prototype, VehicleState vehicle)
        {
            uint assignedID = RegisteredPlayers;

            ++RegisteredPlayers;
            SimulationData.RegisterPlayer(assignedID, prototype);
            ActiveState.AddVehicle(assignedID, vehicle);
            ActiveState.SetProjectileCount(assignedID, 1);
            return(assignedID);
        }