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); }
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); }
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)); }
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); }
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), };
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), }); }
public Block Clone() => CloneUtil.Clone(this);
public BlockHeader Clone() => CloneUtil.Clone(this);
public Transaction Clone() => CloneUtil.Clone(this);