Esempio n. 1
0
            public Collection(Dictionary <string, Texture2D> textures, YAML.Collection deserialized, string base_dir)
            {
                _DeserializedYAMLDoc = deserialized;
                GameObject           = new GameObject($"ModTheGungeon Collection '{deserialized.Name}'");

                _Generator     = new CollectionGenerator(textures, base_dir, _DeserializedYAMLDoc, GameObject);
                CollectionData = _Generator.ConstructCollection();
            }
Esempio n. 2
0
            public Collection(ModLoader.ModInfo info, YAML.Collection deserialized, string base_dir = null)
            {
                _DeserializedYAMLDoc = deserialized;
                if (base_dir == null)
                {
                    base_dir = info.Resources.BaseDir;
                }

                GameObject = new GameObject($"ModTheGungeon Collection '{deserialized.Name}'");

                _Generator     = new CollectionGenerator(info, base_dir, _DeserializedYAMLDoc, GameObject);
                CollectionData = _Generator.ConstructCollection();
            }