C# Класс Entitas.Blueprints.CodeGenerator.BlueprintExtensionsGenerator

Generates extension methods for creating entities and their components from blueprints.
Наследование: IComponentCodeGenerator
Показать файл Открыть проект

Открытые методы

Метод Описание
Generate ( ComponentInfo componentInfos ) : Entitas.CodeGenerator.CodeGenFile[]

Generates the contents of the source code files to write.

Приватные методы

Метод Описание
AddBlueprintMethod ( ComponentInfo info ) : string

Returns the method for initializing a component from a dictionary.

AddBlueprintPoolCode ( IEnumerable infos ) : string

Returns the extension class body for creating entities and adding components from blueprints.

AddComponentDictionary ( IEnumerable infos ) : string

Generates a map from component type names to component ids.

AddCreateEntityMethod ( IEnumerable infos ) : string

Returns the method for creating entities and adding components from blueprints.

AddDefaultPoolCode ( ComponentInfo info ) : string

Generates the extension class body for initializing a component from a dictionary.

FieldAssignments ( string componentName, Entitas.CodeGenerator.ComponentFieldInfo infos ) : string

Generates the code for assigning all fields of a component from data from a dictionary.

Описание методов

Generate() публичный Метод

Generates the contents of the source code files to write.
public Generate ( ComponentInfo componentInfos ) : Entitas.CodeGenerator.CodeGenFile[]
componentInfos Entitas.CodeGenerator.ComponentInfo Data about all available entity components.
Результат Entitas.CodeGenerator.CodeGenFile[]