mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 04:08:20 +00:00
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
|
#ifndef __IPROPERTIESCONTENTS__H__
|
||
|
#define __IPROPERTIESCONTENTS__H__
|
||
|
|
||
|
#include <cstdint>
|
||
|
#include <string_view>
|
||
|
|
||
|
class IPropertyContents {
|
||
|
public:
|
||
|
struct Model {
|
||
|
inline bool operator==(const LWOOBJID& other) const noexcept {
|
||
|
return id == other;
|
||
|
}
|
||
|
|
||
|
NiPoint3 position;
|
||
|
NiQuaternion rotation;
|
||
|
LWOOBJID id{};
|
||
|
LOT lot{};
|
||
|
uint32_t ugcId{};
|
||
|
};
|
||
|
|
||
|
// Inserts a new UGC model into the database.
|
||
|
virtual void InsertNewUgcModel(
|
||
|
std::istringstream& sd0Data,
|
||
|
const uint32_t blueprintId,
|
||
|
const uint32_t accountId,
|
||
|
const uint32_t characterId) = 0;
|
||
|
|
||
|
// Get the property models for the given property id.
|
||
|
virtual std::vector<IPropertyContents::Model> GetPropertyModels(const LWOOBJID& propertyId) = 0;
|
||
|
|
||
|
// Insert a new property model into the database.
|
||
|
virtual void InsertNewPropertyModel(const LWOOBJID& propertyId, const IPropertyContents::Model& model, const std::string_view name) = 0;
|
||
|
|
||
|
// Update the model position and rotation for the given property id.
|
||
|
virtual void UpdateModelPositionRotation(const LWOOBJID& propertyId, const NiPoint3& position, const NiQuaternion& rotation) = 0;
|
||
|
|
||
|
// Remove the model for the given property id.
|
||
|
virtual void RemoveModel(const LWOOBJID& modelId) = 0;
|
||
|
};
|
||
|
#endif //!__IPROPERTIESCONTENTS__H__
|