OpenClonk
C4ScriptLibraries.h
Go to the documentation of this file.
1 /*
2 * OpenClonk, http://www.openclonk.org
3 *
4 * Copyright (c) 2018, The OpenClonk Team and contributors
5 *
6 * Distributed under the terms of the ISC license; see accompanying file
7 * "COPYING" for details.
8 *
9 * "Clonk" is a registered trademark of Matthes Bender, used with permission.
10 * See accompanying file "TRADEMARK" for details.
11 *
12 * To redistribute this file separately, substitute the full license texts
13 * for the above references.
14 */
15 
16 #ifndef INC_C4ScriptLibraries
17 #define INC_C4ScriptLibraries
18 
19 #include "script/C4PropList.h"
20 
22 {
23 public:
24  static void InstantiateAllLibraries(C4AulScriptEngine *engine);
25 
26 protected:
27  explicit C4ScriptLibrary(const char *name);
28  virtual void CreateFunctions() = 0;
29 
30 private:
31  void RegisterWithEngine(C4AulScriptEngine *engine);
32 };
33 
34 #endif
static void InstantiateAllLibraries(C4AulScriptEngine *engine)
virtual void CreateFunctions()=0
C4ScriptLibrary(const char *name)