Beispiel #1
0
        public void OnCard(Game game, Vegetable vegetable, int amount, Player player)
        {
            var send = new JObject {
                { "id", "game/card" },
                { "data", new JObject {
                      { "vegetable", vegetable.ToString() },
                      { "amount", amount },
                      { "playerUuid", player.Uuid }
                  } }
            };

            SendToAllPlayersInGame(game, send);
        }
 internal void Add(Vegetable vegetable)
 {
     Console.WriteLine(vegetable.ToString() + " is in the bowl");
 }
Beispiel #3
0
 internal void Add(Vegetable vegetable)
 {
     Console.WriteLine(vegetable.ToString() + " is in the bowl");
 }