Class: SystemShape

SystemShape

A shape of the game

new SystemShape (json, kind)

Name Type Default Description
json Object optional Json object describing the shape
kind CustomShapeKind CustomShapeKin optional The kind of custom shape
Properties:
Name Type Description
id number The shape ID
name string The shape name
isBR boolean Indicate if the shape is a BR (Basic Ressource)
dlc boolean Indicate if the shape is a DLC

Methods

SystemShape.getFolder (kind, isBR, dlc)string static

Get the folder associated to a kind of custom shape
Name Type Description
kind CustomShapeKind The kind of custom shape
isBR boolean Indicate if the shape is a BR
dlc boolean Indicate if the shape is a DLC
Returns:
Type Description
string

SystemShape.getLocalFolder (kind)string static

Get the local folder associated to a kind of custom shape
Name Type Description
kind CustomShapeKind The kind of custom shape
Returns:
Type Description
string

read (json)

Read the JSON associated to the shape
Name Type Description
json Object Json object describing the shape

loadObjectCustom () async

Load the .obj

getPath ()string

Get the absolute path associated to this picture
Returns:
Type Description
string