Add IVModelInfoClient::GetStudioModel.

* Proper structures coming soon.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe 2016-12-19 19:19:33 +00:00
parent c8c27bcbcb
commit b746fa1e3b
1 changed files with 5 additions and 1 deletions

View File

@ -17,11 +17,15 @@
#define BONE_USED_BY_VERTEX_LOD7 0x20000
#define BONE_USED_BY_BONE_MERGE 0x40000
class model_t;
class studiohdr_t;
class IVModelInfoClient {
public:
const char* GetModelName(const model_t* model) {
return GetVirtualFunction<const char*(*)(IVModelInfoClient*, const model_t*)>(this, 4)(this, model);
}
studiohdr_t* GetStudioModel(const model_t* model) {
return GetVirtualFunction<studiohdr_t*(*)(IVModelInfoClient*, const model_t*)>(this, 29)(this, model);
}
};