VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
luaScriptInterfaceExtension.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <map>
13 #include <list>
14 
15 struct lua_State;
16 class DtLocalObject;
17 class DtString;
18 
32 {
33 public:
35 
37  typedef DtLuaScriptInterfaceExtension* (*CreatorFcn)(void* usr);
38  typedef std::pair<DtLuaScriptInterfaceExtension::CreatorFcn, void*> CreatorUserPair;
39 
42  virtual void bindLuaFunctions(DtLocalObject*, const DtString& scriptId,
43  lua_State*) = 0;
44 
46  virtual void cleanup() {};
47 };
48 
std::pair< DtLuaScriptInterfaceExtension::CreatorFcn, void * > CreatorUserPair
Definition: luaScriptInterfaceExtension.h:38
virtual void cleanup()
Called to cleanup any state.
Definition: luaScriptInterfaceExtension.h:46
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Subclass this class in order to provide extensions to the LUA interface. In order to be considered a ...
Definition: luaScriptInterfaceExtension.h:31
virtual ~DtLuaScriptInterfaceExtension()
Definition: luaScriptInterfaceExtension.h:34
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)