33#include <NDEVR/Resource.h>
40 template<
class t_type>
50 b.addListener(
this,
true);
A base class for templated resources.
Definition ResourceListener.h:43
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Toggle.h:41
A class that can subscribe to any number of Resources which will get updates when the Resource(s) hav...
Definition ResourceListener.h:62
virtual void removeInfoParent(const ResourceBase *info)
Definition ResourceListener.h:69
void disconnectListener()
virtual void addInfoParent(const ResourceBase *info)
Creates logic that mirrors two resources. Meaning changing either resource will modify the other reso...
Definition ResourceMirror.h:42
virtual void onValueChanged() override
Definition ResourceMirror.h:64
virtual void removeInfoParent(const ResourceBase *info) override
Definition ResourceMirror.h:59
t_type value
Definition ResourceMirror.h:79
virtual void addInfoParent(const ResourceBase *info) override
Definition ResourceMirror.h:55
Resource< t_type > & b
Definition ResourceMirror.h:78
ResourceMirror(Resource< t_type > &a, Resource< t_type > &b)
Definition ResourceMirror.h:44
Resource< t_type > & a
Definition ResourceMirror.h:77
virtual ~ResourceMirror()
Definition ResourceMirror.h:53