Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 2.31 KB

File metadata and controls

42 lines (30 loc) · 2.31 KB

WCFConfigObject<TModuleObject,TModule> Class

public abstract class WCFConfigObject<TModuleObject,TModule> : BrewedInk.WFC.WCFConfigObject
    where TModuleObject : BrewedInk.WFC.ModuleObject<TModule>
    where TModule : BrewedInk.WFC.Module

Type parameters

TModuleObject

TModule

Inheritance System.Object 🡒 UnityEngine.Object 🡒 UnityEngine.ScriptableObject 🡒 WCFConfigObject 🡒 WCFConfigObject<TModuleObject,TModule>

Derived
SpriteConfig

Fields


seed

If the useSeed boolean is true, what seed should be used? This property should be ignored if useSeed is false.


useSeed

Should the GenerationSpace instances that this instance creates use a seed?/>

Methods


CreateSpace()

You need to create a Generation Space given a set of user defined modules and configuration.


TryGetObject(Module, TModuleObject)

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.