예제 #1
0
        private void LoadEventSobjs()
        {
            var sobjs = Resources.LoadAll <EventSobj>("Event");

            EventDict = new NameidSobjDict <EventSobj>(sobjs);
            foreach (var sobj in sobjs)
            {
                var wrapper = new EventWrapper(sobj);
            }
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
        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();
                }
            }
        }