m4m.framework.bin

@meta4d/engine / Exports / m4m / framework / bin

Class: bin

m4m.framework.bin

language zh_CN

classdesc json资源

version m4m 1.0

Implements

Table of contents

Methods

Constructors

Properties

Accessors

Methods

caclByteLength

caclByteLength(): number

language zh_CN

classdesc 计算资源字节大小

version m4m 1.0

Returns

number

Implementation of

IAsset.caclByteLength

Defined in

framework/asset/resource/bin.ts:99


dispose

dispose(): void

language zh_CN

classdesc 释放资源

version m4m 1.0

Returns

void

Implementation of

IAsset.dispose

Defined in

framework/asset/resource/bin.ts:88


getGUID

getGUID(): number

language zh_CN

classdesc 获取资源唯一id

version m4m 1.0

Returns

number

Implementation of

IAsset.getGUID

Defined in

framework/asset/resource/bin.ts:55


getName

getName(): string

language zh_CN

classdesc 获取资源名称

version m4m 1.0

Returns

string

Implementation of

IAsset.getName

Defined in

framework/asset/resource/bin.ts:43


unuse

unuse(disposeNow?): void

language zh_CN

classdesc 引用计数减一

version m4m 1.0

Parameters

Name
Type
Default value

disposeNow

boolean

false

Returns

void

Implementation of

IAsset.unuse

Defined in

framework/asset/resource/bin.ts:77


use

use(): void

language zh_CN

classdesc 引用计数加一

version m4m 1.0

Returns

void

Implementation of

IAsset.use

Defined in

framework/asset/resource/bin.ts:66

Constructors

constructor

new bin(assetName?, data)

Parameters

Name
Type
Default value

assetName

string

null

data

ArrayBuffer

undefined

Defined in

framework/asset/resource/bin.ts:28

Properties

data

data: ArrayBuffer


defaultAsset

defaultAsset: boolean = false

language zh_CN

classdesc 是否为默认资源

version m4m 1.0

Implementation of

IAsset.defaultAsset

Defined in

framework/asset/resource/bin.ts:27


ClassName

Static Readonly ClassName: string = "json"

Defined in

framework/asset/resource/bin.ts:15

Accessors

realName

get realName(): string

language zh_CN

classdesc 如果是imgdesc加载来的图片,通过这个可以获取到真实的图片名字

version m4m 1.0

Returns

string

Defined in

framework/asset/resource/bin.ts:112

set realName(name): void

language zh_CN

classdesc 设置图片名称

version m4m 1.0

Parameters

Name
Type

name

string

Returns

void

Defined in

framework/asset/resource/bin.ts:123

Last updated