public void TestCtr() { const byte expected = 1; var actual = new ScoreAttribute(1).Score; Assert.AreEqual(expected, actual); }
/// <summary> /// Informs everyone that some information changed for the player. /// </summary> /// <param name="player"> /// The player which score attribute has changed <see cref="Player"/> /// </param> /// <param name="attrib"> /// The score attribute <see cref="ScoreAttribute"/> /// </param> public static void SendScoreAttribMessage(this Player player, ScoreAttribute attrib) { SendScoreAttribMessage(MessageDestination.AllReliable, IntPtr.Zero, IntPtr.Zero, (byte)player.Index, (byte)attrib); }