/// <summary> /// Looks on the given tracked PCFs and returns the best PCF binding for this landscape binding (if any exist). Returns false if failed to find a valid PCF binding on the given tracked PCFs. /// </summary> public bool TryGetPCFBinding(IEnumerable <MLPCF> PCFs, out MLUPCFBinding bindingData) { foreach (MLUPCFBinding binding in bindings) { foreach (MLPCF PCF in PCFs) { if (PCF.CurrentResult == MLResultCode.Ok && PCF.CFUID.Equals(binding.CFUID)) { bindingData = binding; return(true); } } } bindingData = default(MLUPCFBinding); return(false); }
public BindingInfo(MLULandscapeBinding landscapeBinding, MLUPCFBinding binding, MLUTrackedPCF trackedPCF) { this.landscapeBinding = landscapeBinding; this.binding = binding; this.trackedPCF = trackedPCF; }
/// <summary> /// Looks on the current landscape tracked PCFs and returns the best PCF binding for this landscape binding (if any exist). Returns false if failed to find a valid PCF binding on the current landscape. /// </summary> public bool TryGetPCFBinding(out MLUPCFBinding bindingData) { return(TryGetPCFBinding(MLULandscape.AllPCFs, out bindingData)); }