public override void RelocateRegion(GridVector location) { RegionInfo ri = GetRegionInfo(); ri.Location = location; GridService.RegisterRegion(ri); GridPosition = location; RegionStorage?.RegisterRegion(ri); }
public override void ReregisterRegion() { RegionInfo ri = GetRegionInfo(); GridService.RegisterRegion(ri); RegionStorage?.RegisterRegion(ri, true); foreach (IAgent agent in Agents) { var viewerAgent = agent as ViewerAgent; if (viewerAgent != null) { SendRegionInfo(viewerAgent); } } }