Ejemplo n.º 1
0
        public void read(Reader reader)
        {
            // SpriteSheets
            byte spriteSheetCount = reader.ReadByte();

            spriteSheets.Clear();
            for (int s = 0; s < spriteSheetCount; ++s)
            {
                spriteSheets.Add(reader.ReadString());
            }

            // Animations
            byte animationCount = reader.ReadByte();

            animations.Clear();
            for (int a = 0; a < animationCount; ++a)
            {
                animations.Add(new AnimationEntry(reader));
            }

            // Hitboxes
            byte hitboxCount = reader.ReadByte();

            hitboxes.Clear();
            for (int h = 0; h < hitboxCount; ++h)
            {
                hitboxes.Add(new Hitbox(reader));
            }

            reader.Close();
        }
Ejemplo n.º 2
0
 internal Global(Reader reader)
 {
     Name = reader.ReadString();
     Console.WriteLine(Name);
     UnknownValue1 = reader.ReadByte();
     UnknownValue2 = reader.ReadByte();
     UnknownValue3 = reader.ReadByte();
     UnknownValue4 = reader.ReadByte();
 }
Ejemplo n.º 3
0
            public void read(Reader reader)
            {
                name = reader.ReadString();
                short frameCount = reader.ReadByte();

                speed         = reader.ReadByte();
                loopIndex     = reader.ReadByte();
                rotationStyle = (RotationStyles)reader.ReadByte();

                frames.Clear();
                for (int f = 0; f < frameCount; ++f)
                {
                    frames.Add(new Frame(reader));
                }
            }
Ejemplo n.º 4
0
 public void read(Reader reader)
 {
     name = reader.ReadString();
     byte[] bytes = reader.readBytes(4);
     value = (bytes[3] << 24) + (bytes[2] << 16) + (bytes[1] << 8) + (bytes[0] << 0);
 }