public GetGamePackKeyEx ( ) : |
||
return |
public GameBase.Network.GamePacketKeyEx GetGamePackKeyEx()
{
if (this.GetGameSession() != null)
{
return this.GetGameSession().GetGamePackKeyEx();
}
return null;
}
//广播 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()); } } }