Exemple #1
0
 public override unsafe void LoadFromBuffer(FakeStruct fake, Initializer initializer)
 {
     direction      = (Direction)fake[0];
     spacing        = fake.GetFloat(1);
     FixedSize      = fake[2] == 1;
     FixedSizeRatio = fake.GetFloat(3);
     ItemOffset     = fake.GetFloat(4);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public void Initial(FakeStruct fake)
 {
     Radius = fake.GetFloat(1);
     Ratio  = fake.GetFloat(2);
 }
 public override unsafe void LoadFromBuffer(FakeStruct fake, Initializer initializer)
 {
     Radius = fake.GetFloat(1);
     Ratio  = fake.GetFloat(2);
 }