Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Core.Models.Region"/> class.
 /// </summary>
 /// <param name="regionPosition">Region position.</param>
 /// <param name="terrains">Terrains of the region.</param>
 public Region(RegionPosition regionPosition, TerrainDefinition[,] terrains)
 {
     m_regionPosition = regionPosition;
     m_terrains = terrains;
     m_entities = new DatedEntities();
     m_territory = new Dictionary<PositionI, Account>();
     throw new Exception("Territory need to be load");
     m_actions = new DatedActions();
     m_exist = true;
     m_mutex = new ReaderWriterLockSlim();
 }
Example #2
0
 /// <summary>
 /// Adds the terrain afterward if the region was created without.
 /// </summary>
 /// <param name="terrains">2D array of TerrainsType </param>
 public void AddTerrain(TerrainDefinition[,] terrains)
 {
     m_terrains = terrains;
     m_exist = true;
 }