|
| 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 | +} |
0 commit comments