2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
|
|
|
|
struct CDZoneTable {
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t zoneID; //!< The Zone ID of the object
|
|
|
|
uint32_t locStatus; //!< The Locale Status(?)
|
2022-07-28 13:39:57 +00:00
|
|
|
std::string zoneName; //!< The name of the zone
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t scriptID; //!< The Script ID of the zone (ScriptsTable)
|
2022-07-28 13:39:57 +00:00
|
|
|
float ghostdistance_min; //!< The minimum ghosting distance
|
|
|
|
float ghostdistance; //!< The ghosting distance
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t population_soft_cap; //!< The "soft cap" on the world population
|
|
|
|
uint32_t population_hard_cap; //!< The "hard cap" on the world population
|
2022-07-28 13:39:57 +00:00
|
|
|
UNUSED(std::string DisplayDescription); //!< The display description of the world
|
|
|
|
UNUSED(std::string mapFolder); //!< ???
|
|
|
|
float smashableMinDistance; //!< The minimum smashable distance?
|
|
|
|
float smashableMaxDistance; //!< The maximum smashable distance?
|
|
|
|
UNUSED(std::string mixerProgram); //!< ???
|
|
|
|
UNUSED(std::string clientPhysicsFramerate); //!< The client physics framerate
|
2023-11-14 13:02:17 +00:00
|
|
|
std::string serverPhysicsFramerate; //!< The server physics framerate
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t zoneControlTemplate; //!< The Zone Control template
|
|
|
|
uint32_t widthInChunks; //!< The width of the world in chunks
|
|
|
|
uint32_t heightInChunks; //!< The height of the world in chunks
|
2022-07-28 13:39:57 +00:00
|
|
|
bool petsAllowed; //!< Whether or not pets are allowed in the world
|
2021-12-05 17:54:36 +00:00
|
|
|
bool localize; //!< Whether or not the world should be localized
|
2022-07-28 13:39:57 +00:00
|
|
|
float fZoneWeight; //!< ???
|
|
|
|
UNUSED(std::string thumbnail); //!< The thumbnail of the world
|
|
|
|
bool PlayerLoseCoinsOnDeath; //!< Whether or not the user loses coins on death
|
2023-11-14 13:02:17 +00:00
|
|
|
bool disableSaveLoc; //!< Disables the saving location?
|
2021-12-05 17:54:36 +00:00
|
|
|
float teamRadius; //!< ???
|
2022-07-28 13:39:57 +00:00
|
|
|
UNUSED(std::string gate_version); //!< The gate version
|
2023-11-14 13:02:17 +00:00
|
|
|
bool mountsAllowed; //!< Whether or not mounts are allowed
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDZoneTableTable : public CDTable<CDZoneTableTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
2024-01-09 07:54:14 +00:00
|
|
|
std::map<uint32_t, CDZoneTable> m_Entries;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2023-08-11 04:27:40 +00:00
|
|
|
void LoadValuesFromDatabase();
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
// Queries the table with a zoneID to find.
|
2024-01-09 07:54:14 +00:00
|
|
|
const CDZoneTable* Query(uint32_t zoneID);
|
2022-07-28 13:39:57 +00:00
|
|
|
};
|