public override CVariable Copy(CR2WCopyAction context) { var var = (CFXTrackItem)base.Copy(context); var.buffername = (CName)buffername.Copy(context); var.count = (CDynamicInt)count.Copy(context); var.unk = (CUInt8)unk.Copy(context); var.buffer = (CCompressedBuffer <CBufferUInt16 <CFloat> >)buffer.Copy(context); return(var); }
public override CVariable Copy(CR2WCopyAction context) { var copy = base.Copy(context) as CurveInfo; copy.someName = someName.Copy(context) as CName; copy.someByte = someByte.Copy(context) as CUInt8; foreach (var piece in pieces) { copy.pieces.Add(piece.Copy(context) as CurvePiece); } return(copy); }
public override CVariable Copy(CR2WCopyAction context) { var var = (CSectorDataObject)base.Copy(context); var.type = (CUInt8)type.Copy(context); var.flags = (CUInt8)flags.Copy(context); var.radius = (CUInt16)radius.Copy(context); var.offset = (CUInt64)offset.Copy(context); var.positionX = (CFloat)positionX.Copy(context); var.positionY = (CFloat)positionY.Copy(context); var.positionZ = (CFloat)positionZ.Copy(context); return(var); }