Exemplo n.º 1
0
        // Token: 0x060000C6 RID: 198 RVA: 0x0000DAB4 File Offset: 0x0000BCB4
        public static PmxBaseMorph CreateOffsetObject(PmxMorph.OffsetKind kind)
        {
            PmxBaseMorph result = null;

            switch (kind)
            {
            case PmxMorph.OffsetKind.Group:
            case PmxMorph.OffsetKind.Flip:
                result = new PmxGroupMorph();
                break;

            case PmxMorph.OffsetKind.Vertex:
                result = new PmxVertexMorph();
                break;

            case PmxMorph.OffsetKind.Bone:
                result = new PmxBoneMorph();
                break;

            case PmxMorph.OffsetKind.UV:
            case PmxMorph.OffsetKind.UVA1:
            case PmxMorph.OffsetKind.UVA2:
            case PmxMorph.OffsetKind.UVA3:
            case PmxMorph.OffsetKind.UVA4:
                result = new PmxUVMorph();
                break;

            case PmxMorph.OffsetKind.Material:
                result = new PmxMaterialMorph();
                break;

            case PmxMorph.OffsetKind.Impulse:
                result = new PmxImpulseMorph();
                break;
            }
            return(result);
        }
Exemplo n.º 2
0
 // Token: 0x060000C5 RID: 197 RVA: 0x0000DAA1 File Offset: 0x0000BCA1
 public void FromPmxBaseMorph(PmxBaseMorph sv)
 {
     this.BaseIndex = sv.BaseIndex;
 }
 public void FromPmxBaseMorph(PmxBaseMorph sv)
 {
     BaseIndex = sv.BaseIndex;
     FromID(sv);
 }