mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
pcb_reader dumps hierachyId now
spawning objects has never been more fun!
This commit is contained in:
parent
2347568293
commit
06bf24a606
2 changed files with 6 additions and 2 deletions
|
@ -174,7 +174,8 @@ public:
|
|||
struct LGB_EOBJ_HEADER : public LGB_ENTRY_HEADER
|
||||
{
|
||||
uint32_t eobjId;
|
||||
uint8_t unknown1[0x10];
|
||||
uint32_t levelHierachyId;
|
||||
uint8_t unknown1[0xC];
|
||||
};
|
||||
|
||||
class LGB_EOBJ_ENTRY : public LGB_ENTRY
|
||||
|
|
|
@ -236,6 +236,7 @@ void writeEobjEntry( std::ofstream& out, LGB_ENTRY* pObj )
|
|||
uint32_t id;
|
||||
std::string name;
|
||||
std::string typeStr;
|
||||
uint32_t eobjlevelHierachyId = 0;
|
||||
|
||||
if( pObj->getType() == LgbEntryType::EventObject )
|
||||
{
|
||||
|
@ -243,6 +244,7 @@ void writeEobjEntry( std::ofstream& out, LGB_ENTRY* pObj )
|
|||
id = pEobj->header.eobjId;
|
||||
name = eobjNameMap[id];
|
||||
typeStr = eobjStr;
|
||||
eobjlevelHierachyId = pEobj->header.levelHierachyId;
|
||||
}
|
||||
else if( pObj->getType() == LgbEntryType::MapRange )
|
||||
{
|
||||
|
@ -253,7 +255,8 @@ void writeEobjEntry( std::ofstream& out, LGB_ENTRY* pObj )
|
|||
|
||||
std::string outStr(
|
||||
std::to_string( id ) + ", " + typeStr + "\"" + name + "\", " +
|
||||
std::to_string( pObj->header.translation.x ) + ", " + std::to_string( pObj->header.translation.y ) + ", " + std::to_string( pObj->header.translation.z ) + "\n"
|
||||
std::to_string( pObj->header.translation.x ) + ", " + std::to_string( pObj->header.translation.y ) + ", " + std::to_string( pObj->header.translation.z ) +
|
||||
", " + std::to_string( eobjlevelHierachyId ) + "\n"
|
||||
);
|
||||
out.write( outStr.c_str(), outStr.size() );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue