struct DotPrison::Prison::Objectives::CropsSold

Defined in:

dot_prison/prison/objectives.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 apple : Int32 #

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

[View source]
def banana : Int32 #

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

[View source]
def barley : Int32 #

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

[View source]
def cabbage : Int32 #

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

[View source]
def carrot : Int32 #

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

[View source]
def corn : Int32 #

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

[View source]
def orange : Int32 #

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

[View source]
def peach : Int32 #

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

[View source]
def potato : Int32 #

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

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

def tomato : Int32 #

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

[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 wheat : Int32 #

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

[View source]