@temporary-escape/mod-sdk / SystemPlanetData
Class: SystemPlanetData
Defined in: schemas.ts:99
Base class for CBOR-serializable documents. The pack/unpack members are usually generated from the field declarations by the SDK AssemblyScript transform (see sdk/transform.js), which is why this is a class with concrete defaults rather than an interface: the IDE sees the inherited members and does not flag a class Foo extends Serializable as missing them.
The defaults abort, so a document whose members were never generated fails loudly at runtime instead of silently serializing nothing.
Extends
Constructors
Constructor
ts
new SystemPlanetData(): SystemPlanetData;Returns
SystemPlanetData
Inherited from
Properties
| Property | Modifier | Type | Default value | Defined in |
|---|---|---|---|---|
name | public | string | "" | schemas.ts:103 |
parent | public | OptionalU64 | undefined | schemas.ts:107 |
pos | public | Vector3f | undefined | schemas.ts:104 |
radius | public | number | 0 | schemas.ts:106 |
ringOrientation | public | Quaternion | undefined | schemas.ts:111 |
ringScale | public | number | 0 | schemas.ts:110 |
ringTexture | public | AssetTexture | null | null | schemas.ts:109 |
seed | public | number | 0 | schemas.ts:108 |
systemId | public | number | 0 | schemas.ts:102 |
type | public | AssetPlanet | null | null | schemas.ts:105 |
kSchemaName | readonly | string | "SystemPlanet" | schemas.ts:100 |
Methods
pack()
ts
pack(_enc: CborEncoder): void;Defined in: cbor.ts:1452
Parameters
| Parameter | Type |
|---|---|
_enc | CborEncoder |
Returns
void
Inherited from
unpack()
ts
unpack(_dec: CborVisitor): void;Defined in: cbor.ts:1456
Parameters
| Parameter | Type |
|---|---|
_dec | CborVisitor |
Returns
void
