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 
53  virtual void cleanup(lua_State*) = 0;
54 
58  virtual void clearBackingPointer(void* /*usr*/) {}
59 };
60 
std::pair< DtLuaScriptInterfaceExtension::CreatorFcn, void * > CreatorUserPair
Definition: luaScriptInterfaceExtension.h:38
virtual void clearBackingPointer(void *)
Called when the object that backs this extension is about to be destroyed. Implementations should nul...
Definition: luaScriptInterfaceExtension.h:58
#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 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)