public InnerCustomNetworkTransform(ICustomMessageManager <ICustomRpc> customMessageManager, Game game, ILogger <InnerCustomNetworkTransform> logger, InnerPlayerControl playerControl, IEventManager eventManager, ObjectPool <PlayerMovementEvent> pool) : base(customMessageManager, game)
 {
     _logger        = logger;
     _playerControl = playerControl;
     _eventManager  = eventManager;
     _pool          = pool;
 }
        public InnerMeetingHud(ICustomMessageManager <ICustomRpc> customMessageManager, Game game, ILogger <InnerMeetingHud> logger, IEventManager eventManager) : base(customMessageManager, game)
        {
            _logger       = logger;
            _eventManager = eventManager;
            _playerStates = null;

            Components.Add(this);
        }
Esempio n. 3
0
        public InnerGameData(ICustomMessageManager <ICustomRpc> customMessageManager, Game game, ILogger <InnerGameData> logger, IServiceProvider serviceProvider) : base(customMessageManager, game)
        {
            _logger     = logger;
            _allPlayers = new ConcurrentDictionary <byte, InnerPlayerInfo>();

            Components.Add(this);
            Components.Add(ActivatorUtilities.CreateInstance <InnerVoteBanSystem>(serviceProvider, game));
        }
Esempio n. 4
0
 public Client(ILogger <Client> logger, IOptions <AntiCheatConfig> antiCheatOptions, ClientManager clientManager, GameManager gameManager, ICustomMessageManager <ICustomRootMessage> customMessageManager, string name, int gameVersion, IHazelConnection connection)
     : base(name, gameVersion, connection)
 {
     _logger               = logger;
     _antiCheatConfig      = antiCheatOptions.Value;
     _clientManager        = clientManager;
     _gameManager          = gameManager;
     _customMessageManager = customMessageManager;
 }
        public InnerPlayerControl(ICustomMessageManager <ICustomRpc> customMessageManager, Game game, ILogger <InnerPlayerControl> logger, IServiceProvider serviceProvider, IEventManager eventManager, IDateTimeProvider dateTimeProvider) : base(customMessageManager, game)
        {
            _logger           = logger;
            _eventManager     = eventManager;
            _dateTimeProvider = dateTimeProvider;

            Physics          = ActivatorUtilities.CreateInstance <InnerPlayerPhysics>(serviceProvider, this, _eventManager, game);
            NetworkTransform = ActivatorUtilities.CreateInstance <InnerCustomNetworkTransform>(serviceProvider, this, game);

            Components.Add(this);
            Components.Add(Physics);
            Components.Add(NetworkTransform);

            PlayerId = byte.MaxValue;
        }
 public InnerLobbyBehaviour(ICustomMessageManager <ICustomRpc> customMessageManager, Game game) : base(customMessageManager, game)
 {
     Components.Add(this);
 }
Esempio n. 7
0
 public InnerPlayerPhysics(ICustomMessageManager <ICustomRpc> customMessageManager, Game game, ILogger <InnerPlayerPhysics> logger, InnerPlayerControl playerControl, IEventManager eventManager) : base(customMessageManager, game)
 {
     _logger        = logger;
     _playerControl = playerControl;
     _eventManager  = eventManager;
 }
Esempio n. 8
0
 protected InnerShipStatus(ICustomMessageManager <ICustomRpc> customMessageManager, Game game) : base(customMessageManager, game)
 {
     Components.Add(this);
 }
Esempio n. 9
0
 public InnerVoteBanSystem(ICustomMessageManager <ICustomRpc> customMessageManager, Game game, ILogger <InnerVoteBanSystem> logger) : base(customMessageManager, game)
 {
     _logger = logger;
     _votes  = new Dictionary <int, int[]>();
 }
Esempio n. 10
0
 protected InnerNetObject(ICustomMessageManager <ICustomRpc> customMessageManager, Game game)
 {
     _customMessageManager = customMessageManager;
     Game = game;
 }
 public InnerSkeldShipStatus(ICustomMessageManager <ICustomRpc> customMessageManager, Game game) : base(customMessageManager, game)
 {
 }
Esempio n. 12
0
 public ClientRecorder(ILogger <Client> logger, IOptions <AntiCheatConfig> antiCheatOptions, ClientManager clientManager, ICustomMessageManager <ICustomRootMessage> customMessageManager, GameManager gameManager, string name, int gameVersion, HazelConnection connection, PacketRecorder recorder)
     : base(logger, antiCheatOptions, clientManager, gameManager, customMessageManager, name, gameVersion, connection)
 {
     _recorder    = recorder;
     _isFirst     = true;
     _createdGame = false;
     _recordAfter = true;
 }
 public ReactorPlugin(IServiceProvider serviceProvider, ICustomMessageManager <ICustomRootMessage> customRootMessageManager, ICustomMessageManager <ICustomRpc> customRpcManager)
 {
     _serviceProvider          = serviceProvider;
     _customRootMessageManager = customRootMessageManager;
     _customRpcManager         = customRpcManager;
 }