|
6 | 6 |
|
7 | 7 | # Entity Component System |
8 | 8 |
|
9 | | -[]() |
| 9 | +[]() |
10 | 10 | []() |
11 | 11 | []() |
12 | 12 |
|
@@ -61,6 +61,7 @@ Use build in file generator to create new instances for any of these types. |
61 | 61 | ```cs |
62 | 62 | /// Base class for every controller. |
63 | 63 | /// NOTE: This class allows the usage of [Injected] systems, services and controller. |
| 64 | +/// NOTE: This class allows the usage of [Asset] properties. |
64 | 65 | abstract class Controller { |
65 | 66 |
|
66 | 67 | /// A reference to the controller. |
@@ -95,14 +96,16 @@ abstract class Controller { |
95 | 96 | bool HasService<S> () where S : IService, new(); |
96 | 97 | /// Gets an asset from this controller. |
97 | 98 | AssetType GetAsset<AssetType> (string name); |
| 99 | + /// Gets an asset from this controller. |
| 100 | + System.Object GetAsset (string name); |
98 | 101 | /// Check whether this controller has an asset. |
99 | 102 | bool HasAsset (string name); |
100 | 103 | } |
101 | 104 | ``` |
102 | 105 |
|
103 | 106 | ```cs |
104 | 107 | /// Base class for every entity component. |
105 | | -/// NOTE: This class allows the usage of [Referenced] and [Protected] objects and primitives. |
| 108 | +/// NOTE: This class allows the usage of [Referenced] and [Protected] properties. |
106 | 109 | abstract class EntityComponent<EntityComponentType, EntitySystemType> : UnityEngine.MonoBehaviour, IEntityComponent |
107 | 110 | where EntityComponentType : EntityComponent<EntityComponentType, EntitySystemType>, new() |
108 | 111 | where EntitySystemType : EntitySystem<EntitySystemType, EntityComponentType>, new() { |
@@ -144,6 +147,7 @@ abstract class EntityComponent<EntityComponentType, EntitySystemType> : UnityEng |
144 | 147 | ```cs |
145 | 148 | /// Base class for every entity system. |
146 | 149 | /// NOTE: This class allows the usage of [Injected] systems, services and controller. |
| 150 | +/// NOTE: This class allows the usage of [Asset] properties. |
147 | 151 | abstract class EntitySystem<EntitySystemType, EntityComponentType> : IEntitySystem |
148 | 152 | where EntitySystemType : EntitySystem<EntitySystemType, EntityComponentType>, new() |
149 | 153 | where EntityComponentType : EntityComponent<EntityComponentType, EntitySystemType>, new() { |
@@ -226,6 +230,7 @@ abstract class EntitySystem<EntitySystemType, EntityComponentType> : IEntitySyst |
226 | 230 | ```cs |
227 | 231 | /// Base class for every service |
228 | 232 | /// NOTE: This class allows the usage of [Injected] systems, services and controller. |
| 233 | +/// NOTE: This class allows the usage of [Asset] properties. |
229 | 234 | abstract class Service<ServiceType> : IService |
230 | 235 | where ServiceType : Service<ServiceType>, new() { |
231 | 236 |
|
|
0 commit comments