MapServer.BaseObject.GetGamePackKeyEx C# (CSharp) Méthode

GetGamePackKeyEx() public méthode

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

Usage Example

Exemple #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