struct DotPrison::Prison::SentencesData::ExtensionCriteria

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) #

[View source]

Instance Method Detail

def escape_attempt : Bool #

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

[View source]
def injured_prisoner : Bool #

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

[View source]
def injured_staff : Bool #

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

[View source]
def murder : Bool #

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

[View source]
def serious_injury : Bool #

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

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

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