MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / my_player

Function my_player

modules/module-test/src/lib.rs:220–222  ·  view source on GitHub ↗
(ctx: &ViewContext)

Source from the content-addressed store, hash-verified

218
219#[spacetimedb::view(accessor = my_player, public)]
220fn my_player(ctx: &ViewContext) -> Option<Player> {
221 ctx.db.player().identity().find(ctx.sender())
222}
223
224// ─────────────────────────────────────────────────────────────────────────────
225// REDUCERS

Callers

nothing calls this directly

Calls 4

playerMethod · 0.80
findMethod · 0.45
identityMethod · 0.45
senderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…