Skip to main content

Item

Context: object.virtual.item

This document describes the data structure for a virtual item, a digital representation of an object or asset that can be used or interacted with in virtual environments, games, or other digital applications.

Data structure

FieldTypeDescriptionMandatory
classstringClass or category of the itemYes
subclassstringSubclass or specific typeYes
modifiersmodifierObjectModifiers applied to customize the avatarNo

Modifier Object

KeyTypeDescriptionMandatory
namestringName of the modifierYes
typestringType of the modifier (e.g., shape, color, size)Yes
hierarchystringHierarchy or path of the modifier in the avatarYes
valuevalueObjectValues associated with the modifierNo

Value Object

KeyTypeDescriptionMandatory
namestringName of the valueNo
typestringType of the value (e.g., range, discrete)No
fromstringLower limit of the value rangeNo
tostringUpper limit of the value rangeNo
discretearray of stringList of discrete values the modifier can takeNo

Example

"item": {
"class": "Furniture",
"subclass": "Chair",
"modifiers": {
"name":"Chair color",
"type":"Material",
"hieararchy":"Root",
"value":{
"name":"Material",
"type":"dicrete",
"dicrete":["Leather","Silk"]
}
}
}