Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-05-02 19:09:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-02 19:09:06 +0400
commit40fc1d2af74257ee45ae1b5bf7564b3b5768eb80 (patch)
treed4f7617d842f69b8f75a036a4eef84962250ad25 /source/gameengine/GameLogic/SCA_PythonController.h
parent41f42099acba137bbc6411341819fa1c8cd6d769 (diff)
BGE PyController module type.
- Added support for any number of attributes, this means packages are supported automatically. so as well as "myModule.myFunc" you can do "myPackage.myModule.myFunc", nested packages work too. - pass the controller to the python function as an argument for functions that take 1 arg, this check is only done at startup so it wont slow things down. added support for
Diffstat (limited to 'source/gameengine/GameLogic/SCA_PythonController.h')
-rw-r--r--source/gameengine/GameLogic/SCA_PythonController.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/GameLogic/SCA_PythonController.h b/source/gameengine/GameLogic/SCA_PythonController.h
index 12307632b06..587e6264d8c 100644
--- a/source/gameengine/GameLogic/SCA_PythonController.h
+++ b/source/gameengine/GameLogic/SCA_PythonController.h
@@ -44,9 +44,11 @@ class SCA_PythonController : public SCA_IController
Py_Header;
struct _object * m_bytecode; /* SCA_PYEXEC_SCRIPT only */
PyObject* m_function; /* SCA_PYEXEC_MODULE only */
+ int m_function_argc;
bool m_bModified;
bool m_debug; /* use with SCA_PYEXEC_MODULE for reloading every logic run */
int m_mode;
+
protected:
STR_String m_scriptText;