/// <summary> /// Creates a new PathInfoV2 /// </summary> /// <param name="sourceModeInfo">Source mode information</param> /// <param name="sourceId">Source Id, can be zero</param> public PathInfoV2(SourceModeInfo sourceModeInfo, uint sourceId) { this = typeof(PathInfoV2).Instantiate <PathInfoV2>(); _TargetInfoCount = 0; _TargetsInfo = ValueTypeArray <PathTargetInfoV2> .Null; _SourceModeInfo = ValueTypeReference <SourceModeInfo> .FromValueType(sourceModeInfo); _SourceId = sourceId; }
/// <summary> /// Creates a new PathInfoV2 /// </summary> /// <param name="targetInformations">Information about path targets</param> /// <param name="sourceModeInfo">Source mode information</param> /// <param name="sourceId">Source Id, can be zero</param> public PathInfoV2(PathTargetInfoV2[] targetInformations, SourceModeInfo sourceModeInfo, uint sourceId = 0) { this = typeof(PathInfoV2).Instantiate <PathInfoV2>(); _TargetInfoCount = (uint)targetInformations.Length; _TargetsInfo = ValueTypeArray <PathTargetInfoV2> .FromArray(targetInformations); _SourceModeInfo = ValueTypeReference <SourceModeInfo> .FromValueType(sourceModeInfo); _SourceId = sourceId; }