8 #include "portalitem.h"
9 #include "portalevent.h"
10 #include "portalservice.h"
11 #include "portalwebsocketserver.h"
14 #include <component.h>
15 #include <componentptr.h>
16 #include <nap/resourceptr.h>
21 class PortalComponentInstance;
33 std::vector<ResourcePtr<PortalItem>>
mItems;
62 virtual void onDestroy()
override;
96 virtual void onItemUpdate(
const PortalItem& item);
100 std::vector<PortalItem*> mItems;
101 std::unordered_map<std::string, PortalItem*> mItemMap;
Definition: portalservice.h:25
Definition: signalslot.h:21
Definition: objectptr.h:154
PortalComponentInstance(EntityInstance &entity, Component &resource)
Definition: portalcomponent.h:49
Definition: errorstate.h:19
Definition: portalcomponent.h:40
const PortalWebSocketServer & getServer() const
Definition: portalcomponent.h:83
Definition: portalitem.h:19
Definition: portalwebsocketserver.h:24
Definition: component.h:43
Definition: portalcomponent.h:26
Definition: component.h:151
PortalWebSocketServer & getServer()
Definition: portalcomponent.h:88
Definition: templateapp.h:17
Definition: portalevent.h:26
ResourcePtr< PortalWebSocketServer > mServer
Property: "Server" the portal WebSocket server this component listens to for events.
Definition: portalcomponent.h:32
std::vector< ResourcePtr< PortalItem > > mItems
Property: 'Items' the portal items contained by this portal component.
Definition: portalcomponent.h:33