Cube-World-Commands-Mod/cwmods/cube/Game.cpp

22 lines
630 B
C++

#include "Game.h"
#include "../cwmods.h"
cube::Creature* cube::Game::GetPlayer(){
return this->world->local_creature;
}
cube::Game* cube::GetGame() {
return *(cube::Game**)(CWBase() + 0x551A80);
}
void cube::Game::PrintMessage(const wchar_t* message, FloatRGBA* color) {
this->gui.chat_widget->PrintMessage(message, color);
}
void cube::Game::PrintMessage(const wchar_t* message) {
this->gui.chat_widget->PrintMessage(message);
}
void cube::Game::PrintMessage(const wchar_t* message, char red, char green, char blue) {
this->gui.chat_widget->PrintMessage(message, red, green, blue);
}