public bool ProcessAction(int actionId) { var actionInfo = new ActionInfo { GameId = GameId, PlayerId = PlayerId, ActionId = actionId }; return(SidiBarraniServerApi?.ProcessAction(actionInfo) ?? false); }
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); }