pub enum Action {
Click {
col: u16,
row: u16,
},
ClickCenter,
CatchGolden(GoldenVariant),
CatchGreenCoin,
BuyFingerer {
idx: usize,
qty: BuyQty,
},
BuyUpgrade(usize),
PrestigeReset,
UpdateGeometry {
biscuit: Rect,
},
DevAddCuques(f64),
DevForceGolden(GoldenVariant),
DevSpawnGreenCoin,
Misclick {
col: u16,
row: u16,
},
}Expand description
Commands the input router produces and the sim consumes. The sim is
the sole authority on GameState mutation — input handling translates
raw events (key/mouse/wheel) into these and feeds them through.
Variants§
Click
ClickCenter
CatchGolden(GoldenVariant)
Catch the Golden Cuque of the given variant. Each variant has its own independent on-screen slot, so this only catches the targeted one — never vacuums up a neighbor.
CatchGreenCoin
Catch the on-screen Green Coin specifically.
BuyFingerer
BuyUpgrade(usize)
PrestigeReset
UpdateGeometry
Latest render-computed biscuit geometry, so the sim can place goldens and auto-particles inside the current layout. The golden rect lives on the input/render side (only the click handler reads it).
DevAddCuques(f64)
Dev-only cheats (F-keys). Gated at the input router by debug;
the sim trusts whatever arrives.
DevForceGolden(GoldenVariant)
DevSpawnGreenCoin
Force-spawn a Green Coin (F5 in dev). Bypasses the spawn pity counter and the golden-spawn-event tie-in entirely.
Misclick
J10: a click that didn’t hit anything actionable. Sim spawns a short-lived “·” misclick particle at the screen point so dead-zone clicks visibly register.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more