2024-12-14 10:45:43 +01:00

34 lines
645 B
C++

#pragma once
#include "Participant.h"
namespace Passer::Control {
class CoreThing {
public:
// Participant *client;
unsigned char networkId;
unsigned char id;
// CoreThing *parent;
unsigned char type;
const char *name;
const char *modelUrl;
// protected Sensor sensor;
static CoreThing *allThings[];
public:
CoreThing(
// Participant *client,
unsigned char networkId, unsigned char thingId,
unsigned char thingType = 0);
static CoreThing *Get(unsigned char networkId, unsigned char thingId);
static bool Add(CoreThing *thing);
protected:
virtual void Init();
};
} // namespace Passer::Control