public Animation(YAML.Animation deserialized, string base_dir) { _DeserializedYAMLDoc = deserialized; _Generator = new AnimatorGenerator(base_dir, _DeserializedYAMLDoc); _Collection = _Generator.Collection; _Clips = _Generator.ConstructClips(_Collection.CollectionData); }
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); }