Example #1
0
        private static TagCompound MakeRootTag()
        {
            TagList     list = new TagList("ZZZZ", ETagType.Compound);
            TagCompound tag  = list.AddCompound();

            tag.SetShort("EF", 4095);
            TagCompound tag2 = list.AddCompound();

            tag2.SetFloat("JK", 0.5f);
            tag2.SetString("TXT", "Hello World!");

            list.Add(tag);
            list.Add(tag2);

            dynamic root = new TagCompound("ROOT");

            root.Set(list);
            root.DYN          = new int[] { 5, -6 };
            root.ZZZZ[1].TEST = 0.1;
            return(root);
        }
Example #2
0
        private static TagCompound MakeRootTag()
        {
            TagList list = new TagList("ZZZZ", ETagType.Compound);
            TagCompound tag = list.AddCompound();
            tag.SetShort("EF", 4095);
            TagCompound tag2 = list.AddCompound();
            tag2.SetFloat("JK", 0.5f);
            tag2.SetString("TXT", "Hello World!");

            list.Add(tag);
            list.Add(tag2);

            dynamic root = new TagCompound("ROOT");
            root.Set(list);
            root.DYN = new int[] { 5, -6 };
            root.ZZZZ[1].TEST = 0.1;
            return root;
        }