1 using System.Collections.Generic;
4 namespace Entitas.CodeGenerator {
8 public readonly
string fullTypeName;
9 public readonly List<PublicMemberInfo> memberInfos;
10 public readonly
string[] pools;
11 public readonly
bool isSingleEntity;
12 public readonly
string singleComponentPrefix;
13 public readonly
bool generateComponent;
14 public readonly
bool generateMethods;
15 public readonly
bool generateIndex;
16 public readonly
bool hideInBlueprintInspector;
18 public readonly
string typeName;
19 public readonly
bool isSingletonComponent;
21 public ComponentInfo(
string fullTypeName, List<PublicMemberInfo> memberInfos,
string[] pools,
22 bool isSingleEntity,
string singleComponentPrefix,
23 bool generateComponent,
bool generateMethods,
bool generateIndex,
bool hideInBlueprintInspector) {
25 this.fullTypeName = fullTypeName;
26 this.memberInfos = memberInfos;
28 this.isSingleEntity = isSingleEntity;
29 this.singleComponentPrefix = singleComponentPrefix;
30 this.generateComponent = generateComponent;
31 this.generateMethods = generateMethods;
32 this.generateIndex = generateIndex;
33 this.hideInBlueprintInspector = hideInBlueprintInspector;
35 var nameSplit = fullTypeName.Split(
'.');
36 typeName = nameSplit[nameSplit.Length - 1];
38 isSingletonComponent = memberInfos.Count == 0;