private void LoadEventSobjs() { var sobjs = Resources.LoadAll <EventSobj>("Event"); EventDict = new NameidSobjDict <EventSobj>(sobjs); foreach (var sobj in sobjs) { var wrapper = new EventWrapper(sobj); } }
private void LoadTreeItemSobjs() { var sobjs = Resources.LoadAll <TreeItemSobj>("TreeItem"); TreeItemDict = new NameidSobjDict <TreeItemSobj>(sobjs); foreach (var sobj in sobjs) { var wrapper = new TreeItemWrapper(sobj); wrapper.Lock(); } }
private void LoadBuildingSobjs() { var sobjs = Resources.LoadAll <BuildingDescription>("Building"); BuildingDict = new NameidSobjDict <BuildingDescription>(sobjs); foreach (var sobj in sobjs) { if (sobj.initAsLocked) { sobj.Lock(); } else { sobj.ForceUnlock(); } } }