Class ServerInteractionManager
Info about available interactions that's shared with the client.
Inheritance
System.Object
ServerInteractionManager
Namespace: Eco.Gameplay.Interactions.Interactors
Assembly: Eco.Gameplay.dll
Syntax
public class ServerInteractionManager : Singleton<ServerInteractionManager>, IController, IViewController, IHasUniversalID
Constructors
ServerInteractionManager()
Declaration
public ServerInteractionManager()
Properties
ComponentToInteractions
Additional interactions that are defined based on the target of the interaction, like a world object or component of a world object.
Declaration
public Dictionary<Type, List<InteractionAttribute>> ComponentToInteractions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.Type, System.Collections.Generic.List<InteractionAttribute>> |
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
HandsInteractor
We share the same hands interactor for everyone since it has no state.
Declaration
public IInteractor HandsInteractor { get; }
Property Value
Type | Description |
---|---|
IInteractor |
InteractorToInteractions
A map of interactor types to a list of the interactions they can perform.
Declaration
public Dictionary<Type, List<InteractionAttribute>> InteractorToInteractions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.Type, System.Collections.Generic.List<InteractionAttribute>> |
NetObjectNameToInteractions
Additional interactions that are defined based on the target of the interaction, like a world object or component of a world object.
Declaration
public Dictionary<string, List<InteractionAttribute>> NetObjectNameToInteractions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<InteractionAttribute>> |
Methods
Initialize()
Finds all the functions defining interactions, defined both on interactors and on targets.
Declaration
public void Initialize()
LiveUpdateInteraction(User, InteractionTarget, AccessType, Boolean)
Updates an interaction with any extra data that needs to be known when its being displayed to the user.
Declaration
public static InteractionLiveUpdate LiveUpdateInteraction(User user, InteractionTarget target, AccessType requiredAccess, bool forceEnvVarUpdate)
Parameters
Type | Name | Description |
---|---|---|
User | user | |
InteractionTarget | target | |
AccessType | requiredAccess | |
System.Boolean | forceEnvVarUpdate |
Returns
Type | Description |
---|---|
InteractionLiveUpdate |
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |