public static void AcceptDataPacket(DiceDataPacket dataPacket) { //TODO if (Rolling.Count != dataPacket.Size) { Setup(dataPacket.Size); //throw new Exception("Data packet does not match the current rolling state"); } //TODO for (var i = 0; i < Rolling.Count; i++) { Rolling[i].AcceptPacket(dataPacket.Symbols[i], dataPacket.Colors[i], dataPacket.States[i]); } }
/// <summary> /// Change the monsters in the game state using the given data packets. /// </summary> /// <param name="dataPackets">Data Packets</param> public static void AcceptDataPacket(DiceDataPacket dataPacket) { DiceRoller.AcceptDataPacket(dataPacket); }
/// <summary> /// Get the dice packet for the current game state. /// </summary> /// <returns>Data Packets</returns> public static DiceDataPacket GetDataPacket() { var dicePacket = new DiceDataPacket(DiceRoller.Rolling); return(dicePacket); }