mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 13:18:08 +00:00
refactor: nuke all widestrings and widechars everywhere
This commit is contained in:
@@ -12,7 +12,7 @@ const unsigned int ChatPacket::MAX_LENGTH =
|
||||
|
||||
ChatPacket::ChatPacket() { m_messageType = e_ChatCustom; }
|
||||
|
||||
ChatPacket::ChatPacket(const std::wstring& message,
|
||||
ChatPacket::ChatPacket(const std::string& message,
|
||||
EChatPacketMessage type /*= e_ChatCustom*/,
|
||||
int customData /*= -1*/) {
|
||||
m_messageType = type;
|
||||
@@ -21,8 +21,8 @@ ChatPacket::ChatPacket(const std::wstring& message,
|
||||
m_stringArgs.push_back(message);
|
||||
}
|
||||
|
||||
ChatPacket::ChatPacket(const std::wstring& message, EChatPacketMessage type,
|
||||
int sourceEntityType, const std::wstring& sourceName) {
|
||||
ChatPacket::ChatPacket(const std::string& message, EChatPacketMessage type,
|
||||
int sourceEntityType, const std::string& sourceName) {
|
||||
m_messageType = type;
|
||||
if (sourceEntityType != -1) m_intArgs.push_back(sourceEntityType);
|
||||
|
||||
@@ -30,9 +30,9 @@ ChatPacket::ChatPacket(const std::wstring& message, EChatPacketMessage type,
|
||||
m_stringArgs.push_back(sourceName);
|
||||
}
|
||||
|
||||
ChatPacket::ChatPacket(const std::wstring& message, EChatPacketMessage type,
|
||||
int sourceEntityType, const std::wstring& sourceName,
|
||||
const std::wstring& itemName) {
|
||||
ChatPacket::ChatPacket(const std::string& message, EChatPacketMessage type,
|
||||
int sourceEntityType, const std::string& sourceName,
|
||||
const std::string& itemName) {
|
||||
m_messageType = type;
|
||||
if (sourceEntityType != -1) m_intArgs.push_back(sourceEntityType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user