Delegate TemplateDecorator

Namespace
TDMaker.Unity.View
Assembly
TDMaker.Unity.dll

Changes a baked template before the simulation is created (for example to add WithCustomData values). asset is the authoring asset the template came from, or null. Return the template to use.

public delegate EntityTemplate TemplateDecorator(EntityTemplate template, EntityAssetBase asset)

Parameters

template EntityTemplate
Changes a baked template before the simulation is created (for example to add WithCustomData values). asset is the authoring asset the template came from, or null. Return the template to use.
asset EntityAssetBase
Changes a baked template before the simulation is created (for example to add WithCustomData values). asset is the authoring asset the template came from, or null. Return the template to use.

Returns

EntityTemplate
Changes a baked template before the simulation is created (for example to add WithCustomData values). asset is the authoring asset the template came from, or null. Return the template to use.

Constructors

TemplateDecorator(object, IntPtr)

public TemplateDecorator(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(EntityTemplate, EntityAssetBase, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(EntityTemplate template, EntityAssetBase asset, AsyncCallback callback, object @object)

Parameters

template EntityTemplate
asset EntityAssetBase
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual EntityTemplate EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

EntityTemplate

Invoke(EntityTemplate, EntityAssetBase)

public virtual EntityTemplate Invoke(EntityTemplate template, EntityAssetBase asset)

Parameters

template EntityTemplate
asset EntityAssetBase

Returns

EntityTemplate