|
|
@@ -22,7 +22,9 @@ namespace ToolCore
|
|
|
JSBPrimitiveType* ptype = ftype->type_->asPrimitiveType();
|
|
|
if (ptype->kind_ == JSBPrimitiveType::Bool)
|
|
|
scriptType = "Bool";
|
|
|
- if (ptype->kind_ == JSBPrimitiveType::Int)
|
|
|
+ if (ptype->kind_ == JSBPrimitiveType::Int && ptype->isUnsigned_)
|
|
|
+ scriptType = "UInt";
|
|
|
+ else if (ptype->kind_ == JSBPrimitiveType::Int)
|
|
|
scriptType = "Int";
|
|
|
if (ptype->kind_ == JSBPrimitiveType::Float)
|
|
|
scriptType = "Float";
|
|
|
@@ -34,9 +36,6 @@ namespace ToolCore
|
|
|
if (ftype->type_->asEnumType())
|
|
|
scriptType = ftype->type_->asEnumType()->enum_->GetName();
|
|
|
|
|
|
- if (ftype->type_->asEnumType())
|
|
|
- scriptType = ftype->type_->asEnumType()->enum_->GetName();
|
|
|
-
|
|
|
if (ftype->type_->asClassType())
|
|
|
{
|
|
|
JSBClass* klass = ftype->type_->asClassType()->class_;
|