Exemplo n.º 1
0
        public override void Read(EndianBinaryReader reader, ISection section = null)
        {
            var paramReader = new ParameterReader(reader);

            while (paramReader.Read())
            {
                switch (paramReader.HeadToken)
                {
                case "scale":
                    Scale = paramReader.ReadSingle();
                    break;

                case "cycle":
                    Cycle = paramReader.ReadSingle();
                    break;

                case "rot":
                    Rotation = paramReader.ReadVector2();
                    break;

                case "bias":
                    Bias = paramReader.ReadSingle();
                    break;

                case "spc":
                    Spc[paramReader.ReadInt32()] = paramReader.ReadVector2();
                    break;
                }
            }
        }