Skip to content

RoyInterface / Exports / resource/material/RoyMaterialTemplate / RoyMaterialTemplateMgr

Class: RoyMaterialTemplateMgr

resource/material/RoyMaterialTemplate.RoyMaterialTemplateMgr

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new RoyMaterialTemplateMgr(): RoyMaterialTemplateMgr

Returns

RoyMaterialTemplateMgr

Properties

instance

Static Private instance: RoyMaterialTemplateMgr


m_matTemplateMap

Protected m_matTemplateMap: Map<string, RoyMaterialTemplate>

Accessors

matTemplateMap

get matTemplateMap(): Map<string, RoyMaterialTemplate>

Returns

Map<string, RoyMaterialTemplate>

Methods

getInstance

getInstance(): RoyMaterialTemplateMgr

Returns

RoyMaterialTemplateMgr


get

get(templateName): RoyMaterialTemplate

Parameters

NameType
templateNamestring

Returns

RoyMaterialTemplate


register

register(matTemplate): void

Parameters

NameType
matTemplateRoyMaterialTemplate

Returns

void


createMatInstance

createMatInstance(templateName, transDataInfo?): RoyMaterialInstance

Parameters

NameType
templateNamestring
transDataInfo?RoyTransDataInfo

Returns

RoyMaterialInstance