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
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.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| normalize_statesrc/model.rs:811 | fn | 3 | 2 | 5 | 0 | 2.8 | |
| hash_session_statesrc/model.rs:711 | fn | 20 | 1 | 8 | 1 | 2.6 | |
| normalize_array_or_objectsrc/model.rs:803 | fn | 3 | 3 | 3 | 0 | 1.9 | |
| hash_multiplayer_contractsrc/model.rs:652 | fn | 8 | 1 | 5 | 1 | 1.7 | |
| multiplayer_contract_envelopesrc/model.rs:640 | fn | 11 | 1 | 5 | 2 | 1.5 | |
| raw_sessionsrc/model.rs:840 | fn | 25 | 1 | 3 | 0 | 1.4 | |
| hash_replay_artifactsrc/model.rs:686 | fn | 24 | 1 | 1 | 1 | 1.4 | |
| GameInputFrameRecord::to_action_frame_jsonsrc/model.rs:226 | method | 21 | 1 | 4 | 0 | 1.3 | |
| generic_next_statesrc/model.rs:762 | fn | 38 | 1 | 3 | 1 | 1.2 | |
| normalize_contract_namesrc/model.rs:830 | fn | 4 | 2 | 1 | 0 | 1.2 | |
| ReplayArtifact::artifact_hashsrc/model.rs:584 | method | 13 | 1 | 2 | 1 | 1.1 | |
| normalize_textsrc/model.rs:815 | fn | 4 | 2 | 2 | 0 | 1.1 | |
| StateDelta::newsrc/model.rs:439 | method | 23 | 1 | 2 | 1 | 1.1 | |
| hash_state_deltasrc/model.rs:661 | fn | 24 | 1 | 1 | 1 | 1 | |
| SessionStart::from_sessionsrc/model.rs:325 | method | 20 | 1 | 1 | 1 | 1 | |
| InputAck::from_inputsrc/model.rs:388 | method | 15 | 1 | 1 | 0 | 1 | |
| hash_input_framesrc/model.rs:732 | fn | 18 | 1 | 2 | 1 | 1 | |
| normalize_tokensrc/model.rs:820 | fn | 9 | 4 | 3 | 0 | 0.9 | |
| normalize_arraysrc/model.rs:807 | fn | 3 | 2 | 1 | 0 | 0.8 | |
| ReplayArtifact::newsrc/model.rs:526 | method | 25 | 1 | 2 | 2 | 0.8 | |
| SessionStart::payload_jsonsrc/model.rs:346 | method | 20 | 1 | 1 | 0 | 0.7 | |
| InputAck::payload_jsonsrc/model.rs:404 | method | 15 | 1 | 1 | 0 | 0.7 | |
| StateDelta::payload_jsonsrc/model.rs:491 | method | 14 | 1 | 1 | 0 | 0.7 | |
| ReplayArtifact::payload_jsonsrc/model.rs:602 | method | 16 | 1 | 1 | 0 | 0.7 | |
| GameInputFrameRecord::action_seqsrc/model.rs:210 | method | 3 | 1 | 1 | 0 | 0.6 | |
| GameInputFrameRecord::action_typesrc/model.rs:214 | method | 3 | 1 | 1 | 0 | 0.6 | |
| GameInputFrameRecord::action_hashsrc/model.rs:218 | method | 3 | 1 | 1 | 0 | 0.6 | |
| StateDelta::delta_hashsrc/model.rs:477 | method | 13 | 1 | 1 | 1 | 0.6 | |
| ReplayArtifact::artifact_idsrc/model.rs:598 | method | 3 | 1 | 1 | 1 | 0.6 | |
| session_start_contractsrc/model.rs:624 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| input_ack_contractsrc/model.rs:628 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| GameSessionRecord::normalize_idssrc/model.rs:61 | method | 13 | 4 | 1 | 1 | 0.6 | |
| GameSessionRecord::normalize_kind_and_statussrc/model.rs:75 | method | 12 | 2 | 1 | 2 | 0.6 | |
| GameSessionRecord::normalize_counterssrc/model.rs:88 | method | 11 | 4 | 1 | 0 | 0.6 | |
| GameSessionRecord::normalize_state_hashessrc/model.rs:100 | method | 19 | 3 | 1 | 2 | 0.6 | |
| GameSessionRecord::normalize_timestampssrc/model.rs:120 | method | 8 | 3 | 1 | 0 | 0.6 | |
| GameRoomRef::newsrc/model.rs:20 | method | 3 | 1 | 0 | 0 | 0.5 | |
| GameSessionRecord::normalizesrc/model.rs:51 | method | 9 | 1 | 0 | 6 | 0.5 | |
| GameSessionRecord::to_jsonsrc/model.rs:129 | method | 24 | 1 | 0 | 0 | 0.5 | |
| GameInputFrameRecord::normalizesrc/model.rs:174 | method | 31 | 6 | 0 | 5 | 0.5 | |
| GameInputFrameRecord::action_frame_idsrc/model.rs:206 | method | 3 | 1 | 0 | 0 | 0.5 | |
| GameInputFrameRecord::to_jsonsrc/model.rs:222 | method | 3 | 1 | 0 | 1 | 0.5 | |
| GameEventRecord::normalizesrc/model.rs:263 | method | 25 | 3 | 0 | 4 | 0.5 | |
| GameEventRecord::to_jsonsrc/model.rs:289 | method | 13 | 1 | 0 | 0 | 0.5 | |
| SessionStart::to_jsonsrc/model.rs:367 | method | 3 | 1 | 0 | 2 | 0.5 | |
| InputAck::to_jsonsrc/model.rs:420 | method | 3 | 1 | 0 | 2 | 0.5 | |
| StateDelta::from_session_and_inputsrc/model.rs:463 | method | 13 | 1 | 0 | 1 | 0.5 | |
| StateDelta::to_jsonsrc/model.rs:506 | method | 3 | 1 | 0 | 2 | 0.5 | |
| ReplayArtifact::from_session_and_inputssrc/model.rs:552 | method | 31 | 1 | 0 | 2 | 0.5 | |
| ReplayArtifact::to_jsonsrc/model.rs:619 | method | 3 | 1 | 0 | 2 | 0.5 | |
| state_delta_contractsrc/model.rs:632 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| replay_artifact_contractsrc/model.rs:636 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| hash_action_framesrc/model.rs:751 | fn | 10 | 1 | 0 | 1 | 0.5 | |
| session_record_normalize_fills_defaults_and_canonicalises_tokenssrc/model.rs:867 | fn | 28 | 1 | 0 | 1 | 0.5 | |
| session_record_serde_round_tripsrc/model.rs:897 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| input_frame_normalize_fills_hash_and_idsrc/model.rs:907 | fn | 34 | 1 | 0 | 3 | 0.5 | |
| hash_session_state_is_deterministic_and_sensitivesrc/model.rs:943 | fn | 18 | 1 | 0 | 1 | 0.5 | |
| multiplayer_contract_envelope_hashes_payload_stablysrc/model.rs:963 | fn | 15 | 1 | 0 | 2 | 0.5 | |
| session_start_and_input_ack_contracts_follow_existing_recordssrc/model.rs:980 | fn | 36 | 1 | 0 | 4 | 0.5 | |
| state_delta_contract_hash_binds_transitionsrc/model.rs:1018 | fn | 34 | 1 | 0 | 3 | 0.5 | |
| replay_artifact_contract_hash_id_and_timestamp_stay_separatesrc/model.rs:1054 | fn | 42 | 1 | 0 | 4 | 0.5 | |
| generic_next_state_advances_object_statesrc/model.rs:1098 | fn | 19 | 1 | 0 | 1 | 0.5 | |
| game_registry_shape_is_stablesrc/model.rs:1119 | fn | 44 | 6 | 0 | 0 | 0.5 |
Source not readable from this process.