Skip to content

Commit

Permalink
Turn structs into classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 8, 2015
1 parent 29889aa commit 33bfd25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/xrAI/server_entity_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# include "factory_api.h"
#endif

struct ISE_Abstract;
class ISE_Abstract;

CServerEntityWrapper::~CServerEntityWrapper ()
{
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/server_entity_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# include "factory_api.h"
#endif

struct ISE_Abstract;
class ISE_Abstract;

CServerEntityWrapper::~CServerEntityWrapper ()
{
Expand Down
12 changes: 8 additions & 4 deletions src/xrServerEntities/xrServer_Objects_Abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,25 @@ class CSE_Motion
virtual CSE_Motion* __stdcall motion () = 0;
};

struct ISE_AbstractLEOwner {
class ISE_AbstractLEOwner
{
public:
virtual ~ISE_AbstractLEOwner() = 0;
virtual void __stdcall get_bone_xform (LPCSTR name, Fmatrix& xform) = 0;
};

IC ISE_AbstractLEOwner::~ISE_AbstractLEOwner() {}

#pragma pack(push,1)
struct visual_data {
class visual_data
{
public:
Fmatrix matrix;
CSE_Visual *visual;
}; // struct visual_data
};
#pragma pack(pop)

struct ISE_Abstract {
class ISE_Abstract {
public:
enum {
flUpdateProperties = u32(1 << 0),
Expand Down

0 comments on commit 33bfd25

Please sign in to comment.