mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 12:48:20 +00:00
d2aeebcd46
* Move CDClientManager to be a namespace Tested that worlds still load data as expected. Had no use being a singleton anyways. * Move cdclient data storage to tu local containers Allows some data from these containers to be saved on object by reference instead of always needing to copy. iteration 2 - move all unnamed namespace containers to a singular spot - use macro for template specialization and variable declaration - use templates to allow for as little copy paste of types and functions as possible * remember to use typename! compiler believes T::StorageType is accessing a member, not a type. * Update CDClientManager.cpp * move to cpp?
30 lines
1.4 KiB
C++
30 lines
1.4 KiB
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
struct CDObjects {
|
|
uint32_t id; //!< The LOT of the object
|
|
std::string name; //!< The internal name of the object
|
|
UNUSED(uint32_t placeable); //!< Whether or not the object is placable
|
|
std::string type; //!< The object type
|
|
UNUSED(std::string description); //!< An internal description of the object
|
|
UNUSED(uint32_t localize); //!< Whether or not the object should localize
|
|
UNUSED(uint32_t npcTemplateID); //!< Something related to NPCs...
|
|
UNUSED(std::string displayName); //!< The display name of the object
|
|
float interactionDistance; //!< The interaction distance of the object
|
|
UNUSED(uint32_t nametag); //!< ???
|
|
UNUSED(std::string _internalNotes); //!< Some internal notes (rarely used)
|
|
UNUSED(uint32_t locStatus); //!< ???
|
|
UNUSED(std::string gate_version); //!< The gate version for the object
|
|
UNUSED(uint32_t HQ_valid); //!< Probably used for the Nexus HQ database on LEGOUniverse.com
|
|
};
|
|
|
|
class CDObjectsTable : public CDTable<CDObjectsTable, std::map<uint32_t, CDObjects>> {
|
|
public:
|
|
void LoadValuesFromDatabase();
|
|
// Gets an entry by ID
|
|
const CDObjects& GetByID(uint32_t LOT);
|
|
};
|
|
|