Exemplo n.º 1
0
    public void Setup(Player currentPlayer, ViewPlayerList currentPlayerList)
    {
        player    = currentPlayer;
        Name.text = player.name;

        playerList = currentPlayerList;
    }
Exemplo n.º 2
0
        private async void Test()
        {
            rconModel = new RconModel(Dispatcher);

            rconModel.Connect();

            this.DataContext = rconModel;

            // Register all views so they can hook up to events
            ViewChatWindow.Register(rconModel);
            ViewCommandConsole.Register(rconModel);
            ViewDebugDataModel.Register(rconModel);
            ViewDebugLog.Register(rconModel);
            ViewPlayerList.Register(rconModel);
        }