All pastes #816900 Raw Edit

Someone

public text v1 · immutable
·published 2007-12-15 01:47 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DASniffer.GameServer
{
    class OtherPlayerLifeManaChange : BasePacket
    {
        public OtherPlayerLifeManaChange(byte[] RawData)
            : base(RawData)
        {
            base.ReadByte();
            this.uid = SwitchEndian(base.ReadUInt16());
            base.ReadByte();
            this.lifepercent = SwitchEndian(base.ReadUInt16());
        }

        //fields
        ushort uid;
        ushort lifepercent;

        //properties
        public int UID
        {
            get
            {
                return (int)uid;
            }
        }
        public int LifePercent
        {
            get
            {
                return (int)lifepercent;
            }
        }

        //methods
        public override string ToString()
        {
            return "Other Player Life Change: UID=" + uid + " PERCENT=" + lifepercent;
        }
    }
}