Пример #1
0
 public object Clone()
 {
     return(new PmxBoneData()
     {
         BoneName = BoneName,
         BoneNameE = BoneNameE,
         Pos = Pos,
         BoneId = BoneId,
         ParentId = ParentId,
         ArrowId = ArrowId,
         Flag = Flag,
         ExtraParentId = ExtraParentId,
         Depth = Depth,
         PosOffset = PosOffset,
         LinkParentId = LinkParentId,
         LinkWeight = LinkWeight,
         AxisVec = AxisVec,
         LocalAxisVecX = LocalAxisVecX,
         LocalAxisVecZ = LocalAxisVecZ,
         IkTargetId = IkTargetId,
         IkDepth = IkDepth,
         AngleLimit = AngleLimit,
         IkChilds = CloneUtil.CloneArray(IkChilds),
     });
 }
Пример #2
0
 public object Clone() => new PmxMorphData()
 {
     MorphName  = MorphName,
     MorphNameE = MorphNameE,
     SlotType   = SlotType,
     MorphArray = CloneUtil.CloneArray(MorphArray),
 };
Пример #3
0
 public object Clone() => new PmxSlotData()
 {
     SlotName   = SlotName,
     SlotNameE  = SlotNameE,
     NormalSlot = NormalSlot,
     Type       = Type,
     Indices    = CloneUtil.CloneArray(Indices),
 };
Пример #4
0
 public object Clone() => new PmxModelData()
 {
     Header        = CloneUtil.Clone(Header),
     VertexArray   = CloneUtil.CloneArray(VertexArray),
     MaterialArray = CloneUtil.CloneArray(MaterialArray),
     BoneArray     = CloneUtil.CloneArray(BoneArray),
     MorphArray    = CloneUtil.CloneArray(MorphArray),
     SlotArray     = CloneUtil.CloneArray(SlotArray),
     VertexIndices = CloneUtil.CloneArray(VertexIndices),
     TextureFiles  = CloneUtil.CloneArray(TextureFiles),
 };
Пример #5
0
 public object Clone() => new PmxVertexData()
 {
     Pos        = Pos,
     Normal     = Normal,
     Uv         = Uv,
     Edge       = Edge,
     WeightType = WeightType,
     BoneId     = CloneUtil.CloneArray(BoneId),
     Weight     = CloneUtil.CloneArray(Weight),
     Sdef_c     = Sdef_c,
     Sdef_r0    = Sdef_r0,
     Sdef_r1    = Sdef_r1,
 };
Пример #6
0
 public object Clone()
 {
     return(new PmxModelData()
     {
         Header = CloneUtil.Clone(Header),
         VertexArray = CloneUtil.CloneArray(VertexArray),
         MaterialArray = CloneUtil.CloneArray(MaterialArray),
         BoneArray = CloneUtil.CloneArray(BoneArray),
         MorphArray = CloneUtil.CloneArray(MorphArray),
         SlotArray = CloneUtil.CloneArray(SlotArray),
         RigidArray = CloneUtil.CloneArray(RigidArray),
         JointArray = CloneUtil.CloneArray(JointArray),
         VertexIndices = CloneUtil.CloneArray(VertexIndices),
         TextureFiles = CloneUtil.CloneArray(TextureFiles),
     });
 }