public virtual void ClearThis()
{
NetMsg.MsgClearObjectInfo info = new NetMsg.MsgClearObjectInfo();
info.id = GetTypeId();
byte[] msg = info.GetBuffer();
this.BrocatBuffer(msg);
//移除范围内的对象..以便下次刷新怪物的时候刷新出来2015.10.16
foreach (RefreshObject refobj in this.GetVisibleList().Values)
{
BaseObject obj = refobj.obj;
if (obj.type != OBJECTTYPE.PLAYER) continue;
if (obj.GetVisibleList().ContainsKey(this.GetGameID()))
{
obj.GetVisibleList().Remove(this.GetGameID());
}
}
this.GetVisibleList().Clear();
// this.GetGameMap().BroadcastBuffer(this, msg);
}