private static string GetAssetSource(IceAsset asset) { if (asset.Parent == SceneManager.GlobalDataHolder) return "GLOBAL"; else if (asset.Parent == null) return "EMBEDDED"; else if (asset.Parent == SceneManager.ActiveScene) return "LOCAL"; else return "NULL"; }
private static void SerializeAsset(XmlDocument doc, XmlNode assetNode, IceAsset asset) { assetNode.Attributes.Append(doc.CreateAttribute("name")).InnerText = asset.Name; assetNode.Attributes.Append(doc.CreateAttribute("location")).InnerText = asset.Filename; }