refactor: decouple minecraft/ from app/ via IGameServices virtual interface
This commit is contained in:
1 parent
7787015025
commit
5d9bcac156
246 files changed
+1897
-2224
No files matched your search
@@ -4,7 +4,7 @@
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
#include "minecraft/GameServices.h"
|
||||
#include "minecraft/IGameServices.h"
|
||||
#include "util/StringHelpers.h"
|
||||
|
||||
HtmlString::HtmlString(std::wstring text, eMinecraftColour hexColor,
|
||||
@@ -30,7 +30,7 @@ std::wstring HtmlString::ToString() {
|
||||
this->color == eMinecraftColour_NOT_SET ? eHTMLColor_7 : this->color;
|
||||
|
||||
ss << L"<font color=\"#" << std::setfill(L'0') << std::setw(6) << std::hex
|
||||
<< GameServices::getHTMLColor(color) << L"\">" << text << "</font>";
|
||||
<< gameServices().getHTMLColour(color) << L"\">" << text << "</font>";
|
||||
|
||||
if (italics) {
|
||||
ss << "</i>";
|
||||
|
||||
Reference in new issue
Block a user