public void read(Reader reader)
        {
            // General
            loadGlobalObjects = reader.ReadBoolean();

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

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

            for (int i = 0; i < objectCount; ++i)
            {
                objects.Add(reader.readRSDKString());
            }

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

            for (int i = 0; i < sfxCount; ++i)
            {
                soundFX.Add(reader.readRSDKString());
            }

            reader.Close();
        }
 public Setup(Reader reader)
 {
     GameWidth  = reader.ReadInt32();
     GameHeight = reader.ReadInt32();
     GameFPS    = reader.ReadInt32();
     Windowed   = reader.ReadBoolean();
 }
Esempio n. 3
0
 public void read(Reader reader)
 {
     // 1 byte, unsigned
     parallaxFactor = reader.ReadByte();
     scrollSpeed    = reader.ReadByte();
     deform         = reader.ReadBoolean();
 }
Esempio n. 4
0
 public void read(Reader reader)
 {
     folder      = reader.readRSDKString();
     id          = reader.readRSDKString();
     name        = reader.readRSDKString();
     highlighted = reader.ReadBoolean();
 }
Esempio n. 5
0
        public Stageconfig(Reader reader)
        {
            LoadGlobalScripts = reader.ReadBoolean();

            StagePalette.Read(reader, 2);

            this.ReadObjectsNames(reader);

            this.ReadWAVConfiguration(reader);

            reader.Close();
        }