checkUShort() public static method

public static checkUShort ( uint value ) : ushort
value uint
return ushort
Ejemplo n.º 1
0
 public UpdateCharStats(Player player)
     : base(0x14)
 {
     m_Stream.Write(Util.checkUShort((uint)player.HPCur));
     m_Stream.Write(Util.checkUShort((uint)player.HP));
     m_Stream.Write(Util.checkUShort((uint)player.MPCur));
     m_Stream.Write(Util.checkUShort((uint)player.MP));
     m_Stream.Write(Util.checkUShort(player.GetStat("str", true)));
     m_Stream.Write(Util.checkUShort(player.GetStat("men", true)));
     m_Stream.Write(Util.checkUShort(player.GetStat("dex", true)));
     m_Stream.Write(Util.checkUShort(player.GetStat("vit", true)));
     m_Stream.Write(Util.checkUShort(player.GetStat("str")));
     m_Stream.Write(Util.checkUShort(player.GetStat("men")));
     m_Stream.Write(Util.checkUShort(player.GetStat("dex")));
     m_Stream.Write(Util.checkUShort(player.GetStat("vit")));
     m_Stream.Write(Util.checkUShort((uint)player.AC));
     m_Stream.Write(Util.checkUShort((uint)player.Hit));
     m_Stream.Write(Util.checkUShort((uint)player.Dam));
     m_Stream.Write(Util.checkUShort(player.Extra));
 }
Ejemplo n.º 2
0
 public SetMP(LKCamelot.model.Player play)
     : base(0x11)
 {
     m_Stream.Write(Util.checkUShort((uint)play.MPCur));
 }