Exemple #1
0
    public Application(
        IWebSocketCore webSocketCore,
        IConnectionService connectionService,

        ILoginSystem loginSystem,
        ICommandSystem commandSystem,
        IMovementSystem movementSystem,
        IChatSystem chatSystem,
        IStoreSystem storeSystem,
        ICombatSystem combatSystem,
        IInventorySystem inventorySystem,

        ILocationSender locationSender,
        IChatSender chatSender,
        IJoinSender joinSender)
    {
        _webSocketCore     = webSocketCore;
        _connectionService = connectionService;

        _commandSystem   = commandSystem;
        _movementSystem  = movementSystem;
        _chatSystem      = chatSystem;
        _storeSystem     = storeSystem;
        _combatSystem    = combatSystem;
        _inventorySystem = inventorySystem;
        _loginSystem     = loginSystem;

        _locationSender = locationSender;
        _chatSender     = chatSender;
        _joinSender     = joinSender;
    }
Exemple #2
0
 /// <summary>
 /// Creates a new <see cref="ChatHandler"/> instance.
 /// </summary>
 /// <param name="chatSystem">Chat system.</param>
 public ChatHandler(IChatSystem chatSystem)
 {
     _chatSystem = chatSystem;
 }