Esempio n. 1
0
 public Vehicles(IPacketSender packetSender, PlayerManager playerManager, IMultiplayerSession multiplayerSession)
 {
     this.packetSender       = packetSender;
     this.playerManager      = playerManager;
     this.multiplayerSession = multiplayerSession;
     cyclops = null;
 }
Esempio n. 2
0
 public Vehicles(IPacketSender packetSender, PlayerManager playerManager, IMultiplayerSession multiplayerSession)
 {
     this.packetSender       = packetSender;
     this.playerManager      = playerManager;
     this.multiplayerSession = multiplayerSession;
     vehiclesById            = new Dictionary <NitroxId, VehicleModel>();
     cyclops = null;
 }
Esempio n. 3
0
 private void SetCyclopsModes(NitroxId id)
 {
     if (cyclops == null)
     {
         cyclops = NitroxServiceLocator.LocateService <Cyclops>();
     }
     cyclops.SetAllModes(GetVehicles <CyclopsModel>(id));
 }
Esempio n. 4
0
 public Logic(PacketSender packetSender, VisibleCells visibleCells, DeferringPacketReceiver packetReceiver)
 {
     AI                  = new AI(packetSender);
     Building            = new Building(packetSender);
     Chat                = new Chat(packetSender);
     Entities            = new Entities(packetSender);
     MedkitFabricator    = new MedkitFabricator(packetSender);
     Item                = new Item(packetSender);
     EquipmentSlots      = new EquipmentSlots(packetSender);
     ItemContainers      = new ItemContainers(packetSender);
     Player              = new PlayerLogic(packetSender);
     Power               = new Power(packetSender);
     SimulationOwnership = new SimulationOwnership(packetSender);
     Crafting            = new Crafting(packetSender);
     Cyclops             = new Cyclops(packetSender);
     Interior            = new Interior(packetSender);
     MobileVehicleBay    = new MobileVehicleBay(packetSender);
     Terrain             = new Terrain(packetSender, visibleCells, packetReceiver);
 }
Esempio n. 5
0
 public Logic(IClientBridge clientBridge, VisibleCells visibleCells, DeferringPacketReceiver packetReceiver)
 {
     Log.Info("Initializing Multiplayer GameLogic...");
     AI                  = new AI(clientBridge);
     Building            = new Building(clientBridge);
     Chat                = new Chat(clientBridge);
     Entities            = new Entities(clientBridge);
     MedkitFabricator    = new MedkitFabricator(clientBridge);
     Item                = new Item(clientBridge);
     EquipmentSlots      = new EquipmentSlots(clientBridge);
     ItemContainers      = new ItemContainers(clientBridge);
     Player              = new PlayerLogic(clientBridge);
     Power               = new Power(clientBridge);
     SimulationOwnership = new SimulationOwnership(clientBridge);
     Crafting            = new Crafting(clientBridge);
     Cyclops             = new Cyclops(clientBridge);
     Interior            = new Interior(clientBridge);
     MobileVehicleBay    = new MobileVehicleBay(clientBridge);
     Terrain             = new Terrain(clientBridge, visibleCells, packetReceiver);
     PacketSender        = clientBridge;
     ClientBridge        = clientBridge;
     Log.Info("Multiplayer GameLogic Initialized...");
 }