Exemplo n.º 1
0
        public override void Save(Serializer.RSFileWriter bw)
        {
            base.Save(bw);

            bw.WriteByte(15);
            ItemLayout.Save(bw);

            bw.WriteByte(16);
            ItemMargin.Save(bw);

            bw.WriteByte(17);
            ItemPadding.Save(bw);

            bw.WriteByte(0);
        }
Exemplo n.º 2
0
        public override bool Load(Serializer.RSFileReader br)
        {
            if (base.Load(br))
            {
                byte b;
                while ((b = br.ReadByte()) != 0)
                {
                    switch (b)
                    {
                    case 10:
                        br.ReadInt32();
                        break;

                    case 11:
                        br.ReadInt32();
                        break;

                    case 12:
                        br.ReadFloat();
                        break;

                    case 13:
                        br.ReadBool();
                        break;

                    case 14:
                        br.ReadInt32();
                        break;

                    case 15:
                        ItemLayout.Load(br);
                        break;

                    case 16:
                        ItemMargin.Load(br);
                        break;

                    case 17:
                        ItemPadding.Load(br);
                        break;
                    }
                }
                return(true);
            }

            return(false);
        }