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

22 lines
630 B
C++
Raw Permalink Normal View History

2019-09-23 07:50:21 +08:00
#include "Game.h"
#include "../cwmods.h"
cube::Creature* cube::Game::GetPlayer(){
return this->world->local_creature;
}
cube::Game* cube::GetGame() {
2019-09-26 08:02:55 +08:00
return *(cube::Game**)(CWBase() + 0x551A80);
2019-09-23 07:50:21 +08:00
}
2019-10-06 04:08:12 +08:00
void cube::Game::PrintMessage(const wchar_t* message, FloatRGBA* color) {
2019-10-06 04:08:12 +08:00
this->gui.chat_widget->PrintMessage(message, color);
}
void cube::Game::PrintMessage(const wchar_t* message) {
2019-10-06 04:08:12 +08:00
this->gui.chat_widget->PrintMessage(message);
}
void cube::Game::PrintMessage(const wchar_t* message, char red, char green, char blue) {
2019-10-06 04:08:12 +08:00
this->gui.chat_widget->PrintMessage(message, red, green, blue);
}