public RegionInfo(Region region, TerrainCell originCell, Language language) { World = originCell.World; EstablishmentDate = World.CurrentDate; Id = originCell.GenerateUniqueIdentifier(EstablishmentDate); Region = region; OriginCell = originCell; OriginCellPosition = originCell.Position; Language = language; LanguageId = language.Id; }
public CellEvent(TerrainCell cell, long triggerDate, long eventTypeId) : base(cell.World, triggerDate, cell.GenerateUniqueIdentifier(triggerDate, 1000L, eventTypeId), eventTypeId) { Cell = cell; CellLongitude = cell.Longitude; CellLatitude = cell.Latitude; // #if DEBUG // if ((Manager.RegisterDebugEvent != null) && (Manager.TracingData.Priority <= 0)) { // string cellLoc = "Long:" + cell.Longitude + "|Lat:" + cell.Latitude; // // SaveLoadTest.DebugMessage debugMessage = new SaveLoadTest.DebugMessage("CellEvent - Cell: " + cellLoc, "TriggerDate: " + TriggerDate); // // Manager.RegisterDebugEvent ("DebugMessage", debugMessage); // } // #endif }