public static void SendStatus(NetPacket np) { np.Sender = Globals.gamedata.my_char.Name; np.SenderID = Globals.gamedata.my_char.ID; NetCode.NetSend(np.GetBytes()); }
public static void SendSelfStatus() { //TODO - need to update this to include pet info... NetPacket np = new NetPacket(); np.Type = (uint)NetPacketType.Update;//regular old status update np.Sender = Globals.gamedata.my_char.Name; np.SenderID = Globals.gamedata.my_char.ID; np.Name = np.Sender; np.ID = np.SenderID; np.MaxCP = (uint)Globals.gamedata.my_char.Max_CP; np.CurCP = (uint)Globals.gamedata.my_char.Cur_CP; np.MaxHP = (uint)Globals.gamedata.my_char.Max_HP; np.CurHP = (uint)Globals.gamedata.my_char.Cur_HP; np.MaxMP = (uint)Globals.gamedata.my_char.Max_MP; np.CurMP = (uint)Globals.gamedata.my_char.Cur_MP; NetCode.NetSend(np.GetBytes()); }