Ejemplo n.º 1
0
 public PlaceRouletteBet(RouletteGameId rouletteGameId, RoulettePlayerId playerId, string field, int value)
 {
     this.gameId   = gameId;
     this.playerId = playerId;
     this.field    = field;
     this.value    = value;
 }
Ejemplo n.º 2
0
    private string getBetRequestParams()
    {
        int              tokensCount      = hudController.getBetValue();
        string           clientId         = PlayerPrefs.GetString("Id");
        RoulettePlayerId roulettePlayerId = new RoulettePlayerId(clientId);
        string           tableId          = PlayerPrefs.GetString("TableId");
        RouletteGameId   rouletteGameId   = new RouletteGameId(tableId);

        PlaceRouletteBet placeRouletteBet = new PlaceRouletteBet(rouletteGameId, roulettePlayerId, cursor.transform.name, tokensCount);

        return(JsonUtility.ToJson(placeRouletteBet) ?? "");
    }
Ejemplo n.º 3
0
 public CancelRouletteBet(RouletteGameId rouletteGameId, RoulettePlayerId playerId, string field)
 {
     this.gameId   = gameId;
     this.playerId = playerId;
     this.field    = field;
 }