Skip to content

Class: GrassNodeStruct

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

new GrassNodeStruct(): GrassNodeStruct

Returns

GrassNodeStruct

Inherited from

DynamicDrawStruct.constructor

Properties

grassCount

grassCount: number = 1

Defined in

packages/graphic/renderer/GrassRenderer.ts:9


grassHSegment

grassHSegment: number = 1

Defined in

packages/graphic/renderer/GrassRenderer.ts:10


grassWight

grassWight: number = 2

Defined in

packages/graphic/renderer/GrassRenderer.ts:11


grassHeigh

grassHeigh: number = 4

Defined in

packages/graphic/renderer/GrassRenderer.ts:12


grassX

grassX: number = 0

Defined in

packages/graphic/renderer/GrassRenderer.ts:13


grassY

grassY: number = 0

Defined in

packages/graphic/renderer/GrassRenderer.ts:14


grassZ

grassZ: number = 0

Defined in

packages/graphic/renderer/GrassRenderer.ts:15


grassRotation

grassRotation: number = 0

Defined in

packages/graphic/renderer/GrassRenderer.ts:16

Methods

getValueSize

getValueSize(value): any

get any type value memory size

Parameters

NameTypeDescription
valueanyany type value

Returns

any

Inherited from

DynamicDrawStruct.getValueSize

Defined in

src/util/struct/Struct.ts:48


Ref

Ref<T>(c): { name: string ; type: string }[]

Type parameters

NameType
Textends Struct

Parameters

NameType
cCtor<T>

Returns

{ name: string ; type: string }[]

Inherited from

DynamicDrawStruct.Ref

Defined in

src/util/struct/Struct.ts:93


Get

Get<T>(c): Struct

Type parameters

NameType
Textends Struct

Parameters

NameType
cCtor<T>

Returns

Struct

Inherited from

DynamicDrawStruct.Get

Defined in

src/util/struct/Struct.ts:99


GetSize

GetSize<T>(c): number

get any struct memory size

Type parameters

NameType
Textends Struct

Parameters

NameType
cCtor<T>

Returns

number

Inherited from

DynamicDrawStruct.GetSize

Defined in

src/util/struct/Struct.ts:112


getValueType

getValueType(): { name: string ; type: string }[]

get reflection name

Returns

{ name: string ; type: string }[]

Inherited from

DynamicDrawStruct.getValueType

Defined in

src/util/struct/Struct.ts:25