struct

DotPrison::ArrayTable(T)

Inherits DotPrison::Consumer < Struct < Value < Object

Consumes an actual Table array

Duplicate keys are sometimes used in the original .prison file, so when encountered, they are silently transformed to an array.

If an array is expected, any single values will be cast and will be consumable using this helper

Constructors

new(table : DotPrison::Table)

Consumes an actual Table array

Duplicate keys are sometimes used in the original .prison file, so when encountered, they are silently transformed to an array.

If an array is expected, any single values will be cast and will be consumable using this helper

Source

Instance methods

[](i : Int32) : T
Source
each
Source
size
Source
table

Consumes an actual Table array

Duplicate keys are sometimes used in the original .prison file, so when encountered, they are silently transformed to an array.

If an array is expected, any single values will be cast and will be consumable using this helper

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