Пример #1
0
        public void Read(string manifestPath)
        {
            this.ManifestCartridge = null;
            this.ManifestPath      = manifestPath;

            XmlDocument document = new XmlDocument();

            document.Load(manifestPath);

            var rootNode = document.FirstChild;

            if (rootNode.NodeType == XmlNodeType.XmlDeclaration)
            {
                rootNode = rootNode.NextSibling;
            }

            if (rootNode.LocalName != "Cartridge")
            {
                throw new Exception("The first node of the manifest should be a Cartridge Node !");
            }

            var cartridge = new ManifestCartridge(this);

            cartridge.Read((XmlElement)rootNode);

            this.ManifestCartridge = cartridge;
        }
Пример #2
0
 public ManifestAssetSprite(ManifestCartridge manifestCartridge) : base(manifestCartridge)
 {
 }
Пример #3
0
 public ManifestAssetSound(ManifestCartridge manifestCartridge) : base(manifestCartridge)
 {
 }
Пример #4
0
 public ManifestAssetFontSheet(ManifestCartridge manifestCartridge) : base(manifestCartridge)
 {
 }
Пример #5
0
 public ManifestAsset(ManifestCartridge manifestCartridge)
 {
     this.ManifestCartridge = manifestCartridge;
 }
Пример #6
0
 public ManifestAssetMapTmx(ManifestCartridge manifestCartridge) : base(manifestCartridge)
 {
 }
Пример #7
0
 public ManifestAssetTileSheet(ManifestCartridge manifestCartridge) : base(manifestCartridge)
 {
 }