2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
#include "CDTable.h"
|
2024-03-07 05:45:24 +00:00
|
|
|
#include <cstdint>
|
2021-12-05 17:54:36 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
struct CDPhysicsComponent {
|
2024-01-09 07:54:14 +00:00
|
|
|
int32_t id;
|
2021-12-05 17:54:36 +00:00
|
|
|
bool bStatic;
|
|
|
|
std::string physicsAsset;
|
|
|
|
UNUSED(bool jump);
|
2024-03-07 05:45:24 +00:00
|
|
|
UNUSED(bool doubleJump);
|
2021-12-05 17:54:36 +00:00
|
|
|
float speed;
|
|
|
|
UNUSED(float rotSpeed);
|
|
|
|
float playerHeight;
|
|
|
|
float playerRadius;
|
2024-01-09 07:54:14 +00:00
|
|
|
int32_t pcShapeType;
|
|
|
|
int32_t collisionGroup;
|
2021-12-05 17:54:36 +00:00
|
|
|
UNUSED(float airSpeed);
|
|
|
|
UNUSED(std::string boundaryAsset);
|
|
|
|
UNUSED(float jumpAirSpeed);
|
|
|
|
UNUSED(float friction);
|
|
|
|
UNUSED(std::string gravityVolumeAsset);
|
|
|
|
};
|
|
|
|
|
2024-02-09 13:37:58 +00:00
|
|
|
class CDPhysicsComponentTable : public CDTable<CDPhysicsComponentTable, std::map<uint32_t, CDPhysicsComponent>> {
|
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
|
|
|
static const std::string GetTableName() { return "PhysicsComponent"; };
|
2024-03-07 05:45:24 +00:00
|
|
|
CDPhysicsComponent* GetByID(const uint32_t componentID);
|
2022-07-28 13:39:57 +00:00
|
|
|
};
|