예제 #1
0
        public bool ProcessAction(int actionId)
        {
            var actionInfo = new ActionInfo
            {
                GameId   = GameId,
                PlayerId = PlayerId,
                ActionId = actionId
            };

            return(SidiBarraniServerApi?.ProcessAction(actionInfo) ?? false);
        }
예제 #2
0
        public bool ConnectToGame(string gameId, string playerName)
        {
            var playerInfo = SidiBarraniServerApi?.ConnectToGame(gameId, playerName, this);

            if (playerInfo == null)
            {
                return(false);
            }
            GameId   = gameId;
            PlayerId = playerInfo.PlayerId;
            return(true);
        }