public void Load(FakeStruct fake) { a = (byte)fake[1]; b = (Int16)fake[2]; c = fake[3]; d = fake.GetInt64(4); e = fake.GetFloat(6); f = fake.GetDouble(7); g = fake.GetData <string>(9); var h_t = fake.GetData <FakeStruct>(10); if (h_t != null) { h = new TestA(); h.Load(h_t); } v = DBStructProc.LoadVector2(fake, 11); v3 = DBStructProc.LoadVector3(fake, 13); v4 = DBStructProc.LoadVector4(fake, 16); col = DBStructProc.LoadColor(fake, 20); col32 = DBStructProc.LoadColor32(fake, 24); q = DBStructProc.LoadQuaternion(fake, 25); }