MCPcopy Create free account

hub / github.com/JaniM/variant-go-server / functions

Functions204 in github.com/JaniM/variant-go-server

↓ 1 callersFunctionuse_debouncer
( cx: &ScopeState, debounce_time_ms: u32, mut callback: impl FnMut(Vec<T>) + 'static, )
client/src/state.rs:89
↓ 1 callersFunctionuse_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 callersFunctionuse_state_provider
(cx: &ScopeState)
client/src/state.rs:116
↓ 1 callersFunctionuse_websocket
(cx: &'a ScopeState)
client/src/networking.rs:96
↓ 1 callersFunctionuse_websocket_provider
( cx: &'a ScopeState, mut on_connect: impl FnMut() -> Vec<ClientMessage> + 'static, mut receive: i
client/src/networking.rs:14
↓ 1 callersFunctionuse_window_size_provider
(cx: &ScopeState)
client/src/window.rs:18
↓ 1 callersMethodview_to_board_coord
(&self, game: &state::GameView, view: (u32, u32))
client/src/board.rs:524
FunctionApp
(cx: Scope)
client/src/main.rs:43
FunctionCreateGameButton
(cx: Scope, start: ReadOnlySignal<message::StartGame>)
client/src/views/create_game.rs:142
FunctionCreateGameNavBar
(cx: Scope)
client/src/main.rs:326
FunctionCreateGamePanel
(cx: Scope)
client/src/views/create_game.rs:66
FunctionCreateRoute
(cx: Scope)
client/src/main.rs:140
FunctionGameNavBar
(cx: Scope, room: ReadOnlySignal<Option<state::ActiveRoom>>)
client/src/main.rs:368
FunctionGamePanel
(cx: Scope, room: ReadOnlySignal<Option<state::ActiveRoom>>)
client/src/main.rs:208
FunctionGameRoute
(cx: Scope, id: u32)
client/src/main.rs:109
FunctionHiddenMoveGo
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:304
FunctionHome
(cx: Scope)
client/src/main.rs:54
FunctionModifierSelectors
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:158
FunctionNPlusOne
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:360
FunctionNameInput
(cx: Scope, name: Signal<String>)
client/src/views/create_game.rs:548
FunctionNickInput
(cx: Scope, profile: Signal<Profile>)
client/src/main.rs:868
FunctionPonnukiIsPoints
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:462
FunctionPresetSelectors
(cx: Scope, chosen_preset: Signal<Preset>)
client/src/views/create_game.rs:511
FunctionProfileRoute
(cx: Scope)
client/src/main.rs:69
FunctionRightPanel
(cx: Scope)
client/src/main.rs:194
FunctionRoomList
(cx: Scope, rooms: Signal<Vec<GameRoom>>)
client/src/main.rs:775
FunctionSeatCard
(cx: Scope, seat: Seat, seat_id: u32)
client/src/main.rs:511
FunctionSeatCards
(cx: Scope)
client/src/main.rs:472
FunctionTraitorGo
(cx: Scope, modifiers: Signal<GameModifier>)
client/src/views/create_game.rs:411
Methodadd
(self, rhs: Self)
shared/src/game/clock.rs:38
Methodas_minutes
(self)
shared/src/game/clock.rs:13
Methodbridge
( callback: Callback<<Self::Wrapper as Agent>::Output>, )
store/src/store.rs:158
Functioncheck
( points_played: &GroupVec<Point>, board: &Board, mut visibility: Option<&mut VisibilityBoard>,
shared/src/states/play/n_plus_one.rs:8
Methodclass
(self)
client/src/window.rs:40
Methodclock
(&self)
shared/src/game/clock.rs:49
Methodconnected
(&mut self, id: HandlerId)
store/src/store.rs:115
Methodcreate
(link: AgentLink<Self>)
store/src/store.rs:85
Functioncreate_game
( req: actix_web::HttpRequest, body: web::Json<CreateGameBody>, server_addr: web::Data<Addr<GameSe
server/src/main.rs:450
Methoddefault
()
shared/src/game.rs:67
Methoddefault
()
server/src/server.rs:176
Methoddefault
()
server/src/db.rs:113
Methoddisconnected
(&mut self, id: HandlerId)
store/src/store.rs:129
Methoddo_GET
(self)
client/serve.py:14
Methodempty
()
shared/src/game.rs:43
Methodempty
(width: u32, height: u32, toroidal: bool)
shared/src/game/board.rs:19
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
client/src/palette.rs:21
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
shared/src/game.rs:37
Methodfree_placement
( seat_count: usize, team_count: usize, board: Board, teams_share_stones: bool
shared/src/states/mod.rs:22
Methodfrom
(v: u8)
shared/src/game.rs:73
Methodfrom
(action: GameAction)
shared/src/message.rs:69
Methodfrom_pointer
( board: &Board, game: &state::GameView, mut p: (f64, f64), bounding: DomRect,
client/src/board.rs:37
Functionget_game_result
( req: actix_web::HttpRequest, server_addr: web::Data<Addr<GameServer>>, )
server/src/main.rs:542
Functionget_game_view
( req: actix_web::HttpRequest, server_addr: web::Data<Addr<GameServer>>, )
server/src/main.rs:507
Methodhandle
(&mut self, msg: game_room::Message, ctx: &mut Self::Context)
server/src/main.rs:117
Methodhandle
(&mut self, msg: Leave, _ctx: &mut Self::Context)
server/src/game_room.rs:255
Methodhandle
(&mut self, msg: Connect, _: &mut Context<Self>)
server/src/server.rs:357
Methodhandle
(&mut self, msg: IdentifyUser, _ctx: &mut Self::Context)
server/src/db.rs:133
Methodhandle_input
(&mut self, msg: Self::Input, _id: HandlerId)
store/src/store.rs:125
Methodis_desktop
(self)
client/src/window.rs:52
Methodis_large_desktop
(self)
client/src/window.rs:56
Methodis_mobile
(self)
client/src/window.rs:48
Methodis_small_desktop
(self)
client/src/window.rs:60
Functionit_works
()
store/src/lib.rs:62
Functionit_works
()
shared/src/lib.rs:10
Methodload
Loads a game from a replay dump. Can fail at any point due to changed rules... Such is life.
shared/src/game.rs:503
Functionmain
()
client/src/main.rs:38
Functionmain
()
server/src/main.rs:596
Functionmain
()
repl/src/main.rs:30
Methodmake_action
( &mut self, shared: &mut SharedState, player_id: u64, action: ActionKind,
shared/src/states/free_placement.rs:193
Methodmake_action
( &mut self, shared: &mut SharedState, player_id: u64, action: ActionKind,
shared/src/states/play.rs:436
Methodmake_action
( &mut self, shared: &mut SharedState, player_id: u64, action: ActionKind,
shared/src/states/scoring.rs:107
Methodname
(self)
client/src/views/create_game.rs:54
Methodname
(item: impl Into<Color>)
shared/src/game.rs:55
Methodnew
()
client/src/state.rs:23
Methodnew
(color: Color)
shared/src/game.rs:88
Methodnew
()
shared/src/game/export.rs:10
Methodnew
(rule: ClockRule, clock_count: usize)
shared/src/game/clock.rs:108
Methodnew
( seat_count: usize, team_count: usize, board: Board, teams_share_stones: bool
shared/src/states/free_placement.rs:19
Methodnew
(seat_count: usize)
shared/src/states/play.rs:28
Methodnew
(board: &Board, seats: &[Seat], scores: &[i32])
shared/src/states/scoring.rs:19
Methodnew
(team_count: usize, stone_count: u32, seed: u64, rule: &TraitorGo)
shared/src/states/play/traitor.rs:22
Methodnow
()
shared/src/game/clock.rs:17
Methodother
(v: &'static str)
shared/src/message.rs:106
Methodpass
(&self)
client/src/state.rs:310
Methodplay
(user_id: u64, action: ActionKind)
shared/src/game.rs:137
Methodplay
(seat_count: usize)
shared/src/states/mod.rs:36
Functionreplay_snapshots
()
shared/src/game/tests.rs:62
Methodresign
(&self)
client/src/state.rs:317
Methodsave
(&self)
client/src/palette.rs:36
Methodscoring
(board: &Board, seats: &[Seat], scores: &[i32])
shared/src/states/mod.rs:40
Functionseats
()
shared/src/game/tests.rs:4
Methodsend_rooms
(mut rooms: Vec<(u32, String)>, ctx: &mut Context)
server/src/main.rs:276
Methodstandard
( seats: &[u8], komis: GroupVec<i32>, size: (u8, u8), mods: GameModifier,
shared/src/game.rs:403
Methodstart_game
(&self, start: message::StartGame)
client/src/state.rs:291
Methodstarted
Method is called on actor start. We start the heartbeat process here.
server/src/main.rs:85
Methodstopping
(&mut self, _: &mut Self::Context)
server/src/main.rs:107
Methodstopping
(&mut self, _ctx: &mut Self::Context)
server/src/game_room.rs:245
Methodstopping
(&mut self, _ctx: &mut Self::Context)
server/src/server.rs:345
Methodstopping
(&mut self, _ctx: &mut Self::Context)
server/src/db.rs:123
Methodsub
(self, rhs: Self)
shared/src/game/clock.rs:30
← previousnext →101–200 of 204, ranked by callers