void Doors::CreateDatabaseEntry() { if (database.GetDoorsDBCountPlusOne(zone->GetShortName(), zone->GetInstanceVersion()) - 1 >= 255) { return; } /** * Persist */ database.InsertDoor( GetDoorDBID(), GetDoorID(), GetDoorName(), m_Position, GetOpenType(), static_cast<uint16>(GetGuildID()), GetLockpick(), GetKeyItem(), static_cast<uint8>(GetDoorParam()), static_cast<uint8>(GetInvertState()), GetIncline(), GetSize() ); }
void Doors::CreateDatabaseEntry() { if(database.GetDoorsDBCountPlusOne(zone->GetShortName(), zone->GetInstanceVersion()) - 1 >= 255) { return; } database.InsertDoor(GetDoorDBID(), GetDoorID(), GetDoorName(), GetX(), GetY(), GetZ(), GetHeading(), GetOpenType(), GetGuildID(), GetLockpick(), GetKeyItem(), GetDoorParam(), GetInvertState(), GetIncline(), GetSize()); }