IEntity Interface
Represents an entity (concrete or conditional). This interface can be used in host-methods.
Properties
| InstanceId |
Returns Instance ID on Unity game object. It allows to bing SymOntoClay's entity to entity on game level. |
| Id |
Gets unique Id. It allows us to identify each item of the game. |
| IdForFacts |
Gets unique Id which is prepared to using in building fact string. |
| Position |
Gets position of the entity. |
| IsEmpty |
Returns true if the entity is not resolved, otherwise returns false. |
Methods
| Specify(IMonitorLogger,EntityConstraints) |
Sets constraints that will be used during resolving. It allows to resolve entity in way which is fit for the host-method. These constraints will be used every resolving. |
| SpecifyOnce(IMonitorLogger,EntityConstraints) |
Sets constraints that will be used during resolving. It allows to resolve entity in way which is fit for the host-method. These constraints will be used once. Next resolving will not use these constraints. |
| SpecifyOnce(IMonitorLogger,IStorage) |
Sets backpack storage that will be used during resolving. It allows to resolve entity in way which is fit for the host-method. This backpack storage will be used once. Next resolving will not use this backpack storage. |
| Resolve(IMonitorLogger) |
Resolves (finds) entity with constraints or backpack storage. If entity has been previously resolved, the more fittable entity will has been found. |
| ResolveIfNeeds(IMonitorLogger) |
Resolves (finds) entity with constraints or backpack storage. If entity has been previously resolved, the method does nothing. |