Skip to content

Commit 33bfd25

Browse files
author
nitrocaster
committed
Turn structs into classes.
1 parent 29889aa commit 33bfd25

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/utils/xrAI/server_entity_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# include "factory_api.h"
1616
#endif
1717

18-
struct ISE_Abstract;
18+
class ISE_Abstract;
1919

2020
CServerEntityWrapper::~CServerEntityWrapper ()
2121
{

src/xrGame/server_entity_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# include "factory_api.h"
1616
#endif
1717

18-
struct ISE_Abstract;
18+
class ISE_Abstract;
1919

2020
CServerEntityWrapper::~CServerEntityWrapper ()
2121
{

src/xrServerEntities/xrServer_Objects_Abstract.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,25 @@ class CSE_Motion
9090
virtual CSE_Motion* __stdcall motion () = 0;
9191
};
9292

93-
struct ISE_AbstractLEOwner {
93+
class ISE_AbstractLEOwner
94+
{
95+
public:
9496
virtual ~ISE_AbstractLEOwner() = 0;
9597
virtual void __stdcall get_bone_xform (LPCSTR name, Fmatrix& xform) = 0;
9698
};
9799

98100
IC ISE_AbstractLEOwner::~ISE_AbstractLEOwner() {}
99101

100102
#pragma pack(push,1)
101-
struct visual_data {
103+
class visual_data
104+
{
105+
public:
102106
Fmatrix matrix;
103107
CSE_Visual *visual;
104-
}; // struct visual_data
108+
};
105109
#pragma pack(pop)
106110

107-
struct ISE_Abstract {
111+
class ISE_Abstract {
108112
public:
109113
enum {
110114
flUpdateProperties = u32(1 << 0),

0 commit comments

Comments
 (0)