MapServer.BaseObject.GetGamePackKeyEx C# (CSharp) Method

GetGamePackKeyEx() public method

public GetGamePackKeyEx ( ) : GamePacketKeyEx
return GameBase.Network.GamePacketKeyEx
        public GameBase.Network.GamePacketKeyEx GetGamePackKeyEx()
        {
            if (this.GetGameSession() != null)
            {
                return this.GetGameSession().GetGamePackKeyEx();
            }
            return null;
        }

Usage Example

Ejemplo n.º 1
0
 //广播
 public virtual void BrocatBuffer(byte[] msg)
 {
     foreach (RefreshObject refobj in this.GetVisibleList().Values)
     {
         BaseObject obj = refobj.obj;
         if (obj.type == OBJECTTYPE.PLAYER && obj.GetGameSession() != null)
         {
             BaseMsg data = new BaseMsg();
             data.Create(msg, obj.GetGamePackKeyEx());
             obj.SendData(data.GetBuffer());
         }
     }
 }
All Usage Examples Of MapServer.BaseObject::GetGamePackKeyEx