Esempio n. 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;
    }
Esempio n. 2
0
 public void LoadSystems(GameEngine engine)
 {
     RenderSystem    = new BasicRenderSystem();
     InputSystem     = new InputSystem();
     AnimationSystem = new AnimationSystem(engine);
     TimerSystem     = new TimerSystem(engine);
     MoveSystem      = new MovementSystem(engine);
 }
Esempio n. 3
0
 private void Awake()
 {
     _movementSystem = transform.parent.GetComponentInChildren <IMovementSystem>();
 }