Пример #1
0
 public override PmxMaterialData[] CreateMaterials(World wolrd, ShotProperty prop)
 {
     PmxMaterialData[] result = new PmxMaterialData[OriginalData.MaterialArray.Length];
     for (int i = 0; i < result.Length; i++)
     {
         result[i] = CloneUtil.Clone(OriginalData.MaterialArray[i]);
     }
     return(result);
 }
Пример #2
0
 public override PmxBoneData[] CreateBones(World wolrd, ShotProperty prop)
 {
     PmxBoneData[] result = new PmxBoneData[Data.BoneArray.Length];
     for (int i = 0; i < result.Length; i++)
     {
         result[i] = CloneUtil.Clone(Data.BoneArray[i]);
     }
     return(result);
 }
Пример #3
0
        public void GameManager_CloneGame()
        {
            Game gameBefore = gm.CurrentGame;
            Game gameAfter  = CloneUtil.Clone(gameBefore);

            // On modifie volontairement le game pour vérifier qu'il s'agit bien d'une copie
            gameBefore.nextUnit();

            Assert.IsFalse(gameBefore.Equals(gameAfter));
        }
Пример #4
0
 public override PmxVertexData[] CreateVertices(World wolrd, ShotProperty prop)
 {
     PmxVertexData[] result = new PmxVertexData[OriginalData.VertexArray.Length];
     for (int i = 0; i < result.Length; i++)
     {
         var clone = result[i] = CloneUtil.Clone(OriginalData.VertexArray[i]);
         clone.Pos = (Vector4)clone.Pos * prop.Scale;
     }
     return(result);
 }
Пример #5
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),
 };
Пример #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),
     });
 }
Пример #7
0
 public Block Clone() => CloneUtil.Clone(this);
Пример #8
0
 public BlockHeader Clone() => CloneUtil.Clone(this);
Пример #9
0
 public Transaction Clone()
 => CloneUtil.Clone(this);