Class BaseEventController
A Base Event Controller.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: DuneNet.Shared.Controllers
Assembly: DuneNet.Shared.dll
Syntax
public abstract class BaseEventController
Constructors
BaseEventController(NetworkContext)
Declaration
protected BaseEventController(NetworkContext networkContext)
Parameters
Type | Name | Description |
---|---|---|
NetworkContext | networkContext |
Methods
Dispose()
Disposes the Event Controller and frees any resources internally used by it.
Declaration
public void Dispose()
Remarks
There should be no need to manually call this in most cases as it is already automatically called on application quit.
InvokeEventInternal(String, EventArguments)
Declaration
protected void InvokeEventInternal(string eventName, EventArguments eventArguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | |
EventArguments | eventArguments |
OnEventNetworkInvokeInternal(NetworkMessage)
Declaration
protected void OnEventNetworkInvokeInternal(NetworkMessage msg)
Parameters
Type | Name | Description |
---|---|---|
NetworkMessage | msg |
RegisterDynamicEvent(IEventCompatible)
Registers an instance of IEventCompatible with the Event Controller.
Declaration
public void RegisterDynamicEvent(IEventCompatible target)
Parameters
Type | Name | Description |
---|---|---|
IEventCompatible | target |
Remarks
This should never be called manually.