struct Game::Resource

Defined in:

game/resources.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : Type, amount : Capacity) #

[View source]

Instance Method Detail

def amount : Int32 #

[View source]
def type : Game::Resource::Type #

[View source]
def with_amount(amount : Capacity) : self #

[View source]