struct DotPrison::Prison::SentencesData

Overview

TODO Fix these criteria structures

Defined in:

dot_prison/prison/SentencesData.cr

Constructors

Instance Method Summary

Instance methods inherited from struct DotPrison::Consumer

initialize initialize, table : DotPrison::Table table

Constructor methods inherited from struct DotPrison::Consumer

new new

Instance methods inherited from class Object

to_prison to_prison

Constructor Detail

def self.new(table : DotPrison::Table) #

TODO Fix these criteria structures


[View source]

Instance Method Detail

def enabled : Bool #

[View source]
def enabled=(v : Bool) #

[View source]

[View source]
def extension_criteria_met : DotPrison::Prison::SentencesData::CriteriaMet #

[View source]
def extension_value : Float64 #

[View source]
def extension_value=(v : Number) #

[View source]

[View source]

[View source]
def reduction_criteria_met : DotPrison::Prison::SentencesData::CriteriaMet #

[View source]

[View source]
def reduction_value : Float64 #

[View source]
def reduction_value=(v : Number) #

[View source]
def table : DotPrison::Table #

TODO Fix these criteria structures


def unconsumed : Array(String) #

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


[View source]
def unconsumed_tree : Array(Tuple(String, String)) #

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