searches the current version of every section · esc to close

27.01 Category Module

#todo

The Category module assign each artifact with a category by introducing two new members in Metadata. Category module is typically use with other module to specified the predefined default layout behavior or provide user frandely orgonnizaitioon of artifact.

The new member in Metadata is defined as

interface Metadata {
	category: Category // RECOMMENDED
	// ...
}

where

  • category RECOMMENDED and its value MUST be of type Category. Its default value is sculptures if no other module motifying it

The Category data are used to indecate to the user what to be expect for an artifact, and degerminte the default reconstruction logic for the artifact.

basic

type Category = "buildingblock"  // ...

buildingblock by default, or specified by the impmentation

From module

layout mode

type Category = "sculptures" | "housewares" | "miscellaneous" // ...

where housewares is not evenplaced and stackable, miscellaneous is not stackable and requireding evenplaced, and sculptures is not not even placed and not stackable. the default buildingblock is not evenplaced and stackable

local scene

type Category = "wallmounted" | "ceiling" | "wall" // ...

image

type Category = "paintings" | "frame" | "carpets" // ...

sky

type Category = "sky"

environment

type Category =  "environment" // ...

tile

type Category =  "tile" // ...

avatar

type Category =  "fashion" // ...

creatures

type Category =  "creatures" // ...

plant

type Category =  "plant" // ...

if Artifact have type been model, wallmounted if Artifact have type been image, and skylight if Artifact have type been hdri.

Impmentation can add theri own Category but it is RECOMMENDED to use the category defined above if possibile. Impmentation MUST specified how the new category plays in the reconstraction logic. If not specified or for the impmentation does not support them, it MUST be trited as sculptures category.