Difference between revisions of "VisionaireObject Commands"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "This is a list of methods and fields supported on a Visionaire Object (TVisObj). == Methods == {| class="ts" |- ! style="width:20%" | Function Name ! Description |- | Vis...")
 
 
(8 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
{| class="ts"
 
{| class="ts"
 
|-
 
|-
! style="width:20%" | Function Name  
+
! style="width:15%" | Function Name  
 
! Description
 
! Description
 
|-
 
|-
| [[VisionaireObject Command: isEmpty|isEmpty]]
+
| [[VisionaireObject Command: clearLink|clearLink]]
 +
| Removes a link from the VisionaireObject.
 +
|-
 +
| [[VisionaireObject Command: create|create]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: isAnyObject|isAnyObject]]
+
| [[VisionaireObject Command: debug|debug]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: getId|getId]]
+
| [[VisionaireObject Command: duplicate|duplicate]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: getParent|getParent]]
+
| [[VisionaireObject Command: getBool|getBool]]
|
+
| Returns the boolean value of a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: getObject|getObject]]
+
| [[VisionaireObject Command: getFloat|getFloat]]
|
+
| Returns the decimal value of a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: getName|getName]]
+
| [[VisionaireObject Command: getFloats|getFloats]]
|
+
| Returns a table containing multiple float (decimal) values.
 
|-
 
|-
| [[VisionaireObject Command: setName|setName]]
+
| [[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: setValue|setValue]]
+
| [[VisionaireObject Command: getInt|getInt]]
|
+
| Returns the integer value of a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: clearLink|clearLink]]
+
| [[VisionaireObject Command: getInts|getInts]]
|
+
| Returns a table containing multiple integer values.
 
|-
 
|-
| [[VisionaireObject Command: setTextStr|setTextStr]]
+
| [[VisionaireObject Command: getLink|getLink]]
|
+
| Returns the VisionaireObject which is linked in a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: getInt|getInt]]
+
| [[VisionaireObject Command: getLinks|getLinks]]
|
+
| Returns a table containing multiple VisionaireObjects.
 
|-
 
|-
| [[VisionaireObject Command: getFloat|getFloat]]
+
| [[VisionaireObject Command: getName|getName]]
|
+
| Returns the internal name of the VisionaireObject.
 
|-
 
|-
| [[VisionaireObject Command: getBool|getBool]]
+
| [[VisionaireObject Command: getObject|getObject]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: getStr|getStr]]
+
| [[VisionaireObject Command: getParent|getParent]]
|
+
| Returns the parent object of the VisionaireObject.
 
|-
 
|-
 
| [[VisionaireObject Command: getPath|getPath]]
 
| [[VisionaireObject Command: getPath|getPath]]
|
+
| Returns the path to a media file, linked in a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: getSprite|getSprite]]
+
| [[VisionaireObject Command: getPaths|getPaths]]
|
+
| Returns a table containing multiple paths to media files.
|-
 
| [[VisionaireObject Command: getRect|getRect]]
 
|
 
 
|-
 
|-
 
| [[VisionaireObject Command: getPoint|getPoint]]
 
| [[VisionaireObject Command: getPoint|getPoint]]
|
+
| Returns the point values of a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: getLink|getLink]]
+
| [[VisionaireObject Command: getPoints|getPoints]]
|
+
| Returns a table containing multiple point values.
 
|-
 
|-
| [[VisionaireObject Command: getLinks|getLinks]]
+
| [[VisionaireObject Command: getRect|getRect]]
|
+
| Returns the rectangle values of a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: debug|debug]]
+
| [[VisionaireObject Command: getRects|getRects]]
|
+
| Returns a table containing multiple rectangle values.
 
|-
 
|-
| [[VisionaireObject Command: getPoints|getPoints]]
+
| [[VisionaireObject Command: getSprite|getSprite]]
|
+
| Returns the sprite values of a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: getRects|getRects]]
+
| [[VisionaireObject Command: getSprites|getSprites]]
|
+
| Returns a table containing multiple sprite values.
 
|-
 
|-
| [[VisionaireObject Command: getSprites|getSprites]]
+
| [[VisionaireObject Command: getStr|getStr]]
|
+
| Returns the string value of a VisionaireObject field.
 
|-
 
|-
| [[VisionaireObject Command: getPaths|getPaths]]
+
| [[VisionaireObject Command: getTextStr|getTextStr]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: getInts|getInts]]
+
| [[VisionaireObject Command: getTexts|getTexts]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: getFloats|getFloats]]
+
| [[VisionaireObject Command: info|info]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: getTexts|getTexts]]
+
| [[VisionaireObject Command: isAnyObject|isAnyObject]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: getTextStr|getTextStr]]
+
| [[VisionaireObject Command: isEmpty|isEmpty]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: to|to]]
+
| [[VisionaireObject Command: remove|remove]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: duplicate|duplicate]]
+
| [[VisionaireObject Command: setName|setName]]
|
+
| Sets the internal name of the VisionaireObject.
 
|-
 
|-
| [[VisionaireObject Command: create|create]]
+
| [[VisionaireObject Command: setTextStr|setTextStr]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: remove|remove]]
+
| [[VisionaireObject Command: setValue|setValue]]
 
|
 
|
 
|-
 
|-
| [[VisionaireObject Command: info|info]]
+
| [[VisionaireObject Command: to|to]]
 
|
 
|
 
|}
 
|}
Line 115: Line 115:
 
{| class="ts"
 
{| class="ts"
 
|-
 
|-
! style="width:20%" | Field Name  
+
! style="width:15%" | Field Name  
! Type
+
! style="width:10%" | Type
 
! Description
 
! Description
 +
|-
 +
| '''empty'''
 +
| boolean
 +
| True if the object is an emptyObject (read-only).
 
|-
 
|-
 
| '''id'''
 
| '''id'''
| int
+
| integer
| (readonly)
+
| The internal id of the object (read-only).
 
|-
 
|-
 
| '''name'''
 
| '''name'''
 
| string
 
| string
| (readonly)
+
| 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
| (readonly)
+
| The parent object (read-only).
 
|-
 
|-
 
| '''tableId'''
 
| '''tableId'''
| int
+
| integer
| (readonly)
+
| The id of the data structure table the object is part of (read-only).
 +
|-
 +
| ''property''
 +
| mixed
 +
| All [[Data Structure|properties/fields]] of a VisionaireObject are available through their names.
 
|}
 
|}
 
{{toc}}
 
{{toc}}

Latest revision as of 12: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.