public unsafe override void ToBufferData(DataBuffer db, UITransfromData *data) { FakeStruct fs = new FakeStruct(db, 3); fs[0] = (int)EventColliderType.Circle; fs.SetFloat(1, Radius); fs.SetFloat(2, Ratio); data->eve = db.AddData(fs); }
public unsafe override void ToBufferData(DataBuffer db, UITransfromData *data) { FakeStruct fake = new FakeStruct(db, 5); fake[0] = (int)direction; fake.SetFloat(1, spacing); fake[2] = FixedSize?1:0; fake.SetFloat(3, FixedSizeRatio); fake.SetFloat(4, ItemOffset); data->composite = db.AddData(fake); }
public unsafe override void ToBufferData(DataBuffer db, huqiang.Core.UIData.UIElementData *data) { FakeStruct fs = new FakeStruct(db, 3); fs[0] = (int)EventColliderType.Circle; fs.SetFloat(1, Radius); fs.SetFloat(2, Ratio); int type = db.AddData("CircleEventHelper"); int index = db.AddData(fs); data->eve = type << 16 | index; }
public unsafe override void ToBufferData(DataBuffer db, huqiang.Core.UIData.UIElementData *data) { FakeStruct fake = new FakeStruct(db, 5); fake[0] = (int)direction; fake.SetFloat(1, spacing); fake[2] = FixedSize?1:0; fake.SetFloat(3, FixedSizeRatio); fake.SetFloat(4, ItemOffset); int type = db.AddData("StackPanelHelper"); int index = db.AddData(fake); data->composite = type << 16 | index; }
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); }