public MaxHitpoint(Character character, HitpointType hitpointType) { CharacterId = character.Id; HitpointType = hitpointType; switch (hitpointType) { case HitpointType.HP: Value = character.MaxHP; break; case HitpointType.MP: Value = character.MaxMP; break; case HitpointType.SP: Value = character.MaxSP; break; } }
internal void SendMaxHitpoints(WorldClient client, Character character, HitpointType type) { using var packet = new Packet(PacketType.CHARACTER_MAX_HITPOINTS); packet.Write(new MaxHitpoint(character, type).Serialize()); client.SendPacket(packet); }
public MaxHitpoint(int characterId, HitpointType hitpointType, int value) { CharacterId = characterId; HitpointType = hitpointType; Value = value; }