My Project
INPL.h
1 #pragma once
2 //-----------------------------------------------------------------------------
3 // Copyright (C) 2007 - 2010 ParaEngine Corporation, All Rights Reserved.
4 // Date: 2010.2
5 // Description: API for NPL interface
6 //-----------------------------------------------------------------------------
7 #include "baseinterface.h"
8 
9 namespace NPL
10 {
11  class INPLRuntime;
18  {
19  public:
21  virtual INPLRuntime* GetNPLRuntime() = 0;
22 
26  virtual void FrameMove(float fElapsedTime) = 0;
27 
32  virtual void SetGameLoop(const char* scriptName) = 0;
33 
35  virtual void SetGameLoopInterval(float fInterval) = 0;
36 
42  virtual void AddNPLCommand(const char* sCommand, int nLength=0) = 0;
43 
49  virtual int StartService(const char* pCommandLine) = 0;
50 
54  virtual void StopService() = 0;
55 
80  virtual int activate(const char * sNPLFilename, const char* sCode, int nCodeLength = 0) = 0;
81 
82  };
83 }
NPL root interface It can be used by plug-in dlls to access the NPL interface.
Definition: INPL.h:17
define this to enable debugging of NPL code in visual studio
Definition: INPL.h:9
The base class for interfaces in ParaEngine.
Definition: baseinterface.h:29
virtual void SetGameLoopInterval(float fInterval)=0
set the game loop activation interval.
virtual void AddNPLCommand(const char *sCommand, int nLength=0)=0
add an NPL command code to the (main state's) pending list to be processed in the next frame move cyc...
virtual void SetGameLoop(const char *scriptName)=0
reset the game loop script.
virtual INPLRuntime * GetNPLRuntime()=0
the core NPL runtime interface.
virtual int activate(const char *sNPLFilename, const char *sCode, int nCodeLength=0)=0
[thread safe] activate the specified file.
virtual void FrameMove(float fElapsedTime)=0
if one wants to Run NPL runtime in the main thread.
virtual int StartService(const char *pCommandLine)=0
start the NPL service.
NPL Runtime Environment interface.
Definition: INPLRuntime.h:30
virtual void StopService()=0
stop the NPL service.