2016-02-27 10:57:10 +01:00
|
|
|
#ifndef _SQSAMPLE_COMMON_HPP_
|
|
|
|
#define _SQSAMPLE_COMMON_HPP_
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2016-06-03 20:31:58 +02:00
|
|
|
#include "Base/Utility.hpp"
|
2016-04-14 02:08:35 +02:00
|
|
|
|
2016-02-27 10:57:10 +01:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* SOFTWARE INFORMATION
|
|
|
|
*/
|
|
|
|
#define SQSAMPLE_NAME "Squirrel Sample Module"
|
|
|
|
#define SQSAMPLE_AUTHOR "Sandu Liviu Catalin (S.L.C)"
|
2018-01-28 22:13:41 +01:00
|
|
|
#define SQSAMPLE_COPYRIGHT "Copyright (C) 2018 Sandu Liviu Catalin"
|
2016-02-27 10:57:10 +01:00
|
|
|
#define SQSAMPLE_HOST_NAME "SqModSampleHost"
|
|
|
|
#define SQSAMPLE_VERSION 001
|
|
|
|
#define SQSAMPLE_VERSION_STR "0.0.1"
|
|
|
|
#define SQSAMPLE_VERSION_MAJOR 0
|
|
|
|
#define SQSAMPLE_VERSION_MINOR 0
|
|
|
|
#define SQSAMPLE_VERSION_PATCH 1
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-06-03 20:31:58 +02:00
|
|
|
* Sample Plug-in API
|
2016-02-27 10:57:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
int SampleFunction();
|
|
|
|
|
|
|
|
class SampleType
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
int m_MyVal;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
int mMyNum;
|
|
|
|
|
|
|
|
SampleType()
|
|
|
|
: m_MyVal(0), mMyNum(0)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
SampleType(int num)
|
|
|
|
: m_MyVal(num * 2), mMyNum(num)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
int GetMyVal() const
|
|
|
|
{
|
|
|
|
return m_MyVal;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SetMyVal(int val)
|
|
|
|
{
|
|
|
|
m_MyVal = val;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SampleMethod() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
|
|
|
#endif // _SQSAMPLE_COMMON_HPP_
|