Example #1
0
        public FakeStruct Save(DataBuffer db)
        {
            FakeStruct fake = new FakeStruct(db, 29);

            fake[0] = db.AddData(this.GetType().Name, DataType.String);
            fake[1] = a;
            fake[2] = b;
            fake[3] = c;
            fake.SetInt64(4, d);
            fake.SetFloat(6, e);
            fake.SetDouble(7, f);
            fake.SetData(9, g);
            if (h != null)
            {
                fake[10] = db.AddData(h.Save(db));
            }
            v.Save(fake, 11);
            v3.Save(fake, 13);
            v4.Save(fake, 16);
            col.Save(fake, 20);
            col32.Save(fake, 24);
            q.Save(fake, 25);
            return(fake);
        }