[DEV] add monk documentation

This commit is contained in:
Edouard DUPIN 2013-12-22 19:01:08 +01:00
parent 58596f179a
commit 015e748d5f
4 changed files with 19 additions and 9 deletions

View File

@ -127,7 +127,7 @@ void ege::Environement::addCreator(const std::string& _type, ege::createElement_
getHachTableCreating().add(_type, _creator);
}
ege::ElementGame* ege::Environement::createElement(const std::string& _type, bool _autoAddElement, ege::property_te _property, void* _value) {
ege::ElementGame* ege::Environement::createElement(const std::string& _type, bool _autoAddElement, enum ege::property _property, void* _value) {
if (false == getHachTableCreating().exist(_type)) {
EGE_ERROR("Request creating of an type that is not known '" << _type << "'");
return NULL;

View File

@ -26,14 +26,14 @@ class btDynamicsWorld;
#include <ege/ParticuleEngine.h>
namespace ege {
typedef enum {
enum property {
typeNone, //!< no element property
typeString, //!< type element static_cast<std::string*>(xxxxxxx)
typeJson, //!< type element static_cast<ejson::Value*>(xxxxxxx)
typeXml, //!< type element static_cast<exml::Node*>(xxxxxxx)
typeUser1, //!< user type 1
typeUser2 //!< User type 2
} property_te;
};
class ElementGame;
class Environement;
typedef ege::ElementGame* (*createElement_tf)(ege::Environement& _env);
@ -88,7 +88,7 @@ namespace ege {
* @return NULL if an error occured OR the pointer on the element and it is already added on the system.
* @note Pointer is return in case of setting properties on it...
*/
ege::ElementGame* createElement(const std::string& _type, bool _autoAddElement=true, ege::property_te _property=ege::typeNone, void* _value=NULL);
ege::ElementGame* createElement(const std::string& _type, bool _autoAddElement=true, enum ege::property _property=ege::typeNone, void* _value=NULL);
ege::ElementGame* createElement(const std::string& _type, std::string& _description, bool _autoAddElement=true);
ege::ElementGame* createElement(const std::string& _type, ejson::Value* _value, bool _autoAddElement=true);
ege::ElementGame* createElement(const std::string& _type, exml::Node* _node, bool _autoAddElement=true);

View File

@ -5,11 +5,6 @@ import lutinTools
def Create(target):
# module name is 'edn' and type binary.
myModule = lutinModule.module(__file__, 'ege', 'LIBRARY')
# enable doculentation :
myModule.doc_enable()
myModule.documentation.set_website("http://HeeroYui.github.io/ege/")
myModule.documentation.set_path(lutinTools.GetCurrentPath(__file__) + "/ege/")
myModule.documentation.set_external_link(['ewol', 'bullet'])
# add the file to compile:
myModule.AddSrcFile([

15
monk_ege.py Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/python
import monkModule as module
import monkTools as tools
def create():
# module name is 'edn' and type binary.
myModule = module.Module(__file__, 'ege', 'LIBRARY')
# enable doculentation :
myModule.set_website("http://heeroyui.github.io/ege/")
myModule.set_path(tools.get_current_path(__file__) + "/ege/")
# add the currrent module at the
return myModule
def get_desc():
return ""