Difference between revisions of "VisionaireObject Commands"

From The Official Visionaire Studio: Adventure Game Engine Wiki
 
(6 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
|-
 
|-
 
| [[VisionaireObject Command: clearLink|clearLink]]
 
| [[VisionaireObject Command: clearLink|clearLink]]
|
+
| Removes a link from the VisionaireObject.
 
|-
 
|-
 
| [[VisionaireObject Command: create|create]]
 
| [[VisionaireObject Command: create|create]]
Line 21: Line 21:
 
|-
 
|-
 
| [[VisionaireObject Command: getBool|getBool]]
 
| [[VisionaireObject Command: getBool|getBool]]
|
+
| Returns the boolean value of a VisionaireObject field.
 +
|-
 +
| [[VisionaireObject Command: getFloat|getFloat]]
 +
| Returns the decimal value of a VisionaireObject field.
 
|-
 
|-
 
| [[VisionaireObject Command: getFloats|getFloats]]
 
| [[VisionaireObject Command: getFloats|getFloats]]
|
+
| Returns a table containing multiple float (decimal) values.
 
|-
 
|-
| [[VisionaireObject Command: getFloat|getFloat]]
+
| [[VisionaireObject Command: getId|getId]]
|
+
| Returns a table containing the internal id of the VisionaireObject and the id of the table it belongs to.
 
|-
 
|-
| [[VisionaireObject Command: getId|getId]]
+
| [[VisionaireObject Command: getInt|getInt]]
|
+
| Returns the integer value of a VisionaireObject field.
 
|-
 
|-
 
| [[VisionaireObject Command: getInts|getInts]]
 
| [[VisionaireObject Command: getInts|getInts]]
|
+
| Returns a table containing multiple integer values.
 
|-
 
|-
| [[VisionaireObject Command: getInt|getInt]]
+
| [[VisionaireObject Command: getLink|getLink]]
|
+
| Returns the VisionaireObject which is linked in a VisionaireObject field.
 
|-
 
|-
 
| [[VisionaireObject Command: getLinks|getLinks]]
 
| [[VisionaireObject Command: getLinks|getLinks]]
|
+
| Returns a table containing multiple VisionaireObjects.
|-
 
| [[VisionaireObject Command: getLink|getLink]]
 
|
 
 
|-
 
|-
 
| [[VisionaireObject Command: getName|getName]]
 
| [[VisionaireObject Command: getName|getName]]
|
+
| Returns the internal name of the VisionaireObject.
 
|-
 
|-
 
| [[VisionaireObject Command: getObject|getObject]]
 
| [[VisionaireObject Command: getObject|getObject]]
Line 51: Line 51:
 
|-
 
|-
 
| [[VisionaireObject Command: getParent|getParent]]
 
| [[VisionaireObject Command: getParent|getParent]]
|
+
| Returns the parent object of the VisionaireObject.
 +
|-
 +
| [[VisionaireObject Command: getPath|getPath]]
 +
| Returns the path to a media file, linked in a VisionaireObject field.
 
|-
 
|-
 
| [[VisionaireObject Command: getPaths|getPaths]]
 
| [[VisionaireObject Command: getPaths|getPaths]]
|
+
| Returns a table containing multiple paths to media files.
 
|-
 
|-
| [[VisionaireObject Command: getPath|getPath]]
+
| [[VisionaireObject Command: getPoint|getPoint]]
|
+
| Returns the point values of a VisionaireObject field.
 
|-
 
|-
 
| [[VisionaireObject Command: getPoints|getPoints]]
 
| [[VisionaireObject Command: getPoints|getPoints]]
|
+
| Returns a table containing multiple point values.
 
|-
 
|-
| [[VisionaireObject Command: getPoint|getPoint]]
+
| [[VisionaireObject Command: getRect|getRect]]
|
+
| Returns the rectangle values of a VisionaireObject field.
 
|-
 
|-
 
| [[VisionaireObject Command: getRects|getRects]]
 
| [[VisionaireObject Command: getRects|getRects]]
|
+
| Returns a table containing multiple rectangle values.
 
|-
 
|-
| [[VisionaireObject Command: getRect|getRect]]
+
| [[VisionaireObject Command: getSprite|getSprite]]
|
+
| Returns the sprite values of a VisionaireObject field.
 
|-
 
|-
 
| [[VisionaireObject Command: getSprites|getSprites]]
 
| [[VisionaireObject Command: getSprites|getSprites]]
|
+
| Returns a table containing multiple sprite values.
|-
 
| [[VisionaireObject Command: getSprite|getSprite]]
 
|
 
 
|-
 
|-
 
| [[VisionaireObject Command: getStr|getStr]]
 
| [[VisionaireObject Command: getStr|getStr]]
|
+
| Returns the string value of a VisionaireObject field.
 
|-
 
|-
 
| [[VisionaireObject Command: getTextStr|getTextStr]]
 
| [[VisionaireObject Command: getTextStr|getTextStr]]
Line 99: Line 99:
 
|-
 
|-
 
| [[VisionaireObject Command: setName|setName]]
 
| [[VisionaireObject Command: setName|setName]]
|
+
| Sets the internal name of the VisionaireObject.
 
|-
 
|-
 
| [[VisionaireObject Command: setTextStr|setTextStr]]
 
| [[VisionaireObject Command: setTextStr|setTextStr]]
Line 118: Line 118:
 
! style="width:10%" | Type
 
! style="width:10%" | Type
 
! Description
 
! Description
 +
|-
 +
| '''empty'''
 +
| boolean
 +
| True if the object is an emptyObject (read-only).
 
|-
 
|-
 
| '''id'''
 
| '''id'''
| int
+
| integer
 
| The internal id of the object (read-only).
 
| The internal id of the object (read-only).
 
|-
 
|-
 
| '''name'''
 
| '''name'''
 
| string
 
| string
| The internal name of the object as defined in the editor (read-only). Not to be confused with the "Name" property (with capitalized "N") which is available for some objects and contains the multi-language object name used in the game.
+
| The internal name of the object as defined in the editor (read-only). Not to be confused with the "Name" property (with capitalized "N") which is available for some objects and contains the multi-language object name used in the game.<br><br>''Although this field is read-only, the internal name can be changed with the [[VisionaireObject Command: setName|setName]] method.''
 
|-
 
|-
 
| '''parent'''
 
| '''parent'''
 
| TVisObj
 
| TVisObj
| Returns the parent object (read-only).
+
| The parent object (read-only).
 
|-
 
|-
 
| '''tableId'''
 
| '''tableId'''
| int
+
| integer
 
| The id of the data structure table the object is part of (read-only).
 
| The id of the data structure table the object is part of (read-only).
 
|-
 
|-

Latest revision as of 13:49, 13 September 2023

This is a list of methods and fields supported on a Visionaire Object (TVisObj).

Methods

Function Name Description
clearLink Removes a link from the VisionaireObject.
create
debug
duplicate
getBool Returns the boolean value of a VisionaireObject field.
getFloat Returns the decimal value of a VisionaireObject field.
getFloats Returns a table containing multiple float (decimal) values.
getId Returns a table containing the internal id of the VisionaireObject and the id of the table it belongs to.
getInt Returns the integer value of a VisionaireObject field.
getInts Returns a table containing multiple integer values.
getLink Returns the VisionaireObject which is linked in a VisionaireObject field.
getLinks Returns a table containing multiple VisionaireObjects.
getName Returns the internal name of the VisionaireObject.
getObject
getParent Returns the parent object of the VisionaireObject.
getPath Returns the path to a media file, linked in a VisionaireObject field.
getPaths Returns a table containing multiple paths to media files.
getPoint Returns the point values of a VisionaireObject field.
getPoints Returns a table containing multiple point values.
getRect Returns the rectangle values of a VisionaireObject field.
getRects Returns a table containing multiple rectangle values.
getSprite Returns the sprite values of a VisionaireObject field.
getSprites Returns a table containing multiple sprite values.
getStr Returns the string value of a VisionaireObject field.
getTextStr
getTexts
info
isAnyObject
isEmpty
remove
setName Sets the internal name of the VisionaireObject.
setTextStr
setValue
to


Fields

Field Name Type Description
empty boolean True if the object is an emptyObject (read-only).
id integer The internal id of the object (read-only).
name string The internal name of the object as defined in the editor (read-only). Not to be confused with the "Name" property (with capitalized "N") which is available for some objects and contains the multi-language object name used in the game.

Although this field is read-only, the internal name can be changed with the setName method.
parent TVisObj The parent object (read-only).
tableId integer The id of the data structure table the object is part of (read-only).
property mixed All properties/fields of a VisionaireObject are available through their names.