Interface IComponentList<TObject>
Interface for object containing a component list. This is used to store component data on an object.
Namespace: Unity.MARS
Syntax
public interface IComponentList<TObject>
where TObject : Object
Type Parameters
Name | Description |
---|---|
TObject | Type of component collection is to store |
Properties
components
List of components this interface provides.
Declaration
List<TObject> components { get; }
Property Value
Type | Description |
---|---|
List<TObject> |
isDirty
If the components list has been modified in a way that the list and objects that use the list need to be validated.
Declaration
bool isDirty { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
self
Reference back to the object that implements the interface.
Declaration
Object self { get; }
Property Value
Type | Description |
---|---|
Object |
Methods
HasComponents(Type)
Does the Settings contain a item of type.
Declaration
bool HasComponents(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of item to check if the components has. |
Returns
Type | Description |
---|---|
Boolean | True if components contains an item of type. |