AccessModifierOffset: -4

This commit is contained in:
nullifiedcat 2017-12-02 17:47:47 +03:00
parent 09388e4c10
commit bc3ea71fef
68 changed files with 185 additions and 185 deletions

View File

@ -1,5 +1,5 @@
--- ---
AccessModifierOffset: '0' AccessModifierOffset: '-4'
AlignAfterOpenBracket: Align AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: 'true' AlignConsecutiveAssignments: 'true'
AlignOperands: 'true' AlignOperands: 'true'

View File

@ -19,7 +19,7 @@
class CDumper class CDumper
{ {
public: public:
CDumper() CDumper()
{ {
m_file.open("/tmp/netdump.txt", std::ios::out | std::ios::trunc); m_file.open("/tmp/netdump.txt", std::ios::out | std::ios::trunc);
@ -115,7 +115,7 @@ class CDumper
m_file << std::endl; m_file << std::endl;
} }
private: private:
std::fstream m_file; std::fstream m_file;
}; };

View File

@ -21,7 +21,7 @@
template <typename T> class Averager template <typename T> class Averager
{ {
public: public:
/* /*
* Initialize Averager with a given size * Initialize Averager with a given size
*/ */
@ -102,7 +102,7 @@ template <typename T> class Averager
return value_count_; return value_count_;
} }
private: private:
std::vector<T> values_; std::vector<T> values_;
size_t size_{ 0 }; size_t size_{ 0 };
size_t value_count_{ 0 }; size_t value_count_{ 0 };

View File

@ -36,7 +36,7 @@ const char kBase64Alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
class Base64 class Base64
{ {
public: public:
static bool Encode(const std::string &in, std::string *out) static bool Encode(const std::string &in, std::string *out)
{ {
int i = 0, j = 0; int i = 0, j = 0;
@ -304,7 +304,7 @@ class Base64
in->resize(in->size() - 1); in->resize(in->size() - 1);
} }
private: private:
static inline void a3_to_a4(unsigned char *a4, unsigned char *a3) static inline void a3_to_a4(unsigned char *a4, unsigned char *a3)
{ {
a4[0] = (a3[0] & 0xfc) >> 2; a4[0] = (a3[0] & 0xfc) >> 2;

View File

@ -11,7 +11,7 @@ namespace client_classes
class css class css
{ {
public: public:
int CTETFParticleEffect{ 0 }; int CTETFParticleEffect{ 0 };
int CTETFExplosion{ 0 }; int CTETFExplosion{ 0 };
int CTETFBlood{ 0 }; int CTETFBlood{ 0 };

View File

@ -11,7 +11,7 @@ namespace client_classes_constexpr
class css class css
{ {
public: public:
static constexpr int CTETFParticleEffect = 0; static constexpr int CTETFParticleEffect = 0;
static constexpr int CTETFExplosion = 0; static constexpr int CTETFExplosion = 0;
static constexpr int CTETFBlood = 0; static constexpr int CTETFBlood = 0;

View File

@ -11,7 +11,7 @@ namespace client_classes
class dab class dab
{ {
public: public:
int CTETFParticleEffect{ 0 }; int CTETFParticleEffect{ 0 };
int CTETFExplosion{ 0 }; int CTETFExplosion{ 0 };
int CTETFBlood{ 0 }; int CTETFBlood{ 0 };

View File

@ -11,7 +11,7 @@ namespace client_classes_constexpr
class dab class dab
{ {
public: public:
static constexpr int CTETFParticleEffect = 0; static constexpr int CTETFParticleEffect = 0;
static constexpr int CTETFExplosion = 0; static constexpr int CTETFExplosion = 0;
static constexpr int CTETFBlood = 0; static constexpr int CTETFBlood = 0;

View File

@ -11,7 +11,7 @@ namespace client_classes
class dummy class dummy
{ {
public: public:
int CTETFParticleEffect{ 0 }; int CTETFParticleEffect{ 0 };
int CTETFExplosion{ 0 }; int CTETFExplosion{ 0 };
int CTETFBlood{ 0 }; int CTETFBlood{ 0 };

View File

@ -11,7 +11,7 @@ namespace client_classes
class dynamic class dynamic
{ {
public: public:
dynamic(); dynamic();
void Populate(); void Populate();
int CTETFParticleEffect{ 0 }; int CTETFParticleEffect{ 0 };

View File

@ -11,7 +11,7 @@ namespace client_classes
class hl2dm class hl2dm
{ {
public: public:
int CTETFParticleEffect{ 0 }; int CTETFParticleEffect{ 0 };
int CTETFExplosion{ 0 }; int CTETFExplosion{ 0 };
int CTETFBlood{ 0 }; int CTETFBlood{ 0 };

View File

@ -11,7 +11,7 @@ namespace client_classes_constexpr
class hl2dm class hl2dm
{ {
public: public:
static constexpr int CTETFParticleEffect = 0; static constexpr int CTETFParticleEffect = 0;
static constexpr int CTETFExplosion = 0; static constexpr int CTETFExplosion = 0;
static constexpr int CTETFBlood = 0; static constexpr int CTETFBlood = 0;

View File

@ -11,7 +11,7 @@ namespace client_classes
class tf2 class tf2
{ {
public: public:
int CTETFParticleEffect{ 178 }; int CTETFParticleEffect{ 178 };
int CTETFExplosion{ 177 }; int CTETFExplosion{ 177 };
int CTETFBlood{ 176 }; int CTETFBlood{ 176 };

View File

@ -11,7 +11,7 @@ namespace client_classes_constexpr
class tf2 class tf2
{ {
public: public:
static constexpr int CTETFParticleEffect = 178; static constexpr int CTETFParticleEffect = 178;
static constexpr int CTETFExplosion = 177; static constexpr int CTETFExplosion = 177;
static constexpr int CTETFBlood = 176; static constexpr int CTETFBlood = 176;

View File

@ -11,7 +11,7 @@ namespace client_classes
class tf2c class tf2c
{ {
public: public:
int CTETFParticleEffect{ 155 }; int CTETFParticleEffect{ 155 };
int CTETFExplosion{ 154 }; int CTETFExplosion{ 154 };
int CTETFBlood{ 153 }; int CTETFBlood{ 153 };

View File

@ -11,7 +11,7 @@ namespace client_classes_constexpr
class tf2c class tf2c
{ {
public: public:
static constexpr int CTETFParticleEffect = 155; static constexpr int CTETFParticleEffect = 155;
static constexpr int CTETFExplosion = 154; static constexpr int CTETFExplosion = 154;
static constexpr int CTETFBlood = 153; static constexpr int CTETFBlood = 153;

View File

@ -7,7 +7,7 @@
class CSignature class CSignature
{ {
public: public:
uintptr_t dwFindPattern(uintptr_t dwAddress, uintptr_t dwLength, uintptr_t dwFindPattern(uintptr_t dwAddress, uintptr_t dwLength,
const char *szPattern); const char *szPattern);
void *GetModuleHandleSafe(const char *pszModuleName); void *GetModuleHandleSafe(const char *pszModuleName);

View File

@ -13,7 +13,7 @@ class RecvProp;
class equal_char class equal_char
{ {
public: public:
bool operator()(const char *const &v1, const char *const &v2) const bool operator()(const char *const &v1, const char *const &v2) const
{ {
return !strcmp(v1, v2); return !strcmp(v1, v2);
@ -22,7 +22,7 @@ class equal_char
struct hash_char struct hash_char
{ {
public: public:
size_t operator()(const char *obj) const size_t operator()(const char *obj) const
{ {
size_t res = 0; size_t res = 0;
@ -54,12 +54,12 @@ class netvar_tree
map_type nodes; map_type nodes;
public: public:
// netvar_tree ( ); // netvar_tree ( );
void init(); void init();
private: private:
void populate_nodes(class RecvTable *recv_table, map_type *map); void populate_nodes(class RecvTable *recv_table, map_type *map);
/** /**
@ -117,7 +117,7 @@ class netvar_tree
return get_prop_recursive(node->nodes, args...); return get_prop_recursive(node->nodes, args...);
} }
public: public:
/** /**
* get_offset - Get the offset of a netvar given a list of branch names * get_offset - Get the offset of a netvar given a list of branch names
* @name: Top level datatable name * @name: Top level datatable name

View File

@ -34,11 +34,11 @@ enum CatVar_t
// Enum Something // Enum Something
class CatEnum class CatEnum
{ {
public: public:
CatEnum(std::vector<std::string> values, int min = 0); CatEnum(std::vector<std::string> values, int min = 0);
std::string Name(int value); std::string Name(int value);
public: public:
const std::vector<std::string> value_names; const std::vector<std::string> value_names;
int min_value; int min_value;
int max_value; int max_value;
@ -48,7 +48,7 @@ class CatEnum
// TODO reverse, no idea how catcommands are handled // TODO reverse, no idea how catcommands are handled
class CatCommand class CatCommand
{ {
public: public:
CatCommand(std::string name, std::string help, CatCommand(std::string name, std::string help,
FnCommandCallback_t callback); FnCommandCallback_t callback);
CatCommand(std::string name, std::string help, CatCommand(std::string name, std::string help,
@ -56,7 +56,7 @@ class CatCommand
void Register(); void Register();
public: public:
const std::string name; const std::string name;
const std::string help{ "" }; const std::string help{ "" };
@ -68,7 +68,7 @@ class CatCommand
class CatVar class CatVar
{ {
public: // TODo, unknown reverse public: // TODo, unknown reverse
CatVar(CatVar_t type, std::string name, std::string defaults, CatVar(CatVar_t type, std::string name, std::string defaults,
std::string desc_short, std::string desc_long = "no description"); std::string desc_short, std::string desc_long = "no description");
CatVar(CatVar_t type, std::string name, std::string defaults, CatVar(CatVar_t type, std::string name, std::string defaults,
@ -154,7 +154,7 @@ class CatVar
} }
// Storage for the catvar // Storage for the catvar
public: public:
const CatVar_t type; const CatVar_t type;
const std::string name; const std::string name;
const std::string defaults{ "0" }; const std::string defaults{ "0" };

View File

@ -59,7 +59,7 @@ struct mstudiobbox_t;
class CachedEntity class CachedEntity
{ {
public: public:
CachedEntity(); CachedEntity();
~CachedEntity(); ~CachedEntity();

View File

@ -29,7 +29,7 @@ struct CachedHitbox
class EntityHitboxCache class EntityHitboxCache
{ {
public: public:
EntityHitboxCache(); EntityHitboxCache();
~EntityHitboxCache(); ~EntityHitboxCache();

View File

@ -43,7 +43,7 @@ extern time_t time_injected;
class GlobalSettings class GlobalSettings
{ {
public: public:
void Init(); void Init();
bool bInvalid{ true }; bool bInvalid{ true };
bool is_create_move{ false }; bool is_create_move{ false };

View File

@ -20,7 +20,7 @@ namespace esp
// Strings // Strings
class ESPString class ESPString
{ {
public: public:
std::string data{ "" }; std::string data{ "" };
rgba_t color{ colors::empty }; rgba_t color{ colors::empty };
}; };
@ -28,7 +28,7 @@ class ESPString
// Cached data // Cached data
class ESPData class ESPData
{ {
public: public:
int string_count{ 0 }; int string_count{ 0 };
std::array<ESPString, 16> strings{}; std::array<ESPString, 16> strings{};
rgba_t color{ colors::empty }; rgba_t color{ colors::empty };

View File

@ -51,10 +51,10 @@ struct attribute_s
class CAttribute class CAttribute
{ {
public: public:
CAttribute(uint16_t iAttributeDefinitionIndex, float flValue); CAttribute(uint16_t iAttributeDefinitionIndex, float flValue);
public: public:
void *vtable; void *vtable;
uint16_t defidx; uint16_t defidx;
float value; float value;
@ -63,13 +63,13 @@ class CAttribute
class CAttributeList class CAttributeList
{ {
public: public:
CAttributeList(); CAttributeList();
float GetAttribute(int defindex); float GetAttribute(int defindex);
void SetAttribute(int index, float value); void SetAttribute(int index, float value);
void RemoveAttribute(int index); void RemoveAttribute(int index);
public: public:
uint32_t unknown; uint32_t unknown;
CUtlVector<CAttribute, CUtlMemory<CAttribute>> m_Attributes; CUtlVector<CAttribute, CUtlMemory<CAttribute>> m_Attributes;
}; };
@ -109,7 +109,7 @@ struct patched_weapon_cookie
void Update(int entity); void Update(int entity);
bool Check(); bool Check();
public: public:
int eidx{ 0 }; int eidx{ 0 };
int defidx{ 0 }; int defidx{ 0 };
int eclass{ 0 }; int eclass{ 0 };

View File

@ -33,7 +33,7 @@ constexpr uint32_t GUARD = 0xD34DC477;
class VMTHook class VMTHook
{ {
public: public:
VMTHook(); VMTHook();
~VMTHook(); ~VMTHook();
void Set(ptr_t inst, uint32_t offset = 0); void Set(ptr_t inst, uint32_t offset = 0);
@ -42,7 +42,7 @@ class VMTHook
void *GetMethod(uint32_t idx) const; void *GetMethod(uint32_t idx) const;
void Apply(); void Apply();
public: public:
ptr_t object{ nullptr }; ptr_t object{ nullptr };
table_ptr_t vtable_ptr{ nullptr }; table_ptr_t vtable_ptr{ nullptr };
method_table_t vtable_original{ nullptr }; method_table_t vtable_original{ nullptr };

View File

@ -21,7 +21,7 @@ extern SSL_CTX *ssl_context;
class RAII_HTTPS_Socket class RAII_HTTPS_Socket
{ {
public: public:
RAII_HTTPS_Socket(const std::string &host); RAII_HTTPS_Socket(const std::string &host);
~RAII_HTTPS_Socket(); ~RAII_HTTPS_Socket();

View File

@ -15,6 +15,6 @@ std::stack<void (*)()> &init_stack();
class InitRoutine class InitRoutine
{ {
public: public:
InitRoutine(void (*func)()); InitRoutine(void (*func)());
}; };

View File

@ -209,7 +209,7 @@ typedef k_EItemType (*ItemSpecialMapperFn)(CachedEntity *);
class ItemModelMapper class ItemModelMapper
{ {
public: public:
void RegisterItem(std::string modelpath, k_EItemType type); void RegisterItem(std::string modelpath, k_EItemType type);
k_EItemType GetItemType(CachedEntity *entity); k_EItemType GetItemType(CachedEntity *entity);
@ -219,7 +219,7 @@ class ItemModelMapper
class ItemManager class ItemManager
{ {
public: public:
ItemManager(); ItemManager();
void RegisterModelMapping(std::string path, k_EItemType type); void RegisterModelMapping(std::string path, k_EItemType type);
void RegisterSpecialMapping(ItemCheckerFn fn, k_EItemType type); void RegisterSpecialMapping(ItemCheckerFn fn, k_EItemType type);

View File

@ -497,7 +497,7 @@ struct is_compatible_integer_type
// trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists // trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists
template <typename BasicJsonType, typename T> struct has_from_json template <typename BasicJsonType, typename T> struct has_from_json
{ {
private: private:
// also check the return type of from_json // also check the return type of from_json
template <typename U, typename = enable_if_t<std::is_same< template <typename U, typename = enable_if_t<std::is_same<
void, decltype(uncvref_t<U>::from_json( void, decltype(uncvref_t<U>::from_json(
@ -506,7 +506,7 @@ template <typename BasicJsonType, typename T> struct has_from_json
static int detect(U &&); static int detect(U &&);
static void detect(...); static void detect(...);
public: public:
static constexpr bool value = std::is_integral<decltype( static constexpr bool value = std::is_integral<decltype(
detect(std::declval<typename BasicJsonType::template json_serializer< detect(std::declval<typename BasicJsonType::template json_serializer<
T, void>>()))>::value; T, void>>()))>::value;
@ -516,14 +516,14 @@ template <typename BasicJsonType, typename T> struct has_from_json
// this overload is used for non-default-constructible user-defined-types // this overload is used for non-default-constructible user-defined-types
template <typename BasicJsonType, typename T> struct has_non_default_from_json template <typename BasicJsonType, typename T> struct has_non_default_from_json
{ {
private: private:
template <typename U, typename = enable_if_t<std::is_same< template <typename U, typename = enable_if_t<std::is_same<
T, decltype(uncvref_t<U>::from_json( T, decltype(uncvref_t<U>::from_json(
std::declval<BasicJsonType>()))>::value>> std::declval<BasicJsonType>()))>::value>>
static int detect(U &&); static int detect(U &&);
static void detect(...); static void detect(...);
public: public:
static constexpr bool value = std::is_integral<decltype( static constexpr bool value = std::is_integral<decltype(
detect(std::declval<typename BasicJsonType::template json_serializer< detect(std::declval<typename BasicJsonType::template json_serializer<
T, void>>()))>::value; T, void>>()))>::value;
@ -532,14 +532,14 @@ template <typename BasicJsonType, typename T> struct has_non_default_from_json
// This trait checks if BasicJsonType::json_serializer<T>::to_json exists // This trait checks if BasicJsonType::json_serializer<T>::to_json exists
template <typename BasicJsonType, typename T> struct has_to_json template <typename BasicJsonType, typename T> struct has_to_json
{ {
private: private:
template <typename U, template <typename U,
typename = decltype(uncvref_t<U>::to_json( typename = decltype(uncvref_t<U>::to_json(
std::declval<BasicJsonType &>(), std::declval<T>()))> std::declval<BasicJsonType &>(), std::declval<T>()))>
static int detect(U &&); static int detect(U &&);
static void detect(...); static void detect(...);
public: public:
static constexpr bool value = std::is_integral<decltype( static constexpr bool value = std::is_integral<decltype(
detect(std::declval<typename BasicJsonType::template json_serializer< detect(std::declval<typename BasicJsonType::template json_serializer<
T, void>>()))>::value; T, void>>()))>::value;
@ -898,7 +898,7 @@ void from_json(const BasicJsonType &j, ArithmeticType &val)
struct to_json_fn struct to_json_fn
{ {
private: private:
template <typename BasicJsonType, typename T> template <typename BasicJsonType, typename T>
auto call(BasicJsonType &j, T &&val, priority_tag<1>) const auto call(BasicJsonType &j, T &&val, priority_tag<1>) const
noexcept(noexcept(to_json(j, std::forward<T>(val)))) noexcept(noexcept(to_json(j, std::forward<T>(val))))
@ -914,7 +914,7 @@ struct to_json_fn
"could not find to_json() method in T's namespace"); "could not find to_json() method in T's namespace");
} }
public: public:
template <typename BasicJsonType, typename T> template <typename BasicJsonType, typename T>
void operator()(BasicJsonType &j, T &&val) const void operator()(BasicJsonType &j, T &&val) const
noexcept(noexcept(std::declval<to_json_fn>().call(j, noexcept(noexcept(std::declval<to_json_fn>().call(j,
@ -927,7 +927,7 @@ struct to_json_fn
struct from_json_fn struct from_json_fn
{ {
private: private:
template <typename BasicJsonType, typename T> template <typename BasicJsonType, typename T>
auto call(const BasicJsonType &j, T &val, priority_tag<1>) const auto call(const BasicJsonType &j, T &val, priority_tag<1>) const
noexcept(noexcept(from_json(j, val))) noexcept(noexcept(from_json(j, val)))
@ -943,7 +943,7 @@ struct from_json_fn
"could not find from_json() method in T's namespace"); "could not find from_json() method in T's namespace");
} }
public: public:
template <typename BasicJsonType, typename T> template <typename BasicJsonType, typename T>
void operator()(const BasicJsonType &j, T &val) const void operator()(const BasicJsonType &j, T &val) const
noexcept(noexcept(std::declval<from_json_fn>().call(j, val, noexcept(noexcept(std::declval<from_json_fn>().call(j, val,
@ -1113,7 +1113,7 @@ template <template <typename U, typename V, typename... Args> class ObjectType =
adl_serializer> adl_serializer>
class basic_json class basic_json
{ {
private: private:
template <detail::value_t> friend struct detail::external_constructor; template <detail::value_t> friend struct detail::external_constructor;
/// workaround type for MSVC /// workaround type for MSVC
using basic_json_t = using basic_json_t =
@ -1121,7 +1121,7 @@ class basic_json
NumberIntegerType, NumberUnsignedType, NumberFloatType, NumberIntegerType, NumberUnsignedType, NumberFloatType,
AllocatorType, JSONSerializer>; AllocatorType, JSONSerializer>;
public: public:
using value_t = detail::value_t; using value_t = detail::value_t;
// forward declarations // forward declarations
template <typename U> class iter_impl; template <typename U> class iter_impl;
@ -1705,7 +1705,7 @@ class basic_json
/// @} /// @}
private: private:
/// helper for exception-safe object creation /// helper for exception-safe object creation
template <typename T, typename... Args> static T *create(Args &&... args) template <typename T, typename... Args> static T *create(Args &&... args)
{ {
@ -1880,7 +1880,7 @@ class basic_json
assert(m_type != value_t::string or m_value.string != nullptr); assert(m_type != value_t::string or m_value.string != nullptr);
} }
public: public:
////////////////////////// //////////////////////////
// JSON parser callback // // JSON parser callback //
////////////////////////// //////////////////////////
@ -2714,7 +2714,7 @@ class basic_json
/// @} /// @}
public: public:
/////////////////////// ///////////////////////
// object inspection // // object inspection //
/////////////////////// ///////////////////////
@ -3120,7 +3120,7 @@ class basic_json
/// @} /// @}
private: private:
////////////////// //////////////////
// value access // // value access //
////////////////// //////////////////
@ -3258,7 +3258,7 @@ class basic_json
obj.type_name())); obj.type_name()));
} }
public: public:
/// @name value access /// @name value access
/// Direct access to the stored value of a JSON value. /// Direct access to the stored value of a JSON value.
/// @{ /// @{
@ -5083,11 +5083,11 @@ class basic_json
return const_reverse_iterator(cbegin()); return const_reverse_iterator(cbegin());
} }
private: private:
// forward declaration // forward declaration
template <typename IteratorType> class iteration_proxy; template <typename IteratorType> class iteration_proxy;
public: public:
/*! /*!
@brief wrapper to access iterator member functions in range-based for @brief wrapper to access iterator member functions in range-based for
@ -6031,7 +6031,7 @@ class basic_json
/// @} /// @}
public: public:
////////////////////////////////////////// //////////////////////////////////////////
// lexicographical comparison operators // // lexicographical comparison operators //
////////////////////////////////////////// //////////////////////////////////////////
@ -6757,7 +6757,7 @@ class basic_json
/// @name binary serialization/deserialization support /// @name binary serialization/deserialization support
/// @{ /// @{
private: private:
/*! /*!
@note Some code in the switch cases has been copied, because otherwise @note Some code in the switch cases has been copied, because otherwise
copilers would complain about implicit fallthrough and there is no copilers would complain about implicit fallthrough and there is no
@ -8220,7 +8220,7 @@ class basic_json
} }
} }
public: public:
/*! /*!
@brief create a MessagePack serialization of a given JSON value @brief create a MessagePack serialization of a given JSON value
@ -8390,7 +8390,7 @@ class basic_json
} }
} }
private: private:
/*! /*!
@brief calculates the extra space to escape a JSON string @brief calculates the extra space to escape a JSON string
@ -8848,7 +8848,7 @@ class basic_json
} }
} }
private: private:
////////////////////// //////////////////////
// member variables // // member variables //
////////////////////// //////////////////////
@ -8859,7 +8859,7 @@ class basic_json
/// the value of the current element /// the value of the current element
json_value m_value = {}; json_value m_value = {};
private: private:
/////////////// ///////////////
// iterators // // iterators //
/////////////// ///////////////
@ -9126,7 +9126,7 @@ class basic_json
} }
}; };
public: public:
/*! /*!
@brief a template for a random access iterator for the @ref basic_json class @brief a template for a random access iterator for the @ref basic_json class
@ -9872,7 +9872,7 @@ class basic_json
} }
}; };
private: private:
////////////////////// //////////////////////
// lexer and parser // // lexer and parser //
////////////////////// //////////////////////
@ -12011,7 +12011,7 @@ class basic_json
lexer m_lexer; lexer m_lexer;
}; };
public: public:
/*! /*!
@brief JSON Pointer @brief JSON Pointer

View File

@ -15,7 +15,7 @@ class CachedEntity;
class LocalPlayer class LocalPlayer
{ {
public: public:
void Update(); void Update();
int team; int team;
int health; int health;

View File

@ -16,7 +16,7 @@
#include <inetmsghandler.h> #include <inetmsghandler.h>
#define DECLARE_BASE_MESSAGE(msgtype) \ #define DECLARE_BASE_MESSAGE(msgtype) \
public: \ public: \
bool ReadFromBuffer(bf_read &buffer); \ bool ReadFromBuffer(bf_read &buffer); \
bool WriteToBuffer(bf_write &buffer); \ bool WriteToBuffer(bf_write &buffer); \
const char *ToString() const; \ const char *ToString() const; \
@ -63,7 +63,7 @@
class CNetMessage : public INetMessage class CNetMessage : public INetMessage
{ {
public: public:
CNetMessage() CNetMessage()
{ {
m_bReliable = true; m_bReliable = true;
@ -98,7 +98,7 @@ class CNetMessage : public INetMessage
return false; return false;
}; // no handler set }; // no handler set
protected: protected:
bool m_bReliable; // true if message should be send reliable bool m_bReliable; // true if message should be send reliable
INetChannel *m_NetChannel; // netchannel this message is from/for INetChannel *m_NetChannel; // netchannel this message is from/for
}; };
@ -195,7 +195,7 @@ typedef enum {
class CLC_RespondCvarValue : public CNetMessage class CLC_RespondCvarValue : public CNetMessage
{ {
public: public:
DECLARE_CLC_MESSAGE(RespondCvarValue); DECLARE_CLC_MESSAGE(RespondCvarValue);
QueryCvarCookie_t m_iCookie; QueryCvarCookie_t m_iCookie;
@ -207,7 +207,7 @@ class CLC_RespondCvarValue : public CNetMessage
EQueryCvarValueStatus m_eStatusCode; EQueryCvarValueStatus m_eStatusCode;
private: private:
char m_szCvarNameBuffer[256]; char m_szCvarNameBuffer[256];
char m_szCvarValueBuffer[256]; char m_szCvarValueBuffer[256];
}; };
@ -239,21 +239,21 @@ class NET_SignonState : public CNetMessage
m_nSpawnCount = spawncount; m_nSpawnCount = spawncount;
}; };
public: public:
int m_nSignonState; // See SIGNONSTATE_ defines int m_nSignonState; // See SIGNONSTATE_ defines
int m_nSpawnCount; // server spawn count (session number) int m_nSpawnCount; // server spawn count (session number)
}; };
class SVC_GetCvarValue : public CNetMessage class SVC_GetCvarValue : public CNetMessage
{ {
public: public:
DECLARE_SVC_MESSAGE(GetCvarValue); DECLARE_SVC_MESSAGE(GetCvarValue);
QueryCvarCookie_t m_iCookie; QueryCvarCookie_t m_iCookie;
const char *m_szCvarName; // The sender sets this, and it automatically const char *m_szCvarName; // The sender sets this, and it automatically
// points it at m_szCvarNameBuffer when receiving. // points it at m_szCvarNameBuffer when receiving.
private: private:
char m_szCvarNameBuffer[256]; char m_szCvarNameBuffer[256];
}; };
@ -277,7 +277,7 @@ class NET_SetConVar : public CNetMessage
convar = cvar; convar = cvar;
} }
public: public:
typedef struct cvar_s typedef struct cvar_s
{ {
char name[MAX_OSPATH]; char name[MAX_OSPATH];
@ -305,10 +305,10 @@ class NET_StringCmd : public CNetMessage
m_szCommand = cmd; m_szCommand = cmd;
}; };
public: public:
const char *m_szCommand; // execute this command const char *m_szCommand; // execute this command
private: private:
char m_szCommandBuffer[1024]; // buffer for received messages char m_szCommandBuffer[1024]; // buffer for received messages
}; };

View File

@ -43,7 +43,7 @@ void InitNetVars();
class NetVars class NetVars
{ {
public: public:
void Init(); void Init();
offset_t iTeamNum; offset_t iTeamNum;
offset_t iFlags; offset_t iFlags;

View File

@ -12,7 +12,7 @@ class CachedEntity;
class TFPlayerResource class TFPlayerResource
{ {
public: public:
void Update(); void Update();
int GetMaxHealth(CachedEntity *player); int GetMaxHealth(CachedEntity *player);
int GetMaxBuffedHealth(CachedEntity *player); int GetMaxBuffedHealth(CachedEntity *player);

View File

@ -17,7 +17,7 @@ class ProfilerNode;
class ProfilerSection class ProfilerSection
{ {
public: public:
ProfilerSection(std::string name, ProfilerSection *parent = nullptr); ProfilerSection(std::string name, ProfilerSection *parent = nullptr);
void OnNodeDeath(ProfilerNode &node); void OnNodeDeath(ProfilerNode &node);
@ -34,7 +34,7 @@ class ProfilerSection
class ProfilerNode class ProfilerNode
{ {
public: public:
ProfilerNode(ProfilerSection &section); ProfilerNode(ProfilerSection &section);
~ProfilerNode(); ~ProfilerNode();

View File

@ -1,6 +1,6 @@
class CTFPlayerShared class CTFPlayerShared
{ {
public: public:
inline static float GetCritMult(CTFPlayerShared *self) inline static float GetCritMult(CTFPlayerShared *self)
{ {
return ((fminf(fmaxf(*(float *) (unsigned(self) + 672) * 0.0039215689f, return ((fminf(fmaxf(*(float *) (unsigned(self) + 672) * 0.0039215689f,

View File

@ -9,7 +9,7 @@
class C_BaseCombatWeapon : public C_BaseEntity class C_BaseCombatWeapon : public C_BaseEntity
{ {
public: public:
inline static bool IsBaseCombatWeapon(IClientEntity *self) inline static bool IsBaseCombatWeapon(IClientEntity *self)
{ {
typedef bool (*fn_t)(IClientEntity *); typedef bool (*fn_t)(IClientEntity *);

View File

@ -9,7 +9,7 @@
class C_BaseEntity class C_BaseEntity
{ {
public: public:
inline static bool IsPlayer(IClientEntity *self) inline static bool IsPlayer(IClientEntity *self)
{ {
typedef bool (*fn_t)(IClientEntity *); typedef bool (*fn_t)(IClientEntity *);

View File

@ -1,6 +1,6 @@
class C_BasePlayer : public C_BaseEntity class C_BasePlayer : public C_BaseEntity
{ {
public: public:
inline static CTFPlayerShared &shared_(IClientEntity *self) inline static CTFPlayerShared &shared_(IClientEntity *self)
{ {
return *((CTFPlayerShared *) (unsigned(self) + 6092)); return *((CTFPlayerShared *) (unsigned(self) + 6092));

View File

@ -9,7 +9,7 @@
class C_TFWeaponBase : public re::C_BaseCombatWeapon class C_TFWeaponBase : public re::C_BaseCombatWeapon
{ {
public: public:
inline static IClientEntity *GetOwnerViaInterface(IClientEntity *self) inline static IClientEntity *GetOwnerViaInterface(IClientEntity *self)
{ {
typedef IClientEntity *(*fn_t)(IClientEntity *); typedef IClientEntity *(*fn_t)(IClientEntity *);

View File

@ -9,7 +9,7 @@
class C_TFWeaponBaseGun : public C_TFWeaponBase class C_TFWeaponBaseGun : public C_TFWeaponBase
{ {
public: public:
inline static float GetProjectileSpeed(IClientEntity *self) inline static float GetProjectileSpeed(IClientEntity *self)
{ {
typedef float (*fn_t)(IClientEntity *); typedef float (*fn_t)(IClientEntity *);

View File

@ -9,7 +9,7 @@
class C_TFWeaponBaseMelee : public C_TFWeaponBase class C_TFWeaponBaseMelee : public C_TFWeaponBase
{ {
public: public:
inline static bool DoSwingTrace(IClientEntity *self, trace_t *trace) inline static bool DoSwingTrace(IClientEntity *self, trace_t *trace)
{ {
typedef bool (*fn_t)(IClientEntity *, trace_t *); typedef bool (*fn_t)(IClientEntity *, trace_t *);

View File

@ -20,10 +20,10 @@ namespace sconvar
class SpoofedConVar class SpoofedConVar
{ {
public: public:
SpoofedConVar(ConVar *var); SpoofedConVar(ConVar *var);
public: public:
ConVar *original; ConVar *original;
ConVar *spoof; ConVar *spoof;
}; };

View File

@ -9,7 +9,7 @@
class CGameRules class CGameRules
{ {
public: public:
int unknown_pad_0[12]; int unknown_pad_0[12];
int roundmode; int roundmode;
int unknown_pad_1[1]; int unknown_pad_1[1];

View File

@ -13,7 +13,7 @@
class CHudBaseChat class CHudBaseChat
{ {
public: public:
void *vtable; void *vtable;
inline void Printf(const char *string) inline void Printf(const char *string)
{ {
@ -25,13 +25,13 @@ class CHudBaseChat
class CHudElement class CHudElement
{ {
public: public:
void *vtable; void *vtable;
}; };
class CHud class CHud
{ {
public: public:
void *vtable; void *vtable;
CHudElement *FindElement(const char *name); CHudElement *FindElement(const char *name);

View File

@ -20,7 +20,7 @@ class KeyValues;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
class IScreenSpaceEffect class IScreenSpaceEffect
{ {
public: public:
virtual void Init() = 0; virtual void Init() = 0;
virtual void Shutdown() = 0; virtual void Shutdown() = 0;
@ -37,7 +37,7 @@ class IScreenSpaceEffect
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
class IScreenSpaceEffectManager class IScreenSpaceEffectManager
{ {
public: public:
virtual void InitScreenSpaceEffects() = 0; virtual void InitScreenSpaceEffects() = 0;
virtual void ShutdownScreenSpaceEffects() = 0; virtual void ShutdownScreenSpaceEffects() = 0;
@ -68,7 +68,7 @@ extern IScreenSpaceEffectManager *g_pScreenSpaceEffects;
//------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------
class CScreenSpaceEffectRegistration class CScreenSpaceEffectRegistration
{ {
public: public:
CScreenSpaceEffectRegistration(const char *pName, CScreenSpaceEffectRegistration(const char *pName,
IScreenSpaceEffect *pEffect); IScreenSpaceEffect *pEffect);

View File

@ -9,7 +9,7 @@
class TFGCClientSystem class TFGCClientSystem
{ {
public: public:
int RequestSelectWizardStep(int type); int RequestSelectWizardStep(int type);
int GetState(); int GetState();
/* 55 89 E5 57 56 8D 75 C8 53 81 EC 8C 00 00 00 8B 45 0C C7 04 24 ? ? ? ? 8B /* 55 89 E5 57 56 8D 75 C8 53 81 EC 8C 00 00 00 8B 45 0C C7 04 24 ? ? ? ? 8B

View File

@ -39,7 +39,7 @@ class IMoveHelper;
class CMoveData class CMoveData
{ {
public: public:
bool m_bFirstRunOfFunctions : 1; bool m_bFirstRunOfFunctions : 1;
bool m_bGameCodeMovedPlayer : 1; bool m_bGameCodeMovedPlayer : 1;
@ -79,7 +79,7 @@ class CMoveData
void SetAbsOrigin(const Vector &vec); void SetAbsOrigin(const Vector &vec);
const Vector &GetAbsOrigin() const; const Vector &GetAbsOrigin() const;
private: private:
Vector m_vecAbsOrigin; // edict::origin Vector m_vecAbsOrigin; // edict::origin
}; };
@ -114,7 +114,7 @@ inline void CMoveData::SetAbsOrigin(const Vector &vec)
abstract_class IGameMovement abstract_class IGameMovement
{ {
public: public:
virtual ~IGameMovement(void) virtual ~IGameMovement(void)
{ {
} }

View File

@ -29,7 +29,7 @@ struct CameraThirdData_t
class IInput class IInput
{ {
public: public:
// Initialization/shutdown of the subsystem // Initialization/shutdown of the subsystem
virtual void Init_All(void) = 0; virtual void Init_All(void) = 0;
virtual void Shutdown_All(void) = 0; virtual void Shutdown_All(void) = 0;

View File

@ -55,7 +55,7 @@ class IFileList;
abstract_class IMaterialSystemFixed : public IAppSystem abstract_class IMaterialSystemFixed : public IAppSystem
{ {
public: public:
// Placeholder for API revision // Placeholder for API revision
virtual bool Connect(CreateInterfaceFn factory) = 0; virtual bool Connect(CreateInterfaceFn factory) = 0;
virtual void Disconnect() = 0; virtual void Disconnect() = 0;

View File

@ -23,13 +23,13 @@ bool LocateSharedObject(std::string &name, std::string &out_full_path);
class SharedObject class SharedObject
{ {
public: public:
SharedObject(const char *_file, bool _factory); SharedObject(const char *_file, bool _factory);
void Load(); void Load();
char *Pointer(uintptr_t offset) const; char *Pointer(uintptr_t offset) const;
void *CreateInterface(const std::string &interface); void *CreateInterface(const std::string &interface);
public: public:
std::string file; std::string file;
std::string path; std::string path;
bool factory{ false }; bool factory{ false };

View File

@ -15,14 +15,14 @@
class TextFile class TextFile
{ {
public: public:
TextFile(); TextFile();
void Load(std::string filename); void Load(std::string filename);
bool TryLoad(std::string filename); bool TryLoad(std::string filename);
size_t LineCount() const; size_t LineCount() const;
const std::string &Line(size_t id) const; const std::string &Line(size_t id) const;
public: public:
std::vector<std::string> lines; std::vector<std::string> lines;
}; };

View File

@ -11,7 +11,7 @@
class Timer class Timer
{ {
public: public:
typedef std::chrono::system_clock clock; typedef std::chrono::system_clock clock;
inline Timer(){}; inline Timer(){};
@ -36,6 +36,6 @@ class Timer
last = clock::now(); last = clock::now();
} }
public: public:
std::chrono::time_point<clock> last{}; std::chrono::time_point<clock> last{};
}; };

View File

@ -20,10 +20,10 @@ namespace trace
class FilterDefault : public ITraceFilter class FilterDefault : public ITraceFilter
{ {
public: public:
IClientEntity *m_pSelf; IClientEntity *m_pSelf;
public: public:
virtual ~FilterDefault(); virtual ~FilterDefault();
FilterDefault(); FilterDefault();
virtual bool ShouldHitEntity(IHandleEntity *entity, int mask); virtual bool ShouldHitEntity(IHandleEntity *entity, int mask);
@ -33,10 +33,10 @@ class FilterDefault : public ITraceFilter
class FilterNoPlayer : public ITraceFilter class FilterNoPlayer : public ITraceFilter
{ {
public: public:
IClientEntity *m_pSelf; IClientEntity *m_pSelf;
public: public:
virtual ~FilterNoPlayer(); virtual ~FilterNoPlayer();
FilterNoPlayer(); FilterNoPlayer();
virtual bool ShouldHitEntity(IHandleEntity *entity, int mask); virtual bool ShouldHitEntity(IHandleEntity *entity, int mask);
@ -46,11 +46,11 @@ class FilterNoPlayer : public ITraceFilter
class FilterPenetration : public ITraceFilter class FilterPenetration : public ITraceFilter
{ {
public: public:
IClientEntity *m_pSelf; IClientEntity *m_pSelf;
IClientEntity *m_pIgnoreFirst; IClientEntity *m_pIgnoreFirst;
public: public:
virtual ~FilterPenetration(); virtual ~FilterPenetration();
FilterPenetration(); FilterPenetration();
virtual bool ShouldHitEntity(IHandleEntity *entity, int mask); virtual bool ShouldHitEntity(IHandleEntity *entity, int mask);

View File

@ -15,7 +15,7 @@
class CUserCmd class CUserCmd
{ {
public: public:
virtual ~CUserCmd(){}; virtual ~CUserCmd(){};
int command_number; int command_number;
int tick_count; int tick_count;

View File

@ -17,7 +17,7 @@ namespace effect_chams
class EffectChams : public IScreenSpaceEffect class EffectChams : public IScreenSpaceEffect
{ {
public: public:
virtual void Init(); virtual void Init();
inline virtual void Shutdown(){}; inline virtual void Shutdown(){};
@ -41,7 +41,7 @@ class EffectChams : public IScreenSpaceEffect
void EndRenderChams(); void EndRenderChams();
void RenderChamsRecursive(IClientEntity *entity); void RenderChamsRecursive(IClientEntity *entity);
public: public:
bool init{ false }; bool init{ false };
bool drawing{ false }; bool drawing{ false };
bool enabled; bool enabled;

View File

@ -16,7 +16,7 @@ namespace effect_glow
class EffectGlow : public IScreenSpaceEffect class EffectGlow : public IScreenSpaceEffect
{ {
public: public:
virtual void Init(); virtual void Init();
inline virtual void Shutdown(){}; inline virtual void Shutdown(){};
@ -44,7 +44,7 @@ class EffectGlow : public IScreenSpaceEffect
void BeginRenderGlow(); void BeginRenderGlow();
void EndRenderGlow(); void EndRenderGlow();
public: public:
bool init{ false }; bool init{ false };
bool drawing{ false }; bool drawing{ false };
bool enabled; bool enabled;

View File

@ -19,14 +19,14 @@ class sprite;
class sprite class sprite
{ {
public: public:
sprite(float x, float y, float w, float h, const texture_atlas &atlas); sprite(float x, float y, float w, float h, const texture_atlas &atlas);
public: public:
void draw(float scrx, float scry, float scrw, float scrh, void draw(float scrx, float scry, float scrw, float scrh,
const rgba_t &rgba) const; const rgba_t &rgba) const;
public: public:
const float nx; const float nx;
const float ny; const float ny;
const float nw; const float nw;
@ -37,13 +37,13 @@ class sprite
class texture_atlas class texture_atlas
{ {
public: public:
texture_atlas(std::string filename, float width, float height); texture_atlas(std::string filename, float width, float height);
public: public:
sprite create_sprite(float x, float y, float sx, float sy) const; sprite create_sprite(float x, float y, float sx, float sy) const;
public: public:
const float width; const float width;
const float height; const float height;

View File

@ -25,7 +25,7 @@ CatVar dont_log_ipc(CV_SWITCH, "chat_log_noipc", "1", "No IPC",
class RAIILog class RAIILog
{ {
public: public:
RAIILog() RAIILog()
{ {
open(); open();

View File

@ -23,7 +23,7 @@ float angle = 0;
class SpinnerListener : public IGameEventListener class SpinnerListener : public IGameEventListener
{ {
public: public:
virtual void FireGameEvent(KeyValues *event) virtual void FireGameEvent(KeyValues *event)
{ {
std::string name(event->GetName()); std::string name(event->GetName());

View File

@ -83,7 +83,7 @@ std::stack<std::string> &hack::command_stack()
class AdvancedEventListener : public IGameEventListener class AdvancedEventListener : public IGameEventListener
{ {
public: public:
virtual void FireGameEvent(KeyValues *event) virtual void FireGameEvent(KeyValues *event)
{ {
if (!event_log) if (!event_log)

View File

@ -80,7 +80,7 @@ void ResetEverything()
class ACListener : public IGameEventListener class ACListener : public IGameEventListener
{ {
public: public:
virtual void FireGameEvent(KeyValues *event) virtual void FireGameEvent(KeyValues *event)
{ {
if (!enabled) if (!enabled)

View File

@ -23,7 +23,7 @@ CatVar chance(CV_FLOAT, "autotaunt_chance", "8", "AutoTaunt chance",
class AutoTauntListener : public IGameEventListener2 class AutoTauntListener : public IGameEventListener2
{ {
public: public:
virtual void FireGameEvent(IGameEvent *event) virtual void FireGameEvent(IGameEvent *event)
{ {
if (!enabled) if (!enabled)

View File

@ -33,7 +33,7 @@ float healarrow_time = 0.0f;
class HealArrowListener : public IGameEventListener class HealArrowListener : public IGameEventListener
{ {
public: public:
virtual void FireGameEvent(KeyValues *event) virtual void FireGameEvent(KeyValues *event)
{ {
if (!healarrow) if (!healarrow)

View File

@ -86,7 +86,7 @@ void Update()
class HurtListener : public IGameEventListener class HurtListener : public IGameEventListener
{ {
public: public:
virtual void FireGameEvent(KeyValues *event) virtual void FireGameEvent(KeyValues *event)
{ {
if (strcmp("player_hurt", event->GetName())) if (strcmp("player_hurt", event->GetName()))

View File

@ -38,7 +38,7 @@ inline int BitForBitnum(int bitnum)
class CBitWriteMasksInit class CBitWriteMasksInit
{ {
public: public:
CBitWriteMasksInit() CBitWriteMasksInit()
{ {
for (unsigned int startbit = 0; startbit < 32; startbit++) for (unsigned int startbit = 0; startbit < 32; startbit++)

View File

@ -53,7 +53,7 @@ static char s_pTokenBuf[KEYVALUES_TOKEN_SIZE];
const int MAX_ERROR_STACK = 64; const int MAX_ERROR_STACK = 64;
class CKeyValuesErrorStack class CKeyValuesErrorStack
{ {
public: public:
CKeyValuesErrorStack() CKeyValuesErrorStack()
: m_pFilename("NULL"), m_errorIndex(0), m_maxErrorIndex(0) : m_pFilename("NULL"), m_errorIndex(0), m_maxErrorIndex(0)
{ {
@ -124,7 +124,7 @@ class CKeyValuesErrorStack
Warning("\n"); Warning("\n");
} }
private: private:
int m_errorStack[MAX_ERROR_STACK]; int m_errorStack[MAX_ERROR_STACK];
const char *m_pFilename; const char *m_pFilename;
int m_errorIndex; int m_errorIndex;
@ -134,7 +134,7 @@ class CKeyValuesErrorStack
// a simple helper that creates stack entries as it goes in & out of scope // a simple helper that creates stack entries as it goes in & out of scope
class CKeyErrorContext class CKeyErrorContext
{ {
public: public:
CKeyErrorContext(KeyValues *pKv) CKeyErrorContext(KeyValues *pKv)
{ {
Init(pKv->GetNameSymbol()); Init(pKv->GetNameSymbol());
@ -157,7 +157,7 @@ class CKeyErrorContext
return m_stackLevel; return m_stackLevel;
} }
private: private:
void Init(int symName) void Init(int symName)
{ {
m_stackLevel = g_KeyValuesErrorStack.Push(symName); m_stackLevel = g_KeyValuesErrorStack.Push(symName);
@ -173,7 +173,7 @@ class CKeyErrorContext
class CLeakTrack class CLeakTrack
{ {
public: public:
CLeakTrack() CLeakTrack()
{ {
} }
@ -234,7 +234,7 @@ static CLeakTrack track;
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
class CKeyValuesGrowableStringTable class CKeyValuesGrowableStringTable
{ {
public: public:
// Constructor // Constructor
CKeyValuesGrowableStringTable() CKeyValuesGrowableStringTable()
: :
@ -287,7 +287,7 @@ class CKeyValuesGrowableStringTable
return (const char *) m_vecStrings.Base() + symbol; return (const char *) m_vecStrings.Base() + symbol;
} }
private: private:
// A class plugged into CUtlHash that allows us to change the behavior of // A class plugged into CUtlHash that allows us to change the behavior of
// the table and store only the index in the table. // the table and store only the index in the table.
class CLookupFunctor class CLookupFunctor
@ -1222,7 +1222,7 @@ void KeyValues::AddSubkeyUsingKnownLastChild(KeyValues *pSubkey,
Assert(pLastChild->m_pPeer == NULL); Assert(pLastChild->m_pPeer == NULL);
// // In debug, make sure that they really do know which child is // // In debug, make sure that they really do know which child is
//the last one #ifdef _DEBUG KeyValues *pTempDat = // the last one #ifdef _DEBUG KeyValues *pTempDat =
// m_pSub; while ( pTempDat->GetNextKey() != NULL ) // m_pSub; while ( pTempDat->GetNextKey() != NULL )
// { // {
// pTempDat = pTempDat->GetNextKey(); // pTempDat = pTempDat->GetNextKey();

View File

@ -54,7 +54,7 @@ void SetCVarInterface(ICvar *iface)
class CDefaultAccessor : public IConCommandBaseAccessor class CDefaultAccessor : public IConCommandBaseAccessor
{ {
public: public:
virtual bool RegisterConCommandBase(ConCommandBase *pVar) virtual bool RegisterConCommandBase(ConCommandBase *pVar)
{ {
// Link to engine's list instead // Link to engine's list instead
@ -1089,7 +1089,7 @@ void ConVar::SetDefault(const char *pszDefault)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
class CEmptyConVar : public ConVar class CEmptyConVar : public ConVar
{ {
public: public:
CEmptyConVar() : ConVar("", "0") CEmptyConVar() : ConVar("", "0")
{ {
} }

View File

@ -25,14 +25,14 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
class CUtlCStringConversion : public CUtlCharConversion class CUtlCStringConversion : public CUtlCharConversion
{ {
public: public:
CUtlCStringConversion(char nEscapeChar, const char *pDelimiter, int nCount, CUtlCStringConversion(char nEscapeChar, const char *pDelimiter, int nCount,
ConversionArray_t *pArray); ConversionArray_t *pArray);
// Finds a conversion for the passed-in string, returns length // Finds a conversion for the passed-in string, returns length
virtual char FindConversion(const char *pString, int *pLength); virtual char FindConversion(const char *pString, int *pLength);
private: private:
char m_pConversion[256]; char m_pConversion[256];
}; };
@ -41,7 +41,7 @@ class CUtlCStringConversion : public CUtlCharConversion
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
class CUtlNoEscConversion : public CUtlCharConversion class CUtlNoEscConversion : public CUtlCharConversion
{ {
public: public:
CUtlNoEscConversion(char nEscapeChar, const char *pDelimiter, int nCount, CUtlNoEscConversion(char nEscapeChar, const char *pDelimiter, int nCount,
ConversionArray_t *pArray) ConversionArray_t *pArray)
: CUtlCharConversion(nEscapeChar, pDelimiter, nCount, pArray) : CUtlCharConversion(nEscapeChar, pDelimiter, nCount, pArray)