예제 #1
0
        public void method_5(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0)
        {
            AsciiStructureNode @class;

            Prefix = (((@class = class2860.method_5(new AsciiStructureNode("prefix"))) != null)
                ? @class.method_8()
                : "general");
            InitialMovie = (((@class = class2860.method_5(new AsciiStructureNode("initial_movie"))) != null)
                ? @class.method_8()
                : "");
            IntegerStructureNode class2;
            var num = ((class2 = class2860.method_5(new IntegerStructureNode("num_tiers"))) != null)
                ? class2.method_8()
                : 0;

            try
            {
                for (var i = 1; i <= num; i++)
                {
                    Tiers.Add(new Gh3Tier(class2860.method_5(new StructurePointerNode("tier" + i)).method_8(),
                                          gh3Songlist0));
                }
            }
            catch
            {
                throw new Exception(Path + " setlist is corrupt: Tier/s missing.");
            }
        }
예제 #2
0
		public void method_2(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0)
		{
			UnicodeStructureNode @class;
			this.title = (((@class = class286_0.method_5<UnicodeStructureNode>(new UnicodeStructureNode("title"))) != null) ? @class.method_8() : "");
			AsciiStructureNode class2;
			this.completion_movie = (((class2 = class286_0.method_5<AsciiStructureNode>(new AsciiStructureNode("completion_movie"))) != null) ? class2.method_8() : "");
			IntegerStructureNode class3;
			this.defaultunlocked = (((class3 = class286_0.method_5<IntegerStructureNode>(new IntegerStructureNode("defaultunlocked"))) != null) ? class3.method_8() : 0);
			TagStructureNode class4;
			this.level = (((class4 = class286_0.method_5<TagStructureNode>(new TagStructureNode("level"))) != null) ? class4.method_8() : "No Preset Stage");
			this.setlist_icon = (((class4 = class286_0.method_5<TagStructureNode>(new TagStructureNode("setlist_icon"))) != null) ? class4.method_8() : "No Icon");
			this.encorep1 = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "encorep1")) != null);
			this.encorep2 = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "encorep2")) != null);
			this.aerosmith_encore_p1 = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "aerosmith_encore_p1")) != null);
			this.boss = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "boss")) != null);
			this.nocash = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "nocash")) != null);
			this.unlockall = (class286_0.method_5<TagStructureNode>(new TagStructureNode(0, "unlockall")) != null);
			ArrayPointerNode class5 = new ArrayPointerNode("songs");
			if (class286_0.method_6<ArrayPointerNode>(ref class5) && !(class5.method_8() is FloatListNode))
			{
				foreach (string current in class5.method_8().method_8<string>())
				{
					if (gh3Songlist_0.ContainsKey(current))
					{
						this.songs.Add(gh3Songlist_0[current]);
					}
					else
					{
						Console.WriteLine("Song (" + current + ") skipped: does not exist in the songlist.");
					}
				}
			}
		}
예제 #3
0
		public void method_5(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0)
		{
			AsciiStructureNode @class;
			this.prefix = (((@class = class286_0.method_5<AsciiStructureNode>(new AsciiStructureNode("prefix"))) != null) ? @class.method_8() : "general");
			this.initial_movie = (((@class = class286_0.method_5<AsciiStructureNode>(new AsciiStructureNode("initial_movie"))) != null) ? @class.method_8() : "");
			IntegerStructureNode class2;
			int num = ((class2 = class286_0.method_5<IntegerStructureNode>(new IntegerStructureNode("num_tiers"))) != null) ? class2.method_8() : 0;
			try
			{
				for (int i = 1; i <= num; i++)
				{
					this.tiers.Add(new GH3Tier(class286_0.method_5<StructurePointerNode>(new StructurePointerNode("tier" + i)).method_8(), gh3Songlist_0));
				}
			}
			catch
			{
				throw new Exception(this.path + " setlist is corrupt: Tier/s missing.");
			}
		}
예제 #4
0
        public void method_5(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0)
        {
            AsciiStructureNode @class;

            this.prefix        = (((@class = class286_0.method_5 <AsciiStructureNode>(new AsciiStructureNode("prefix"))) != null) ? @class.method_8() : "general");
            this.initial_movie = (((@class = class286_0.method_5 <AsciiStructureNode>(new AsciiStructureNode("initial_movie"))) != null) ? @class.method_8() : "");
            IntegerStructureNode class2;
            int num = ((class2 = class286_0.method_5 <IntegerStructureNode>(new IntegerStructureNode("num_tiers"))) != null) ? class2.method_8() : 0;

            try
            {
                for (int i = 1; i <= num; i++)
                {
                    this.tiers.Add(new GH3Tier(class286_0.method_5 <StructurePointerNode>(new StructurePointerNode("tier" + i)).method_8(), gh3Songlist_0));
                }
            }
            catch
            {
                throw new Exception(this.path + " setlist is corrupt: Tier/s missing.");
            }
        }
예제 #5
0
		public void method_0(StructureHeaderNode class286_0)
		{
			this.setlist = class286_0.method_5<TagStructureNode>(new TagStructureNode("tier_global")).method_10();
			this.progression = class286_0.method_5<TagStructureNode>(new TagStructureNode("progression_global")).method_10();
		}
예제 #6
0
        public void method_2(StructureHeaderNode class286_0, GH3Songlist gh3Songlist_0)
        {
            UnicodeStructureNode @class;

            this.title = (((@class = class286_0.method_5 <UnicodeStructureNode>(new UnicodeStructureNode("title"))) != null) ? @class.method_8() : "");
            AsciiStructureNode class2;

            this.completion_movie = (((class2 = class286_0.method_5 <AsciiStructureNode>(new AsciiStructureNode("completion_movie"))) != null) ? class2.method_8() : "");
            IntegerStructureNode class3;

            this.defaultunlocked = (((class3 = class286_0.method_5 <IntegerStructureNode>(new IntegerStructureNode("defaultunlocked"))) != null) ? class3.method_8() : 0);
            TagStructureNode class4;

            this.level               = (((class4 = class286_0.method_5 <TagStructureNode>(new TagStructureNode("level"))) != null) ? class4.method_8() : "No Preset Stage");
            this.setlist_icon        = (((class4 = class286_0.method_5 <TagStructureNode>(new TagStructureNode("setlist_icon"))) != null) ? class4.method_8() : "No Icon");
            this.encorep1            = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "encorep1")) != null);
            this.encorep2            = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "encorep2")) != null);
            this.aerosmith_encore_p1 = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "aerosmith_encore_p1")) != null);
            this.boss      = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "boss")) != null);
            this.nocash    = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "nocash")) != null);
            this.unlockall = (class286_0.method_5 <TagStructureNode>(new TagStructureNode(0, "unlockall")) != null);
            ArrayPointerNode class5 = new ArrayPointerNode("songs");

            if (class286_0.method_6 <ArrayPointerNode>(ref class5) && !(class5.method_8() is FloatListNode))
            {
                foreach (string current in class5.method_8().method_8 <string>())
                {
                    if (gh3Songlist_0.ContainsKey(current))
                    {
                        this.songs.Add(gh3Songlist_0[current]);
                    }
                    else
                    {
                        Console.WriteLine("Song (" + current + ") skipped: does not exist in the songlist.");
                    }
                }
            }
        }
예제 #7
0
 public void method_0(StructureHeaderNode class2860)
 {
     Setlist     = class2860.method_5(new TagStructureNode("tier_global")).method_10();
     Progression = class2860.method_5(new TagStructureNode("progression_global")).method_10();
 }
예제 #8
0
        public void method_2(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0)
        {
            UnicodeStructureNode @class;

            Title =
                (((@class = class2860.method_5(new UnicodeStructureNode("title"))) != null) ? @class.method_8() : "");
            AsciiStructureNode class2;

            CompletionMovie = (((class2 = class2860.method_5(new AsciiStructureNode("completion_movie"))) != null)
                ? class2.method_8()
                : "");
            IntegerStructureNode class3;

            Defaultunlocked = (((class3 = class2860.method_5(new IntegerStructureNode("defaultunlocked"))) != null)
                ? class3.method_8()
                : 0);
            TagStructureNode class4;

            Level = (((class4 = class2860.method_5(new TagStructureNode("level"))) != null)
                ? class4.method_8()
                : "No Preset Stage");
            SetlistIcon = (((class4 = class2860.method_5(new TagStructureNode("setlist_icon"))) != null)
                ? class4.method_8()
                : "No Icon");
            Encorep1          = (class2860.method_5(new TagStructureNode(0, "encorep1")) != null);
            Encorep2          = (class2860.method_5(new TagStructureNode(0, "encorep2")) != null);
            AerosmithEncoreP1 = (class2860.method_5(new TagStructureNode(0, "aerosmith_encore_p1")) != null);
            Boss      = (class2860.method_5(new TagStructureNode(0, "boss")) != null);
            Nocash    = (class2860.method_5(new TagStructureNode(0, "nocash")) != null);
            Unlockall = (class2860.method_5(new TagStructureNode(0, "unlockall")) != null);
            var class5 = new ArrayPointerNode("songs");

            if (class2860.method_6(ref class5) && !(class5.method_8() is FloatListNode))
            {
                foreach (var current in class5.method_8().method_8 <string>())
                {
                    if (gh3Songlist0.ContainsKey(current))
                    {
                        Songs.Add(gh3Songlist0[current]);
                    }
                    else
                    {
                        Console.WriteLine("Song (" + current + ") skipped: does not exist in the songlist.");
                    }
                }
            }
        }
예제 #9
0
 public void method_0(StructureHeaderNode class286_0)
 {
     this.setlist     = class286_0.method_5 <TagStructureNode>(new TagStructureNode("tier_global")).method_10();
     this.progression = class286_0.method_5 <TagStructureNode>(new TagStructureNode("progression_global")).method_10();
 }