示例#1
0
        public void TestCtr()
        {
            const byte expected = 1;
            var        actual   = new ScoreAttribute(1).Score;

            Assert.AreEqual(expected, actual);
        }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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);
 }