Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public PlayerDebugDrawSystem(Contexts contexts) : base(contexts)
 {
     _hitBoxEntityManager = new HitBoxEntityManager(contexts, false);
 }
Ejemplo n.º 3
0
 public ServerCompensationWorldFactory(
     ISnapshotSelector snapshotSelectorContainer,
     IHitBoxEntityManager hitboxHandler) : base(hitboxHandler)
 {
     _snapshotSelector = snapshotSelectorContainer;
 }
Ejemplo n.º 4
0
 protected AbstractCompensationWorldFactory(IHitBoxEntityManager hitboxHandler)
 {
     _hitboxHandler = hitboxHandler;
 }
Ejemplo n.º 5
0
 public ClientCompensationWorldFactory(IGameContexts gameContexts, IHitBoxEntityManager hitboxHandler)
     : base(hitboxHandler)
 {
     _gameContexts = gameContexts;
 }