[DEV] add monk documentation
This commit is contained in:
parent
58596f179a
commit
015e748d5f
@ -127,7 +127,7 @@ void ege::Environement::addCreator(const std::string& _type, ege::createElement_
|
|||||||
getHachTableCreating().add(_type, _creator);
|
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)) {
|
if (false == getHachTableCreating().exist(_type)) {
|
||||||
EGE_ERROR("Request creating of an type that is not known '" << _type << "'");
|
EGE_ERROR("Request creating of an type that is not known '" << _type << "'");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -26,14 +26,14 @@ class btDynamicsWorld;
|
|||||||
#include <ege/ParticuleEngine.h>
|
#include <ege/ParticuleEngine.h>
|
||||||
|
|
||||||
namespace ege {
|
namespace ege {
|
||||||
typedef enum {
|
enum property {
|
||||||
typeNone, //!< no element property
|
typeNone, //!< no element property
|
||||||
typeString, //!< type element static_cast<std::string*>(xxxxxxx)
|
typeString, //!< type element static_cast<std::string*>(xxxxxxx)
|
||||||
typeJson, //!< type element static_cast<ejson::Value*>(xxxxxxx)
|
typeJson, //!< type element static_cast<ejson::Value*>(xxxxxxx)
|
||||||
typeXml, //!< type element static_cast<exml::Node*>(xxxxxxx)
|
typeXml, //!< type element static_cast<exml::Node*>(xxxxxxx)
|
||||||
typeUser1, //!< user type 1
|
typeUser1, //!< user type 1
|
||||||
typeUser2 //!< User type 2
|
typeUser2 //!< User type 2
|
||||||
} property_te;
|
};
|
||||||
class ElementGame;
|
class ElementGame;
|
||||||
class Environement;
|
class Environement;
|
||||||
typedef ege::ElementGame* (*createElement_tf)(ege::Environement& _env);
|
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.
|
* @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...
|
* @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, 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, ejson::Value* _value, bool _autoAddElement=true);
|
||||||
ege::ElementGame* createElement(const std::string& _type, exml::Node* _node, bool _autoAddElement=true);
|
ege::ElementGame* createElement(const std::string& _type, exml::Node* _node, bool _autoAddElement=true);
|
||||||
|
@ -5,11 +5,6 @@ import lutinTools
|
|||||||
def Create(target):
|
def Create(target):
|
||||||
# module name is 'edn' and type binary.
|
# module name is 'edn' and type binary.
|
||||||
myModule = lutinModule.module(__file__, 'ege', 'LIBRARY')
|
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:
|
# add the file to compile:
|
||||||
myModule.AddSrcFile([
|
myModule.AddSrcFile([
|
||||||
|
15
monk_ege.py
Normal file
15
monk_ege.py
Normal 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 ""
|
Loading…
x
Reference in New Issue
Block a user