示例#1
0
 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";
 }
示例#2
0
 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;
 }