Fixes body expression style.

This commit is contained in:
Kamron Batman 2018-09-14 08:46:14 -07:00
parent 3f0a72a62f
commit 33f5e77a24
957 changed files with 7424 additions and 15973 deletions

View file

@ -13,17 +13,17 @@ namespace Server.Regions
private static Hashtable m_Table = new Hashtable();
public static Hashtable Table{ get{ return m_Table; } }
public static Hashtable Table => m_Table;
// When a creature's AI is deactivated (PlayerRangeSensitive optimization) does it return home?
public bool ReturnOnDeactivate{ get{ return true; } }
public bool ReturnOnDeactivate => true;
// Are creatures unlinked on taming (true) or should they also go out of the region (false)?
public bool UnlinkOnTaming{ get{ return false; } }
public bool UnlinkOnTaming => false;
// Are unlinked and untamed creatures removed after 20 hours?
public bool RemoveIfUntamed{ get{ return true; } }
public bool RemoveIfUntamed => true;
public static readonly Direction InvalidDirection = Direction.Running;
@ -43,21 +43,21 @@ namespace Server.Regions
private DateTime m_NextSpawn;
private Timer m_SpawnTimer;
public int ID{ get{ return m_ID; } }
public BaseRegion Region{ get{ return m_Region; } }
Region ISpawner.Region{ get{ return m_Region; } }
public Point3D HomeLocation{ get{ return m_Home; } }
public int HomeRange{ get{ return m_Range; } }
public Direction Direction{ get{ return m_Direction; } }
public SpawnDefinition Definition{ get{ return m_Definition; } }
public List<ISpawnable> SpawnedObjects{ get{ return m_SpawnedObjects; } }
public int Max{ get{ return m_Max; } }
public TimeSpan MinSpawnTime{ get{ return m_MinSpawnTime; } }
public TimeSpan MaxSpawnTime{ get{ return m_MaxSpawnTime; } }
public bool Running{ get{ return m_Running; } }
public int ID => m_ID;
public BaseRegion Region => m_Region;
Region ISpawner.Region => m_Region;
public Point3D HomeLocation => m_Home;
public int HomeRange => m_Range;
public Direction Direction => m_Direction;
public SpawnDefinition Definition => m_Definition;
public List<ISpawnable> SpawnedObjects => m_SpawnedObjects;
public int Max => m_Max;
public TimeSpan MinSpawnTime => m_MinSpawnTime;
public TimeSpan MaxSpawnTime => m_MaxSpawnTime;
public bool Running => m_Running;
public bool Complete{ get{ return m_SpawnedObjects.Count >= m_Max; } }
public bool Spawning{ get{ return m_Running && !this.Complete; } }
public bool Complete => m_SpawnedObjects.Count >= m_Max;
public bool Spawning => m_Running && !this.Complete;
public SpawnEntry( int id, BaseRegion region, Point3D home, int range, Direction direction, SpawnDefinition definition, int max, TimeSpan minSpawnTime, TimeSpan maxSpawnTime )
{