-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix VarState::snapshot not accounting for birth ts; Team reordering reducer; Battle working; Battle result panel showing stats; Shop info window; UnitCard statuses fix;
- Loading branch information
Showing
12 changed files
with
227 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE | ||
// WILL NOT BE SAVED. MODIFY TABLES IN RUST INSTEAD. | ||
|
||
#[allow(unused)] | ||
use spacetimedb_sdk::{ | ||
anyhow::{anyhow, Result}, | ||
identity::Identity, | ||
reducer::{Reducer, ReducerCallbackId, Status}, | ||
sats::{de::Deserialize, ser::Serialize}, | ||
spacetimedb_lib, | ||
table::{TableIter, TableType, TableWithPrimaryKey}, | ||
Address, | ||
}; | ||
|
||
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] | ||
pub struct RunTeamReorderArgs { | ||
pub order: Vec<u64>, | ||
} | ||
|
||
impl Reducer for RunTeamReorderArgs { | ||
const REDUCER_NAME: &'static str = "run_team_reorder"; | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn run_team_reorder(order: Vec<u64>) { | ||
RunTeamReorderArgs { order }.invoke(); | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn on_run_team_reorder( | ||
mut __callback: impl FnMut(&Identity, Option<Address>, &Status, &Vec<u64>) + Send + 'static, | ||
) -> ReducerCallbackId<RunTeamReorderArgs> { | ||
RunTeamReorderArgs::on_reducer(move |__identity, __addr, __status, __args| { | ||
let RunTeamReorderArgs { order } = __args; | ||
__callback(__identity, __addr, __status, order); | ||
}) | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn once_on_run_team_reorder( | ||
__callback: impl FnOnce(&Identity, Option<Address>, &Status, &Vec<u64>) + Send + 'static, | ||
) -> ReducerCallbackId<RunTeamReorderArgs> { | ||
RunTeamReorderArgs::once_on_reducer(move |__identity, __addr, __status, __args| { | ||
let RunTeamReorderArgs { order } = __args; | ||
__callback(__identity, __addr, __status, order); | ||
}) | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn remove_on_run_team_reorder(id: ReducerCallbackId<RunTeamReorderArgs>) { | ||
RunTeamReorderArgs::remove_on_reducer(id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.