class Works::Struct::Inserter::Burner
- Works::Struct::Inserter::Burner
- Works::Struct::Inserter::Base
- Works::Struct::Base
- Works::Cell
- Reference
- Object
Defined in:
works/struct/inserter/burner.crConstant Summary
-
Color =
LibAllegro.map_rgb_f(0.333, 0.25, 0.21)
-
Key =
:burner_inserter
-
Name =
"Burner inserter"
-
RotationSpeed =
216
Constructors
Class Method Summary
Instance Method Summary
- #accept_fuel?(item : Item::Base)
- #draw_struct_info(inventory_width, inventory_height)
- #fuel_item : Item::Base | Nil
- #fuel_item=(fuel_item : Item::Base | Nil)
- #fuel_slot_hover? : Bool
- #fuel_slot_x
- #fuel_slot_y(inventory_height)
- #slot_click_grab_item(inventory : Inventory, mouse : Mouse)
- #slot_click_held_item(inventory : Inventory, held_item : Item::Held)
- #update_struct_info_slot_hovers(mouse, inventory_width, inventory_height)
Instance methods inherited from class Works::Struct::Inserter::Base
arm_end_position(dx, dy)
arm_end_position,
can_overwrite?(strct : Struct::Base)
can_overwrite?,
clone
clone,
draw(x, y)
draw,
draw_arm(dx, dy)
draw_arm,
draw_body(dx, dy)
draw_body,
draw_item(dx, dy, center = true)
draw_item,
draw_struct_info_slots(inventory_width, inventory_height)
draw_struct_info_slots,
facing : Symbol
facing,
grab_item(item_grab_size)grab_item grab_item, input_coords input_coords, item : Item::Base | Nil item, item=(item : Item::Base | Nil) item=, item_class item_class, item_grab_size item_grab_size, item_slot_hover? : Bool item_slot_hover?, item_slot_x item_slot_x, item_slot_y(inventory_height) item_slot_y, output_coords output_coords, overlaps_input?(col, row) overlaps_input?, overlaps_output?(col, row) overlaps_output?, rotate rotate, rotation_speed rotation_speed, rotation_timer : Works::Timer rotation_timer, slot_click_grab_item(inventory : Inventory, mouse : Mouse) slot_click_grab_item, slot_click_held_item(inventory : Inventory, held_item : Item::Held) slot_click_held_item, struct_to_grab_output_from(map : Map) struct_to_grab_output_from, struct_to_input_into(map : Map) struct_to_input_into, update(map : Map) update, update_struct_info_slot_hovers(mouse, inventory_width, inventory_height) update_struct_info_slot_hovers
Constructor methods inherited from class Works::Struct::Inserter::Base
new(col = 0_u16, row = 0_u16)
new
Class methods inherited from class Works::Struct::Inserter::Base
color
color,
key
key,
name
name,
rotation_speed
rotation_speed
Instance methods inherited from class Works::Struct::Base
accept_item?(item : Item::Base)
accept_item?,
add_from_inserter(klass, amount, inserter_facing : Symbol)
add_from_inserter,
add_from_inserter?(item : Item::Base, inserter_facing : Symbol)
add_from_inserter?,
after_rotate(map : Map)
after_rotate,
can_overwrite?(strct : Struct::Base)
can_overwrite?,
color
color,
destroy
destroy,
draw(dx, dy, color)draw(x, y) draw, draw_hover_info draw_hover_info, draw_struct_info(inventory_width, inventory_height) draw_struct_info, draw_struct_info_slots(inventory_width, inventory_height) draw_struct_info_slots, grab_item(item_grab_size)
grab_item grab_item, hide_hud hide_hud, hud_background_color hud_background_color, hud_hover_color hud_hover_color, hud_margin hud_margin, hud_shown? : Bool hud_shown?, hud_slot_size hud_slot_size, hud_x hud_x, hud_y(inventory_height) hud_y, item_class item_class, key key, overlaps_input?(col, row) overlaps_input?, overlaps_output?(col, row) overlaps_output?, rotate rotate, show_hud show_hud, slot_click(inventory : Inventory, mouse : Mouse) slot_click, slot_click_grab_item(inventory : Inventory, mouse : Mouse) slot_click_grab_item, slot_click_held_item(inventory : Inventory, held_item : Item::Held) slot_click_held_item, slot_hover?(slot_x, slot_y, mouse : Mouse) slot_hover?, update(map : Map) update, update_struct_info_slot_hovers(mouse : Mouse, inventory_width, inventory_height) update_struct_info_slot_hovers
Constructor methods inherited from class Works::Struct::Base
new(col = 0_u16, row = 0_u16)
new
Class methods inherited from class Works::Struct::Base
color
color,
hud_background_color
hud_background_color,
hud_hover_color
hud_hover_color,
hud_margin
hud_margin,
hud_slot_size
hud_slot_size,
key
key,
name
name
Instance methods inherited from class Works::Cell
clone
clone,
col : UInt16
col,
col=(col : UInt16)
col=,
cols : UInt8
cols,
dimensions : NamedTuple(x: UInt8, y: UInt8)
dimensions,
draw(x, y)
draw,
draw_selection(dx, dy, color = nil)
draw_selection,
height
height,
hover?(mouse_col, mouse_row)
hover?,
name
name,
overlaps?(o_col, o_row)overlaps?(cell : Cell) overlaps?, print_str print_str, row : UInt16 row, row=(row : UInt16) row=, rows : UInt8 rows, size : UInt16 size, width width, x x, y y