various smol changes
This commit is contained in:
parent
bf23dbaf80
commit
0713d6869b
13 changed files with 108 additions and 93 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#![allow(unused, clippy::all)]
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
||||
use super::db_tile_type::DbTile;
|
||||
use super::player_or_bot_type::PlayerOrBot;
|
||||
|
||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||
|
|
@ -11,6 +12,7 @@ use super::player_or_bot_type::PlayerOrBot;
|
|||
pub struct HandView {
|
||||
pub player: PlayerOrBot,
|
||||
pub hand_length: u8,
|
||||
pub pond: Vec<DbTile>,
|
||||
pub drawn: bool,
|
||||
}
|
||||
|
||||
|
|
@ -24,6 +26,7 @@ impl __sdk::InModule for HandView {
|
|||
pub struct HandViewCols {
|
||||
pub player: __sdk::__query_builder::Col<HandView, PlayerOrBot>,
|
||||
pub hand_length: __sdk::__query_builder::Col<HandView, u8>,
|
||||
pub pond: __sdk::__query_builder::Col<HandView, Vec<DbTile>>,
|
||||
pub drawn: __sdk::__query_builder::Col<HandView, bool>,
|
||||
}
|
||||
|
||||
|
|
@ -33,6 +36,7 @@ impl __sdk::__query_builder::HasCols for HandView {
|
|||
HandViewCols {
|
||||
player: __sdk::__query_builder::Col::new(table_name, "player"),
|
||||
hand_length: __sdk::__query_builder::Col::new(table_name, "hand_length"),
|
||||
pond: __sdk::__query_builder::Col::new(table_name, "pond"),
|
||||
drawn: __sdk::__query_builder::Col::new(table_name, "drawn"),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
#![allow(unused, clippy::all)]
|
||||
use super::db_tile_type::DbTile;
|
||||
use super::hand_view_type::HandView;
|
||||
use super::player_or_bot_type::PlayerOrBot;
|
||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue