Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-game/src/model.rs

cre8-app-game · module model · src · 1,163 lines (1,055 code, 19 comment) · sha 822658da4f0675fe

Items

const DEFAULT_GAME_ACTION_EVENT_KIND const LEGACY_GAME_INPUT_EVENT_KIND const GAME_MULTIPLAYER_SCHEMA const GAME_MULTIPLAYER_CONTRACT_VERSION const SESSION_START_CONTRACT const INPUT_ACK_CONTRACT const STATE_DELTA_CONTRACT const REPLAY_ARTIFACT_CONTRACT struct GameRoomRef impl GameRoomRef struct GameSessionRecord impl GameSessionRecord struct GameInputFrameRecord type GameActionFrameRecord impl GameInputFrameRecord struct GameEventRecord impl GameEventRecord struct SessionStart impl SessionStart struct InputAck impl InputAck struct StateDelta impl StateDelta struct ReplayArtifact impl ReplayArtifact

Functions

By call-graph weight (PageRank; 1.0 is the average function). 63 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
normalize_statesrc/model.rs:811fn32502.8
hash_session_statesrc/model.rs:711fn201812.6
normalize_array_or_objectsrc/model.rs:803fn33301.9
hash_multiplayer_contractsrc/model.rs:652fn81511.7
multiplayer_contract_envelopesrc/model.rs:640fn111521.5
raw_sessionsrc/model.rs:840fn251301.4
hash_replay_artifactsrc/model.rs:686fn241111.4
GameInputFrameRecord::to_action_frame_jsonsrc/model.rs:226method211401.3
generic_next_statesrc/model.rs:762fn381311.2
normalize_contract_namesrc/model.rs:830fn42101.2
ReplayArtifact::artifact_hashsrc/model.rs:584method131211.1
normalize_textsrc/model.rs:815fn42201.1
StateDelta::newsrc/model.rs:439method231211.1
hash_state_deltasrc/model.rs:661fn241111
SessionStart::from_sessionsrc/model.rs:325method201111
InputAck::from_inputsrc/model.rs:388method151101
hash_input_framesrc/model.rs:732fn181211
normalize_tokensrc/model.rs:820fn94300.9
normalize_arraysrc/model.rs:807fn32100.8
ReplayArtifact::newsrc/model.rs:526method251220.8
SessionStart::payload_jsonsrc/model.rs:346method201100.7
InputAck::payload_jsonsrc/model.rs:404method151100.7
StateDelta::payload_jsonsrc/model.rs:491method141100.7
ReplayArtifact::payload_jsonsrc/model.rs:602method161100.7
GameInputFrameRecord::action_seqsrc/model.rs:210method31100.6
GameInputFrameRecord::action_typesrc/model.rs:214method31100.6
GameInputFrameRecord::action_hashsrc/model.rs:218method31100.6
StateDelta::delta_hashsrc/model.rs:477method131110.6
ReplayArtifact::artifact_idsrc/model.rs:598method31110.6
session_start_contractsrc/model.rs:624fn31110.6
input_ack_contractsrc/model.rs:628fn31110.6
GameSessionRecord::normalize_idssrc/model.rs:61method134110.6
GameSessionRecord::normalize_kind_and_statussrc/model.rs:75method122120.6
GameSessionRecord::normalize_counterssrc/model.rs:88method114100.6
GameSessionRecord::normalize_state_hashessrc/model.rs:100method193120.6
GameSessionRecord::normalize_timestampssrc/model.rs:120method83100.6
GameRoomRef::newsrc/model.rs:20method31000.5
GameSessionRecord::normalizesrc/model.rs:51method91060.5
GameSessionRecord::to_jsonsrc/model.rs:129method241000.5
GameInputFrameRecord::normalizesrc/model.rs:174method316050.5
GameInputFrameRecord::action_frame_idsrc/model.rs:206method31000.5
GameInputFrameRecord::to_jsonsrc/model.rs:222method31010.5
GameEventRecord::normalizesrc/model.rs:263method253040.5
GameEventRecord::to_jsonsrc/model.rs:289method131000.5
SessionStart::to_jsonsrc/model.rs:367method31020.5
InputAck::to_jsonsrc/model.rs:420method31020.5
StateDelta::from_session_and_inputsrc/model.rs:463method131010.5
StateDelta::to_jsonsrc/model.rs:506method31020.5
ReplayArtifact::from_session_and_inputssrc/model.rs:552method311020.5
ReplayArtifact::to_jsonsrc/model.rs:619method31020.5
state_delta_contractsrc/model.rs:632fn31000.5
replay_artifact_contractsrc/model.rs:636fn31000.5
hash_action_framesrc/model.rs:751fn101010.5
session_record_normalize_fills_defaults_and_canonicalises_tokenssrc/model.rs:867fn281010.5
session_record_serde_round_tripsrc/model.rs:897fn81010.5
input_frame_normalize_fills_hash_and_idsrc/model.rs:907fn341030.5
hash_session_state_is_deterministic_and_sensitivesrc/model.rs:943fn181010.5
multiplayer_contract_envelope_hashes_payload_stablysrc/model.rs:963fn151020.5
session_start_and_input_ack_contracts_follow_existing_recordssrc/model.rs:980fn361040.5
state_delta_contract_hash_binds_transitionsrc/model.rs:1018fn341030.5
replay_artifact_contract_hash_id_and_timestamp_stay_separatesrc/model.rs:1054fn421040.5
generic_next_state_advances_object_statesrc/model.rs:1098fn191010.5
game_registry_shape_is_stablesrc/model.rs:1119fn446000.5

Source not readable from this process.