openspades/Sources/Client/MumbleLink.h

28 lines
625 B
C
Raw Normal View History

2016-08-05 13:48:50 +02:00
#pragma once
2016-11-18 04:44:57 -08:00
#include <memory>
2016-08-03 17:08:45 +02:00
#include "Player.h"
2016-08-05 13:53:16 +02:00
namespace spades {
struct MumbleLinkedMemory;
struct MumbleLinkPrivate;
2016-08-03 17:08:45 +02:00
2016-08-05 13:53:16 +02:00
class MumbleLink {
const float metre_per_block;
MumbleLinkedMemory *mumbleLinkedMemory;
std::unique_ptr<MumbleLinkPrivate> priv;
2016-08-03 17:08:45 +02:00
void set_mumble_vector3(float mumble_vec[3], const spades::Vector3 &vec);
2016-08-03 17:08:45 +02:00
2016-08-05 13:53:16 +02:00
public:
MumbleLink();
~MumbleLink();
2016-08-03 17:08:45 +02:00
bool init();
void setContext(const std::string &context);
void setIdentity(const std::string &identity);
void update(spades::client::Player *player);
2016-08-05 13:53:16 +02:00
};
}