#include "player.h" #include "cglm/cglm.h" #include "assetmgr.h" void C_MOBAPlayer::Precache() { uint32_t uIndex = g_pAssetManager->LoadModel("game/core/models/cube.fmdl"); V_printf("%u\n", uIndex); pModel = g_pAssetManager->GetModelByIndex(uIndex); } void C_MOBAPlayer::Spawn() { Precache(); SetThink(Think); }; void C_MOBAPlayer::Think( float fDelta ) { }; LINK_ENTITY_TO_CLASS(player, C_MOBAPlayer)