Skip to content

Commit ecd85dc

Browse files
committed
[Automation] Update SDK - 20.08.2024
1 parent ec69c76 commit ecd85dc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/plugins/core/scripting/generated/GClasses1.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,9 @@ void GCBaseModelEntity::SetModel(std::string model) {
18781878
void GCBaseModelEntity::SetSolidType(int64_t solidType) {
18791879
((CBaseModelEntity*)m_ptr)->SetSolidType((SolidType_t)solidType);
18801880
}
1881+
void GCBaseModelEntity::SetBodygroup(std::string str, int64_t val) {
1882+
((CBaseModelEntity*)m_ptr)->SetBodygroup(str.c_str(), (uint64_t)val);
1883+
}
18811884
GCRenderComponent GCBaseModelEntity::GetCRenderComponent() const {
18821885
REGISTER_CALLSTACK(this->plugin_name, string_format("SDK Get: CBaseModelEntity->CRenderComponent(ptr=%p)", m_ptr));
18831886
GCRenderComponent value(*(void**)GetSchemaPtr(m_ptr, "CBaseModelEntity", "m_CRenderComponent"));
@@ -2140,6 +2143,7 @@ void SetupLuaClassCBaseModelEntity(LuaPlugin *plugin, lua_State *state)
21402143
.addProperty("Parent", &GCBaseModelEntity::GetParent, &GCBaseModelEntity::SetParent)
21412144
.addFunction("SetModel", &GCBaseModelEntity::SetModel)
21422145
.addFunction("SetSolidType", &GCBaseModelEntity::SetSolidType)
2146+
.addFunction("SetBodygroup", &GCBaseModelEntity::SetBodygroup)
21432147
.addFunction("ToPtr", &GCBaseModelEntity::ToPtr)
21442148
.addFunction("IsValid", &GCBaseModelEntity::IsValid)
21452149
.endClass();
@@ -3912,6 +3916,9 @@ GCAttributeList::GCAttributeList(std::string ptr, lua_State* state) {
39123916
GCAttributeList::GCAttributeList(void *ptr) {
39133917
m_ptr = ptr;
39143918
}
3919+
void GCAttributeList::SetOrAddAttributeValueByName(std::string str, float value) {
3920+
((CAttributeList*)m_ptr)->SetOrAddAttributeValueByName(str.c_str(), value);
3921+
}
39153922
std::vector<GCEconItemAttribute> GCAttributeList::GetAttributes() const {
39163923
REGISTER_CALLSTACK(this->plugin_name, string_format("SDK Get: CAttributeList->Attributes(ptr=%p)", m_ptr));
39173924
CUtlVector<GCEconItemAttribute>* vec = GetSchemaValue<CUtlVector<GCEconItemAttribute>*>(m_ptr, "CAttributeList", "m_Attributes"); std::vector<GCEconItemAttribute> outVec; for(int i = 0; i < vec->Count(); i++) { outVec.push_back(vec->Element(i)); } return outVec;
@@ -3945,6 +3952,7 @@ void SetupLuaClassCAttributeList(LuaPlugin *plugin, lua_State *state)
39453952
.addConstructor<void (*)(std::string, lua_State*)>()
39463953
.addProperty("Attributes", &GCAttributeList::GetAttributes, &GCAttributeList::SetAttributes)
39473954
.addProperty("Manager", &GCAttributeList::GetManager, &GCAttributeList::SetManager)
3955+
.addFunction("SetOrAddAttributeValueByName", &GCAttributeList::SetOrAddAttributeValueByName)
39483956
.addFunction("ToPtr", &GCAttributeList::ToPtr)
39493957
.addFunction("IsValid", &GCAttributeList::IsValid)
39503958
.endClass();

src/plugins/core/scripting/generated/classes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,7 @@ class GCBaseModelEntity
20522052

20532053
void SetModel(std::string model);
20542054
void SetSolidType(int64_t solidType);
2055+
void SetBodygroup(std::string str, int64_t val);
20552056
GCRenderComponent GetCRenderComponent() const;
20562057
void SetCRenderComponent(GCRenderComponent value);
20572058
GCHitboxComponent GetCHitboxComponent() const;
@@ -2787,6 +2788,7 @@ class GCAttributeList
27872788
GCAttributeList(std::string ptr, lua_State* state);
27882789
GCAttributeList(void *ptr);
27892790

2791+
void SetOrAddAttributeValueByName(std::string str, float value);
27902792
std::vector<GCEconItemAttribute> GetAttributes() const;
27912793
void SetAttributes(std::vector<GCEconItemAttribute> value);
27922794
GCAttributeManager GetManager() const;

0 commit comments

Comments
 (0)