Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

sdkgenny.Constant

Inherits from Object.

A named constant with a type and string value.

Methods

self:type(type: sdkgenny.Type)

Sets the type of this constant. Returns self for chaining.

self:value() / self:value(v: string)

Gets or sets the constant’s value as a string. Returns self when setting.

self:string()

Marks this constant as a string-type constant. Returns self for chaining.