mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
b432a3f5da
Clean up macros more tomorrow Cleanup and optimize CDActivities table Remove unused include Further work on CDActivityRewards Update MasterServer.cpp Further animations work Activities still needs work for a better PK. fix type All of these replacements worked Create internal interface for animations Allows for user to just call GetAnimationTIme or PlayAnimation rather than passing in arbitrary true false statements
35 lines
852 B
C++
35 lines
852 B
C++
#pragma once
|
|
#include "CDTable.h"
|
|
#include <string>
|
|
|
|
struct CDPhysicsComponent {
|
|
int id;
|
|
bool bStatic;
|
|
std::string physicsAsset;
|
|
UNUSED_COLUMN(bool jump);
|
|
UNUSED_COLUMN(bool doublejump);
|
|
float speed;
|
|
UNUSED_COLUMN(float rotSpeed);
|
|
float playerHeight;
|
|
float playerRadius;
|
|
int pcShapeType;
|
|
int collisionGroup;
|
|
UNUSED_COLUMN(float airSpeed);
|
|
UNUSED_COLUMN(std::string boundaryAsset);
|
|
UNUSED_COLUMN(float jumpAirSpeed);
|
|
UNUSED_COLUMN(float friction);
|
|
UNUSED_COLUMN(std::string gravityVolumeAsset);
|
|
};
|
|
|
|
class CDPhysicsComponentTable : public CDTable<CDPhysicsComponentTable> {
|
|
public:
|
|
CDPhysicsComponentTable();
|
|
~CDPhysicsComponentTable();
|
|
|
|
static const std::string GetTableName() { return "PhysicsComponent"; };
|
|
CDPhysicsComponent* GetByID(unsigned int componentID);
|
|
|
|
private:
|
|
std::map<unsigned int, CDPhysicsComponent*> m_entries;
|
|
};
|