struct DotPrison::Prison

Defined in:

dot_prison/prison.cr:1
dot_prison/prison.cr:7

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 adviser_system : DotPrison::Prison::AdviserSystem #

[View source]
def balance : Float64 #

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

[View source]
def bio_version : Int32 #

[View source]
def bio_version=(v : Int) #

[View source]
def block_land_expansion : Bool #

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

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

TODO Empty


[View source]
def calamity_rewards : DotPrison::Prison::CalamityRewards #

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

TODO Empty


[View source]
def centre_aligned : Bool #

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

[View source]
def ceo_letter_read : Bool #

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

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

TODO Empty


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

TODO Empty


[View source]
def construction : DotPrison::Prison::Construction #

[View source]
def contraband : DotPrison::Prison::Contraband #

[View source]
def coverage_plan : DotPrison::Prison::CoveragePlan #

[View source]
def criminally_insane_enabled : Bool #

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

[View source]

[View source]
def decay_enabled : Bool #

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

[View source]
def deployment_schedule : DotPrison::Prison::DeploymentSchedule #

[View source]
def desc_dir : DotPrison::Prison::DescDir #

[View source]
def desert_plot : Bool #

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

[View source]

TODO Awkward


[View source]
def electricity_enabled : Bool #

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

[View source]
def entity_version : Int32 #

[View source]
def entity_version=(v : Int) #

[View source]
def escape_plans_enabled : Bool #

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

[View source]

[View source]

[View source]
def failure_conditions_enabled : Bool #

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

[View source]

[View source]
def first_death_row_notice : Bool #

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

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

TODO Implement this, maybe?


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

TODO Implement this, maybe?


[View source]
def food_enabled : Bool #

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

[View source]
def food_quantity : Int32 #

[View source]
def food_quantity=(v : Int) #

[View source]
def food_variation : Int32 #

[View source]
def food_variation=(v : Int) #

[View source]
def game_speed : Float64 #

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

[View source]
def generate_forests : Bool #

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

[View source]
def generate_lakes : Bool #

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

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

TODO Unknown format


[View source]
def immediate_materials : Bool #

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

[View source]
def informants : DotPrison::Prison::Informants #

[View source]

[View source]
def intake_enabled : Bool #

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

[View source]
def island_bridge : Bool #

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

[View source]
def island_plot : Bool #

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

[View source]
def jungle_plot : Bool #

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

[View source]
def lethal_force_enabled : Bool #

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

[View source]
def misconduct : DotPrison::Prison::Misconduct #

[View source]
def misconduct_enabled : Bool #

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

[View source]
def mutator_system : DotPrison::Prison::MutatorSystem #

[View source]
def needs_library : DotPrison::Prison::NeedsLibrary #

[View source]
def needs_version : Int32 #

[View source]
def needs_version=(v : Int) #

[View source]
def next_id : Int32 #

[View source]
def next_id=(v : Int) #

[View source]
def objectives : DotPrison::Prison::Objectives #

[View source]

[View source]
def origin_pos : Tuple(Int32, Int32) #

[View source]
def origin_pos=(v : Tuple(Number, Number)) #

[View source]
def origin_size : Tuple(Int32, Int32) #

[View source]
def origin_size=(v : Tuple(Number, Number)) #

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

TODO Unknown format, Store name is xy coordinates followed by 0. Does 0 mean something?


[View source]

[View source]
def playtime : Int32 #

[View source]
def playtime=(v : Int) #

[View source]
def policy_data : DotPrison::Prison::PolicyData #

[View source]
def production : DotPrison::Prison::Production #

TODO Nicer object


[View source]
def punishment_by_sector_enabled : Bool #

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

[View source]

[View source]

[View source]
def reoffend : Int32 #

[View source]
def reoffend=(v : Int) #

[View source]

[View source]
def road_delivery_stop : DotPrison::Prison::RoadDeliveryStop #

[View source]

TODO Does not separate depending on room type


[View source]
def script_zones : DotPrison::Prison::ScriptZones #

[View source]

[View source]
def seed : Int32 #

[View source]
def seed=(v : Int) #

[View source]
def selected_guard_companion : Int32 #

[View source]
def selected_guard_companion=(v : Int) #

[View source]
def sentences_data : DotPrison::Prison::SentencesData #

[View source]
def size : Tuple(Int32, Int32) #

[View source]
def size=(v : Tuple(Number, Number)) #

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

TODO Unknown format


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

TODO Empty


[View source]
def stats_tracker : DotPrison::Prison::StatsTracker #

[View source]
def supply_chain : DotPrison::Prison::SupplyChain #

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

def thermometer : DotPrison::Prison::Thermometer #

[View source]

[View source]
def time : Float64 #

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

[View source]
def time_warp : Float64 #

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

[View source]
def to_prison(io) #

[View source]
def transfer_data : DotPrison::Prison::TransferData #

[View source]
def transfers_enabled : Bool #

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

[View source]

[View source]
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


def uniform_colour : DotPrison::Prison::UniformColour #

[View source]
def uniform_colour_death_row : DotPrison::Colour | String #

[View source]
def uniform_colour_death_row=(v) #

[View source]
def uniform_colour_insane : DotPrison::Colour | String #

[View source]
def uniform_colour_insane=(v) #

[View source]
def uniform_colour_max_sec : DotPrison::Colour | String #

[View source]
def uniform_colour_max_sec=(v) #

[View source]
def uniform_colour_min_sec : DotPrison::Colour | String #

[View source]
def uniform_colour_min_sec=(v) #

[View source]
def uniform_colour_none : DotPrison::Colour | String #

TODO This may all have moved to #uniform_colour


[View source]
def uniform_colour_none=(v) #

TODO This may all have moved to #uniform_colour


[View source]
def uniform_colour_normal : DotPrison::Colour | String #

[View source]
def uniform_colour_normal=(v) #

[View source]
def uniform_colour_protected : DotPrison::Colour | String #

[View source]
def uniform_colour_protected=(v) #

[View source]
def uniform_colour_super_max : DotPrison::Colour | String #

[View source]
def uniform_colour_super_max=(v) #

[View source]
def uniform_colour_transfer_prisoner : DotPrison::Colour | String #

[View source]
def uniform_colour_transfer_prisoner=(v) #

[View source]
def unlimited_funds : Bool #

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

[View source]
def use_cell_quality : Bool #

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

[View source]
def version : String #

[View source]
def version=(v : String) #

[View source]
def version_number : Int32 #

[View source]
def version_number=(v : Int) #

[View source]

[View source]

[View source]
def visibility_enabled : Bool #

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

[View source]
def visitation : DotPrison::Prison::Visitation #

[View source]

[View source]

TODO Needs to be custom to consume OffValves, don't know what that is though...


[View source]
def water_enabled : Bool #

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

[View source]
def weather_enabled : Bool #

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

[View source]
def weather_map : DotPrison::Prison::WeatherMap #

[View source]
def work_queue : DotPrison::Prison::WorkQueue #

[View source]