MapServer.PlayerObject.SendNpcInfo C# (CSharp) Method

SendNpcInfo() public method

public SendNpcInfo ( BaseObject obj ) : void
obj BaseObject
return void
        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());
        }