private string GetSubResourceProperties(IndexedResource <ISubResource> res) { switch (res.Resource) { case SpriteFrames spriteFrames: return($"animations = {GetAnimations(spriteFrames.Animations)}"); } throw new NotImplementedException(); }
private string GetSubResource(IndexedResource <ISubResource> res) { return(string.Join(Environment.NewLine, $"[sub_resource type=\"{res.Resource.Type}\" id={res.Id}]", GetSubResourceProperties(res))); }
protected virtual string GetExternalResouce(IndexedResource <IExternalResource> res) { return($"[ext_resource path=\"{res.Resource.Path}\" type=\"{res.Resource.Type}\" id={res.Id}]"); }