Class SystemBase

Inheritance Relationships

Derived Types

Class Documentation

class SystemBase

Base class for all Connected Spaces Platform Systems, which enforces passing of a WebClient or EventBus instance in the constructor of each System.

Subclassed by csp::multiplayer::ConversationSystem, csp::systems::AnchorSystem, csp::systems::AssetSystem, csp::systems::ECommerceSystem, csp::systems::EventTicketingSystem, csp::systems::GraphQLSystem, csp::systems::HotspotSequenceSystem, csp::systems::MaintenanceSystem, csp::systems::PointOfInterestSystem, csp::systems::QuotaSystem, csp::systems::SequenceSystem, csp::systems::SettingsSystem, csp::systems::SpaceSystem, csp::systems::UserSystem

Public Functions

virtual ~SystemBase()

Destructor of the SystemBase base class.

virtual void RegisterSystemCallback()

Registers the system to listen for the default event.

virtual void DeregisterSystemCallback()

Deregisters the system from listening for the default event.

virtual void OnEvent(const std::vector<signalr::value> &EventValues)

Deserialises the event values of the system.

Parameters

EventValues – std::vector<signalr::value> : event values to deserialise

void SetSystemCallback(csp::multiplayer::EventBus::ParameterisedCallbackHandler Callback)

Sets a callback for a default event.

Parameters

Callbackcsp::multiplayer::EventBus::ParameterisedCallbackHandler: Callback to receive data for the system that has been changed.

Protected Functions

SystemBase(csp::web::WebClient *InWebClient, csp::multiplayer::EventBus *InEventBus)
SystemBase(csp::multiplayer::EventBus *InEventBus)

Protected Attributes

csp::web::WebClient *WebClient
csp::multiplayer::EventBus *EventBusPtr

Friends

friend class csp::multiplayer::MultiplayerConnection