Interface IThing
Interface for all things in the game.
Inherited Members
System.IEquatable<Fibula.Common.Contracts.Abstractions.IThing>.Equals(Fibula.Common.Contracts.Abstractions.IThing)
Namespace: Fibula.Common.Contracts.Abstractions
Assembly: Fibula.Common.Contracts.dll
Syntax
public interface IThing : ILocatable, IContainedThing, IEquatable<IThing>, ICloneableThing<IThing>
Properties
| Improve this Doc View SourceCanBeMoved
Gets a value indicating whether this thing can be moved.
Declaration
bool CanBeMoved { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
TrackedEvents
Gets the tracked events for this thing.
Declaration
IDictionary<string, IEvent> TrackedEvents { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, IEvent> |
TypeId
Gets the id of this thing.
Declaration
ushort TypeId { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
UniqueId
Gets the unique id of this thing.
Declaration
Guid UniqueId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
| Improve this Doc View SourceDescribeForLogger()
Provides a string describing the current thing for logging purposes.
Declaration
string DescribeForLogger()
Returns
Type | Description |
---|---|
System.String | The string to log. |
StartTrackingEvent(IEvent, String)
Makes the thing start tracking an event.
Declaration
void StartTrackingEvent(IEvent evt, string identifier = "")
Parameters
Type | Name | Description |
---|---|---|
IEvent | evt | The event to stop tracking. |
System.String | identifier | Optional. The identifier under which to start tracking the event. If no identifier is provided, the event's type name is used. |
StopTrackingEvent(IEvent, String)
Makes the thing stop tracking an event.
Declaration
void StopTrackingEvent(IEvent evt, string identifier = "")
Parameters
Type | Name | Description |
---|---|---|
IEvent | evt | The event to stop tracking. |
System.String | identifier | Optional. The identifier under which to look for and stop tracking the event. If no identifier is provided, the event's type name is used. |
Events
| Improve this Doc View SourceLocationChanged
Event to invoke when any of the properties of this thing have changed.
Declaration
event OnLocationChanged LocationChanged
Event Type
Type | Description |
---|---|
OnLocationChanged |