Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JaniM/variant-go-server
/ functions
Functions
204 in github.com/JaniM/variant-go-server
⨍
Functions
204
◇
Types & classes
120
↓ 1 callers
Function
use_debouncer
( cx: &ScopeState, debounce_time_ms: u32, mut callback: impl FnMut(Vec<T>) + 'static, )
client/src/state.rs:89
↓ 1 callers
Function
use_game_switcher
Switches to a room automatically if the active room changes. This is necessary as we don't know which room to switch to when we create a game. Regrets
client/src/main.rs:174
↓ 1 callers
Function
use_state_provider
(cx: &ScopeState)
client/src/state.rs:116
↓ 1 callers
Function
use_websocket
(cx: &'a ScopeState)
client/src/networking.rs:96
↓ 1 callers
Function
use_websocket_provider
( cx: &'a ScopeState, mut on_connect: impl FnMut() -> Vec<ClientMessage> + 'static, mut receive: i
client/src/networking.rs:14
↓ 1 callers
Function
use_window_size_provider
(cx: &ScopeState)
client/src/window.rs:18
↓ 1 callers
Method
view_to_board_coord
(&self, game: &state::GameView, view: (u32, u32))
client/src/board.rs:524
Function
App
(cx: Scope)
client/src/main.rs:43
Function
CreateGameButton
(cx: Scope, start: ReadOnlySignal<message::StartGame>)
client/src/views/create_game.rs:142
Function
CreateGameNavBar
(cx: Scope)
client/src/main.rs:326
Function
CreateGamePanel
(cx: Scope)
client/src/views/create_game.rs:66
Function
CreateRoute
(cx: Scope)
client/src/main.rs:140
Function
GameNavBar
(cx: Scope, room: ReadOnlySignal<Option<state::ActiveRoom>>)
client/src/main.rs:368
Function
GamePanel
(cx: Scope, room: ReadOnlySignal<Option<state::ActiveRoom>>)
client/src/main.rs:208
Function
GameRoute
(cx: Scope, id: u32)
client/src/main.rs:109
Function
HiddenMoveGo
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:304
Function
Home
(cx: Scope)
client/src/main.rs:54
Function
ModifierSelectors
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:158
Function
NPlusOne
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:360
Function
NameInput
(cx: Scope, name: Signal<String>)
client/src/views/create_game.rs:548
Function
NickInput
(cx: Scope, profile: Signal<Profile>)
client/src/main.rs:868
Function
PonnukiIsPoints
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:462
Function
PresetSelectors
(cx: Scope, chosen_preset: Signal<Preset>)
client/src/views/create_game.rs:511
Function
ProfileRoute
(cx: Scope)
client/src/main.rs:69
Function
RightPanel
(cx: Scope)
client/src/main.rs:194
Function
RoomList
(cx: Scope, rooms: Signal<Vec<GameRoom>>)
client/src/main.rs:775
Function
SeatCard
(cx: Scope, seat: Seat, seat_id: u32)
client/src/main.rs:511
Function
SeatCards
(cx: Scope)
client/src/main.rs:472
Function
TraitorGo
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:411
Method
add
(self, rhs: Self)
shared/src/game/clock.rs:38
Method
as_minutes
(self)
shared/src/game/clock.rs:13
Method
bridge
( callback: Callback<<Self::Wrapper as Agent>::Output>, )
store/src/store.rs:158
Function
check
( points_played: &GroupVec<Point>, board: &Board, mut visibility: Option<&mut VisibilityBoard>,
shared/src/states/play/n_plus_one.rs:8
Method
class
(self)
client/src/window.rs:40
Method
clock
(&self)
shared/src/game/clock.rs:49
Method
connected
(&mut self, id: HandlerId)
store/src/store.rs:115
Method
create
(link: AgentLink<Self>)
store/src/store.rs:85
Function
create_game
( req: actix_web::HttpRequest, body: web::Json<CreateGameBody>, server_addr: web::Data<Addr<GameSe
server/src/main.rs:450
Method
default
()
shared/src/game.rs:67
Method
default
()
server/src/server.rs:176
Method
default
()
server/src/db.rs:113
Method
disconnected
(&mut self, id: HandlerId)
store/src/store.rs:129
Method
do_GET
(self)
client/serve.py:14
Method
empty
()
shared/src/game.rs:43
Method
empty
(width: u32, height: u32, toroidal: bool)
shared/src/game/board.rs:19
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
client/src/palette.rs:21
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
shared/src/game.rs:37
Method
free_placement
( seat_count: usize, team_count: usize, board: Board, teams_share_stones: bool
shared/src/states/mod.rs:22
Method
from
(v: u8)
shared/src/game.rs:73
Method
from
(action: GameAction)
shared/src/message.rs:69
Method
from_pointer
( board: &Board, game: &state::GameView, mut p: (f64, f64), bounding: DomRect,
client/src/board.rs:37
Function
get_game_result
( req: actix_web::HttpRequest, server_addr: web::Data<Addr<GameServer>>, )
server/src/main.rs:542
Function
get_game_view
( req: actix_web::HttpRequest, server_addr: web::Data<Addr<GameServer>>, )
server/src/main.rs:507
Method
handle
(&mut self, msg: game_room::Message, ctx: &mut Self::Context)
server/src/main.rs:117
Method
handle
(&mut self, msg: Leave, _ctx: &mut Self::Context)
server/src/game_room.rs:255
Method
handle
(&mut self, msg: Connect, _: &mut Context<Self>)
server/src/server.rs:357
Method
handle
(&mut self, msg: IdentifyUser, _ctx: &mut Self::Context)
server/src/db.rs:133
Method
handle_input
(&mut self, msg: Self::Input, _id: HandlerId)
store/src/store.rs:125
Method
is_desktop
(self)
client/src/window.rs:52
Method
is_large_desktop
(self)
client/src/window.rs:56
Method
is_mobile
(self)
client/src/window.rs:48
Method
is_small_desktop
(self)
client/src/window.rs:60
Function
it_works
()
store/src/lib.rs:62
Function
it_works
()
shared/src/lib.rs:10
Method
load
Loads a game from a replay dump. Can fail at any point due to changed rules... Such is life.
shared/src/game.rs:503
Function
main
()
client/src/main.rs:38
Function
main
()
server/src/main.rs:596
Function
main
()
repl/src/main.rs:30
Method
make_action
( &mut self, shared: &mut SharedState, player_id: u64, action: ActionKind,
shared/src/states/free_placement.rs:193
Method
make_action
( &mut self, shared: &mut SharedState, player_id: u64, action: ActionKind,
shared/src/states/play.rs:436
Method
make_action
( &mut self, shared: &mut SharedState, player_id: u64, action: ActionKind,
shared/src/states/scoring.rs:107
Method
name
(self)
client/src/views/create_game.rs:54
Method
name
(item: impl Into<Color>)
shared/src/game.rs:55
Method
new
()
client/src/state.rs:23
Method
new
(color: Color)
shared/src/game.rs:88
Method
new
()
shared/src/game/export.rs:10
Method
new
(rule: ClockRule, clock_count: usize)
shared/src/game/clock.rs:108
Method
new
( seat_count: usize, team_count: usize, board: Board, teams_share_stones: bool
shared/src/states/free_placement.rs:19
Method
new
(seat_count: usize)
shared/src/states/play.rs:28
Method
new
(board: &Board, seats: &[Seat], scores: &[i32])
shared/src/states/scoring.rs:19
Method
new
(team_count: usize, stone_count: u32, seed: u64, rule: &TraitorGo)
shared/src/states/play/traitor.rs:22
Method
now
()
shared/src/game/clock.rs:17
Method
other
(v: &'static str)
shared/src/message.rs:106
Method
pass
(&self)
client/src/state.rs:310
Method
play
(user_id: u64, action: ActionKind)
shared/src/game.rs:137
Method
play
(seat_count: usize)
shared/src/states/mod.rs:36
Function
replay_snapshots
()
shared/src/game/tests.rs:62
Method
resign
(&self)
client/src/state.rs:317
Method
save
(&self)
client/src/palette.rs:36
Method
scoring
(board: &Board, seats: &[Seat], scores: &[i32])
shared/src/states/mod.rs:40
Function
seats
()
shared/src/game/tests.rs:4
Method
send_rooms
(mut rooms: Vec<(u32, String)>, ctx: &mut Context)
server/src/main.rs:276
Method
standard
( seats: &[u8], komis: GroupVec<i32>, size: (u8, u8), mods: GameModifier,
shared/src/game.rs:403
Method
start_game
(&self, start: message::StartGame)
client/src/state.rs:291
Method
started
Method is called on actor start. We start the heartbeat process here.
server/src/main.rs:85
Method
stopping
(&mut self, _: &mut Self::Context)
server/src/main.rs:107
Method
stopping
(&mut self, _ctx: &mut Self::Context)
server/src/game_room.rs:245
Method
stopping
(&mut self, _ctx: &mut Self::Context)
server/src/server.rs:345
Method
stopping
(&mut self, _ctx: &mut Self::Context)
server/src/db.rs:123
Method
sub
(self, rhs: Self)
shared/src/game/clock.rs:30
← previous
next →
101–200 of 204, ranked by callers