Пример #1
0
 private void Reset()
 {
     this._parts = new PartList();
     this._resourceDefinitions = new PartResourceDefinitionList();
     this._configDirectories   = new List <ConfigDirectory>();
     this._configDirectories.Add(new ConfigDirectory("parts", "parts", UrlDir.DirectoryType.Parts));
     this._configDirectories.Add(new ConfigDirectory("internals", "internals", UrlDir.DirectoryType.Internals));
     this._configDirectories.Add(new ConfigDirectory("data", "gamedata", UrlDir.DirectoryType.GameData));
 }
Пример #2
0
        public void LoadParts()
        {
            PartList list = null;

            if (GameDatabase.Instance != null)
            {
                list = GameDatabase.Instance.Parts;
            }
            this._partsAssigned = new List <Part>();
            if (list == null)
            {
                Debug.LogWarning("RDNode: No loaded part lists available!");
                return;
            }
            int count = list.Count;

            foreach (Part part in list)
            {
                if (part.TechRequired == this.id)
                {
                    this._partsAssigned.Add(part);
                }
            }
        }