Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.49 KB

File metadata and controls

19 lines (17 loc) · 1.49 KB

WCFConfigObject<TModuleObject,TModule>.TryGetObject(Module, TModuleObject) Method

Given the typeless Module, get the wrapper object for it. The wrapper object may have additional metadata about the module that isn't used in the WFC algorithm, but may be useful for other parts of the game.

public bool TryGetObject(BrewedInk.WFC.Module module, out TModuleObject moduleObject);

Parameters

module Module
The module you want to get the wrapper object for

moduleObject TModuleObject
The wrapper object for the Module. Or null if there is no wrapper object for the given Module

Returns

System.Boolean
True if there was an associated wrapper object with the module, or false.