-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathsource2gen.hpp
149 lines (143 loc) · 4.82 KB
/
source2gen.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#pragma once
#include <cstdint>
#include <string_view>
template <typename>
using CAnimValue = char[0x08];
using CAnimVariant = char[0x11];
// size is a guess
template <typename T>
using CAnimScriptParam = char[0x08];
using CBufferString = char[0x10];
using CColorGradient = char[0x18];
// size doesn't matter. only used as a pointer
template <typename>
using CCompressor = char[0x01];
using CEntityHandle = char[0x04];
using CEntityIndex = char[0x04];
using CGlobalSymbol = char[0x08];
using CKV3MemberNameWithStorage = char[0x38];
using CNetworkedQuantizedFloat = char[0x08];
using CParticleNamedValueRef = char[0x40];
using CPiecewiseCurve = char[0x40];
using CPlayerSlot = char[0x04];
using CPulseValueFullType = char[0x10];
using CResourceName = char[0xe0];
using CSplitScreenSlot = char[0x04];
using CTransform = char[0x20];
using CUtlBinaryBlock = char[0x18];
template <typename, typename>
using CUtlHashtable = char[0x20];
using CUtlStringTokenWithStorage = char[0x18];
using CUtlStringToken = char[0x04];
using CUtlString = char[0x08];
using CUtlSymbolLarge = char[0x08];
using CUtlSymbol = char[0x02];
template <typename>
using CAnimGraphParamOptionalRef = char[0x20];
template <typename>
using CAnimGraphParamRef = char[0x20];
template <int N>
using CBitVec = char[(N + 7) / 8];
template <typename>
using CEntityOutputTemplate = char[0x28];
template <typename>
using CHandle = char[0x04];
template <typename>
using C_NetworkUtlVectorBase = char[0x18];
template <typename>
using CNetworkUtlVectorBase = char[0x18];
// size unknown. only used in dynamic containers.
using CSoundEventName = char[0x01];
template <typename>
using CUtlLeanVector = char[0x10];
template <typename, class>
using CUtlOrderedMap = char[0x28];
// size doesn't matter. only used as a pointer
template <typename, class>
using CUtlPair = char[0x01];
template <typename>
using CUtlVector = char[0x18];
// size is a guess that fits both occurences of this type in CS2
template <typename Ty>
using CUtlVectorFixedGrowable = char[0x18 + ((sizeof(Ty) < 4) ? 4 : sizeof(Ty))];
template <typename Ty>
using CUtlLeanVectorFixedGrowable = char[0x10 + ((sizeof(Ty) < 4) ? 4 : sizeof(Ty))];
template <typename>
using C_UtlVectorEmbeddedNetworkVar = char[0x50];
template <typename>
using CUtlVectorEmbeddedNetworkVar = char[0x50];
using CUtlVectorSIMDPaddedVector = char[0x18];
template <typename>
using CSmartPtr = char[0x08];
template <typename>
using CResourceArray = char[0x08];
// size unknown
using CResourceString = char[0x08];
template <typename>
using CResourcePointer = char[0x08];
template <typename>
using CResourceNameTyped = char[0xe0];
template <typename>
using CStrongHandle = char[0x08];
template <typename>
using CStrongHandleCopyable = char[0x08];
// size doesn't matter. only used as a pointer
using CStrongHandleVoid = char[0x08];
template <typename>
using CVariantBase = char[0x10];
template <typename>
using CWeakHandle = char[0x18];
using CSmartPropAttributeVector = char[0x40];
using CSmartPropAttributeFloat = char[0x40];
using CSmartPropAttributeBool = char[0x40];
using CSmartPropAttributeColor = char[0x40];
using CSmartPropAttributeInt = char[0x40];
using CSmartPropAttributeModelName = char[0x40];
using CSmartPropAttributeMaterialGroup = char[0x40];
using CSmartPropAttributeVector2D = char[0x40];
using CSmartPropVariableComparison = char[0x20];
using CSmartPropAttributeAngles = char[0x40];
using CSmartPropAttributeStateName = char[0x40];
using CSmartPropAttributeVariableValue = char[0x40];
using Color = char[0x04];
using DegreeEuler = char[0x0c];
using FourVectors = char[0x30];
using HSCRIPT = char[0x08];
using KeyValues3 = char[0x10];
// size doesn't matter. only used as a pointer
using KeyValues = char[0x01];
using QAngle = char[0x0c];
using QuaternionStorage = char[0x10];
using Quaternion = char[0x10];
using RadianEuler = char[0x0c];
using RenderInputLayoutField_t = char[0x04];
// we don't have a field size for this type. uses the fallback of 1.
using RenderPrimitiveType_t = char[0x01];
using RotationVector = char[0x0c];
template <typename>
using SphereBase_t = char[0x10];
using Vector2D = char[0x08];
using Vector4D = char[0x10];
using VectorAligned = char[0x10];
using Vector = char[0x0c];
using WorldGroupId_t = char[0x04];
using float32 = char[0x04];
using fltx4 = char[0x10];
using matrix3x4_t = char[0x30];
using matrix3x4a_t = char[0x30];
// intentionally left undefined. if you want to access static fields, add your own sdk.
namespace interfaces {
struct SchemaStaticFieldData_t {
void* m_pInstance{};
};
struct CSchemaClassInfo {
auto GetStaticFields() -> SchemaStaticFieldData_t**;
};
struct CSchemaSystemTypeScope {
auto FindDeclaredClass(std::string_view) -> CSchemaClassInfo*;
};
struct schema_t {
auto FindTypeScopeForModule(std::string_view) -> CSchemaSystemTypeScope*;
};
extern schema_t* g_schema;
} // namespace interfaces