Splitting large data file for less cumbersome editing and IDE lag
This commit is contained in:
@@ -49,7 +49,7 @@ public class EntityModel
|
||||
{
|
||||
var entityInfo =
|
||||
EntityParts.FirstOrDefault(a => a.GetType() == typeof(EntityFactionModel)) as EntityFactionModel;
|
||||
return entityInfo == null ? string.Empty : DATA.Get()[entityInfo.Faction].GetName();
|
||||
return entityInfo == null ? string.Empty : EntityData.Get()[entityInfo.Faction].GetName();
|
||||
}
|
||||
|
||||
public string GetImmortal()
|
||||
@@ -57,7 +57,7 @@ public class EntityModel
|
||||
var entityInfo =
|
||||
EntityParts.FirstOrDefault(a =>
|
||||
a.GetType() == typeof(EntityVanguardAddedModel)) as EntityVanguardAddedModel;
|
||||
return entityInfo == null ? string.Empty : DATA.Get()[entityInfo.ImmortalId].GetName();
|
||||
return entityInfo == null ? string.Empty : EntityData.Get()[entityInfo.ImmortalId].GetName();
|
||||
}
|
||||
|
||||
public string AsYaml()
|
||||
@@ -93,7 +93,7 @@ public class EntityModel
|
||||
|
||||
public static Dictionary<string, EntityModel> GetDictionary()
|
||||
{
|
||||
if (_database == null) _database = DATA.Get();
|
||||
if (_database == null) _database = EntityData.Get();
|
||||
|
||||
return _database;
|
||||
}
|
||||
@@ -101,7 +101,7 @@ public class EntityModel
|
||||
|
||||
public static EntityModel Get(string entity)
|
||||
{
|
||||
if (_database == null) _database = DATA.Get();
|
||||
if (_database == null) _database = EntityData.Get();
|
||||
|
||||
return _database[entity];
|
||||
}
|
||||
@@ -109,7 +109,7 @@ public class EntityModel
|
||||
|
||||
public static List<EntityModel> GetList()
|
||||
{
|
||||
if (_entityModels == null) _entityModels = DATA.Get().Values.ToList();
|
||||
if (_entityModels == null) _entityModels = EntityData.Get().Values.ToList();
|
||||
|
||||
return _entityModels;
|
||||
}
|
||||
@@ -121,7 +121,7 @@ public class EntityModel
|
||||
{
|
||||
_entityModelsOnlyHotkey = new List<EntityModel>();
|
||||
|
||||
foreach (var entity in DATA.Get().Values)
|
||||
foreach (var entity in EntityData.Get().Values)
|
||||
if (entity.Hotkey() != null)
|
||||
_entityModelsOnlyHotkey.Add(entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user