GetID() public method

public GetID ( ) : uint
return uint
Ejemplo n.º 1
0
        //npc
        public void SendNpcInfo(BaseObject obj)
        {
            if (GetGameSession() == null) return;
            NetMsg.MsgNpcInfo info = new NetMsg.MsgNpcInfo();
            info.Create(null, session.GetGamePackKeyEx());
            int lookface = (obj as NpcObject).mInfo.lookface;
            info.Init(obj.GetID(), obj.GetCurrentX(), obj.GetCurrentY(), lookface);

            this.SendData(info.GetBuffer());
        }