C# 클래스 Entitas.Blueprints.CodeGenerator.BlueprintExtensionsGenerator

Generates extension methods for creating entities and their components from blueprints.
상속: IComponentCodeGenerator
파일 보기 프로젝트 열기: npruehs/Entitas-Blueprints-CSharp

공개 메소드들

메소드 설명
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[]