Entitas  0.35.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
ComponentInfo.cs
1 using System.Collections.Generic;
3 
4 namespace Entitas.CodeGenerator {
5 
6  public class ComponentInfo {
7 
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;
17 
18  public readonly string typeName;
19  public readonly bool isSingletonComponent;
20 
21  public ComponentInfo(string fullTypeName, List<PublicMemberInfo> memberInfos, string[] pools,
22  bool isSingleEntity, string singleComponentPrefix,
23  bool generateComponent, bool generateMethods, bool generateIndex, bool hideInBlueprintInspector) {
24 
25  this.fullTypeName = fullTypeName;
26  this.memberInfos = memberInfos;
27  this.pools = pools;
28  this.isSingleEntity = isSingleEntity;
29  this.singleComponentPrefix = singleComponentPrefix;
30  this.generateComponent = generateComponent;
31  this.generateMethods = generateMethods;
32  this.generateIndex = generateIndex;
33  this.hideInBlueprintInspector = hideInBlueprintInspector;
34 
35  var nameSplit = fullTypeName.Split('.');
36  typeName = nameSplit[nameSplit.Length - 1];
37 
38  isSingletonComponent = memberInfos.Count == 0;
39  }
40  }
41 }