public void read(Reader reader)
 {
     folder      = reader.readRSDKString();
     actID       = reader.readRSDKString();
     name        = reader.readRSDKString();
     highlighted = reader.ReadBoolean();
 }
 public void read(Reader reader)
 {
     // 2 bytes, little-endian, signed
     parallaxFactor  = reader.ReadByte();
     parallaxFactor |= (short)(reader.ReadByte() << 8);
     scrollSpeed     = reader.ReadByte();
     deform          = reader.ReadBoolean();
 }
        public void read(Reader reader)
        {
            // General
            loadGlobalObjects = reader.ReadBoolean();

            // Palettes
            stagePalette.read(reader, 2);

            // SoundFX
            soundFX.Clear();
            byte sfxCount = reader.ReadByte();

            for (int i = 0; i < sfxCount; ++i)
            {
                GameConfig.SoundInfo info = new GameConfig.SoundInfo();
                info.name = reader.readRSDKString();

                soundFX.Add(info);
            }

            foreach (GameConfig.SoundInfo info in soundFX)
            {
                info.path = reader.readRSDKString();
            }

            // Objects
            objects.Clear();
            byte objectCount = reader.ReadByte();

            for (int i = 0; i < objectCount; ++i)
            {
                GameConfig.ObjectInfo info = new GameConfig.ObjectInfo();
                info.name = reader.readRSDKString();

                objects.Add(info);
            }

            foreach (GameConfig.ObjectInfo info in objects)
            {
                info.script = reader.readRSDKString();
            }

            reader.Close();
        }