mirror of https://github.com/axmolengine/axmol.git
parent
ff8d2cc20f
commit
86f5d4cff8
|
@ -72,7 +72,7 @@ public:
|
|||
|
||||
/**
|
||||
@brief Call of Java static void method
|
||||
@report error if the condition is not satisfied
|
||||
@if no such method will log error
|
||||
*/
|
||||
template <typename... Ts>
|
||||
static void callStaticVoidMethod(const std::string& className,
|
||||
|
@ -114,7 +114,7 @@ public:
|
|||
|
||||
/**
|
||||
@brief Call of Java static int method
|
||||
@return value from Java static int method if there are proper JniMethodInfo; otherwise false.
|
||||
@return value from Java static int method if there are proper JniMethodInfo; otherwise 0.
|
||||
*/
|
||||
template <typename... Ts>
|
||||
static int callStaticIntMethod(const std::string& className,
|
||||
|
@ -136,7 +136,7 @@ public:
|
|||
|
||||
/**
|
||||
@brief Call of Java static float method
|
||||
@return value from Java static float method if there are proper JniMethodInfo; otherwise false.
|
||||
@return value from Java static float method if there are proper JniMethodInfo; otherwise 0.
|
||||
*/
|
||||
template <typename... Ts>
|
||||
static float callStaticFloatMethod(const std::string& className,
|
||||
|
@ -189,7 +189,7 @@ public:
|
|||
|
||||
/**
|
||||
@brief Call of Java static Vec3 method
|
||||
@return JniMethodInfo of Vec3 type if there are proper JniMethodInfo; otherwise garbage Vec3.
|
||||
@return JniMethodInfo of Vec3 type if there are proper JniMethodInfo; otherwise Vec3(0, 0, 0).
|
||||
*/
|
||||
template <typename... Ts>
|
||||
static Vec3 callStaticVec3Method(const std::string& className,
|
||||
|
@ -219,7 +219,7 @@ public:
|
|||
|
||||
/**
|
||||
@brief Call of Java static double method
|
||||
@return value from Java static double method if there are proper JniMethodInfo; otherwise false.
|
||||
@return value from Java static double method if there are proper JniMethodInfo; otherwise 0.
|
||||
*/
|
||||
template <typename... Ts>
|
||||
static double callStaticDoubleMethod(const std::string& className,
|
||||
|
@ -241,7 +241,7 @@ public:
|
|||
|
||||
/**
|
||||
@brief Call of Java static string method
|
||||
@return JniMethodInfo of string type if there are proper JniMethodInfo; otherwise garbage of string type.
|
||||
@return JniMethodInfo of string type if there are proper JniMethodInfo; otherwise empty string.
|
||||
*/
|
||||
template <typename... Ts>
|
||||
static std::string callStaticStringMethod(const std::string& className,
|
||||
|
|
Loading…
Reference in New Issue