class
Rosegold::Interactions
- Rosegold::Interactions
- Reference
- Object
Defined in:
rosegold/control/interaction_use.crrosegold/control/interactions.cr
Constructors
Instance Method Summary
- #acknowledge_use(sequence : Int32) : Nil
- #apply_manual_input(input : ManualControl::Input)
- #block_break_target : Vec3i | Nil
- #block_damage_progress : Float32
-
#clear_input
Drops scripted attack and use intent; an active use releases on the next tick.
- #client : Client
- #digging=(digging : Bool)
- #digging? : Bool
- #digging_block : ReachedBlock | Nil
- #last_hand_tap_sequence : Int32
- #queue_staged_action_release : Nil
- #reset_mining
- #reset_use
-
#start_digging
Activates the "attack" button.
-
#start_using_hand(hand : Hand | Nil = :main_hand)
A nil hand tries the main hand, then the off hand when the main hand passes.
-
#stop_digging
Deactivates the "attack" button.
- #stop_using_hand
-
#swap_hands(session : Client::PlaySession | Nil = nil, &authorized : -> Bool) : Bool
Sends the held-slot sync, if due, and then the swap, each only while session is current, no container is open and
authorizedapproves under the write lock. - #sync_using_item(hand : Hand | Nil) : Nil
-
#tap_using_hand(hand : Hand | Nil = :main_hand)
A nil hand tries the main hand, then the off hand when the main hand passes.
- #tick
- #use_release_pending? : Bool
Constructor Detail
Instance Method Detail
A nil hand tries the main hand, then the off hand when the main hand passes.
Sends the held-slot sync, if due, and then the swap, each only while
session is current, no container is open and authorized approves under
the write lock. The sync cache moves only with a written sync. Returns
whether the swap was written.
A nil hand tries the main hand, then the off hand when the main hand passes.