struct

DotPrison::IndexedTable(T)

Inherits DotPrison::Consumer < Struct < Value < Object

A consumer for Tables that are indexed from 0

Starting at "[i 0]" and going up to (size-1) "[i size-1]"

Constructors

new(table : DotPrison::Table)

A consumer for Tables that are indexed from 0

Starting at "[i 0]" and going up to (size-1) "[i size-1]"

Source

Instance methods

[](i : Int32) : T
Source
[]?(i : Int32) : T | Nil
Source
array_type_id

Seems to be used on some newer stuff, probably don't care about it

Source
array_type_id=(v : String)

Seems to be used on some newer stuff, probably don't care about it

Source
each
Source
size
Source
size=(v : Int)
Source
table

A consumer for Tables that are indexed from 0

Starting at "[i 0]" and going up to (size-1) "[i size-1]"

unconsumed

Keys for the associated table that have not been consumed

This may be because they have not been implemented yet, they may have an unknown purpose, or could be part of an unsupported mod

Source
unconsumed_tree

Returns a recursive array of the {class name, key} that have not been consumed

Uses the Consumer::HANDLED_VARIABLES constant, so custom Consumer::consume macro use may not work

Similar to #unconsumed, but travels the whole tree