 | ITetrapodXTPart, TChainCopyTPart2, TChain2 Method (ITetrapodTPart2, TChain2, ITetrapodMutableTPart, TChain, FuncTPart, IEnumerableTPart, TChain) |
Copies the definition from the specified source to the specified destination, if the source has the expected
components on its parts.
Namespace: CandlelightAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntaxpublic static void Copy<TPart2, TChain2>(
ITetrapod<TPart2, TChain2> from,
ITetrapodMutable<TPart, TChain> to,
Func<TPart, IEnumerable<TPart>, TChain> createChain
)
where TPart2 : Component
where TChain2 : struct, new(), IBodyChain<TChain2, TPart2>
Parameters
- from
- Type: CandlelightITetrapodTPart2, TChain2
The ITetrapodTPart, TChain whose definition is the source. - to
- Type: CandlelightITetrapodMutableTPart, TChain
The ITetrapodTPart, TChain whose definition should be updated. - createChain
- Type: SystemFuncTPart, IEnumerableTPart, TChain
Method to create new chains when copying.
Type Parameters
- TPart2
- The part type in the source tetrapod.
- TChain2
- The chain type in the source tetrapod.
See Also