public GlobalVariable(Reader reader) { Name = reader.ReadString(); //Console.WriteLine(Name); Value = reader.ReadInt32(); }
private void ReadAttribute(Reader reader, int ID) { switch (ID) { case 0: attribute = reader.ReadInt32(); break; case 1: attribute = reader.ReadInt32(); break; case 2: attribute = reader.ReadInt32(); break; case 3: attribute = reader.ReadByte(); break; case 4: attribute = reader.ReadByte(); break; case 5: attribute = reader.ReadByte(); break; case 6: attribute = reader.ReadByte(); break; case 7: attribute = reader.ReadInt32(); break; case 8: attribute = reader.ReadByte(); break; case 9: attribute = reader.ReadByte(); break; case 10: attribute = reader.ReadInt32(); break; case 11: attribute = reader.ReadInt32(); break; case 12: attribute = reader.ReadInt32(); break; case 13: attribute = reader.ReadInt32(); break; } }