示例#1
0
        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;
            }
        }
示例#2
0
 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);
 }
示例#3
0
 public MaxHitpoint(int characterId, HitpointType hitpointType, int value)
 {
     CharacterId  = characterId;
     HitpointType = hitpointType;
     Value        = value;
 }