Hi,
it is possible to create a class without a parent class.
Cause i need a very slim class. Even the UObject class is too big for me
Thanks in advance.
Cheers,
Hi,
it is possible to create a class without a parent class.
Cause i need a very slim class. Even the UObject class is too big for me
Thanks in advance.
Cheers,
Like this:
In ClassName.h file:
class RaidfireBrickClass
{
public:
//Constructor
RaidfireBrickClass();
//Destructor
~RaidfireBrickClass();
};
In ClassName.cpp file:
#include "RaidfireBrickClassPluginPrivatePCH.h"
#include "RaidfireBrickClass.h"
RaidfireBrickClass::RaidfireBrickClass()
{
//Constructor code
}
RaidfireBrickClass::~RaidfireBrickClass()
{
//Destructor code
}
Thanks for your reply.
I have created a simple plugin and put in your code. The compiler gave me a few errors.
Here is the plugin. It is very clear: [link text][2]
Ow, I’m sory, I have accidently mixed up C# and C++ syntaxes
the correct syntax is as follows:
RaidfireBrickClass.h
class RaidfireBrickClass
{
public:
RaidfireBrickClass();
~RaidfireBrickClass();
};
RaidfireBrickClass.cpp
#include "RaidfireBrickClassPluginPrivatePCH.h"
#include "RaidfireBrickClass.h"
RaidfireBrickClass::RaidfireBrickClass()
{
//Constructor code
}
RaidfireBrickClass::~RaidfireBrickClass()
{
//Destructor code
}
Btw, I have posted a question here Modules & Custom OnlineSubsystem any docs or tutorials? - Programming & Scripting - Unreal Engine Forums
…maybe you can help me with finding some documentation/tuorials for module/plugin creation?
Yes, the new syntax works. You have helped me a lot. Btw its is your lucky day too, cause i have the right answer for your question
Thank you I like Co-Op