/// <summary> /// Takes in action from client, updates the rest of the clients /// </summary> /// <param name="packet"></param> public static void ReceiveActionUpdate(ActionPacket packet) { Console.WriteLine(packet.Action); GameStateController.AcceptAction(packet); //Checks if anyone has won the game if (GameStateController.GameOver) { DeclareWinner(); } else { SendMonsterPackets(sendDice: packet.Action == Networking.Actions.Action.Roll || packet.Action == Networking.Actions.Action.EndRolling || packet.Action == Networking.Actions.Action.SaveDie || packet.Action == Networking.Actions.Action.UnSaveDie, sendCards: true); } }