cwVelTableTuner.h/cpp : Added get_vel_table().

This commit is contained in:
kevin 2023-06-27 17:27:58 -04:00
parent e8c9e38d81
commit c78f695c31
2 changed files with 23 additions and 0 deletions

View File

@ -1110,3 +1110,23 @@ cw::rc_t cw::vtbl::exec( handle_t h )
}
return rc;
}
const uint8_t* cw::vtbl::get_vel_table( handle_t h, const char* label, unsigned& velTblN_Ref )
{
vtbl_t* p = _handleToPtr(h);
const tbl_t* t= nullptr;
velTblN_Ref = 0;
if((t = _table_from_name( p, label )) == nullptr )
{
cwLogError(kInvalidArgRC,"The velocity table named:'%s' could not be found.",cwStringNullGuard(label));
return nullptr;
}
velTblN_Ref = t->tableN;
return t->tableA;
}

View File

@ -80,5 +80,8 @@ namespace cw
// Update the state of the player
rc_t exec( handle_t h );
const uint8_t* get_vel_table( handle_t h, const char* label, unsigned& velTblN_Ref );
}
}