Skip to content

Instantly share code, notes, and snippets.

diff --git a/WowPacketParser/Enums/UpdateFields.cs b/WowPacketParser/Enums/UpdateFields.cs
index a394691c1..7be6b5633 100644
--- a/WowPacketParser/Enums/UpdateFields.cs
+++ b/WowPacketParser/Enums/UpdateFields.cs
@@ -1,4 +1,5 @@
using WowPacketParser.Parsing;
+using WowPacketParser.Parsing.Parsers;
namespace WowPacketParser.Enums
{
@Shauren
Shauren / cpp14.cpp
Last active March 27, 2018 16:02
DB2 autoindexing
https://godbolt.org/g/G8mq4T // cpp14
#include <unordered_map>
#include <vector>
#include <boost/functional/hash.hpp>
#include <cstdint>
#include <cstdio>
template<typename C, typename R, R C::*M>
struct DB2Field {
@Shauren
Shauren / named_command_args.diff
Created August 2, 2017 20:24
TC named command args
diff --git a/src/common/Utilities/StringFormat.h b/src/common/Utilities/StringFormat.h
index 12eeb2a6d1..f44101224f 100644
--- a/src/common/Utilities/StringFormat.h
+++ b/src/common/Utilities/StringFormat.h
@@ -23,11 +23,51 @@
namespace Trinity
{
+ struct FmtArgWrapper
+ {
@Shauren
Shauren / Console.cpp
Created February 22, 2016 17:09
open console & redirect there
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <cstdio>
#include <fcntl.h>
#include <io.h>
#include <streambuf>
void RedirectHandle(DWORD handle, FILE* file, char const* mode)
{
long lStdHandle = (long)GetStdHandle(handle);
@Shauren
Shauren / CMakeCache.txt
Last active July 5, 2022 08:31
build boost with clang
# This is the CMakeCache file.
# For build in directory: /home/shauren/projects/TrinityCore/build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
diff --git a/src/server/game/DataStores/DBCStores.h b/src/server/game/DataStores/DBCStores.h
index b394bc9..3b50526 100644
--- a/src/server/game/DataStores/DBCStores.h
+++ b/src/server/game/DataStores/DBCStores.h
@@ -109,6 +109,35 @@ public:
uint32 GetTableRowCount() const { return _gtEntry->NumRows; }
uint32 GetTableColumnCount() const { return _gtEntry->NumColumns; }
+ std::string Dump()
+ {
class AccountObjectSetCheats
{
bool AutoBattle = false;
AccountobjectSetCheats Type;
int8 SlotLockCheat = 0;
};
class AccountObjectGetProfile
{
std::string Filename;