| 360 | } |
| 361 | |
| 362 | float CScriptGameObject::GetItemWeight() |
| 363 | { |
| 364 | CInventoryItem* e = smart_cast<CInventoryItem*>(&object()); |
| 365 | if (!e) |
| 366 | { |
| 367 | ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CInventoryItem : cannot access class member GetItemWeight!"); |
| 368 | return 0.f; |
| 369 | } |
| 370 | return e->Weight(); |
| 371 | } |
| 372 | |
| 373 | u32 CScriptGameObject::InvBoxCount() |
| 374 | { |
nothing calls this directly
no test coverage detected