public void UpdateMaps(Actor self, IOccupySpace ios) { if (!self.IsInWorld) { return; } ScreenMap.AddOrUpdate(self); ActorMap.UpdatePosition(self, ios); }
/// <summary> /// 更新地图 /// </summary> /// <param name="self"></param> /// <param name="ios"></param> public void UpdateMaps(Actor self, IOccupySpace ios) { if (!self.IsInWorld) { return; } //if (!self.Bounds.Size.IsEmpty) //ScreenMap.Update(self); ScreenMap.AddOrUpdate(self); ActorMap.UpdatePosition(self, ios); }