int GetCorpseMapId(Corpse* pCorpse) { if(pCorpse) { return pCorpse->GetMapId(); } return 0; }This code takes a pointer to a Corpse object, checks if it is not null and returns the map ID of the corpse using the GetMapId method. The package library used for this example code is unclear as it depends on the specific game engine or framework used. It could be a custom library developed in-house or part of a commercial game engine such as Unity or Unreal Engine.