public EntitySimulation(EntityManager entityManager, SimulationOwnershipData simulationOwnershipData, PlayerManager playerManager, HashSet <NitroxTechType> serverSpawnedSimulationWhiteList) { this.entityManager = entityManager; this.simulationOwnershipData = simulationOwnershipData; this.playerManager = playerManager; this.serverSpawnedSimulationWhiteList = serverSpawnedSimulationWhiteList; }
public PickupItemPacketProcessor(EntityManager entityManager, PlayerManager playerManager, SimulationOwnershipData simulationOwnershipData, PDAStateData pdaStateData) { this.entityManager = entityManager; this.playerManager = playerManager; this.simulationOwnershipData = simulationOwnershipData; this.pdaStateData = pdaStateData; }
public World CreateWorld(PersistedWorldData pWorldData, ServerGameMode gameMode) { string seed = pWorldData.WorldData.Seed; if (string.IsNullOrWhiteSpace(seed)) { seed = StringHelper.GenerateRandomString(10); } Log.Info($"Loading world with seed {seed}"); World world = new() { TimeKeeper = new TimeKeeper { ServerStartTime = pWorldData.WorldData.ServerStartTime }, SimulationOwnershipData = new SimulationOwnershipData(), PlayerManager = new PlayerManager(pWorldData.PlayerData.GetPlayers(), config), BaseManager = new BaseManager(pWorldData.BaseData.PartiallyConstructedPieces, pWorldData.BaseData.CompletedBasePieceHistory), InventoryManager = new InventoryManager(pWorldData.WorldData.InventoryData.InventoryItems, pWorldData.WorldData.InventoryData.StorageSlotItems, pWorldData.WorldData.InventoryData.Modules), EscapePodManager = new EscapePodManager(pWorldData.WorldData.EscapePodData.EscapePods, randomStart, seed), GameData = pWorldData.WorldData.GameData, GameMode = gameMode, Seed = seed }; world.EventTriggerer = new EventTriggerer(world.PlayerManager, pWorldData.WorldData.GameData.StoryTiming.ElapsedTime, pWorldData.WorldData.GameData.StoryTiming.AuroraExplosionTime); world.VehicleManager = new VehicleManager(pWorldData.WorldData.VehicleData.Vehicles, world.InventoryManager); world.BatchEntitySpawner = new BatchEntitySpawner( NitroxServiceLocator.LocateService <EntitySpawnPointFactory>(), NitroxServiceLocator.LocateService <UweWorldEntityFactory>(), NitroxServiceLocator.LocateService <UwePrefabFactory>(), pWorldData.WorldData.ParsedBatchCells, protoBufSerializer, NitroxServiceLocator.LocateService <Dictionary <NitroxTechType, IEntityBootstrapper> >(), NitroxServiceLocator.LocateService <Dictionary <string, PrefabPlaceholdersGroupAsset> >(), world.Seed ); world.EntityManager = new EntityManager(pWorldData.EntityData.Entities, world.BatchEntitySpawner); HashSet <NitroxTechType> serverSpawnedSimulationWhiteList = NitroxServiceLocator.LocateService <HashSet <NitroxTechType> >(); world.EntitySimulation = new EntitySimulation(world.EntityManager, world.SimulationOwnershipData, world.PlayerManager, serverSpawnedSimulationWhiteList); return(world); } }
public WeldActionProcessor(SimulationOwnershipData simulationOwnershipData) { this.simulationOwnershipData = simulationOwnershipData; }
public EntitySimulation(EntityData entityData, SimulationOwnershipData simulationOwnershipData, PlayerManager playerManager) { this.entityData = entityData; this.simulationOwnershipData = simulationOwnershipData; this.playerManager = playerManager; }
public SimulationOwnershipRequestProcessor(PlayerManager playerManager, SimulationOwnershipData simulationOwnershipData) { this.playerManager = playerManager; this.simulationOwnershipData = simulationOwnershipData; }