示例#1
0
        public Animation(YAML.Animation deserialized, string base_dir)
        {
            _DeserializedYAMLDoc = deserialized;

            _Generator  = new AnimatorGenerator(base_dir, _DeserializedYAMLDoc);
            _Collection = _Generator.Collection;
            _Clips      = _Generator.ConstructClips(_Collection.CollectionData);
        }
示例#2
0
        public Animation(ModLoader.ModInfo info, YAML.Animation deserialized, string base_dir = null)
        {
            _ModInfo             = info;
            _DeserializedYAMLDoc = deserialized;
            if (base_dir == null)
            {
                base_dir = info.Resources.BaseDir;
            }

            _Generator  = new AnimatorGenerator(_ModInfo, base_dir, _DeserializedYAMLDoc);
            _Collection = _Generator.Collection;
            _Clips      = _Generator.ConstructClips(_Collection.CollectionData);
        }