Kryzeth Standard Library

data.category

Methods3

function M.add_to(target: StdLib.Data, field: string) -> target StdLib.Data

Adds this category to a target's category-list field.

Parameters
targetStdLib.Data

Target prototype wrapper

fieldstring

Category-list field

Returns
targetStdLib.Data
function M.remove_from(target: StdLib.Data, field: string) -> target StdLib.Data

Removes this category from a target's category-list field.

Parameters
targetStdLib.Data

Target prototype wrapper

fieldstring

Category-list field

Returns
targetStdLib.Data
function M.replace(target: StdLib.Data, field: string, replacement_name: string) -> target StdLib.Data

Replaces this category with another category.

Parameters
targetStdLib.Data

Target prototype wrapper

fieldstring

Category-list field

replacement_namestring

Replacement category name

Returns
targetStdLib.Data

Fields4

M.__class: string = "Category"
M.__index : unknown
M.__call : any
M.category_types : {StdLib.Data.CategoryType, true}

Supported category prototype types. Uses the list from groups.category