|
@@ -605,8 +605,8 @@ void Component::addDependency(StringTableEntry name)
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
// Console Methods
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
-ConsoleMethod(Component, beginGroup, void, 3, 3, "(groupName)\n"
|
|
|
- "Starts the grouping for following fields being added to be grouped into\n"
|
|
|
+DefineEngineMethod(Component, beginGroup, void, (String groupName),,
|
|
|
+ "@brief Starts the grouping for following fields being added to be grouped into\n"
|
|
|
"@param groupName The name of this group\n"
|
|
|
"@param desc The Description of this field\n"
|
|
|
"@param type The DataType for this field (default, int, float, Point2F, bool, enum, Object, keybind, color)\n"
|
|
@@ -616,11 +616,11 @@ ConsoleMethod(Component, beginGroup, void, 3, 3, "(groupName)\n"
|
|
|
"-object: the T2D object type that are valid choices for the field. The object types observe inheritance, so if you have a t2dSceneObject field you will be able to choose t2dStaticSrpites, t2dAnimatedSprites, etc.\n"
|
|
|
"@return Nothing\n")
|
|
|
{
|
|
|
- object->beginFieldGroup(argv[2]);
|
|
|
+ object->beginFieldGroup(groupName);
|
|
|
}
|
|
|
|
|
|
-ConsoleMethod(Component, endGroup, void, 2, 2, "()\n"
|
|
|
- "Ends the grouping for prior fields being added to be grouped into\n"
|
|
|
+DefineEngineMethod(Component, endGroup, void, (),,
|
|
|
+ "@brief Ends the grouping for prior fields being added to be grouped into\n"
|
|
|
"@param groupName The name of this group\n"
|
|
|
"@param desc The Description of this field\n"
|
|
|
"@param type The DataType for this field (default, int, float, Point2F, bool, enum, Object, keybind, color)\n"
|
|
@@ -641,7 +641,8 @@ DefineEngineMethod(Component, addComponentField, void, (String fieldName, String
|
|
|
object->addComponentField(fieldName, fieldDesc, fieldType, defValue, userData, hidden);
|
|
|
}
|
|
|
|
|
|
-ConsoleMethod(Component, getComponentFieldCount, S32, 2, 2, "() - Get the number of ComponentField's on this object\n"
|
|
|
+DefineEngineMethod(Component, getComponentFieldCount, S32, (),,
|
|
|
+ "@brief Get the number of ComponentField's on this object\n"
|
|
|
"@return Returns the number of BehaviorFields as a nonnegative integer\n")
|
|
|
{
|
|
|
return object->getComponentFieldCount();
|
|
@@ -650,11 +651,12 @@ ConsoleMethod(Component, getComponentFieldCount, S32, 2, 2, "() - Get the number
|
|
|
// [tom, 1/12/2007] Field accessors split into multiple methods to allow space
|
|
|
// for long descriptions and type data.
|
|
|
|
|
|
-ConsoleMethod(Component, getComponentField, const char *, 3, 3, "(int index) - Gets a Tab-Delimited list of information about a ComponentField specified by Index\n"
|
|
|
+DefineEngineMethod(Component, getComponentField, const char *, (S32 index),,
|
|
|
+ "@brief Gets a Tab-Delimited list of information about a ComponentField specified by Index\n"
|
|
|
"@param index The index of the behavior\n"
|
|
|
"@return FieldName, FieldType and FieldDefaultValue, each separated by a TAB character.\n")
|
|
|
{
|
|
|
- ComponentField *field = object->getComponentField(dAtoi(argv[2]));
|
|
|
+ ComponentField *field = object->getComponentField(index);
|
|
|
if (field == NULL)
|
|
|
return "";
|
|
|
|
|
@@ -664,11 +666,12 @@ ConsoleMethod(Component, getComponentField, const char *, 3, 3, "(int index) - G
|
|
|
return buf;
|
|
|
}
|
|
|
|
|
|
-ConsoleMethod(Component, setComponentield, const char *, 3, 3, "(int index) - Gets a Tab-Delimited list of information about a ComponentField specified by Index\n"
|
|
|
+DefineEngineMethod(Component, setComponentield, const char *, (S32 index),,
|
|
|
+ "@brief Gets a Tab-Delimited list of information about a ComponentField specified by Index\n"
|
|
|
"@param index The index of the behavior\n"
|
|
|
"@return FieldName, FieldType and FieldDefaultValue, each separated by a TAB character.\n")
|
|
|
{
|
|
|
- ComponentField *field = object->getComponentField(dAtoi(argv[2]));
|
|
|
+ ComponentField *field = object->getComponentField(index);
|
|
|
if (field == NULL)
|
|
|
return "";
|
|
|
|
|
@@ -689,36 +692,40 @@ DefineEngineMethod(Component, getComponentFieldType, const char *, (String field
|
|
|
return field->mFieldTypeName;;
|
|
|
}
|
|
|
|
|
|
-ConsoleMethod(Component, getBehaviorFieldUserData, const char *, 3, 3, "(int index) - Gets the UserData associated with a field by index in the field list\n"
|
|
|
+DefineEngineMethod(Component, getBehaviorFieldUserData, const char *, (S32 index),,
|
|
|
+ "@brief Gets the UserData associated with a field by index in the field list\n"
|
|
|
"@param index The index of the behavior\n"
|
|
|
"@return Returns a string representing the user data of this field\n")
|
|
|
{
|
|
|
- ComponentField *field = object->getComponentField(dAtoi(argv[2]));
|
|
|
+ ComponentField *field = object->getComponentField(index);
|
|
|
if (field == NULL)
|
|
|
return "";
|
|
|
|
|
|
return field->mUserData;
|
|
|
}
|
|
|
|
|
|
-ConsoleMethod(Component, getComponentFieldDescription, const char *, 3, 3, "(int index) - Gets a field description by index\n"
|
|
|
+DefineEngineMethod(Component, getComponentFieldDescription, const char *, (S32 index),,
|
|
|
+ "@brief Gets a field description by index\n"
|
|
|
"@param index The index of the behavior\n"
|
|
|
"@return Returns a string representing the description of this field\n")
|
|
|
{
|
|
|
- ComponentField *field = object->getComponentField(dAtoi(argv[2]));
|
|
|
+ ComponentField *field = object->getComponentField(index);
|
|
|
if (field == NULL)
|
|
|
return "";
|
|
|
|
|
|
return field->mFieldDescription ? field->mFieldDescription : "";
|
|
|
}
|
|
|
|
|
|
-ConsoleMethod(Component, addDependency, void, 3, 3, "(string behaviorName) - Gets a field description by index\n"
|
|
|
+DefineEngineMethod(Component, addDependency, void, (String behaviorName),,
|
|
|
+ "@brief Gets a field description by index\n"
|
|
|
"@param index The index of the behavior\n"
|
|
|
"@return Returns a string representing the description of this field\n")
|
|
|
{
|
|
|
- object->addDependency(argv[2]);
|
|
|
+ object->addDependency(behaviorName);
|
|
|
}
|
|
|
|
|
|
-ConsoleMethod(Component, setDirty, void, 2, 2, "() - Gets a field description by index\n"
|
|
|
+DefineEngineMethod(Component, setDirty, void, (),,
|
|
|
+ "@brief Gets a field description by index\n"
|
|
|
"@param index The index of the behavior\n"
|
|
|
"@return Returns a string representing the description of this field\n")
|
|
|
{
|