public void Init(int serverTime, EntityMap entityMap, IHitBoxEntityManager hitboxHandler) { if (_enableHitBox == null) { _enableHitBox = SingletonManager.Get <DurationHelp>().GetCustomProfileInfo("CompensationWorld_enableHitBox"); } _entityMap = entityMap; _entityMap.AcquireReference(); _serverTime = serverTime; _entities = _entityMap.ToArray(); _updateAndEnabled.Clear(); for (int i = 0; i < _entities.Length; i++) { _updateAndEnabled.Add(false); } _hitboxHandler = hitboxHandler; }
public PlayerDebugDrawSystem(Contexts contexts) : base(contexts) { _hitBoxEntityManager = new HitBoxEntityManager(contexts, false); }
public ServerCompensationWorldFactory( ISnapshotSelector snapshotSelectorContainer, IHitBoxEntityManager hitboxHandler) : base(hitboxHandler) { _snapshotSelector = snapshotSelectorContainer; }
protected AbstractCompensationWorldFactory(IHitBoxEntityManager hitboxHandler) { _hitboxHandler = hitboxHandler; }
public ClientCompensationWorldFactory(IGameContexts gameContexts, IHitBoxEntityManager hitboxHandler) : base(hitboxHandler) { _gameContexts = gameContexts; }