Interface IEntity
An entity is the most basic unit for composition. On itself it doesn't do anything except be a collection of components. Each added component adds more abilities to the entity. For example, adding a "talk" component to the entity, will give the entity the ability to talk.
Inherited Members
System.Collections.Generic.IEnumerable<AGS.API.IComponent>.GetEnumerator()
System.IDisposable.Dispose()
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IEntity : IComponentsCollection, IEnumerable<IComponent>, IEnumerable, IDisposable
Properties
| Improve this Doc View SourceDisplayName
A human-readable name. This string could be used to display entity's name to players.
Declaration
string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
ID
A unique identifier for the entity. This id is used by the engine to distinguish between different entities, so the id must be unique.
Declaration
string ID { get; }
Property Value
Type | Description |
---|---|
System.String | The identifier. |
Methods
| Improve this Doc View SourceGetFriendlyName()
Returns a human-readable name of an entity, either taken from DisplayName or composed from other properties.
Declaration
string GetFriendlyName()
Returns
Type | Description |
---|---|
System.String | The name. |