Rename hcore=>smocore
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
#ifndef MRNTT_BODY_BODYMESSAGE_H
|
||||
#define MRNTT_BODY_BODYMESSAGE_H
|
||||
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
#include <body/limb.h>
|
||||
#include <body/part.h>
|
||||
|
||||
namespace mrntt {
|
||||
namespace body {
|
||||
|
||||
class BodyMessage
|
||||
{
|
||||
public:
|
||||
BodyMessage() = default;
|
||||
~BodyMessage() = default;
|
||||
};
|
||||
|
||||
class SpotImpactEntry
|
||||
{
|
||||
public:
|
||||
enum class ReportType
|
||||
{
|
||||
PRESSURE,
|
||||
PAIN,
|
||||
PLEASURE,
|
||||
HEAT,
|
||||
COLD
|
||||
};
|
||||
|
||||
SpotImpactEntry(uint32_t _spot, ReportType _type, uint32_t _value)
|
||||
: spot(_spot), type(_type), value(_value)
|
||||
{}
|
||||
~SpotImpactEntry() = default;
|
||||
|
||||
public:
|
||||
uint32_t spot;
|
||||
ReportType type;
|
||||
uint32_t value;
|
||||
};
|
||||
|
||||
class SpotImpactInd : public BodyMessage
|
||||
{
|
||||
public:
|
||||
SpotImpactInd(Part &_part) : part(_part) {}
|
||||
~SpotImpactInd() = default;
|
||||
|
||||
public:
|
||||
Part ∂
|
||||
std::vector<SpotImpactEntry> entries;
|
||||
};
|
||||
|
||||
class PartMsg : public BodyMessage
|
||||
{
|
||||
public:
|
||||
PartMsg(const Part& _part) : part(_part) {}
|
||||
|
||||
public:
|
||||
const Part& part;
|
||||
};
|
||||
|
||||
} // namespace body
|
||||
} // namespace mrntt
|
||||
|
||||
#endif // MRNTT_BODY_BODYMESSAGE_H
|
||||
Reference in New Issue
Block a user