Skip to content

@temporary-escape/mod-sdk / Asset

Class: Asset ​

Defined in: assets/asset.ts:7

Extended by ​

Constructors ​

Constructor ​

ts
new Asset(handle: number): Asset;

Defined in: assets/asset.ts:10

Parameters ​

ParameterType
handlenumber

Returns ​

Asset

Properties ​

PropertyTypeDefined in
handlenumberassets/asset.ts:8

Accessors ​

name ​

Get Signature ​

ts
get name(): string;

Defined in: assets/asset.ts:14

Returns ​

string

Methods ​

eq() ​

ts
eq(other: Asset): bool;

Defined in: assets/asset.ts:24

Returns true if this asset is equal to the other asset.

Parameters ​

ParameterTypeDescription
otherAssetThe other asset to compare

Returns ​

bool


ne() ​

ts
ne(other: Asset): bool;

Defined in: assets/asset.ts:32

Returns true if this asset is not equal to the other asset.

Parameters ​

ParameterTypeDescription
otherAssetThe other asset to compare

Returns ​

bool