Skip to content

Commit adf9612

Browse files
committed
Merge branch 'develop' of https://github.com/ArkGame/ArkGameFrame into develop
2 parents 72537c6 + 425bbdb commit adf9612

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*****************************************************************************
2+
// * This source file is part of ArkGameFrame *
3+
// * For the latest info, see https://github.com/ArkGame *
4+
// * *
5+
// * Copyright(c) 2013 - 2017 ArkGame authors. *
6+
// * *
7+
// * Licensed under the Apache License, Version 2.0 (the "License"); *
8+
// * you may not use this file except in compliance with the License. *
9+
// * You may obtain a copy of the License at *
10+
// * *
11+
// * http://www.apache.org/licenses/LICENSE-2.0 *
12+
// * *
13+
// * Unless required by applicable law or agreed to in writing, software *
14+
// * distributed under the License is distributed on an "AS IS" BASIS, *
15+
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
16+
// * See the License for the specific language governing permissions and *
17+
// * limitations under the License. *
18+
// * *
19+
// * *
20+
// * @file Tutorial1.cpp *
21+
// * @author Ark Game Tech *
22+
// * @date 2015-12-15 *
23+
// * @brief Tutorial1 *
24+
*****************************************************************************/
25+
#include "Tutorial1Plugin.h"
26+
#include "HelloWorld1.h"
27+
28+
#ifdef ARK_DYNAMIC_PLUGIN
29+
30+
ARK_EXPORT void DllStartPlugin(AFIPluginManager* pm)
31+
{
32+
33+
CREATE_PLUGIN(pm, Tutorial1Plugin)
34+
35+
};
36+
37+
ARK_EXPORT void DllStopPlugin(AFIPluginManager* pm)
38+
{
39+
DESTROY_PLUGIN(pm, Tutorial1Plugin)
40+
};
41+
42+
#endif
43+
//////////////////////////////////////////////////////////////////////////
44+
45+
const int Tutorial1Plugin::GetPluginVersion()
46+
{
47+
return 0;
48+
}
49+
50+
const std::string Tutorial1Plugin::GetPluginName()
51+
{
52+
return GET_CLASS_NAME(Tutorial1Plugin)
53+
}
54+
55+
void Tutorial1Plugin::Install()
56+
{
57+
REGISTER_MODULE(pPluginManager, HelloWorld1, HelloWorld1)
58+
}
59+
60+
void Tutorial1Plugin::Uninstall()
61+
{
62+
UNREGISTER_MODULE(pPluginManager, HelloWorld1, HelloWorld1)
63+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*****************************************************************************
2+
// * This source file is part of ArkGameFrame *
3+
// * For the latest info, see https://github.com/ArkGame *
4+
// * *
5+
// * Copyright(c) 2013 - 2017 ArkGame authors. *
6+
// * *
7+
// * Licensed under the Apache License, Version 2.0 (the "License"); *
8+
// * you may not use this file except in compliance with the License. *
9+
// * You may obtain a copy of the License at *
10+
// * *
11+
// * http://www.apache.org/licenses/LICENSE-2.0 *
12+
// * *
13+
// * Unless required by applicable law or agreed to in writing, software *
14+
// * distributed under the License is distributed on an "AS IS" BASIS, *
15+
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
16+
// * See the License for the specific language governing permissions and *
17+
// * limitations under the License. *
18+
// * *
19+
// * *
20+
// * @file Tutorial1.h *
21+
// * @author Ark Game Tech *
22+
// * @date 2015-12-15 *
23+
// * @brief Tutorial1 *
24+
*****************************************************************************/
25+
#ifndef NF_TUTORIAL1_H
26+
#define NF_TUTORIAL1_H
27+
28+
#include "SDK/Interface/AFIPlugin.h"
29+
#include "SDK/Interface/AFIPluginManager.h"
30+
31+
class Tutorial1Plugin : public AFIPlugin
32+
{
33+
public:
34+
Tutorial1Plugin(AFIPluginManager* p)
35+
{
36+
pPluginManager = p;
37+
}
38+
virtual const int GetPluginVersion();
39+
40+
virtual const std::string GetPluginName();
41+
42+
virtual void Install();
43+
44+
virtual void Uninstall();
45+
};
46+
#endif
47+

0 commit comments

Comments
 (0)