xrTime CScriptGameObject::GetInfoTime (LPCSTR info_id) { CInventoryOwner* pInventoryOwner = smart_cast<CInventoryOwner*>(&object()); if(!pInventoryOwner) return xrTime(0); INFO_DATA info_data; if(pInventoryOwner->GetInfo(info_id, info_data)) return xrTime(info_data.receive_time); else return xrTime(0); }
xrTime get_time_struct() { return xrTime(__game_time()); }