C# Class Entitas.Blueprints.CodeGenerator.BlueprintExtensionsGenerator

Generates extension methods for creating entities and their components from blueprints.
Inheritance: IComponentCodeGenerator
Mostra file Open project: npruehs/Entitas-Blueprints-CSharp

Public Methods

Method Description
Generate ( ComponentInfo componentInfos ) : Entitas.CodeGenerator.CodeGenFile[]

Generates the contents of the source code files to write.

Private Methods

Method Description
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.

Method Details

Generate() public method

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.
return Entitas.CodeGenerator.CodeGenFile[]