From 0218fa8f3b3059f803a6c95716347eb1d01ee234 Mon Sep 17 00:00:00 2001 From: Mathih13 Date: Sun, 11 Oct 2026 23:06:09 +0200 Subject: [PATCH 1/2] build(gateway): generate bindings with the CLI --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/actions/setup-spacetime/action.yml | 20 + .github/workflows/module-durable.yml | 36 +- .github/workflows/rust.yml | 4 + .gitignore | 2 +- .lyracore-cli-rev | 2 +- Cargo.lock | 1 + docs/binding-schema-parity.md | 6 +- docs/danger-zones.md | 46 +- docs/quickstart.md | 2 +- docs/recipes/add-a-spell-effect.md | 8 +- docs/recipes/add-an-opcode.md | 4 +- docs/schema.md | 8 +- docs/testing.md | 28 +- gateway/Cargo.toml | 6 +- gateway/build.rs | 54 + gateway/src/codec/combat/subscriptions.rs | 22 +- gateway/src/codec/entity/subscriptions.rs | 2 +- gateway/src/stdb/armor.rs | 2 +- .../bindings/account_character_owner_type.rs | 57 - .../src/stdb/bindings/account_claim_type.rs | 68 - .../src/stdb/bindings/account_fence_type.rs | 71 - gateway/src/stdb/bindings/account_type.rs | 69 - .../activate_vmap_generation_reducer.rs | 68 - .../stdb/bindings/active_taxi_flight_type.rs | 73 - .../src/stdb/bindings/addon_message_type.rs | 61 - .../admit_party_command_authority_reducer.rs | 106 - .../admit_sessionless_group_action_reducer.rs | 70 - .../bindings/advance_taxi_flight_reducer.rs | 70 - .../src/stdb/bindings/ai_event_kind_type.rs | 38 - .../alpha_test_tools_enrollment_type.rs | 52 - .../append_vmap_generation_chunks_reducer.rs | 81 - .../apply_admitted_party_command_reducer.rs | 162 - .../bindings/apply_package_deltas_reducer.rs | 72 - .../bindings/areatrigger_teleport_type.rs | 67 - .../stdb/bindings/arm_all_pools_reducer.rs | 62 - .../bindings/auction_bid_decision_type.rs | 91 - .../stdb/bindings/auction_bid_hold_type.rs | 87 - .../src/stdb/bindings/auction_expiry_type.rs | 57 - .../src/stdb/bindings/auction_hold_type.rs | 105 - .../bindings/auction_house_definition_type.rs | 61 - .../src/stdb/bindings/auction_notice_type.rs | 81 - .../auction_operation_receipt_type.rs | 108 - gateway/src/stdb/bindings/auction_type.rs | 125 - .../src/stdb/bindings/aura_schedule_type.rs | 52 - .../bindings/aura_stack_condition_type.rs | 16 - gateway/src/stdb/bindings/aura_type.rs | 147 - .../bindings/authored_idle_movement_type.rs | 24 - .../bindings/authored_walking_mode_type.rs | 24 - .../begin_character_shard_transfer_reducer.rs | 143 - .../stdb/bindings/begin_transfer_reducer.rs | 136 - .../bind_bot_transfer_locator_reducer.rs | 120 - .../stdb/bindings/bot_invite_intent_type.rs | 63 - .../stdb/bindings/bot_transfer_intent_type.rs | 102 - .../stdb/bindings/breath_relay_event_type.rs | 67 - .../src/stdb/bindings/breath_schedule_type.rs | 52 - .../src/stdb/bindings/breath_state_type.rs | 61 - .../src/stdb/bindings/buyback_entry_type.rs | 69 - .../call_for_help_instruction_type.rs | 15 - gateway/src/stdb/bindings/cast_credit_type.rs | 19 - .../stdb/bindings/cast_instruction_type.rs | 30 - .../bindings/catalogue_fingerprint_type.rs | 58 - .../src/stdb/bindings/channel_event_type.rs | 64 - .../src/stdb/bindings/channel_member_type.rs | 60 - .../src/stdb/bindings/channel_request_type.rs | 23 - .../src/stdb/bindings/char_base_info_type.rs | 55 - .../src/stdb/bindings/character_away_type.rs | 55 - .../stdb/bindings/character_explored_type.rs | 63 - .../character_quest_event_credit_type.rs | 57 - .../src/stdb/bindings/character_quest_type.rs | 72 - .../src/stdb/bindings/character_shard_type.rs | 94 - .../stdb/bindings/character_talent_type.rs | 63 - .../stdb/bindings/character_taxi_node_type.rs | 57 - gateway/src/stdb/bindings/character_type.rs | 206 - .../stdb/bindings/chat_channel_ban_type.rs | 57 - .../stdb/bindings/chat_channel_member_type.rs | 68 - .../chat_channel_notice_event_type.rs | 79 - .../src/stdb/bindings/chat_channel_type.rs | 76 - gateway/src/stdb/bindings/chat_event_type.rs | 67 - .../stdb/bindings/claim_account_reducer.rs | 87 - .../claim_bot_invite_intent_reducer.rs | 68 - .../claim_bot_transfer_intent_reducer.rs | 99 - .../stdb/bindings/claim_guid_range_reducer.rs | 77 - .../stdb/bindings/claim_operator_reducer.rs | 62 - .../claim_party_command_intent_reducer.rs | 77 - .../stdb/bindings/class_level_stats_type.rs | 61 - .../clear_promoted_loot_roll_reducer.rs | 83 - .../bindings/close_account_fence_reducer.rs | 68 - .../src/stdb/bindings/combat_event_type.rs | 94 - gateway/src/stdb/bindings/combo_point_type.rs | 60 - .../bindings/command_intent_state_type.rs | 19 - .../src/stdb/bindings/command_outcome_type.rs | 48 - .../complete_bot_transfer_intent_reducer.rs | 99 - .../stdb/bindings/confirm_import_reducer.rs | 79 - .../confirm_party_command_holder_reducer.rs | 68 - .../confirm_party_command_receipt_reducer.rs | 81 - .../src/stdb/bindings/contact_entry_type.rs | 63 - .../bindings/corpse_loot_eligible_type.rs | 57 - gateway/src/stdb/bindings/corpse_loot_type.rs | 84 - gateway/src/stdb/bindings/corpse_type.rs | 91 - .../stdb/bindings/create_character_reducer.rs | 141 - .../stdb/bindings/createinfo_action_type.rs | 64 - .../stdb/bindings/createinfo_spell_type.rs | 58 - .../creature_ai_broadcast_text_type.rs | 79 - .../bindings/creature_ai_definition_type.rs | 70 - .../stdb/bindings/creature_ai_event_type.rs | 134 - .../creature_ai_forced_despawn_type.rs | 57 - .../creature_ai_movement_intent_type.rs | 136 - ...creature_ai_movement_path_waypoint_type.rs | 70 - .../creature_ai_reset_deferral_type.rs | 49 - .../creature_ai_returning_home_type.rs | 49 - .../bindings/creature_ai_rule_state_type.rs | 84 - .../creature_ai_spell_metadata_type.rs | 52 - .../stdb/bindings/creature_ai_state_type.rs | 84 - .../creature_ai_summon_expiry_type.rs | 69 - .../creature_ai_summon_origin_type.rs | 52 - .../stdb/bindings/creature_ai_summon_type.rs | 64 - .../src/stdb/bindings/creature_cast_type.rs | 52 - ...ature_dead_callback_cast_admission_type.rs | 52 - .../bindings/creature_distraction_type.rs | 52 - .../bindings/creature_entry_condition_type.rs | 15 - .../src/stdb/bindings/creature_family_type.rs | 61 - .../creature_gossip_menu_override_type.rs | 60 - .../creature_health_condition_type.rs | 17 - .../bindings/creature_instruction_type.rs | 105 - .../creature_lethal_damage_floor_type.rs | 58 - .../bindings/creature_loot_tag_group_type.rs | 52 - .../src/stdb/bindings/creature_loot_type.rs | 69 - .../stdb/bindings/creature_move_event_type.rs | 82 - .../bindings/creature_move_schedule_type.rs | 55 - .../stdb/bindings/creature_path_point_type.rs | 17 - .../src/stdb/bindings/creature_path_type.rs | 19 - .../creature_presentation_instruction_type.rs | 49 - .../creature_presentation_mount_type.rs | 24 - .../bindings/creature_presentation_type.rs | 117 - .../creature_quest_tap_member_type.rs | 57 - .../stdb/bindings/creature_quest_tap_type.rs | 52 - .../src/stdb/bindings/creature_quest_type.rs | 60 - .../bindings/creature_react_state_type.rs | 20 - .../creature_relay_temporary_faction_type.rs | 49 - .../src/stdb/bindings/creature_spawn_type.rs | 86 - .../src/stdb/bindings/creature_spell_type.rs | 66 - .../src/stdb/bindings/creature_spline_type.rs | 107 - .../stdb/bindings/creature_template_type.rs | 132 - .../stdb/bindings/creature_waypoint_type.rs | 63 - .../src/stdb/bindings/death_condition_type.rs | 17 - ...debug_accelerate_session_reaper_reducer.rs | 62 - .../bindings/debug_accept_quest_reducer.rs | 87 - .../stdb/bindings/debug_add_threat_reducer.rs | 87 - .../debug_admit_sessionless_action_reducer.rs | 70 - .../debug_age_mail_fixture_reducer.rs | 87 - .../bindings/debug_apply_damage_reducer.rs | 87 - ...ply_lethal_damage_floor_fixture_reducer.rs | 92 - .../debug_arm_instance_tick_reducer.rs | 77 - .../debug_assert_blink_clamp_reducer.rs | 68 - ...ug_assert_chase_stops_at_column_reducer.rs | 70 - .../debug_assert_floor_snap_reducer.rs | 77 - .../debug_assert_go_collision_reducer.rs | 62 - ..._unreachable_goal_stops_at_wall_reducer.rs | 73 - .../debug_audit_class_kits_reducer.rs | 62 - .../debug_audit_quest_chains_reducer.rs | 62 - .../bindings/debug_auto_bank_item_reducer.rs | 77 - ...ug_backdate_meeting_stone_party_reducer.rs | 74 - ...g_backdate_meeting_stone_seeker_reducer.rs | 81 - .../debug_backfill_cell_ids_reducer.rs | 62 - .../debug_backfill_go_grid_reducer.rs | 62 - .../stdb/bindings/debug_begin_cast_reducer.rs | 87 - .../debug_bench_collision_gate_reducer.rs | 120 - .../stdb/bindings/debug_bench_los_reducer.rs | 127 - .../stdb/bindings/debug_bind_home_reducer.rs | 68 - .../bindings/debug_bot_transfer_reducer.rs | 127 - .../bindings/debug_buy_bank_slot_reducer.rs | 77 - .../stdb/bindings/debug_buy_item_reducer.rs | 93 - .../debug_buy_trainer_spell_reducer.rs | 87 - .../stdb/bindings/debug_cast_at_reducer.rs | 87 - .../bindings/debug_cast_spell_at_reducer.rs | 105 - .../stdb/bindings/debug_cast_spell_reducer.rs | 87 - .../debug_catalogue_fingerprint_reducer.rs | 62 - .../bindings/debug_check_rest_at_reducer.rs | 80 - .../bindings/debug_check_submerged_reducer.rs | 66 - .../bindings/debug_clear_creatures_reducer.rs | 68 - .../bindings/debug_compute_spell_reducer.rs | 87 - .../bindings/debug_compute_swing_reducer.rs | 77 - .../debug_create_fixture_instance_reducer.rs | 70 - .../debug_create_package_character_reducer.rs | 93 - .../bindings/debug_creature_path_reducer.rs | 91 - .../debug_delete_character_reducer.rs | 68 - .../debug_deliver_mail_fixture_reducer.rs | 81 - .../debug_disarm_instance_tick_reducer.rs | 68 - .../stdb/bindings/debug_disenchant_reducer.rs | 77 - ...g_emit_sessionless_group_intent_reducer.rs | 87 - .../bindings/debug_enchant_item_reducer.rs | 87 - .../bindings/debug_encounter_equip_reducer.rs | 93 - .../bindings/debug_encounter_move_reducer.rs | 99 - .../debug_encounter_open_door_reducer.rs | 77 - .../debug_encounter_reset_hp_fired_reducer.rs | 74 - .../bindings/debug_encounter_reset_reducer.rs | 77 - .../debug_encounter_set_state_reducer.rs | 93 - .../debug_encounter_spawn_wave_reducer.rs | 134 - .../debug_encounter_watch_hp_reducer.rs | 72 - .../src/stdb/bindings/debug_engage_reducer.rs | 77 - .../debug_enter_areatrigger_reducer.rs | 77 - .../bindings/debug_enter_instance_reducer.rs | 77 - .../stdb/bindings/debug_equip_item_reducer.rs | 77 - .../bindings/debug_equip_offhand_reducer.rs | 77 - .../bindings/debug_equip_weapon_reducer.rs | 77 - .../debug_expire_instance_removal_reducer.rs | 70 - .../bindings/debug_expire_quest_reducer.rs | 77 - .../bindings/debug_expire_session_reducer.rs | 68 - .../stdb/bindings/debug_explore_at_reducer.rs | 80 - .../bindings/debug_fill_aura_slots_reducer.rs | 93 - .../src/stdb/bindings/debug_fish_reducer.rs | 68 - .../bindings/debug_floor_probe_reducer.rs | 80 - .../bindings/debug_force_cast_at_reducer.rs | 87 - .../stdb/bindings/debug_force_cast_reducer.rs | 77 - .../debug_force_gameobject_respawn_reducer.rs | 68 - ...rce_lethal_damage_floor_fixture_reducer.rs | 70 - .../debug_force_pool_reroll_reducer.rs | 77 - .../bindings/debug_gossip_select_reducer.rs | 99 - .../debug_grant_default_actions_reducer.rs | 68 - .../stdb/bindings/debug_grant_item_reducer.rs | 82 - .../bindings/debug_grant_quest_reducer.rs | 77 - .../debug_grant_reputation_reducer.rs | 87 - .../debug_hold_instance_removals_reducer.rs | 62 - .../bindings/debug_kill_creature_reducer.rs | 77 - .../bindings/debug_kill_nearest_reducer.rs | 77 - ...g_learn_profession_from_trainer_reducer.rs | 81 - .../debug_learn_profession_reducer.rs | 87 - ...debug_learn_riding_from_trainer_reducer.rs | 77 - .../bindings/debug_learn_riding_reducer.rs | 77 - .../bindings/debug_learn_spell_reducer.rs | 77 - .../bindings/debug_learn_talent_reducer.rs | 77 - ...debug_learn_weapon_from_trainer_reducer.rs | 81 - .../debug_log_vendor_discount_reducer.rs | 81 - .../debug_logout_character_reducer.rs | 68 - .../stdb/bindings/debug_move_item_reducer.rs | 87 - .../stdb/bindings/debug_nav_leg_reducer.rs | 92 - .../stdb/bindings/debug_nav_probe_reducer.rs | 76 - .../debug_normalize_spawn_timers_reducer.rs | 66 - .../bindings/debug_pet_command_reducer.rs | 82 - .../bindings/debug_pick_lock_entry_reducer.rs | 77 - .../stdb/bindings/debug_push_quest_reducer.rs | 77 - .../debug_ranged_attack_nearest_reducer.rs | 77 - .../src/stdb/bindings/debug_readout_type.rs | 112 - .../bindings/debug_reap_instance_reducer.rs | 68 - .../src/stdb/bindings/debug_regrid_reducer.rs | 62 - .../debug_repair_after_publish_reducer.rs | 62 - .../bindings/debug_repair_item_reducer.rs | 77 - ...then_apply_damage_floor_fixture_reducer.rs | 99 - ...g_replay_auction_expiry_fixture_reducer.rs | 62 - ...debug_replay_mail_timer_fixture_reducer.rs | 62 - ..._replay_sessionless_areatrigger_reducer.rs | 113 - .../src/stdb/bindings/debug_repop_reducer.rs | 68 - .../bindings/debug_reseed_skills_reducer.rs | 68 - .../bindings/debug_reset_instance_reducer.rs | 68 - .../bindings/debug_reset_talents_reducer.rs | 77 - ...awn_lethal_damage_floor_fixture_reducer.rs | 70 - .../debug_resurrect_response_reducer.rs | 77 - .../debug_retire_region_creatures_reducer.rs | 99 - .../debug_run_runtime_script_reducer.rs | 106 - .../bindings/debug_score_movement_reducer.rs | 127 - ...debug_seed_creature_ai_fixtures_reducer.rs | 62 - .../stdb/bindings/debug_seed_mail_reducer.rs | 99 - .../debug_seed_package_config_reducer.rs | 87 - .../debug_seed_scenario_fixtures_reducer.rs | 62 - .../bindings/debug_self_resurrect_reducer.rs | 68 - .../stdb/bindings/debug_sell_item_reducer.rs | 87 - .../stdb/bindings/debug_set_health_reducer.rs | 72 - ...set_lethal_damage_floor_fixture_reducer.rs | 81 - ...hal_damage_floor_health_fixture_reducer.rs | 81 - .../stdb/bindings/debug_set_level_reducer.rs | 77 - .../stdb/bindings/debug_set_money_reducer.rs | 77 - .../debug_set_nav_coverage_enabled_reducer.rs | 68 - .../bindings/debug_set_nav_enabled_reducer.rs | 68 - .../stdb/bindings/debug_set_power_reducer.rs | 72 - ..._set_sessionless_action_consent_reducer.rs | 81 - .../stdb/bindings/debug_set_skill_reducer.rs | 87 - .../debug_set_vmap_enabled_reducer.rs | 68 - .../bindings/debug_set_xp_rate_reducer.rs | 66 - .../debug_setup_gather_pool_reducer.rs | 93 - .../bindings/debug_skin_nearest_reducer.rs | 68 - .../bindings/debug_spawn_at_feet_reducer.rs | 87 - .../debug_spawn_gameobject_reducer.rs | 155 - .../debug_spawn_ground_area_reducer.rs | 77 - .../debug_spawn_player_entity_reducer.rs | 68 - .../debug_spirit_healer_res_reducer.rs | 68 - .../stdb/bindings/debug_split_item_reducer.rs | 93 - ...ug_stage_auction_buyout_fixture_reducer.rs | 62 - ...ug_stage_auction_cancel_fixture_reducer.rs | 81 - ...ug_stage_auction_expiry_fixture_reducer.rs | 62 - ...bug_stage_choice_reward_fixture_reducer.rs | 70 - ..._stage_eventai_revision_fixture_reducer.rs | 92 - ..._stage_instance_removal_fixture_reducer.rs | 70 - ...age_legacy_auction_mail_fixture_reducer.rs | 62 - ...age_lethal_damage_floor_fixture_reducer.rs | 70 - .../debug_stage_loot_roll_fixture_reducer.rs | 62 - ...debug_stage_mail_expiry_fixture_reducer.rs | 62 - ...debug_stage_mail_legacy_fixture_reducer.rs | 62 - .../debug_stage_mail_take_fixture_reducer.rs | 62 - ...g_stage_meeting_stone_character_reducer.rs | 134 - ...debug_stage_meeting_stone_claim_reducer.rs | 74 - ...debug_stage_meeting_stone_group_reducer.rs | 87 - .../debug_stage_meeting_stone_reducer.rs | 134 - ...ged_lethal_damage_floor_fixture_reducer.rs | 99 - ...bug_stage_reward_letter_fixture_reducer.rs | 62 - .../debug_start_relay_move_reducer.rs | 77 - .../bindings/debug_stress_relay_reducer.rs | 99 - .../debug_sweep_encounter_state_reducer.rs | 68 - .../debug_sweep_slice_lens_reducer.rs | 62 - .../stdb/bindings/debug_take_loot_reducer.rs | 87 - .../stdb/bindings/debug_teleport_reducer.rs | 105 - ...g_turn_in_choice_reward_fixture_reducer.rs | 70 - .../bindings/debug_turn_in_quest_reducer.rs | 99 - .../bindings/debug_unequip_item_reducer.rs | 77 - .../debug_use_gameobject_entry_reducer.rs | 77 - .../bindings/debug_use_gameobject_reducer.rs | 77 - .../bindings/debug_use_hearthstone_reducer.rs | 68 - .../stdb/bindings/debug_use_item_reducer.rs | 77 - ...g_verify_auction_buyout_fixture_reducer.rs | 62 - ...g_verify_auction_expiry_fixture_reducer.rs | 62 - ...ug_verify_choice_reward_fixture_reducer.rs | 70 - ...y_choice_reward_refusal_fixture_reducer.rs | 73 - .../debug_verify_combat_regen_reducer.rs | 68 - ...fy_eventai_quest_credit_fixture_reducer.rs | 62 - ...verify_eventai_revision_fixture_reducer.rs | 92 - ..._eventai_spell_guardian_cleanup_reducer.rs | 62 - ...ug_verify_eventai_summon_expiry_reducer.rs | 62 - ...fy_legacy_auction_mail_repaired_reducer.rs | 62 - ...ify_lethal_damage_floor_fixture_reducer.rs | 113 - .../debug_verify_loot_tag_fixture_reducer.rs | 62 - ...ebug_verify_mail_expiry_fixture_reducer.rs | 62 - .../debug_verify_mail_fixture_held_reducer.rs | 87 - ...ebug_verify_mail_legacy_fixture_reducer.rs | 62 - ...erify_raid_quest_credit_fixture_reducer.rs | 62 - ...ged_lethal_damage_floor_fixture_reducer.rs | 99 - ..._verify_relay_arrival_placement_reducer.rs | 81 - .../bindings/debug_vmap_area_info_reducer.rs | 80 - .../debug_vmap_ray_instance_reducer.rs | 117 - .../stdb/bindings/debug_vmap_ray_reducer.rs | 111 - .../defer_party_command_intent_reducer.rs | 77 - .../stdb/bindings/delete_character_reducer.rs | 79 - .../discard_vmap_generation_reducer.rs | 68 - gateway/src/stdb/bindings/dr_state_type.rs | 66 - gateway/src/stdb/bindings/duel_event_type.rs | 114 - .../src/stdb/bindings/duel_schedule_type.rs | 52 - gateway/src/stdb/bindings/duel_type.rs | 109 - .../src/stdb/bindings/dynamic_object_type.rs | 73 - gateway/src/stdb/bindings/emote_event_type.rs | 76 - .../stdb/bindings/emote_instruction_type.rs | 18 - .../stdb/bindings/encounter_binding_type.rs | 42 - .../src/stdb/bindings/encounter_equip_type.rs | 63 - .../stdb/bindings/encounter_hp_watch_type.rs | 57 - .../stdb/bindings/encounter_signal_type.rs | 26 - .../src/stdb/bindings/encounter_spawn_type.rs | 60 - .../src/stdb/bindings/encounter_state_type.rs | 61 - .../stdb/bindings/ensure_instance_reducer.rs | 95 - .../src/stdb/bindings/entity_motion_type.rs | 73 - .../bindings/establish_session_reducer.rs | 87 - .../stdb/bindings/evade_instruction_type.rs | 15 - .../bindings/event_ai_quest_credit_type.rs | 23 - .../src/stdb/bindings/event_ai_rule_type.rs | 31 - .../src/stdb/bindings/event_condition_type.rs | 95 - .../src/stdb/bindings/event_predicate_type.rs | 23 - .../bindings/event_reaper_schedule_type.rs | 52 - .../evict_instance_population_reducer.rs | 83 - .../stdb/bindings/execution_policy_type.rs | 18 - .../stdb/bindings/expire_auction_reducer.rs | 70 - .../bindings/expire_eventai_summon_reducer.rs | 70 - .../expire_instance_removal_reducer.rs | 70 - .../stdb/bindings/facing_condition_type.rs | 15 - .../stdb/bindings/facing_instruction_type.rs | 18 - .../stdb/bindings/faction_template_type.rs | 85 - gateway/src/stdb/bindings/faction_type.rs | 55 - .../stdb/bindings/fence_account_reducer.rs | 101 - .../finalize_vmap_nav_coverage_reducer.rs | 68 - ...finish_character_shard_transfer_reducer.rs | 143 - .../finish_party_command_intent_reducer.rs | 89 - ...ending_character_shard_transfer_reducer.rs | 143 - .../stdb/bindings/finish_transfer_reducer.rs | 79 - .../fire_eventai_forced_despawn_reducer.rs | 68 - .../stdb/bindings/fire_mail_timer_reducer.rs | 68 - .../bindings/fire_pending_cast_reducer.rs | 68 - .../bindings/fire_spell_impact_reducer.rs | 68 - .../src/stdb/bindings/flag_override_type.rs | 20 - .../force_despawn_instruction_type.rs | 15 - .../bindings/friendly_aura_selection_type.rs | 20 - .../friendly_crowd_control_condition_type.rs | 15 - .../friendly_health_deficit_condition_type.rs | 17 - .../friendly_missing_aura_condition_type.rs | 19 - .../game_account_character_owner_table.rs | 231 - .../stdb/bindings/game_account_claim_table.rs | 228 - .../stdb/bindings/game_account_fence_table.rs | 228 - .../src/stdb/bindings/game_account_table.rs | 259 - .../bindings/game_active_taxi_flight_table.rs | 230 - .../stdb/bindings/game_addon_message_table.rs | 228 - .../game_alpha_test_tools_enrollment_table.rs | 235 - gateway/src/stdb/bindings/game_area_table.rs | 228 - .../stdb/bindings/game_area_trigger_table.rs | 228 - .../stdb/bindings/game_area_trigger_type.rs | 76 - gateway/src/stdb/bindings/game_area_type.rs | 70 - .../game_areatrigger_teleport_table.rs | 230 - .../game_auction_bid_decision_table.rs | 230 - .../bindings/game_auction_bid_hold_table.rs | 230 - .../bindings/game_auction_expiry_table.rs | 259 - .../stdb/bindings/game_auction_hold_table.rs | 228 - .../stdb/bindings/game_auction_house_table.rs | 230 - .../bindings/game_auction_notice_table.rs | 228 - .../game_auction_operation_receipt_table.rs | 235 - .../src/stdb/bindings/game_auction_table.rs | 228 - .../stdb/bindings/game_aura_schedule_table.rs | 228 - gateway/src/stdb/bindings/game_aura_table.rs | 228 - .../bindings/game_bot_invite_intent_table.rs | 230 - .../game_bot_transfer_intent_table.rs | 230 - .../bindings/game_breath_relay_event_table.rs | 230 - .../bindings/game_breath_schedule_table.rs | 228 - .../stdb/bindings/game_breath_state_table.rs | 228 - .../game_catalogue_fingerprint_table.rs | 231 - .../stdb/bindings/game_channel_event_table.rs | 228 - .../bindings/game_channel_member_table.rs | 228 - .../bindings/game_char_base_info_table.rs | 228 - .../bindings/game_character_away_table.rs | 228 - .../bindings/game_character_buyback_table.rs | 228 - .../bindings/game_character_contact_table.rs | 228 - .../bindings/game_character_explored_table.rs | 230 - ...game_character_quest_event_credit_table.rs | 235 - .../bindings/game_character_quest_table.rs | 228 - .../bindings/game_character_shard_table.rs | 228 - .../src/stdb/bindings/game_character_table.rs | 259 - .../bindings/game_character_talent_table.rs | 230 - .../game_character_taxi_node_table.rs | 230 - .../bindings/game_chat_channel_ban_table.rs | 230 - .../game_chat_channel_member_table.rs | 230 - .../game_chat_channel_notice_event_table.rs | 235 - .../stdb/bindings/game_chat_channel_table.rs | 228 - .../stdb/bindings/game_chat_event_table.rs | 228 - .../bindings/game_class_level_stats_table.rs | 230 - .../stdb/bindings/game_combat_event_table.rs | 228 - .../stdb/bindings/game_combo_point_table.rs | 228 - .../src/stdb/bindings/game_config_table.rs | 228 - .../game_corpse_loot_eligible_table.rs | 230 - .../stdb/bindings/game_corpse_loot_table.rs | 228 - .../src/stdb/bindings/game_corpse_table.rs | 228 - .../bindings/game_createinfo_action_table.rs | 230 - .../bindings/game_createinfo_spell_table.rs | 230 - .../game_creature_ai_broadcast_text_table.rs | 235 - .../game_creature_ai_definition_table.rs | 232 - .../bindings/game_creature_ai_event_table.rs | 230 - .../game_creature_ai_forced_despawn_table.rs | 266 - .../game_creature_ai_movement_intent_table.rs | 237 - ...reature_ai_movement_path_waypoint_table.rs | 243 - .../game_creature_ai_relay_arrival_table.rs | 231 - ...me_creature_ai_relay_continuation_table.rs | 238 - ...game_creature_ai_relay_definition_table.rs | 234 - .../game_creature_ai_relay_run_table.rs | 230 - .../game_creature_ai_reset_deferral_table.rs | 235 - .../game_creature_ai_returning_home_table.rs | 235 - .../game_creature_ai_rule_state_table.rs | 231 - .../game_creature_ai_spell_metadata_table.rs | 235 - .../bindings/game_creature_ai_state_table.rs | 230 - .../game_creature_ai_summon_expiry_table.rs | 266 - .../game_creature_ai_summon_origin_table.rs | 235 - .../bindings/game_creature_ai_summon_table.rs | 230 - .../stdb/bindings/game_creature_cast_table.rs | 228 - ...ture_dead_callback_cast_admission_table.rs | 257 - .../game_creature_distraction_table.rs | 230 - .../bindings/game_creature_family_table.rs | 228 - ...ame_creature_gossip_menu_override_table.rs | 235 - ...game_creature_lethal_damage_floor_table.rs | 235 - .../stdb/bindings/game_creature_loot_table.rs | 228 - .../game_creature_loot_tag_group_table.rs | 231 - .../game_creature_move_event_table.rs | 230 - .../game_creature_move_schedule_table.rs | 231 - .../game_creature_presentation_table.rs | 234 - .../bindings/game_creature_quest_table.rs | 228 - .../game_creature_quest_tap_member_table.rs | 235 - .../bindings/game_creature_quest_tap_table.rs | 230 - ..._creature_relay_temporary_faction_table.rs | 243 - .../bindings/game_creature_spawn_table.rs | 228 - .../bindings/game_creature_spell_table.rs | 228 - .../bindings/game_creature_spline_table.rs | 229 - .../bindings/game_creature_template_table.rs | 230 - .../bindings/game_creature_waypoint_table.rs | 230 - .../stdb/bindings/game_debug_readout_table.rs | 228 - .../src/stdb/bindings/game_dr_state_table.rs | 228 - .../stdb/bindings/game_duel_event_table.rs | 228 - .../stdb/bindings/game_duel_schedule_table.rs | 228 - gateway/src/stdb/bindings/game_duel_table.rs | 228 - .../bindings/game_dynamic_object_table.rs | 228 - .../stdb/bindings/game_emote_event_table.rs | 228 - .../bindings/game_encounter_equip_table.rs | 228 - .../bindings/game_encounter_hp_watch_table.rs | 230 - .../bindings/game_encounter_spawn_table.rs | 228 - .../bindings/game_encounter_state_table.rs | 228 - .../game_entity_motion_pending_table.rs | 230 - .../stdb/bindings/game_entity_motion_table.rs | 228 - .../game_event_reaper_schedule_table.rs | 231 - .../src/stdb/bindings/game_faction_table.rs | 228 - .../bindings/game_faction_template_table.rs | 230 - .../stdb/bindings/game_fishing_loot_table.rs | 228 - .../stdb/bindings/game_fishing_loot_type.rs | 66 - .../bindings/game_gameobject_loot_table.rs | 228 - .../game_gameobject_pool_member_table.rs | 231 - .../bindings/game_gameobject_pool_table.rs | 228 - .../bindings/game_gameobject_quest_table.rs | 230 - .../stdb/bindings/game_gameobject_table.rs | 228 - .../game_gameobject_template_table.rs | 230 - .../game_gameobject_trap_cooldown_table.rs | 235 - .../bindings/game_gameobject_trap_table.rs | 228 - .../game_gameobject_unlocked_table.rs | 230 - ...ame_gateway_lease_reaper_schedule_table.rs | 235 - .../stdb/bindings/game_gateway_lease_table.rs | 261 - .../bindings/game_gateway_session_table.rs | 228 - .../stdb/bindings/game_go_collider_table.rs | 228 - .../src/stdb/bindings/game_go_model_table.rs | 228 - .../game_gossip_menu_profile_option_table.rs | 235 - .../game_gossip_menu_profile_table.rs | 230 - .../stdb/bindings/game_gossip_menu_table.rs | 228 - .../stdb/bindings/game_gossip_option_table.rs | 228 - .../src/stdb/bindings/game_graveyard_table.rs | 228 - .../bindings/game_graveyard_zone_table.rs | 228 - .../game_ground_area_schedule_table.rs | 230 - .../stdb/bindings/game_ground_area_table.rs | 228 - .../stdb/bindings/game_group_event_table.rs | 228 - .../stdb/bindings/game_group_invite_table.rs | 228 - .../game_group_member_partition_table.rs | 232 - .../stdb/bindings/game_group_member_table.rs | 228 - .../game_group_roster_revision_table.rs | 231 - gateway/src/stdb/bindings/game_group_table.rs | 228 - .../bindings/game_group_target_icon_table.rs | 230 - .../bindings/game_guid_allocator_table.rs | 228 - .../game_guid_range_registry_table.rs | 261 - .../stdb/bindings/game_guid_range_table.rs | 228 - .../stdb/bindings/game_guild_event_table.rs | 228 - .../bindings/game_guild_fee_decision_table.rs | 230 - .../bindings/game_guild_fee_hold_table.rs | 228 - .../stdb/bindings/game_guild_invite_table.rs | 228 - .../stdb/bindings/game_guild_member_table.rs | 228 - .../game_guild_petition_signature_table.rs | 235 - .../bindings/game_guild_petition_table.rs | 290 - .../stdb/bindings/game_guild_rank_table.rs | 228 - gateway/src/stdb/bindings/game_guild_table.rs | 259 - .../game_hunter_pet_protocol_table.rs | 230 - .../stdb/bindings/game_hunter_pet_table.rs | 228 - .../stdb/bindings/game_import_meta_table.rs | 228 - .../bindings/game_instance_binding_table.rs | 230 - .../bindings/game_instance_binding_type.rs | 62 - .../game_instance_reaper_schedule_table.rs | 235 - .../bindings/game_instance_removal_table.rs | 261 - .../src/stdb/bindings/game_instance_table.rs | 228 - .../src/stdb/bindings/game_instance_type.rs | 71 - .../bindings/game_item_enchantment_table.rs | 230 - .../stdb/bindings/game_item_instance_table.rs | 228 - .../game_item_property_weight_table.rs | 230 - .../game_item_random_property_table.rs | 230 - .../stdb/bindings/game_item_template_table.rs | 228 - .../src/stdb/bindings/game_item_text_table.rs | 228 - .../stdb/bindings/game_level_stats_table.rs | 228 - .../stdb/bindings/game_levelup_event_table.rs | 228 - .../stdb/bindings/game_live_pet_kind_table.rs | 228 - gateway/src/stdb/bindings/game_lock_table.rs | 228 - gateway/src/stdb/bindings/game_lock_type.rs | 66 - .../game_loot_roll_promotion_receipt_table.rs | 235 - .../src/stdb/bindings/game_loot_roll_table.rs | 228 - .../bindings/game_loot_roll_vote_table.rs | 228 - .../stdb/bindings/game_mail_arrival_table.rs | 228 - .../stdb/bindings/game_mail_delivery_table.rs | 228 - .../game_mail_escrow_reaper_schedule_table.rs | 235 - .../stdb/bindings/game_mail_escrow_table.rs | 228 - .../src/stdb/bindings/game_mail_loot_table.rs | 228 - gateway/src/stdb/bindings/game_mail_table.rs | 228 - .../stdb/bindings/game_mail_template_table.rs | 228 - .../stdb/bindings/game_mail_timer_table.rs | 259 - .../stdb/bindings/game_map_region_table.rs | 228 - .../game_meeting_stone_party_table.rs | 230 - ...e_meeting_stone_reminder_schedule_table.rs | 242 - .../game_meeting_stone_seeker_table.rs | 230 - .../stdb/bindings/game_meeting_stone_table.rs | 228 - .../stdb/bindings/game_melee_attack_table.rs | 228 - .../bindings/game_melee_schedule_table.rs | 228 - .../game_motion_publish_schedule_table.rs | 231 - .../bindings/game_movement_violation_table.rs | 230 - .../src/stdb/bindings/game_nav_chunk_table.rs | 228 - .../game_navigation_revision_table.rs | 230 - .../stdb/bindings/game_npc_text_slot_table.rs | 228 - .../src/stdb/bindings/game_npc_text_table.rs | 228 - .../stdb/bindings/game_npc_vendor_table.rs | 228 - .../stdb/bindings/game_object_loot_type.rs | 69 - .../bindings/game_object_pool_member_type.rs | 75 - .../stdb/bindings/game_object_pool_type.rs | 55 - .../stdb/bindings/game_object_quest_type.rs | 60 - .../bindings/game_object_template_type.rs | 79 - .../game_object_trap_cooldown_type.rs | 60 - .../stdb/bindings/game_object_trap_type.rs | 55 - gateway/src/stdb/bindings/game_object_type.rs | 104 - .../bindings/game_object_unlocked_type.rs | 49 - .../src/stdb/bindings/game_operator_table.rs | 228 - .../bindings/game_package_account_table.rs | 228 - .../bindings/game_package_config_table.rs | 228 - .../bindings/game_package_import_table.rs | 228 - .../bindings/game_package_teardown_table.rs | 230 - .../game_party_command_dispatch_lane_table.rs | 235 - .../game_party_command_intent_table.rs | 232 - .../game_party_command_issuer_table.rs | 230 - .../game_party_command_receipt_table.rs | 263 - .../stdb/bindings/game_pending_cast_table.rs | 228 - .../game_pending_spell_impact_table.rs | 230 - .../bindings/game_pet_care_schedule_table.rs | 230 - .../stdb/bindings/game_pet_command_table.rs | 228 - .../bindings/game_pickpocket_loot_table.rs | 230 - .../bindings/game_pickpocket_loot_type.rs | 69 - .../stdb/bindings/game_player_action_table.rs | 228 - .../bindings/game_player_reputation_table.rs | 230 - .../stdb/bindings/game_player_skill_table.rs | 228 - .../stdb/bindings/game_player_spell_table.rs | 228 - .../game_quest_cast_objective_table.rs | 230 - .../game_quest_event_requirement_table.rs | 231 - .../bindings/game_quest_objective_table.rs | 228 - .../game_quest_reward_choice_table.rs | 230 - .../bindings/game_quest_reward_item_table.rs | 230 - .../bindings/game_quest_reward_mail_table.rs | 230 - .../bindings/game_quest_reward_spell_table.rs | 230 - .../bindings/game_quest_template_table.rs | 228 - .../stdb/bindings/game_quest_text_table.rs | 228 - .../src/stdb/bindings/game_race_info_table.rs | 228 - .../game_ranged_impact_schedule_table.rs | 231 - .../bindings/game_realm_chat_event_table.rs | 230 - gateway/src/stdb/bindings/game_realm_table.rs | 228 - .../bindings/game_region_assignment_table.rs | 230 - .../stdb/bindings/game_region_load_table.rs | 228 - .../bindings/game_rest_state_event_table.rs | 230 - .../bindings/game_resurrect_request_table.rs | 230 - .../stdb/bindings/game_roll_event_table.rs | 228 - .../bindings/game_school_lockout_table.rs | 228 - .../src/stdb/bindings/game_script_table.rs | 259 - .../game_self_resurrect_option_table.rs | 231 - .../game_session_reaper_schedule_table.rs | 231 - .../src/stdb/bindings/game_session_table.rs | 228 - .../game_sessionless_action_consent_table.rs | 235 - .../stdb/bindings/game_shard_load_table.rs | 228 - .../bindings/game_shard_load_total_table.rs | 230 - .../stdb/bindings/game_skill_ability_table.rs | 228 - .../bindings/game_skill_availability_table.rs | 230 - .../stdb/bindings/game_skill_line_table.rs | 228 - .../stdb/bindings/game_skinning_loot_table.rs | 228 - .../stdb/bindings/game_skinning_loot_type.rs | 66 - .../bindings/game_spell_cast_event_table.rs | 230 - .../src/stdb/bindings/game_spell_cd_table.rs | 228 - .../stdb/bindings/game_spell_chain_table.rs | 228 - .../bindings/game_spell_cooldown_table.rs | 228 - .../stdb/bindings/game_spell_effect_table.rs | 228 - .../bindings/game_spell_group_rule_table.rs | 230 - .../stdb/bindings/game_spell_group_table.rs | 228 - .../bindings/game_spell_impact_event_table.rs | 230 - .../stdb/bindings/game_spell_learn_table.rs | 228 - .../bindings/game_spell_proc_event_table.rs | 230 - .../stdb/bindings/game_spell_reagent_table.rs | 228 - gateway/src/stdb/bindings/game_spell_table.rs | 228 - .../stdb/bindings/game_start_item_table.rs | 228 - .../bindings/game_start_position_table.rs | 228 - .../game_system_message_event_table.rs | 230 - .../stdb/bindings/game_talent_tab_table.rs | 228 - .../src/stdb/bindings/game_talent_table.rs | 228 - .../stdb/bindings/game_taunt_lock_table.rs | 228 - .../game_taxi_flight_schedule_table.rs | 230 - .../src/stdb/bindings/game_taxi_node_table.rs | 259 - .../src/stdb/bindings/game_taxi_node_type.rs | 81 - .../game_taxi_passenger_spline_table.rs | 231 - .../bindings/game_taxi_path_node_table.rs | 230 - .../stdb/bindings/game_taxi_path_node_type.rs | 75 - .../src/stdb/bindings/game_taxi_path_table.rs | 228 - .../src/stdb/bindings/game_taxi_path_type.rs | 63 - .../bindings/game_taxi_service_reply_table.rs | 230 - .../bindings/game_teleport_event_table.rs | 228 - .../stdb/bindings/game_terrain_chunk_table.rs | 228 - .../src/stdb/bindings/game_threat_table.rs | 228 - .../stdb/bindings/game_trade_event_table.rs | 228 - .../stdb/bindings/game_trade_session_table.rs | 228 - .../stdb/bindings/game_trade_slot_table.rs | 228 - .../stdb/bindings/game_trainer_spell_table.rs | 228 - .../stdb/bindings/game_transfer_in_table.rs | 228 - .../stdb/bindings/game_transfer_out_table.rs | 228 - .../game_transfer_reaper_schedule_table.rs | 235 - .../stdb/bindings/game_vmap_chunk_table.rs | 228 - .../game_vmap_generation_chunk_table.rs | 231 - .../game_vmap_generation_receipt_table.rs | 231 - .../bindings/game_vmap_generation_table.rs | 228 - .../bindings/game_vmap_indoor_cell_table.rs | 230 - .../game_vmap_nav_coverage_manifest_table.rs | 235 - .../bindings/game_vmap_nav_coverage_table.rs | 230 - .../bindings/game_weather_schedule_table.rs | 230 - .../src/stdb/bindings/game_weather_table.rs | 228 - .../stdb/bindings/game_whisper_event_table.rs | 228 - .../stdb/bindings/game_world_config_table.rs | 228 - .../stdb/bindings/game_world_entity_table.rs | 228 - .../bindings/game_world_state_name_table.rs | 230 - .../stdb/bindings/game_world_state_table.rs | 228 - .../src/stdb/bindings/game_xp_event_table.rs | 228 - .../stdb/bindings/game_zone_weather_table.rs | 228 - .../gateway_lease_reaper_schedule_type.rs | 52 - .../src/stdb/bindings/gateway_lease_type.rs | 57 - .../src/stdb/bindings/gateway_session_type.rs | 52 - .../src/stdb/bindings/gm_world_config_type.rs | 52 - gateway/src/stdb/bindings/go_collider_type.rs | 70 - gateway/src/stdb/bindings/go_model_type.rs | 58 - .../gossip_menu_profile_option_type.rs | 78 - .../stdb/bindings/gossip_menu_profile_type.rs | 52 - gateway/src/stdb/bindings/gossip_menu_type.rs | 52 - .../src/stdb/bindings/gossip_option_type.rs | 78 - .../grant_alpha_test_tools_reducer.rs | 68 - .../src/stdb/bindings/graveyard_loc_type.rs | 67 - .../src/stdb/bindings/graveyard_zone_type.rs | 60 - .../bindings/ground_area_schedule_type.rs | 52 - gateway/src/stdb/bindings/ground_area_type.rs | 88 - gateway/src/stdb/bindings/group_event_type.rs | 75 - .../src/stdb/bindings/group_invite_type.rs | 63 - .../bindings/group_member_partition_type.rs | 77 - .../src/stdb/bindings/group_member_type.rs | 65 - .../bindings/group_roster_revision_type.rs | 55 - .../stdb/bindings/group_target_icon_type.rs | 62 - gateway/src/stdb/bindings/group_type.rs | 67 - .../src/stdb/bindings/guid_allocator_type.rs | 52 - .../bindings/guid_range_assignment_type.rs | 63 - gateway/src/stdb/bindings/guid_range_type.rs | 55 - .../bindings/guild_accept_request_type.rs | 16 - .../bindings/guild_charter_purchase_type.rs | 16 - .../stdb/bindings/guild_charter_terms_type.rs | 18 - .../bindings/guild_emblem_purchase_type.rs | 18 - .../src/stdb/bindings/guild_emblem_type.rs | 19 - gateway/src/stdb/bindings/guild_event_type.rs | 74 - .../stdb/bindings/guild_fee_decision_type.rs | 67 - .../src/stdb/bindings/guild_fee_hold_type.rs | 85 - .../stdb/bindings/guild_fee_request_type.rs | 20 - .../src/stdb/bindings/guild_fee_terms_type.rs | 20 - .../src/stdb/bindings/guild_gm_create_type.rs | 20 - .../bindings/guild_invite_request_type.rs | 18 - .../src/stdb/bindings/guild_invite_type.rs | 60 - .../src/stdb/bindings/guild_member_type.rs | 72 - .../src/stdb/bindings/guild_note_edit_type.rs | 16 - gateway/src/stdb/bindings/guild_op_type.rs | 74 - .../bindings/guild_petition_offer_type.rs | 17 - .../bindings/guild_petition_rename_type.rs | 16 - .../stdb/bindings/guild_petition_sign_type.rs | 17 - .../bindings/guild_petition_signature_type.rs | 71 - .../src/stdb/bindings/guild_petition_type.rs | 71 - .../src/stdb/bindings/guild_rank_edit_type.rs | 17 - gateway/src/stdb/bindings/guild_rank_type.rs | 63 - gateway/src/stdb/bindings/guild_type.rs | 89 - .../stdb/bindings/gw_abandon_quest_reducer.rs | 79 - .../gw_accept_group_invite_reducer.rs | 70 - .../stdb/bindings/gw_accept_quest_reducer.rs | 89 - .../stdb/bindings/gw_accept_trade_reducer.rs | 70 - .../bindings/gw_ack_taxi_reply_reducer.rs | 79 - .../stdb/bindings/gw_activate_taxi_reducer.rs | 108 - .../stdb/bindings/gw_add_friend_reducer.rs | 89 - .../stdb/bindings/gw_add_ignore_reducer.rs | 79 - .../gw_admit_meeting_stone_reducer.rs | 83 - .../bindings/gw_arm_taxi_flight_reducer.rs | 70 - .../src/stdb/bindings/gw_attack_reducer.rs | 79 - .../bindings/gw_auction_bid_local_reducer.rs | 115 - .../gw_auction_cancel_local_reducer.rs | 115 - .../gw_auction_confirm_bid_refund_reducer.rs | 115 - .../bindings/gw_auction_finish_bid_reducer.rs | 150 - .../bindings/gw_auction_hold_bid_reducer.rs | 115 - .../gw_auction_hold_cancel_reducer.rs | 115 - .../gw_auction_hold_listing_reducer.rs | 129 - .../bindings/gw_auction_list_local_reducer.rs | 129 - ...gw_auction_release_listing_hold_reducer.rs | 83 - .../bindings/gw_auto_bank_item_reducer.rs | 79 - .../stdb/bindings/gw_begin_trade_reducer.rs | 70 - .../src/stdb/bindings/gw_bind_home_reducer.rs | 79 - .../stdb/bindings/gw_busy_trade_reducer.rs | 70 - .../stdb/bindings/gw_buy_bank_slot_reducer.rs | 79 - .../src/stdb/bindings/gw_buy_item_reducer.rs | 95 - .../stdb/bindings/gw_buyback_item_reducer.rs | 89 - .../stdb/bindings/gw_cancel_aura_reducer.rs | 79 - .../stdb/bindings/gw_cancel_cast_reducer.rs | 70 - .../stdb/bindings/gw_cancel_trade_reducer.rs | 70 - .../src/stdb/bindings/gw_cast_at_reducer.rs | 89 - .../bindings/gw_cast_item_target_reducer.rs | 89 - .../stdb/bindings/gw_cast_spell_at_reducer.rs | 107 - .../stdb/bindings/gw_cast_spell_reducer.rs | 89 - .../bindings/gw_clear_trade_item_reducer.rs | 83 - .../bindings/gw_client_command_reducer.rs | 89 - .../stdb/bindings/gw_del_friend_reducer.rs | 79 - .../stdb/bindings/gw_del_ignore_reducer.rs | 79 - .../gw_destroy_guild_charter_reducer.rs | 83 - .../stdb/bindings/gw_destroy_item_reducer.rs | 89 - .../stdb/bindings/gw_disenchant_reducer.rs | 79 - .../stdb/bindings/gw_duel_accept_reducer.rs | 79 - .../stdb/bindings/gw_duel_cancel_reducer.rs | 79 - .../stdb/bindings/gw_enchant_item_reducer.rs | 89 - .../bindings/gw_enter_areatrigger_reducer.rs | 83 - .../stdb/bindings/gw_equip_item_reducer.rs | 79 - gateway/src/stdb/bindings/gw_fish_reducer.rs | 70 - .../bindings/gw_force_zone_weather_reducer.rs | 87 - .../stdb/bindings/gw_gm_command_reducer.rs | 89 - .../stdb/bindings/gw_gossip_select_reducer.rs | 95 - .../stdb/bindings/gw_group_decline_reducer.rs | 70 - .../stdb/bindings/gw_group_invite_reducer.rs | 79 - .../stdb/bindings/gw_group_leave_reducer.rs | 70 - .../bindings/gw_group_loot_method_reducer.rs | 101 - .../bindings/gw_group_uninvite_reducer.rs | 83 - .../bindings/gw_guild_fee_finish_reducer.rs | 89 - .../bindings/gw_guild_fee_hold_reducer.rs | 90 - .../src/stdb/bindings/gw_heartbeat_reducer.rs | 62 - .../stdb/bindings/gw_ignore_trade_reducer.rs | 70 - .../bindings/gw_initiate_trade_reducer.rs | 83 - .../src/stdb/bindings/gw_inspect_reducer.rs | 79 - .../stdb/bindings/gw_learn_talent_reducer.rs | 79 - .../bindings/gw_loot_master_give_reducer.rs | 101 - .../stdb/bindings/gw_loot_money_reducer.rs | 79 - .../src/stdb/bindings/gw_loot_roll_reducer.rs | 95 - .../bindings/gw_mail_grant_letter_reducer.rs | 83 - .../src/stdb/bindings/gw_move_item_reducer.rs | 89 - gateway/src/stdb/bindings/gw_move_type.rs | 24 - .../bindings/gw_movement_batch_reducer.rs | 68 - .../bindings/gw_movement_update_reducer.rs | 129 - .../bindings/gw_open_creature_loot_reducer.rs | 83 - .../src/stdb/bindings/gw_open_taxi_reducer.rs | 89 - .../stdb/bindings/gw_pet_command_reducer.rs | 89 - .../src/stdb/bindings/gw_pick_lock_reducer.rs | 79 - .../stdb/bindings/gw_player_login_reducer.rs | 79 - .../bindings/gw_player_world_port_reducer.rs | 83 - .../gw_push_quest_to_party_reducer.rs | 83 - .../stdb/bindings/gw_ranged_attack_reducer.rs | 89 - .../bindings/gw_reclaim_corpse_reducer.rs | 83 - .../stdb/bindings/gw_repair_item_reducer.rs | 89 - gateway/src/stdb/bindings/gw_repop_reducer.rs | 70 - .../stdb/bindings/gw_reset_talents_reducer.rs | 83 - .../bindings/gw_respond_resurrect_reducer.rs | 79 - .../bindings/gw_self_resurrect_reducer.rs | 70 - .../src/stdb/bindings/gw_sell_item_reducer.rs | 89 - .../src/stdb/bindings/gw_send_chat_reducer.rs | 95 - .../stdb/bindings/gw_send_emote_reducer.rs | 101 - .../bindings/gw_set_action_button_reducer.rs | 95 - .../src/stdb/bindings/gw_set_away_reducer.rs | 89 - .../bindings/gw_set_faction_at_war_reducer.rs | 89 - .../stdb/bindings/gw_set_sheathed_reducer.rs | 79 - .../stdb/bindings/gw_set_target_reducer.rs | 79 - .../bindings/gw_set_trade_gold_reducer.rs | 79 - .../bindings/gw_set_trade_item_reducer.rs | 89 - .../gw_set_watched_faction_reducer.rs | 83 - gateway/src/stdb/bindings/gw_skin_reducer.rs | 79 - .../stdb/bindings/gw_spirit_res_reducer.rs | 70 - .../stdb/bindings/gw_split_item_reducer.rs | 95 - .../stdb/bindings/gw_stop_attack_reducer.rs | 70 - .../src/stdb/bindings/gw_take_loot_reducer.rs | 89 - .../bindings/gw_taxi_node_status_reducer.rs | 89 - .../stdb/bindings/gw_trainer_buy_reducer.rs | 89 - .../stdb/bindings/gw_turn_in_quest_reducer.rs | 101 - .../bindings/gw_unaccept_trade_reducer.rs | 70 - .../stdb/bindings/gw_unequip_item_reducer.rs | 79 - .../bindings/gw_use_gameobject_reducer.rs | 79 - .../src/stdb/bindings/gw_use_item_reducer.rs | 79 - .../stdb/bindings/hunter_pet_protocol_type.rs | 81 - gateway/src/stdb/bindings/hunter_pet_type.rs | 90 - .../bindings/idle_movement_intent_type.rs | 24 - .../immobilization_instruction_type.rs | 16 - .../import_bot_character_blob_reducer.rs | 143 - .../bindings/import_character_blob_reducer.rs | 89 - .../stdb/bindings/import_character_reducer.rs | 68 - ..._creature_ai_definitions_append_reducer.rs | 70 - .../import_creature_ai_definitions_reducer.rs | 68 - ...t_creature_ai_relay_definitions_reducer.rs | 68 - .../import_creature_spawns_append_reducer.rs | 68 - .../import_creature_spawns_reducer.rs | 68 - .../import_gameobjects_append_reducer.rs | 68 - .../bindings/import_gameobjects_reducer.rs | 68 - .../import_go_models_append_reducer.rs | 68 - .../stdb/bindings/import_go_models_reducer.rs | 68 - .../bindings/import_map_regions_reducer.rs | 68 - gateway/src/stdb/bindings/import_meta_type.rs | 61 - .../import_nav_chunks_append_reducer.rs | 68 - .../bindings/import_nav_chunks_reducer.rs | 68 - .../import_player_character_blob_reducer.rs | 115 - .../import_terrain_chunks_append_reducer.rs | 68 - .../bindings/import_terrain_chunks_reducer.rs | 68 - .../import_verified_rajaxx_projection_type.rs | 15 - .../import_vmap_chunks_append_reducer.rs | 68 - .../bindings/import_vmap_chunks_reducer.rs | 68 - .../increment_phase_instruction_type.rs | 15 - .../bindings/install_guid_range_reducer.rs | 66 - .../bindings/instance_reaper_schedule_type.rs | 52 - .../stdb/bindings/instance_removal_type.rs | 63 - .../bindings/instruction_selection_type.rs | 18 - .../stdb/bindings/instruction_target_type.rs | 50 - .../stdb/bindings/item_enchantment_type.rs | 69 - .../src/stdb/bindings/item_instance_type.rs | 84 - .../bindings/item_property_weight_type.rs | 60 - .../bindings/item_random_property_type.rs | 61 - .../src/stdb/bindings/item_template_type.rs | 232 - gateway/src/stdb/bindings/item_text_type.rs | 55 - .../src/stdb/bindings/kill_condition_type.rs | 15 - gateway/src/stdb/bindings/kill_credit_type.rs | 18 - gateway/src/stdb/bindings/level_stats_type.rs | 73 - .../src/stdb/bindings/levelup_event_type.rs | 84 - .../src/stdb/bindings/live_pet_kind_type.rs | 52 - .../loot_roll_promotion_receipt_type.rs | 61 - gateway/src/stdb/bindings/loot_roll_type.rs | 72 - .../src/stdb/bindings/loot_roll_vote_type.rs | 66 - .../src/stdb/bindings/mail_arrival_type.rs | 57 - .../src/stdb/bindings/mail_delivery_type.rs | 60 - .../mail_escrow_reaper_schedule_type.rs | 52 - gateway/src/stdb/bindings/mail_escrow_type.rs | 120 - gateway/src/stdb/bindings/mail_loot_type.rs | 55 - .../src/stdb/bindings/mail_template_type.rs | 52 - gateway/src/stdb/bindings/mail_timer_type.rs | 57 - gateway/src/stdb/bindings/mail_type.rs | 111 - gateway/src/stdb/bindings/map_region_type.rs | 67 - ...mark_bot_transfer_arrival_ready_reducer.rs | 99 - .../stdb/bindings/meeting_stone_party_type.rs | 61 - .../meeting_stone_reminder_schedule_type.rs | 52 - .../bindings/meeting_stone_seeker_type.rs | 66 - .../src/stdb/bindings/meeting_stone_type.rs | 58 - .../src/stdb/bindings/melee_attack_type.rs | 78 - .../src/stdb/bindings/melee_schedule_type.rs | 52 - .../missing_text_template_no_effect_type.rs | 15 - gateway/src/stdb/bindings/mod.rs | 15925 ---------------- .../bindings/motion_publish_schedule_type.rs | 52 - .../stdb/bindings/movement_operation_type.rs | 41 - .../src/stdb/bindings/movement_switch_type.rs | 15 - .../stdb/bindings/movement_violation_type.rs | 70 - gateway/src/stdb/bindings/nav_chunk_type.rs | 67 - .../stdb/bindings/navigation_inputs_type.rs | 20 - .../stdb/bindings/navigation_revision_type.rs | 52 - .../notify_encounter_instruction_type.rs | 19 - .../bindings/npc_flags_projection_type.rs | 20 - .../src/stdb/bindings/npc_text_slot_type.rs | 66 - gateway/src/stdb/bindings/npc_text_type.rs | 52 - gateway/src/stdb/bindings/npc_vendor_type.rs | 63 - .../stdb/bindings/on_disconnect_reducer.rs | 62 - gateway/src/stdb/bindings/operator_type.rs | 52 - .../out_of_combat_sight_condition_type.rs | 20 - .../src/stdb/bindings/package_account_type.rs | 54 - .../src/stdb/bindings/package_config_type.rs | 58 - .../src/stdb/bindings/package_import_type.rs | 79 - .../stdb/bindings/package_teardown_type.rs | 49 - .../bindings/parsed_client_command_type.rs | 18 - .../party_command_dispatch_lane_type.rs | 55 - ...fixture_apply_after_gate_change_reducer.rs | 92 - .../party_command_fixture_apply_reducer.rs | 77 - .../party_command_fixture_drive_reducer.rs | 77 - ...ure_expire_after_receipt_window_reducer.rs | 73 - .../party_command_fixture_expire_reducer.rs | 68 - .../party_command_fixture_finish_reducer.rs | 77 - ...command_fixture_release_receipt_reducer.rs | 70 - .../bindings/party_command_intent_type.rs | 101 - .../bindings/party_command_issuer_type.rs | 52 - .../bindings/party_command_receipt_type.rs | 81 - .../bindings/party_partition_state_type.rs | 20 - .../src/stdb/bindings/patrol_intent_type.rs | 15 - .../src/stdb/bindings/patrol_pause_type.rs | 15 - .../src/stdb/bindings/pending_cast_type.rs | 81 - .../src/stdb/bindings/pending_motion_type.rs | 70 - .../bindings/pending_spell_impact_type.rs | 76 - .../bindings/percentage_condition_type.rs | 16 - .../stdb/bindings/pet_care_schedule_type.rs | 52 - gateway/src/stdb/bindings/pet_command_type.rs | 58 - gateway/src/stdb/bindings/phase_set_type.rs | 15 - .../src/stdb/bindings/player_action_type.rs | 66 - .../stdb/bindings/player_reputation_type.rs | 69 - .../src/stdb/bindings/player_skill_type.rs | 66 - .../src/stdb/bindings/player_spell_type.rs | 60 - .../stdb/bindings/posture_admission_type.rs | 20 - .../prepare_vmap_nav_coverage_reducer.rs | 83 - .../bindings/provision_account_reducer.rs | 87 - .../stdb/bindings/publish_motion_reducer.rs | 70 - .../bindings/quest_cast_objective_type.rs | 60 - .../quest_credit_recipient_policy_type.rs | 22 - .../bindings/quest_event_requirement_type.rs | 54 - gateway/src/stdb/bindings/quest_event_type.rs | 18 - .../src/stdb/bindings/quest_objective_type.rs | 66 - .../stdb/bindings/quest_reward_choice_type.rs | 63 - .../stdb/bindings/quest_reward_item_type.rs | 60 - .../stdb/bindings/quest_reward_mail_type.rs | 64 - .../stdb/bindings/quest_reward_spell_type.rs | 52 - .../bindings/quest_taken_predicate_type.rs | 15 - .../src/stdb/bindings/quest_template_type.rs | 112 - gateway/src/stdb/bindings/quest_text_type.rs | 61 - gateway/src/stdb/bindings/race_info_type.rs | 58 - .../bindings/random_emote_instruction_type.rs | 15 - .../bindings/random_movement_intent_type.rs | 15 - .../bindings/random_phase_instruction_type.rs | 15 - .../random_phase_range_instruction_type.rs | 16 - .../stdb/bindings/ranged_impact_reducer.rs | 68 - .../bindings/ranged_impact_schedule_type.rs | 67 - .../bindings/ranged_mode_instruction_type.rs | 18 - gateway/src/stdb/bindings/ranged_mode_type.rs | 24 - .../ranged_posture_instruction_type.rs | 16 - .../realm_auction_commit_listing_reducer.rs | 206 - .../realm_auction_confirm_listing_reducer.rs | 89 - .../realm_auction_decide_bid_reducer.rs | 108 - .../realm_auction_decide_cancel_reducer.rs | 108 - .../realm_auction_refund_bid_reducer.rs | 115 - .../realm_auction_refund_listing_reducer.rs | 206 - .../realm_auction_settle_listing_reducer.rs | 83 - .../stdb/bindings/realm_channel_op_reducer.rs | 90 - .../stdb/bindings/realm_chat_event_type.rs | 76 - .../src/stdb/bindings/realm_chat_reducer.rs | 84 - .../stdb/bindings/realm_chat_request_type.rs | 22 - .../stdb/bindings/realm_group_op_reducer.rs | 115 - .../realm_guild_fee_decide_reducer.rs | 90 - .../stdb/bindings/realm_guild_op_reducer.rs | 75 - .../stdb/bindings/realm_loot_op_reducer.rs | 150 - .../bindings/realm_mail_commit_reducer.rs | 206 - .../realm_mail_confirm_delivery_reducer.rs | 83 - .../bindings/realm_mail_copy_text_reducer.rs | 79 - .../bindings/realm_mail_delete_reducer.rs | 79 - .../stdb/bindings/realm_mail_fence_reducer.rs | 150 - .../realm_mail_item_payout_reducer.rs | 143 - .../bindings/realm_mail_item_room_reducer.rs | 70 - .../realm_mail_mark_letter_granted_reducer.rs | 83 - .../bindings/realm_mail_mark_read_reducer.rs | 79 - .../bindings/realm_mail_payout_reducer.rs | 95 - .../bindings/realm_mail_return_reducer.rs | 89 - .../stdb/bindings/realm_mail_send_reducer.rs | 129 - .../bindings/realm_mail_settle_reducer.rs | 79 - .../realm_mail_take_item_fence_reducer.rs | 101 - .../bindings/realm_mail_take_item_reducer.rs | 79 - .../realm_mail_take_money_fence_reducer.rs | 101 - .../bindings/realm_mail_take_money_reducer.rs | 83 - .../realm_meeting_stone_op_reducer.rs | 96 - gateway/src/stdb/bindings/realm_type.rs | 67 - .../stdb/bindings/realm_whisper_reducer.rs | 84 - .../bindings/reap_gateway_leases_reducer.rs | 70 - .../stdb/bindings/reap_instances_reducer.rs | 70 - .../bindings/reap_mail_escrows_reducer.rs | 70 - .../bindings/reap_movement_events_reducer.rs | 70 - .../stdb/bindings/reap_sessions_reducer.rs | 70 - .../stdb/bindings/reap_transfers_reducer.rs | 70 - .../bindings/rebuild_go_colliders_reducer.rs | 62 - .../receive_ai_event_condition_type.rs | 18 - .../bindings/receive_emote_condition_type.rs | 18 - .../bindings/record_region_load_reducer.rs | 82 - .../bindings/record_shard_load_reducer.rs | 99 - .../stdb/bindings/recurrence_policy_type.rs | 21 - .../stdb/bindings/region_assignment_type.rs | 64 - gateway/src/stdb/bindings/region_load_type.rs | 61 - .../bindings/relay_activate_object_type.rs | 13 - .../src/stdb/bindings/relay_ai_event_type.rs | 18 - .../src/stdb/bindings/relay_arrival_type.rs | 99 - .../stdb/bindings/relay_cast_spell_type.rs | 16 - .../stdb/bindings/relay_concurrency_type.rs | 20 - .../stdb/bindings/relay_continuation_type.rs | 57 - .../stdb/bindings/relay_definition_type.rs | 76 - gateway/src/stdb/bindings/relay_delay_type.rs | 15 - .../stdb/bindings/relay_dynamic_move_type.rs | 21 - gateway/src/stdb/bindings/relay_emote_type.rs | 15 - .../src/stdb/bindings/relay_enabled_type.rs | 15 - .../src/stdb/bindings/relay_equipment_type.rs | 18 - .../bindings/relay_face_orientation_type.rs | 15 - .../src/stdb/bindings/relay_facing_type.rs | 18 - .../relay_faction_restoration_type.rs | 18 - .../src/stdb/bindings/relay_faction_type.rs | 18 - .../stdb/bindings/relay_flag_change_type.rs | 18 - .../bindings/relay_flag_operation_type.rs | 20 - .../bindings/relay_forced_movement_type.rs | 20 - .../stdb/bindings/relay_gossip_menu_type.rs | 15 - .../stdb/bindings/relay_instruction_type.rs | 87 - .../src/stdb/bindings/relay_lifetime_type.rs | 18 - .../stdb/bindings/relay_move_point_type.rs | 21 - .../src/stdb/bindings/relay_move_to_type.rs | 20 - .../src/stdb/bindings/relay_movement_type.rs | 24 - .../src/stdb/bindings/relay_nearby_type.rs | 16 - .../stdb/bindings/relay_participants_type.rs | 18 - .../bindings/relay_patrol_movement_type.rs | 15 - .../bindings/relay_random_movement_type.rs | 15 - gateway/src/stdb/bindings/relay_run_type.rs | 106 - .../stdb/bindings/relay_set_movement_type.rs | 19 - .../bindings/relay_spawn_creature_type.rs | 22 - .../stdb/bindings/relay_stand_state_type.rs | 15 - gateway/src/stdb/bindings/relay_start_type.rs | 15 - gateway/src/stdb/bindings/relay_step_type.rs | 22 - .../src/stdb/bindings/relay_subject_type.rs | 29 - gateway/src/stdb/bindings/relay_talk_type.rs | 15 - .../bindings/relay_template_update_type.rs | 15 - .../src/stdb/bindings/relay_terminate_type.rs | 19 - .../bindings/relay_terminate_when_type.rs | 18 - .../stdb/bindings/relay_world_state_type.rs | 16 - .../bindings/release_account_claim_reducer.rs | 68 - .../release_bot_transfer_arrival_reducer.rs | 134 - ...release_player_transfer_arrival_reducer.rs | 115 - .../stdb/bindings/release_transfer_reducer.rs | 79 - .../bindings/remind_queued_parties_reducer.rs | 70 - .../bindings/remove_aura_instruction_type.rs | 18 - .../remove_guardians_instruction_type.rs | 15 - .../bindings/renew_account_claim_reducer.rs | 68 - .../bindings/renew_account_fence_reducer.rs | 83 - .../stdb/bindings/rest_state_event_type.rs | 58 - .../bindings/restore_taxi_fixture_reducer.rs | 62 - .../bindings/resume_relay_arrival_reducer.rs | 70 - .../stdb/bindings/resume_relay_run_reducer.rs | 70 - .../stdb/bindings/resurrect_request_type.rs | 64 - .../revoke_alpha_test_tools_reducer.rs | 68 - gateway/src/stdb/bindings/roll_event_type.rs | 76 - .../scale_all_threat_instruction_type.rs | 15 - .../scale_selected_threat_instruction_type.rs | 18 - .../src/stdb/bindings/school_lockout_type.rs | 60 - gateway/src/stdb/bindings/script_type.rs | 77 - .../src/stdb/bindings/seeker_facts_type.rs | 17 - .../bindings/self_resurrect_option_type.rs | 52 - .../src/stdb/bindings/server_config_type.rs | 70 - .../src/stdb/bindings/session_actor_type.rs | 18 - .../bindings/session_reaper_schedule_type.rs | 52 - gateway/src/stdb/bindings/session_type.rs | 61 - .../sessionless_action_consent_type.rs | 52 - ...set_alpha_test_tools_enrollment_reducer.rs | 68 - .../bindings/set_character_shard_reducer.rs | 101 - .../src/stdb/bindings/set_gm_level_reducer.rs | 77 - ...et_lethal_damage_floor_instruction_type.rs | 15 - .../bindings/set_motion_tick_ms_reducer.rs | 68 - .../bindings/set_package_config_reducer.rs | 93 - .../bindings/set_phase_instruction_type.rs | 15 - .../set_react_state_instruction_type.rs | 17 - .../bindings/set_realm_address_reducer.rs | 68 - .../bindings/set_region_assignment_reducer.rs | 93 - .../set_stand_state_instruction_type.rs | 15 - .../stdb/bindings/settle_loot_roll_reducer.rs | 95 - .../stdb/bindings/shard_load_total_type.rs | 55 - gateway/src/stdb/bindings/shard_load_type.rs | 67 - .../src/stdb/bindings/skill_ability_type.rs | 75 - .../stdb/bindings/skill_availability_type.rs | 66 - gateway/src/stdb/bindings/skill_line_type.rs | 55 - .../spawn_at_actor_instruction_type.rs | 19 - .../src/stdb/bindings/spawn_condition_type.rs | 22 - .../stdb/bindings/spawn_map_condition_type.rs | 15 - .../spawn_zone_or_area_condition_type.rs | 15 - .../stdb/bindings/speak_instruction_type.rs | 21 - .../src/stdb/bindings/speaker_facts_type.rs | 16 - gateway/src/stdb/bindings/speech_mode_type.rs | 20 - .../stdb/bindings/spell_cast_event_type.rs | 121 - .../stdb/bindings/spell_caster_role_type.rs | 18 - gateway/src/stdb/bindings/spell_cd_type.rs | 60 - gateway/src/stdb/bindings/spell_chain_type.rs | 63 - .../src/stdb/bindings/spell_cooldown_type.rs | 52 - .../src/stdb/bindings/spell_effect_type.rs | 104 - .../bindings/spell_event_condition_type.rs | 16 - .../stdb/bindings/spell_group_rule_type.rs | 55 - gateway/src/stdb/bindings/spell_group_type.rs | 59 - .../stdb/bindings/spell_impact_event_type.rs | 88 - gateway/src/stdb/bindings/spell_learn_type.rs | 57 - .../stdb/bindings/spell_proc_event_type.rs | 73 - .../src/stdb/bindings/spell_reagent_type.rs | 60 - .../stdb/bindings/spell_start_mode_type.rs | 18 - .../stdb/bindings/spell_target_role_type.rs | 24 - gateway/src/stdb/bindings/spell_type.rs | 121 - .../bindings/stage_vmap_generation_reducer.rs | 120 - .../bindings/stamp_import_meta_reducer.rs | 93 - gateway/src/stdb/bindings/start_item_type.rs | 57 - .../src/stdb/bindings/start_position_type.rs | 76 - .../bindings/start_relay_instruction_type.rs | 19 - .../stdb/bindings/summon_instruction_type.rs | 19 - .../bindings/sync_group_mirror_reducer.rs | 151 - .../bindings/system_message_event_type.rs | 66 - gateway/src/stdb/bindings/talent_tab_type.rs | 63 - gateway/src/stdb/bindings/talent_type.rs | 107 - .../bindings/target_range_condition_type.rs | 16 - gateway/src/stdb/bindings/taunt_lock_type.rs | 55 - .../bindings/taxi_flight_schedule_type.rs | 52 - .../bindings/taxi_passenger_spline_type.rs | 82 - .../stdb/bindings/taxi_service_reply_type.rs | 87 - .../stdb/bindings/teardown_package_reducer.rs | 68 - .../src/stdb/bindings/teleport_event_type.rs | 81 - .../src/stdb/bindings/terrain_chunk_type.rs | 73 - .../src/stdb/bindings/threat_entry_type.rs | 62 - .../throw_ai_event_instruction_type.rs | 20 - .../src/stdb/bindings/tick_auras_reducer.rs | 70 - .../src/stdb/bindings/tick_breath_reducer.rs | 70 - .../stdb/bindings/tick_creatures_reducer.rs | 70 - .../src/stdb/bindings/tick_duels_reducer.rs | 70 - .../bindings/tick_ground_areas_reducer.rs | 70 - .../src/stdb/bindings/tick_melee_reducer.rs | 70 - .../stdb/bindings/tick_pet_care_reducer.rs | 70 - .../src/stdb/bindings/tick_weather_reducer.rs | 70 - gateway/src/stdb/bindings/time_window_type.rs | 16 - gateway/src/stdb/bindings/trade_event_type.rs | 72 - .../src/stdb/bindings/trade_session_type.rs | 77 - gateway/src/stdb/bindings/trade_slot_type.rs | 63 - .../src/stdb/bindings/trainer_spell_type.rs | 71 - gateway/src/stdb/bindings/transfer_in_type.rs | 90 - .../src/stdb/bindings/transfer_out_type.rs | 81 - .../bindings/transfer_reaper_schedule_type.rs | 52 - .../verify_vmap_generation_reducer.rs | 68 - gateway/src/stdb/bindings/vmap_chunk_type.rs | 66 - .../bindings/vmap_generation_chunk_type.rs | 72 - .../bindings/vmap_generation_receipt_type.rs | 60 - .../src/stdb/bindings/vmap_generation_type.rs | 73 - .../stdb/bindings/vmap_indoor_cell_type.rs | 57 - .../bindings/vmap_nav_coverage_cell_type.rs | 16 - .../vmap_nav_coverage_manifest_type.rs | 61 - .../stdb/bindings/vmap_nav_coverage_type.rs | 75 - .../src/stdb/bindings/walking_mode_type.rs | 22 - .../stdb/bindings/weather_schedule_type.rs | 52 - .../src/stdb/bindings/whisper_event_type.rs | 72 - .../src/stdb/bindings/whisper_request_type.rs | 21 - .../bindings/whisper_target_facts_type.rs | 20 - .../src/stdb/bindings/world_entity_type.rs | 301 - .../stdb/bindings/world_session_token_type.rs | 17 - .../stdb/bindings/world_state_name_type.rs | 49 - gateway/src/stdb/bindings/world_state_type.rs | 63 - gateway/src/stdb/bindings/xp_event_type.rs | 72 - .../stdb/bindings/zone_weather_chance_type.rs | 94 - .../src/stdb/bindings/zone_weather_type.rs | 58 - gateway/src/stdb/mod.rs | 5 +- gateway/src/stdb/store/auction.rs | 15 - gateway/src/stdb/store/character.rs | 4 +- gateway/src/stdb/store/npc.rs | 8 +- .../stdb/world_view/cell_audience_tests.rs | 6 +- gateway/src/stdb/world_view/relay_bench.rs | 6 +- gateway/tests/schema_parity.rs | 23 +- module/src/corpse.rs | 4 +- module/src/gameobject.rs | 5 +- scripts/check-gateway-bindings.py | 204 - scripts/tests/test_check_gateway_bindings.py | 58 - 1214 files changed, 179 insertions(+), 144499 deletions(-) create mode 100644 .github/actions/setup-spacetime/action.yml create mode 100644 gateway/build.rs delete mode 100644 gateway/src/stdb/bindings/account_character_owner_type.rs delete mode 100644 gateway/src/stdb/bindings/account_claim_type.rs delete mode 100644 gateway/src/stdb/bindings/account_fence_type.rs delete mode 100644 gateway/src/stdb/bindings/account_type.rs delete mode 100644 gateway/src/stdb/bindings/activate_vmap_generation_reducer.rs delete mode 100644 gateway/src/stdb/bindings/active_taxi_flight_type.rs delete mode 100644 gateway/src/stdb/bindings/addon_message_type.rs delete mode 100644 gateway/src/stdb/bindings/admit_party_command_authority_reducer.rs delete mode 100644 gateway/src/stdb/bindings/admit_sessionless_group_action_reducer.rs delete mode 100644 gateway/src/stdb/bindings/advance_taxi_flight_reducer.rs delete mode 100644 gateway/src/stdb/bindings/ai_event_kind_type.rs delete mode 100644 gateway/src/stdb/bindings/alpha_test_tools_enrollment_type.rs delete mode 100644 gateway/src/stdb/bindings/append_vmap_generation_chunks_reducer.rs delete mode 100644 gateway/src/stdb/bindings/apply_admitted_party_command_reducer.rs delete mode 100644 gateway/src/stdb/bindings/apply_package_deltas_reducer.rs delete mode 100644 gateway/src/stdb/bindings/areatrigger_teleport_type.rs delete mode 100644 gateway/src/stdb/bindings/arm_all_pools_reducer.rs delete mode 100644 gateway/src/stdb/bindings/auction_bid_decision_type.rs delete mode 100644 gateway/src/stdb/bindings/auction_bid_hold_type.rs delete mode 100644 gateway/src/stdb/bindings/auction_expiry_type.rs delete mode 100644 gateway/src/stdb/bindings/auction_hold_type.rs delete mode 100644 gateway/src/stdb/bindings/auction_house_definition_type.rs delete mode 100644 gateway/src/stdb/bindings/auction_notice_type.rs delete mode 100644 gateway/src/stdb/bindings/auction_operation_receipt_type.rs delete mode 100644 gateway/src/stdb/bindings/auction_type.rs delete mode 100644 gateway/src/stdb/bindings/aura_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/aura_stack_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/aura_type.rs delete mode 100644 gateway/src/stdb/bindings/authored_idle_movement_type.rs delete mode 100644 gateway/src/stdb/bindings/authored_walking_mode_type.rs delete mode 100644 gateway/src/stdb/bindings/begin_character_shard_transfer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/begin_transfer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/bind_bot_transfer_locator_reducer.rs delete mode 100644 gateway/src/stdb/bindings/bot_invite_intent_type.rs delete mode 100644 gateway/src/stdb/bindings/bot_transfer_intent_type.rs delete mode 100644 gateway/src/stdb/bindings/breath_relay_event_type.rs delete mode 100644 gateway/src/stdb/bindings/breath_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/breath_state_type.rs delete mode 100644 gateway/src/stdb/bindings/buyback_entry_type.rs delete mode 100644 gateway/src/stdb/bindings/call_for_help_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/cast_credit_type.rs delete mode 100644 gateway/src/stdb/bindings/cast_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/catalogue_fingerprint_type.rs delete mode 100644 gateway/src/stdb/bindings/channel_event_type.rs delete mode 100644 gateway/src/stdb/bindings/channel_member_type.rs delete mode 100644 gateway/src/stdb/bindings/channel_request_type.rs delete mode 100644 gateway/src/stdb/bindings/char_base_info_type.rs delete mode 100644 gateway/src/stdb/bindings/character_away_type.rs delete mode 100644 gateway/src/stdb/bindings/character_explored_type.rs delete mode 100644 gateway/src/stdb/bindings/character_quest_event_credit_type.rs delete mode 100644 gateway/src/stdb/bindings/character_quest_type.rs delete mode 100644 gateway/src/stdb/bindings/character_shard_type.rs delete mode 100644 gateway/src/stdb/bindings/character_talent_type.rs delete mode 100644 gateway/src/stdb/bindings/character_taxi_node_type.rs delete mode 100644 gateway/src/stdb/bindings/character_type.rs delete mode 100644 gateway/src/stdb/bindings/chat_channel_ban_type.rs delete mode 100644 gateway/src/stdb/bindings/chat_channel_member_type.rs delete mode 100644 gateway/src/stdb/bindings/chat_channel_notice_event_type.rs delete mode 100644 gateway/src/stdb/bindings/chat_channel_type.rs delete mode 100644 gateway/src/stdb/bindings/chat_event_type.rs delete mode 100644 gateway/src/stdb/bindings/claim_account_reducer.rs delete mode 100644 gateway/src/stdb/bindings/claim_bot_invite_intent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/claim_bot_transfer_intent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/claim_guid_range_reducer.rs delete mode 100644 gateway/src/stdb/bindings/claim_operator_reducer.rs delete mode 100644 gateway/src/stdb/bindings/claim_party_command_intent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/class_level_stats_type.rs delete mode 100644 gateway/src/stdb/bindings/clear_promoted_loot_roll_reducer.rs delete mode 100644 gateway/src/stdb/bindings/close_account_fence_reducer.rs delete mode 100644 gateway/src/stdb/bindings/combat_event_type.rs delete mode 100644 gateway/src/stdb/bindings/combo_point_type.rs delete mode 100644 gateway/src/stdb/bindings/command_intent_state_type.rs delete mode 100644 gateway/src/stdb/bindings/command_outcome_type.rs delete mode 100644 gateway/src/stdb/bindings/complete_bot_transfer_intent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/confirm_import_reducer.rs delete mode 100644 gateway/src/stdb/bindings/confirm_party_command_holder_reducer.rs delete mode 100644 gateway/src/stdb/bindings/confirm_party_command_receipt_reducer.rs delete mode 100644 gateway/src/stdb/bindings/contact_entry_type.rs delete mode 100644 gateway/src/stdb/bindings/corpse_loot_eligible_type.rs delete mode 100644 gateway/src/stdb/bindings/corpse_loot_type.rs delete mode 100644 gateway/src/stdb/bindings/corpse_type.rs delete mode 100644 gateway/src/stdb/bindings/create_character_reducer.rs delete mode 100644 gateway/src/stdb/bindings/createinfo_action_type.rs delete mode 100644 gateway/src/stdb/bindings/createinfo_spell_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_broadcast_text_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_definition_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_event_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_forced_despawn_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_movement_intent_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_movement_path_waypoint_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_reset_deferral_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_returning_home_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_rule_state_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_spell_metadata_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_state_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_summon_expiry_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_summon_origin_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_ai_summon_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_cast_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_dead_callback_cast_admission_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_distraction_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_entry_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_family_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_gossip_menu_override_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_health_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_lethal_damage_floor_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_loot_tag_group_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_loot_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_move_event_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_move_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_path_point_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_path_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_presentation_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_presentation_mount_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_presentation_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_quest_tap_member_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_quest_tap_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_quest_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_react_state_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_relay_temporary_faction_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_spawn_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_spell_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_spline_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_template_type.rs delete mode 100644 gateway/src/stdb/bindings/creature_waypoint_type.rs delete mode 100644 gateway/src/stdb/bindings/death_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/debug_accelerate_session_reaper_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_accept_quest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_add_threat_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_admit_sessionless_action_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_age_mail_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_apply_damage_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_apply_lethal_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_arm_instance_tick_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_assert_blink_clamp_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_assert_chase_stops_at_column_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_assert_floor_snap_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_assert_go_collision_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_assert_unreachable_goal_stops_at_wall_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_audit_class_kits_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_audit_quest_chains_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_auto_bank_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_backdate_meeting_stone_party_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_backdate_meeting_stone_seeker_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_backfill_cell_ids_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_backfill_go_grid_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_begin_cast_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_bench_collision_gate_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_bench_los_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_bind_home_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_bot_transfer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_buy_bank_slot_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_buy_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_buy_trainer_spell_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_cast_at_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_cast_spell_at_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_cast_spell_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_catalogue_fingerprint_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_check_rest_at_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_check_submerged_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_clear_creatures_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_compute_spell_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_compute_swing_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_create_fixture_instance_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_create_package_character_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_creature_path_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_delete_character_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_deliver_mail_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_disarm_instance_tick_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_disenchant_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_emit_sessionless_group_intent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_enchant_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_encounter_equip_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_encounter_move_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_encounter_open_door_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_encounter_reset_hp_fired_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_encounter_reset_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_encounter_set_state_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_encounter_spawn_wave_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_encounter_watch_hp_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_engage_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_enter_areatrigger_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_enter_instance_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_equip_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_equip_offhand_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_equip_weapon_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_expire_instance_removal_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_expire_quest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_expire_session_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_explore_at_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_fill_aura_slots_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_fish_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_floor_probe_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_force_cast_at_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_force_cast_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_force_gameobject_respawn_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_force_lethal_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_force_pool_reroll_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_gossip_select_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_grant_default_actions_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_grant_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_grant_quest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_grant_reputation_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_hold_instance_removals_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_kill_creature_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_kill_nearest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_learn_profession_from_trainer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_learn_profession_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_learn_riding_from_trainer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_learn_riding_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_learn_spell_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_learn_talent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_learn_weapon_from_trainer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_log_vendor_discount_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_logout_character_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_move_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_nav_leg_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_nav_probe_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_normalize_spawn_timers_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_pet_command_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_pick_lock_entry_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_push_quest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_ranged_attack_nearest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_readout_type.rs delete mode 100644 gateway/src/stdb/bindings/debug_reap_instance_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_regrid_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_repair_after_publish_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_repair_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_replace_definition_then_apply_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_replay_auction_expiry_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_replay_mail_timer_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_replay_sessionless_areatrigger_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_repop_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_reseed_skills_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_reset_instance_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_reset_talents_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_respawn_lethal_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_resurrect_response_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_retire_region_creatures_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_run_runtime_script_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_score_movement_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_seed_creature_ai_fixtures_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_seed_mail_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_seed_package_config_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_seed_scenario_fixtures_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_self_resurrect_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_sell_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_health_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_lethal_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_lethal_damage_floor_health_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_level_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_money_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_nav_coverage_enabled_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_nav_enabled_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_power_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_sessionless_action_consent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_skill_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_vmap_enabled_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_set_xp_rate_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_setup_gather_pool_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_skin_nearest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_spawn_at_feet_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_spawn_gameobject_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_spawn_ground_area_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_spawn_player_entity_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_spirit_healer_res_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_split_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_auction_buyout_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_auction_cancel_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_auction_expiry_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_choice_reward_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_eventai_revision_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_instance_removal_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_legacy_auction_mail_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_lethal_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_loot_roll_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_mail_expiry_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_mail_legacy_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_mail_take_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_meeting_stone_character_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_meeting_stone_claim_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_meeting_stone_group_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_meeting_stone_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_ranged_lethal_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stage_reward_letter_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_start_relay_move_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_stress_relay_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_sweep_encounter_state_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_sweep_slice_lens_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_take_loot_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_teleport_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_turn_in_choice_reward_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_turn_in_quest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_unequip_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_use_gameobject_entry_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_use_gameobject_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_use_hearthstone_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_use_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_auction_buyout_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_auction_expiry_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_choice_reward_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_choice_reward_refusal_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_combat_regen_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_eventai_quest_credit_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_eventai_revision_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_eventai_spell_guardian_cleanup_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_eventai_summon_expiry_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_legacy_auction_mail_repaired_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_lethal_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_loot_tag_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_mail_expiry_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_mail_fixture_held_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_mail_legacy_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_raid_quest_credit_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_ranged_lethal_damage_floor_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_verify_relay_arrival_placement_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_vmap_area_info_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_vmap_ray_instance_reducer.rs delete mode 100644 gateway/src/stdb/bindings/debug_vmap_ray_reducer.rs delete mode 100644 gateway/src/stdb/bindings/defer_party_command_intent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/delete_character_reducer.rs delete mode 100644 gateway/src/stdb/bindings/discard_vmap_generation_reducer.rs delete mode 100644 gateway/src/stdb/bindings/dr_state_type.rs delete mode 100644 gateway/src/stdb/bindings/duel_event_type.rs delete mode 100644 gateway/src/stdb/bindings/duel_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/duel_type.rs delete mode 100644 gateway/src/stdb/bindings/dynamic_object_type.rs delete mode 100644 gateway/src/stdb/bindings/emote_event_type.rs delete mode 100644 gateway/src/stdb/bindings/emote_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/encounter_binding_type.rs delete mode 100644 gateway/src/stdb/bindings/encounter_equip_type.rs delete mode 100644 gateway/src/stdb/bindings/encounter_hp_watch_type.rs delete mode 100644 gateway/src/stdb/bindings/encounter_signal_type.rs delete mode 100644 gateway/src/stdb/bindings/encounter_spawn_type.rs delete mode 100644 gateway/src/stdb/bindings/encounter_state_type.rs delete mode 100644 gateway/src/stdb/bindings/ensure_instance_reducer.rs delete mode 100644 gateway/src/stdb/bindings/entity_motion_type.rs delete mode 100644 gateway/src/stdb/bindings/establish_session_reducer.rs delete mode 100644 gateway/src/stdb/bindings/evade_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/event_ai_quest_credit_type.rs delete mode 100644 gateway/src/stdb/bindings/event_ai_rule_type.rs delete mode 100644 gateway/src/stdb/bindings/event_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/event_predicate_type.rs delete mode 100644 gateway/src/stdb/bindings/event_reaper_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/evict_instance_population_reducer.rs delete mode 100644 gateway/src/stdb/bindings/execution_policy_type.rs delete mode 100644 gateway/src/stdb/bindings/expire_auction_reducer.rs delete mode 100644 gateway/src/stdb/bindings/expire_eventai_summon_reducer.rs delete mode 100644 gateway/src/stdb/bindings/expire_instance_removal_reducer.rs delete mode 100644 gateway/src/stdb/bindings/facing_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/facing_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/faction_template_type.rs delete mode 100644 gateway/src/stdb/bindings/faction_type.rs delete mode 100644 gateway/src/stdb/bindings/fence_account_reducer.rs delete mode 100644 gateway/src/stdb/bindings/finalize_vmap_nav_coverage_reducer.rs delete mode 100644 gateway/src/stdb/bindings/finish_character_shard_transfer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/finish_party_command_intent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/finish_pending_character_shard_transfer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/finish_transfer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/fire_eventai_forced_despawn_reducer.rs delete mode 100644 gateway/src/stdb/bindings/fire_mail_timer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/fire_pending_cast_reducer.rs delete mode 100644 gateway/src/stdb/bindings/fire_spell_impact_reducer.rs delete mode 100644 gateway/src/stdb/bindings/flag_override_type.rs delete mode 100644 gateway/src/stdb/bindings/force_despawn_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/friendly_aura_selection_type.rs delete mode 100644 gateway/src/stdb/bindings/friendly_crowd_control_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/friendly_health_deficit_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/friendly_missing_aura_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/game_account_character_owner_table.rs delete mode 100644 gateway/src/stdb/bindings/game_account_claim_table.rs delete mode 100644 gateway/src/stdb/bindings/game_account_fence_table.rs delete mode 100644 gateway/src/stdb/bindings/game_account_table.rs delete mode 100644 gateway/src/stdb/bindings/game_active_taxi_flight_table.rs delete mode 100644 gateway/src/stdb/bindings/game_addon_message_table.rs delete mode 100644 gateway/src/stdb/bindings/game_alpha_test_tools_enrollment_table.rs delete mode 100644 gateway/src/stdb/bindings/game_area_table.rs delete mode 100644 gateway/src/stdb/bindings/game_area_trigger_table.rs delete mode 100644 gateway/src/stdb/bindings/game_area_trigger_type.rs delete mode 100644 gateway/src/stdb/bindings/game_area_type.rs delete mode 100644 gateway/src/stdb/bindings/game_areatrigger_teleport_table.rs delete mode 100644 gateway/src/stdb/bindings/game_auction_bid_decision_table.rs delete mode 100644 gateway/src/stdb/bindings/game_auction_bid_hold_table.rs delete mode 100644 gateway/src/stdb/bindings/game_auction_expiry_table.rs delete mode 100644 gateway/src/stdb/bindings/game_auction_hold_table.rs delete mode 100644 gateway/src/stdb/bindings/game_auction_house_table.rs delete mode 100644 gateway/src/stdb/bindings/game_auction_notice_table.rs delete mode 100644 gateway/src/stdb/bindings/game_auction_operation_receipt_table.rs delete mode 100644 gateway/src/stdb/bindings/game_auction_table.rs delete mode 100644 gateway/src/stdb/bindings/game_aura_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_aura_table.rs delete mode 100644 gateway/src/stdb/bindings/game_bot_invite_intent_table.rs delete mode 100644 gateway/src/stdb/bindings/game_bot_transfer_intent_table.rs delete mode 100644 gateway/src/stdb/bindings/game_breath_relay_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_breath_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_breath_state_table.rs delete mode 100644 gateway/src/stdb/bindings/game_catalogue_fingerprint_table.rs delete mode 100644 gateway/src/stdb/bindings/game_channel_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_channel_member_table.rs delete mode 100644 gateway/src/stdb/bindings/game_char_base_info_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_away_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_buyback_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_contact_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_explored_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_quest_event_credit_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_quest_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_shard_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_talent_table.rs delete mode 100644 gateway/src/stdb/bindings/game_character_taxi_node_table.rs delete mode 100644 gateway/src/stdb/bindings/game_chat_channel_ban_table.rs delete mode 100644 gateway/src/stdb/bindings/game_chat_channel_member_table.rs delete mode 100644 gateway/src/stdb/bindings/game_chat_channel_notice_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_chat_channel_table.rs delete mode 100644 gateway/src/stdb/bindings/game_chat_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_class_level_stats_table.rs delete mode 100644 gateway/src/stdb/bindings/game_combat_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_combo_point_table.rs delete mode 100644 gateway/src/stdb/bindings/game_config_table.rs delete mode 100644 gateway/src/stdb/bindings/game_corpse_loot_eligible_table.rs delete mode 100644 gateway/src/stdb/bindings/game_corpse_loot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_corpse_table.rs delete mode 100644 gateway/src/stdb/bindings/game_createinfo_action_table.rs delete mode 100644 gateway/src/stdb/bindings/game_createinfo_spell_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_broadcast_text_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_definition_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_forced_despawn_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_movement_intent_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_movement_path_waypoint_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_relay_arrival_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_relay_continuation_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_relay_definition_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_relay_run_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_reset_deferral_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_returning_home_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_rule_state_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_spell_metadata_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_state_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_summon_expiry_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_summon_origin_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_ai_summon_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_cast_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_dead_callback_cast_admission_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_distraction_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_family_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_gossip_menu_override_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_lethal_damage_floor_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_loot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_loot_tag_group_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_move_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_move_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_presentation_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_quest_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_quest_tap_member_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_quest_tap_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_relay_temporary_faction_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_spawn_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_spell_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_spline_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_template_table.rs delete mode 100644 gateway/src/stdb/bindings/game_creature_waypoint_table.rs delete mode 100644 gateway/src/stdb/bindings/game_debug_readout_table.rs delete mode 100644 gateway/src/stdb/bindings/game_dr_state_table.rs delete mode 100644 gateway/src/stdb/bindings/game_duel_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_duel_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_duel_table.rs delete mode 100644 gateway/src/stdb/bindings/game_dynamic_object_table.rs delete mode 100644 gateway/src/stdb/bindings/game_emote_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_encounter_equip_table.rs delete mode 100644 gateway/src/stdb/bindings/game_encounter_hp_watch_table.rs delete mode 100644 gateway/src/stdb/bindings/game_encounter_spawn_table.rs delete mode 100644 gateway/src/stdb/bindings/game_encounter_state_table.rs delete mode 100644 gateway/src/stdb/bindings/game_entity_motion_pending_table.rs delete mode 100644 gateway/src/stdb/bindings/game_entity_motion_table.rs delete mode 100644 gateway/src/stdb/bindings/game_event_reaper_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_faction_table.rs delete mode 100644 gateway/src/stdb/bindings/game_faction_template_table.rs delete mode 100644 gateway/src/stdb/bindings/game_fishing_loot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_fishing_loot_type.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_loot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_pool_member_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_pool_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_quest_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_template_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_trap_cooldown_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_trap_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gameobject_unlocked_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gateway_lease_reaper_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gateway_lease_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gateway_session_table.rs delete mode 100644 gateway/src/stdb/bindings/game_go_collider_table.rs delete mode 100644 gateway/src/stdb/bindings/game_go_model_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gossip_menu_profile_option_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gossip_menu_profile_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gossip_menu_table.rs delete mode 100644 gateway/src/stdb/bindings/game_gossip_option_table.rs delete mode 100644 gateway/src/stdb/bindings/game_graveyard_table.rs delete mode 100644 gateway/src/stdb/bindings/game_graveyard_zone_table.rs delete mode 100644 gateway/src/stdb/bindings/game_ground_area_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_ground_area_table.rs delete mode 100644 gateway/src/stdb/bindings/game_group_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_group_invite_table.rs delete mode 100644 gateway/src/stdb/bindings/game_group_member_partition_table.rs delete mode 100644 gateway/src/stdb/bindings/game_group_member_table.rs delete mode 100644 gateway/src/stdb/bindings/game_group_roster_revision_table.rs delete mode 100644 gateway/src/stdb/bindings/game_group_table.rs delete mode 100644 gateway/src/stdb/bindings/game_group_target_icon_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guid_allocator_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guid_range_registry_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guid_range_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_fee_decision_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_fee_hold_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_invite_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_member_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_petition_signature_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_petition_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_rank_table.rs delete mode 100644 gateway/src/stdb/bindings/game_guild_table.rs delete mode 100644 gateway/src/stdb/bindings/game_hunter_pet_protocol_table.rs delete mode 100644 gateway/src/stdb/bindings/game_hunter_pet_table.rs delete mode 100644 gateway/src/stdb/bindings/game_import_meta_table.rs delete mode 100644 gateway/src/stdb/bindings/game_instance_binding_table.rs delete mode 100644 gateway/src/stdb/bindings/game_instance_binding_type.rs delete mode 100644 gateway/src/stdb/bindings/game_instance_reaper_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_instance_removal_table.rs delete mode 100644 gateway/src/stdb/bindings/game_instance_table.rs delete mode 100644 gateway/src/stdb/bindings/game_instance_type.rs delete mode 100644 gateway/src/stdb/bindings/game_item_enchantment_table.rs delete mode 100644 gateway/src/stdb/bindings/game_item_instance_table.rs delete mode 100644 gateway/src/stdb/bindings/game_item_property_weight_table.rs delete mode 100644 gateway/src/stdb/bindings/game_item_random_property_table.rs delete mode 100644 gateway/src/stdb/bindings/game_item_template_table.rs delete mode 100644 gateway/src/stdb/bindings/game_item_text_table.rs delete mode 100644 gateway/src/stdb/bindings/game_level_stats_table.rs delete mode 100644 gateway/src/stdb/bindings/game_levelup_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_live_pet_kind_table.rs delete mode 100644 gateway/src/stdb/bindings/game_lock_table.rs delete mode 100644 gateway/src/stdb/bindings/game_lock_type.rs delete mode 100644 gateway/src/stdb/bindings/game_loot_roll_promotion_receipt_table.rs delete mode 100644 gateway/src/stdb/bindings/game_loot_roll_table.rs delete mode 100644 gateway/src/stdb/bindings/game_loot_roll_vote_table.rs delete mode 100644 gateway/src/stdb/bindings/game_mail_arrival_table.rs delete mode 100644 gateway/src/stdb/bindings/game_mail_delivery_table.rs delete mode 100644 gateway/src/stdb/bindings/game_mail_escrow_reaper_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_mail_escrow_table.rs delete mode 100644 gateway/src/stdb/bindings/game_mail_loot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_mail_table.rs delete mode 100644 gateway/src/stdb/bindings/game_mail_template_table.rs delete mode 100644 gateway/src/stdb/bindings/game_mail_timer_table.rs delete mode 100644 gateway/src/stdb/bindings/game_map_region_table.rs delete mode 100644 gateway/src/stdb/bindings/game_meeting_stone_party_table.rs delete mode 100644 gateway/src/stdb/bindings/game_meeting_stone_reminder_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_meeting_stone_seeker_table.rs delete mode 100644 gateway/src/stdb/bindings/game_meeting_stone_table.rs delete mode 100644 gateway/src/stdb/bindings/game_melee_attack_table.rs delete mode 100644 gateway/src/stdb/bindings/game_melee_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_motion_publish_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_movement_violation_table.rs delete mode 100644 gateway/src/stdb/bindings/game_nav_chunk_table.rs delete mode 100644 gateway/src/stdb/bindings/game_navigation_revision_table.rs delete mode 100644 gateway/src/stdb/bindings/game_npc_text_slot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_npc_text_table.rs delete mode 100644 gateway/src/stdb/bindings/game_npc_vendor_table.rs delete mode 100644 gateway/src/stdb/bindings/game_object_loot_type.rs delete mode 100644 gateway/src/stdb/bindings/game_object_pool_member_type.rs delete mode 100644 gateway/src/stdb/bindings/game_object_pool_type.rs delete mode 100644 gateway/src/stdb/bindings/game_object_quest_type.rs delete mode 100644 gateway/src/stdb/bindings/game_object_template_type.rs delete mode 100644 gateway/src/stdb/bindings/game_object_trap_cooldown_type.rs delete mode 100644 gateway/src/stdb/bindings/game_object_trap_type.rs delete mode 100644 gateway/src/stdb/bindings/game_object_type.rs delete mode 100644 gateway/src/stdb/bindings/game_object_unlocked_type.rs delete mode 100644 gateway/src/stdb/bindings/game_operator_table.rs delete mode 100644 gateway/src/stdb/bindings/game_package_account_table.rs delete mode 100644 gateway/src/stdb/bindings/game_package_config_table.rs delete mode 100644 gateway/src/stdb/bindings/game_package_import_table.rs delete mode 100644 gateway/src/stdb/bindings/game_package_teardown_table.rs delete mode 100644 gateway/src/stdb/bindings/game_party_command_dispatch_lane_table.rs delete mode 100644 gateway/src/stdb/bindings/game_party_command_intent_table.rs delete mode 100644 gateway/src/stdb/bindings/game_party_command_issuer_table.rs delete mode 100644 gateway/src/stdb/bindings/game_party_command_receipt_table.rs delete mode 100644 gateway/src/stdb/bindings/game_pending_cast_table.rs delete mode 100644 gateway/src/stdb/bindings/game_pending_spell_impact_table.rs delete mode 100644 gateway/src/stdb/bindings/game_pet_care_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_pet_command_table.rs delete mode 100644 gateway/src/stdb/bindings/game_pickpocket_loot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_pickpocket_loot_type.rs delete mode 100644 gateway/src/stdb/bindings/game_player_action_table.rs delete mode 100644 gateway/src/stdb/bindings/game_player_reputation_table.rs delete mode 100644 gateway/src/stdb/bindings/game_player_skill_table.rs delete mode 100644 gateway/src/stdb/bindings/game_player_spell_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_cast_objective_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_event_requirement_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_objective_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_reward_choice_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_reward_item_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_reward_mail_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_reward_spell_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_template_table.rs delete mode 100644 gateway/src/stdb/bindings/game_quest_text_table.rs delete mode 100644 gateway/src/stdb/bindings/game_race_info_table.rs delete mode 100644 gateway/src/stdb/bindings/game_ranged_impact_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_realm_chat_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_realm_table.rs delete mode 100644 gateway/src/stdb/bindings/game_region_assignment_table.rs delete mode 100644 gateway/src/stdb/bindings/game_region_load_table.rs delete mode 100644 gateway/src/stdb/bindings/game_rest_state_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_resurrect_request_table.rs delete mode 100644 gateway/src/stdb/bindings/game_roll_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_school_lockout_table.rs delete mode 100644 gateway/src/stdb/bindings/game_script_table.rs delete mode 100644 gateway/src/stdb/bindings/game_self_resurrect_option_table.rs delete mode 100644 gateway/src/stdb/bindings/game_session_reaper_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_session_table.rs delete mode 100644 gateway/src/stdb/bindings/game_sessionless_action_consent_table.rs delete mode 100644 gateway/src/stdb/bindings/game_shard_load_table.rs delete mode 100644 gateway/src/stdb/bindings/game_shard_load_total_table.rs delete mode 100644 gateway/src/stdb/bindings/game_skill_ability_table.rs delete mode 100644 gateway/src/stdb/bindings/game_skill_availability_table.rs delete mode 100644 gateway/src/stdb/bindings/game_skill_line_table.rs delete mode 100644 gateway/src/stdb/bindings/game_skinning_loot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_skinning_loot_type.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_cast_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_cd_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_chain_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_cooldown_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_effect_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_group_rule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_group_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_impact_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_learn_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_proc_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_reagent_table.rs delete mode 100644 gateway/src/stdb/bindings/game_spell_table.rs delete mode 100644 gateway/src/stdb/bindings/game_start_item_table.rs delete mode 100644 gateway/src/stdb/bindings/game_start_position_table.rs delete mode 100644 gateway/src/stdb/bindings/game_system_message_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_talent_tab_table.rs delete mode 100644 gateway/src/stdb/bindings/game_talent_table.rs delete mode 100644 gateway/src/stdb/bindings/game_taunt_lock_table.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_flight_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_node_table.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_node_type.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_passenger_spline_table.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_path_node_table.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_path_node_type.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_path_table.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_path_type.rs delete mode 100644 gateway/src/stdb/bindings/game_taxi_service_reply_table.rs delete mode 100644 gateway/src/stdb/bindings/game_teleport_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_terrain_chunk_table.rs delete mode 100644 gateway/src/stdb/bindings/game_threat_table.rs delete mode 100644 gateway/src/stdb/bindings/game_trade_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_trade_session_table.rs delete mode 100644 gateway/src/stdb/bindings/game_trade_slot_table.rs delete mode 100644 gateway/src/stdb/bindings/game_trainer_spell_table.rs delete mode 100644 gateway/src/stdb/bindings/game_transfer_in_table.rs delete mode 100644 gateway/src/stdb/bindings/game_transfer_out_table.rs delete mode 100644 gateway/src/stdb/bindings/game_transfer_reaper_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_vmap_chunk_table.rs delete mode 100644 gateway/src/stdb/bindings/game_vmap_generation_chunk_table.rs delete mode 100644 gateway/src/stdb/bindings/game_vmap_generation_receipt_table.rs delete mode 100644 gateway/src/stdb/bindings/game_vmap_generation_table.rs delete mode 100644 gateway/src/stdb/bindings/game_vmap_indoor_cell_table.rs delete mode 100644 gateway/src/stdb/bindings/game_vmap_nav_coverage_manifest_table.rs delete mode 100644 gateway/src/stdb/bindings/game_vmap_nav_coverage_table.rs delete mode 100644 gateway/src/stdb/bindings/game_weather_schedule_table.rs delete mode 100644 gateway/src/stdb/bindings/game_weather_table.rs delete mode 100644 gateway/src/stdb/bindings/game_whisper_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_world_config_table.rs delete mode 100644 gateway/src/stdb/bindings/game_world_entity_table.rs delete mode 100644 gateway/src/stdb/bindings/game_world_state_name_table.rs delete mode 100644 gateway/src/stdb/bindings/game_world_state_table.rs delete mode 100644 gateway/src/stdb/bindings/game_xp_event_table.rs delete mode 100644 gateway/src/stdb/bindings/game_zone_weather_table.rs delete mode 100644 gateway/src/stdb/bindings/gateway_lease_reaper_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/gateway_lease_type.rs delete mode 100644 gateway/src/stdb/bindings/gateway_session_type.rs delete mode 100644 gateway/src/stdb/bindings/gm_world_config_type.rs delete mode 100644 gateway/src/stdb/bindings/go_collider_type.rs delete mode 100644 gateway/src/stdb/bindings/go_model_type.rs delete mode 100644 gateway/src/stdb/bindings/gossip_menu_profile_option_type.rs delete mode 100644 gateway/src/stdb/bindings/gossip_menu_profile_type.rs delete mode 100644 gateway/src/stdb/bindings/gossip_menu_type.rs delete mode 100644 gateway/src/stdb/bindings/gossip_option_type.rs delete mode 100644 gateway/src/stdb/bindings/grant_alpha_test_tools_reducer.rs delete mode 100644 gateway/src/stdb/bindings/graveyard_loc_type.rs delete mode 100644 gateway/src/stdb/bindings/graveyard_zone_type.rs delete mode 100644 gateway/src/stdb/bindings/ground_area_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/ground_area_type.rs delete mode 100644 gateway/src/stdb/bindings/group_event_type.rs delete mode 100644 gateway/src/stdb/bindings/group_invite_type.rs delete mode 100644 gateway/src/stdb/bindings/group_member_partition_type.rs delete mode 100644 gateway/src/stdb/bindings/group_member_type.rs delete mode 100644 gateway/src/stdb/bindings/group_roster_revision_type.rs delete mode 100644 gateway/src/stdb/bindings/group_target_icon_type.rs delete mode 100644 gateway/src/stdb/bindings/group_type.rs delete mode 100644 gateway/src/stdb/bindings/guid_allocator_type.rs delete mode 100644 gateway/src/stdb/bindings/guid_range_assignment_type.rs delete mode 100644 gateway/src/stdb/bindings/guid_range_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_accept_request_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_charter_purchase_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_charter_terms_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_emblem_purchase_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_emblem_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_event_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_fee_decision_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_fee_hold_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_fee_request_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_fee_terms_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_gm_create_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_invite_request_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_invite_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_member_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_note_edit_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_op_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_petition_offer_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_petition_rename_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_petition_sign_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_petition_signature_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_petition_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_rank_edit_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_rank_type.rs delete mode 100644 gateway/src/stdb/bindings/guild_type.rs delete mode 100644 gateway/src/stdb/bindings/gw_abandon_quest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_accept_group_invite_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_accept_quest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_accept_trade_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_ack_taxi_reply_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_activate_taxi_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_add_friend_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_add_ignore_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_admit_meeting_stone_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_arm_taxi_flight_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_attack_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_bid_local_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_cancel_local_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_confirm_bid_refund_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_finish_bid_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_hold_bid_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_hold_cancel_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_hold_listing_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_list_local_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auction_release_listing_hold_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_auto_bank_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_begin_trade_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_bind_home_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_busy_trade_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_buy_bank_slot_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_buy_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_buyback_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_cancel_aura_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_cancel_cast_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_cancel_trade_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_cast_at_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_cast_item_target_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_cast_spell_at_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_cast_spell_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_clear_trade_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_client_command_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_del_friend_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_del_ignore_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_destroy_guild_charter_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_destroy_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_disenchant_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_duel_accept_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_duel_cancel_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_enchant_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_enter_areatrigger_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_equip_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_fish_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_force_zone_weather_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_gm_command_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_gossip_select_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_group_decline_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_group_invite_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_group_leave_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_group_loot_method_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_group_uninvite_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_guild_fee_finish_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_guild_fee_hold_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_heartbeat_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_ignore_trade_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_initiate_trade_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_inspect_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_learn_talent_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_loot_master_give_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_loot_money_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_loot_roll_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_mail_grant_letter_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_move_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_move_type.rs delete mode 100644 gateway/src/stdb/bindings/gw_movement_batch_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_movement_update_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_open_creature_loot_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_open_taxi_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_pet_command_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_pick_lock_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_player_login_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_player_world_port_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_push_quest_to_party_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_ranged_attack_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_reclaim_corpse_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_repair_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_repop_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_reset_talents_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_respond_resurrect_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_self_resurrect_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_sell_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_send_chat_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_send_emote_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_set_action_button_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_set_away_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_set_faction_at_war_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_set_sheathed_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_set_target_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_set_trade_gold_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_set_trade_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_set_watched_faction_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_skin_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_spirit_res_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_split_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_stop_attack_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_take_loot_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_taxi_node_status_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_trainer_buy_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_turn_in_quest_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_unaccept_trade_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_unequip_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_use_gameobject_reducer.rs delete mode 100644 gateway/src/stdb/bindings/gw_use_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/hunter_pet_protocol_type.rs delete mode 100644 gateway/src/stdb/bindings/hunter_pet_type.rs delete mode 100644 gateway/src/stdb/bindings/idle_movement_intent_type.rs delete mode 100644 gateway/src/stdb/bindings/immobilization_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/import_bot_character_blob_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_character_blob_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_character_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_creature_ai_definitions_append_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_creature_ai_definitions_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_creature_ai_relay_definitions_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_creature_spawns_append_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_creature_spawns_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_gameobjects_append_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_gameobjects_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_go_models_append_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_go_models_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_map_regions_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_meta_type.rs delete mode 100644 gateway/src/stdb/bindings/import_nav_chunks_append_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_nav_chunks_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_player_character_blob_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_terrain_chunks_append_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_terrain_chunks_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_verified_rajaxx_projection_type.rs delete mode 100644 gateway/src/stdb/bindings/import_vmap_chunks_append_reducer.rs delete mode 100644 gateway/src/stdb/bindings/import_vmap_chunks_reducer.rs delete mode 100644 gateway/src/stdb/bindings/increment_phase_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/install_guid_range_reducer.rs delete mode 100644 gateway/src/stdb/bindings/instance_reaper_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/instance_removal_type.rs delete mode 100644 gateway/src/stdb/bindings/instruction_selection_type.rs delete mode 100644 gateway/src/stdb/bindings/instruction_target_type.rs delete mode 100644 gateway/src/stdb/bindings/item_enchantment_type.rs delete mode 100644 gateway/src/stdb/bindings/item_instance_type.rs delete mode 100644 gateway/src/stdb/bindings/item_property_weight_type.rs delete mode 100644 gateway/src/stdb/bindings/item_random_property_type.rs delete mode 100644 gateway/src/stdb/bindings/item_template_type.rs delete mode 100644 gateway/src/stdb/bindings/item_text_type.rs delete mode 100644 gateway/src/stdb/bindings/kill_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/kill_credit_type.rs delete mode 100644 gateway/src/stdb/bindings/level_stats_type.rs delete mode 100644 gateway/src/stdb/bindings/levelup_event_type.rs delete mode 100644 gateway/src/stdb/bindings/live_pet_kind_type.rs delete mode 100644 gateway/src/stdb/bindings/loot_roll_promotion_receipt_type.rs delete mode 100644 gateway/src/stdb/bindings/loot_roll_type.rs delete mode 100644 gateway/src/stdb/bindings/loot_roll_vote_type.rs delete mode 100644 gateway/src/stdb/bindings/mail_arrival_type.rs delete mode 100644 gateway/src/stdb/bindings/mail_delivery_type.rs delete mode 100644 gateway/src/stdb/bindings/mail_escrow_reaper_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/mail_escrow_type.rs delete mode 100644 gateway/src/stdb/bindings/mail_loot_type.rs delete mode 100644 gateway/src/stdb/bindings/mail_template_type.rs delete mode 100644 gateway/src/stdb/bindings/mail_timer_type.rs delete mode 100644 gateway/src/stdb/bindings/mail_type.rs delete mode 100644 gateway/src/stdb/bindings/map_region_type.rs delete mode 100644 gateway/src/stdb/bindings/mark_bot_transfer_arrival_ready_reducer.rs delete mode 100644 gateway/src/stdb/bindings/meeting_stone_party_type.rs delete mode 100644 gateway/src/stdb/bindings/meeting_stone_reminder_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/meeting_stone_seeker_type.rs delete mode 100644 gateway/src/stdb/bindings/meeting_stone_type.rs delete mode 100644 gateway/src/stdb/bindings/melee_attack_type.rs delete mode 100644 gateway/src/stdb/bindings/melee_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/missing_text_template_no_effect_type.rs delete mode 100644 gateway/src/stdb/bindings/mod.rs delete mode 100644 gateway/src/stdb/bindings/motion_publish_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/movement_operation_type.rs delete mode 100644 gateway/src/stdb/bindings/movement_switch_type.rs delete mode 100644 gateway/src/stdb/bindings/movement_violation_type.rs delete mode 100644 gateway/src/stdb/bindings/nav_chunk_type.rs delete mode 100644 gateway/src/stdb/bindings/navigation_inputs_type.rs delete mode 100644 gateway/src/stdb/bindings/navigation_revision_type.rs delete mode 100644 gateway/src/stdb/bindings/notify_encounter_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/npc_flags_projection_type.rs delete mode 100644 gateway/src/stdb/bindings/npc_text_slot_type.rs delete mode 100644 gateway/src/stdb/bindings/npc_text_type.rs delete mode 100644 gateway/src/stdb/bindings/npc_vendor_type.rs delete mode 100644 gateway/src/stdb/bindings/on_disconnect_reducer.rs delete mode 100644 gateway/src/stdb/bindings/operator_type.rs delete mode 100644 gateway/src/stdb/bindings/out_of_combat_sight_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/package_account_type.rs delete mode 100644 gateway/src/stdb/bindings/package_config_type.rs delete mode 100644 gateway/src/stdb/bindings/package_import_type.rs delete mode 100644 gateway/src/stdb/bindings/package_teardown_type.rs delete mode 100644 gateway/src/stdb/bindings/parsed_client_command_type.rs delete mode 100644 gateway/src/stdb/bindings/party_command_dispatch_lane_type.rs delete mode 100644 gateway/src/stdb/bindings/party_command_fixture_apply_after_gate_change_reducer.rs delete mode 100644 gateway/src/stdb/bindings/party_command_fixture_apply_reducer.rs delete mode 100644 gateway/src/stdb/bindings/party_command_fixture_drive_reducer.rs delete mode 100644 gateway/src/stdb/bindings/party_command_fixture_expire_after_receipt_window_reducer.rs delete mode 100644 gateway/src/stdb/bindings/party_command_fixture_expire_reducer.rs delete mode 100644 gateway/src/stdb/bindings/party_command_fixture_finish_reducer.rs delete mode 100644 gateway/src/stdb/bindings/party_command_fixture_release_receipt_reducer.rs delete mode 100644 gateway/src/stdb/bindings/party_command_intent_type.rs delete mode 100644 gateway/src/stdb/bindings/party_command_issuer_type.rs delete mode 100644 gateway/src/stdb/bindings/party_command_receipt_type.rs delete mode 100644 gateway/src/stdb/bindings/party_partition_state_type.rs delete mode 100644 gateway/src/stdb/bindings/patrol_intent_type.rs delete mode 100644 gateway/src/stdb/bindings/patrol_pause_type.rs delete mode 100644 gateway/src/stdb/bindings/pending_cast_type.rs delete mode 100644 gateway/src/stdb/bindings/pending_motion_type.rs delete mode 100644 gateway/src/stdb/bindings/pending_spell_impact_type.rs delete mode 100644 gateway/src/stdb/bindings/percentage_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/pet_care_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/pet_command_type.rs delete mode 100644 gateway/src/stdb/bindings/phase_set_type.rs delete mode 100644 gateway/src/stdb/bindings/player_action_type.rs delete mode 100644 gateway/src/stdb/bindings/player_reputation_type.rs delete mode 100644 gateway/src/stdb/bindings/player_skill_type.rs delete mode 100644 gateway/src/stdb/bindings/player_spell_type.rs delete mode 100644 gateway/src/stdb/bindings/posture_admission_type.rs delete mode 100644 gateway/src/stdb/bindings/prepare_vmap_nav_coverage_reducer.rs delete mode 100644 gateway/src/stdb/bindings/provision_account_reducer.rs delete mode 100644 gateway/src/stdb/bindings/publish_motion_reducer.rs delete mode 100644 gateway/src/stdb/bindings/quest_cast_objective_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_credit_recipient_policy_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_event_requirement_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_event_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_objective_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_reward_choice_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_reward_item_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_reward_mail_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_reward_spell_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_taken_predicate_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_template_type.rs delete mode 100644 gateway/src/stdb/bindings/quest_text_type.rs delete mode 100644 gateway/src/stdb/bindings/race_info_type.rs delete mode 100644 gateway/src/stdb/bindings/random_emote_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/random_movement_intent_type.rs delete mode 100644 gateway/src/stdb/bindings/random_phase_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/random_phase_range_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/ranged_impact_reducer.rs delete mode 100644 gateway/src/stdb/bindings/ranged_impact_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/ranged_mode_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/ranged_mode_type.rs delete mode 100644 gateway/src/stdb/bindings/ranged_posture_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/realm_auction_commit_listing_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_auction_confirm_listing_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_auction_decide_bid_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_auction_decide_cancel_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_auction_refund_bid_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_auction_refund_listing_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_auction_settle_listing_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_channel_op_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_chat_event_type.rs delete mode 100644 gateway/src/stdb/bindings/realm_chat_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_chat_request_type.rs delete mode 100644 gateway/src/stdb/bindings/realm_group_op_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_guild_fee_decide_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_guild_op_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_loot_op_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_commit_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_confirm_delivery_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_copy_text_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_delete_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_fence_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_item_payout_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_item_room_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_mark_letter_granted_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_mark_read_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_payout_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_return_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_send_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_settle_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_take_item_fence_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_take_item_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_take_money_fence_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_mail_take_money_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_meeting_stone_op_reducer.rs delete mode 100644 gateway/src/stdb/bindings/realm_type.rs delete mode 100644 gateway/src/stdb/bindings/realm_whisper_reducer.rs delete mode 100644 gateway/src/stdb/bindings/reap_gateway_leases_reducer.rs delete mode 100644 gateway/src/stdb/bindings/reap_instances_reducer.rs delete mode 100644 gateway/src/stdb/bindings/reap_mail_escrows_reducer.rs delete mode 100644 gateway/src/stdb/bindings/reap_movement_events_reducer.rs delete mode 100644 gateway/src/stdb/bindings/reap_sessions_reducer.rs delete mode 100644 gateway/src/stdb/bindings/reap_transfers_reducer.rs delete mode 100644 gateway/src/stdb/bindings/rebuild_go_colliders_reducer.rs delete mode 100644 gateway/src/stdb/bindings/receive_ai_event_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/receive_emote_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/record_region_load_reducer.rs delete mode 100644 gateway/src/stdb/bindings/record_shard_load_reducer.rs delete mode 100644 gateway/src/stdb/bindings/recurrence_policy_type.rs delete mode 100644 gateway/src/stdb/bindings/region_assignment_type.rs delete mode 100644 gateway/src/stdb/bindings/region_load_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_activate_object_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_ai_event_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_arrival_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_cast_spell_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_concurrency_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_continuation_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_definition_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_delay_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_dynamic_move_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_emote_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_enabled_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_equipment_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_face_orientation_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_facing_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_faction_restoration_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_faction_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_flag_change_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_flag_operation_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_forced_movement_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_gossip_menu_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_lifetime_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_move_point_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_move_to_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_movement_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_nearby_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_participants_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_patrol_movement_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_random_movement_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_run_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_set_movement_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_spawn_creature_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_stand_state_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_start_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_step_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_subject_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_talk_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_template_update_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_terminate_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_terminate_when_type.rs delete mode 100644 gateway/src/stdb/bindings/relay_world_state_type.rs delete mode 100644 gateway/src/stdb/bindings/release_account_claim_reducer.rs delete mode 100644 gateway/src/stdb/bindings/release_bot_transfer_arrival_reducer.rs delete mode 100644 gateway/src/stdb/bindings/release_player_transfer_arrival_reducer.rs delete mode 100644 gateway/src/stdb/bindings/release_transfer_reducer.rs delete mode 100644 gateway/src/stdb/bindings/remind_queued_parties_reducer.rs delete mode 100644 gateway/src/stdb/bindings/remove_aura_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/remove_guardians_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/renew_account_claim_reducer.rs delete mode 100644 gateway/src/stdb/bindings/renew_account_fence_reducer.rs delete mode 100644 gateway/src/stdb/bindings/rest_state_event_type.rs delete mode 100644 gateway/src/stdb/bindings/restore_taxi_fixture_reducer.rs delete mode 100644 gateway/src/stdb/bindings/resume_relay_arrival_reducer.rs delete mode 100644 gateway/src/stdb/bindings/resume_relay_run_reducer.rs delete mode 100644 gateway/src/stdb/bindings/resurrect_request_type.rs delete mode 100644 gateway/src/stdb/bindings/revoke_alpha_test_tools_reducer.rs delete mode 100644 gateway/src/stdb/bindings/roll_event_type.rs delete mode 100644 gateway/src/stdb/bindings/scale_all_threat_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/scale_selected_threat_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/school_lockout_type.rs delete mode 100644 gateway/src/stdb/bindings/script_type.rs delete mode 100644 gateway/src/stdb/bindings/seeker_facts_type.rs delete mode 100644 gateway/src/stdb/bindings/self_resurrect_option_type.rs delete mode 100644 gateway/src/stdb/bindings/server_config_type.rs delete mode 100644 gateway/src/stdb/bindings/session_actor_type.rs delete mode 100644 gateway/src/stdb/bindings/session_reaper_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/session_type.rs delete mode 100644 gateway/src/stdb/bindings/sessionless_action_consent_type.rs delete mode 100644 gateway/src/stdb/bindings/set_alpha_test_tools_enrollment_reducer.rs delete mode 100644 gateway/src/stdb/bindings/set_character_shard_reducer.rs delete mode 100644 gateway/src/stdb/bindings/set_gm_level_reducer.rs delete mode 100644 gateway/src/stdb/bindings/set_lethal_damage_floor_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/set_motion_tick_ms_reducer.rs delete mode 100644 gateway/src/stdb/bindings/set_package_config_reducer.rs delete mode 100644 gateway/src/stdb/bindings/set_phase_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/set_react_state_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/set_realm_address_reducer.rs delete mode 100644 gateway/src/stdb/bindings/set_region_assignment_reducer.rs delete mode 100644 gateway/src/stdb/bindings/set_stand_state_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/settle_loot_roll_reducer.rs delete mode 100644 gateway/src/stdb/bindings/shard_load_total_type.rs delete mode 100644 gateway/src/stdb/bindings/shard_load_type.rs delete mode 100644 gateway/src/stdb/bindings/skill_ability_type.rs delete mode 100644 gateway/src/stdb/bindings/skill_availability_type.rs delete mode 100644 gateway/src/stdb/bindings/skill_line_type.rs delete mode 100644 gateway/src/stdb/bindings/spawn_at_actor_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/spawn_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/spawn_map_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/spawn_zone_or_area_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/speak_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/speaker_facts_type.rs delete mode 100644 gateway/src/stdb/bindings/speech_mode_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_cast_event_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_caster_role_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_cd_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_chain_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_cooldown_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_effect_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_event_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_group_rule_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_group_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_impact_event_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_learn_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_proc_event_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_reagent_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_start_mode_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_target_role_type.rs delete mode 100644 gateway/src/stdb/bindings/spell_type.rs delete mode 100644 gateway/src/stdb/bindings/stage_vmap_generation_reducer.rs delete mode 100644 gateway/src/stdb/bindings/stamp_import_meta_reducer.rs delete mode 100644 gateway/src/stdb/bindings/start_item_type.rs delete mode 100644 gateway/src/stdb/bindings/start_position_type.rs delete mode 100644 gateway/src/stdb/bindings/start_relay_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/summon_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/sync_group_mirror_reducer.rs delete mode 100644 gateway/src/stdb/bindings/system_message_event_type.rs delete mode 100644 gateway/src/stdb/bindings/talent_tab_type.rs delete mode 100644 gateway/src/stdb/bindings/talent_type.rs delete mode 100644 gateway/src/stdb/bindings/target_range_condition_type.rs delete mode 100644 gateway/src/stdb/bindings/taunt_lock_type.rs delete mode 100644 gateway/src/stdb/bindings/taxi_flight_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/taxi_passenger_spline_type.rs delete mode 100644 gateway/src/stdb/bindings/taxi_service_reply_type.rs delete mode 100644 gateway/src/stdb/bindings/teardown_package_reducer.rs delete mode 100644 gateway/src/stdb/bindings/teleport_event_type.rs delete mode 100644 gateway/src/stdb/bindings/terrain_chunk_type.rs delete mode 100644 gateway/src/stdb/bindings/threat_entry_type.rs delete mode 100644 gateway/src/stdb/bindings/throw_ai_event_instruction_type.rs delete mode 100644 gateway/src/stdb/bindings/tick_auras_reducer.rs delete mode 100644 gateway/src/stdb/bindings/tick_breath_reducer.rs delete mode 100644 gateway/src/stdb/bindings/tick_creatures_reducer.rs delete mode 100644 gateway/src/stdb/bindings/tick_duels_reducer.rs delete mode 100644 gateway/src/stdb/bindings/tick_ground_areas_reducer.rs delete mode 100644 gateway/src/stdb/bindings/tick_melee_reducer.rs delete mode 100644 gateway/src/stdb/bindings/tick_pet_care_reducer.rs delete mode 100644 gateway/src/stdb/bindings/tick_weather_reducer.rs delete mode 100644 gateway/src/stdb/bindings/time_window_type.rs delete mode 100644 gateway/src/stdb/bindings/trade_event_type.rs delete mode 100644 gateway/src/stdb/bindings/trade_session_type.rs delete mode 100644 gateway/src/stdb/bindings/trade_slot_type.rs delete mode 100644 gateway/src/stdb/bindings/trainer_spell_type.rs delete mode 100644 gateway/src/stdb/bindings/transfer_in_type.rs delete mode 100644 gateway/src/stdb/bindings/transfer_out_type.rs delete mode 100644 gateway/src/stdb/bindings/transfer_reaper_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/verify_vmap_generation_reducer.rs delete mode 100644 gateway/src/stdb/bindings/vmap_chunk_type.rs delete mode 100644 gateway/src/stdb/bindings/vmap_generation_chunk_type.rs delete mode 100644 gateway/src/stdb/bindings/vmap_generation_receipt_type.rs delete mode 100644 gateway/src/stdb/bindings/vmap_generation_type.rs delete mode 100644 gateway/src/stdb/bindings/vmap_indoor_cell_type.rs delete mode 100644 gateway/src/stdb/bindings/vmap_nav_coverage_cell_type.rs delete mode 100644 gateway/src/stdb/bindings/vmap_nav_coverage_manifest_type.rs delete mode 100644 gateway/src/stdb/bindings/vmap_nav_coverage_type.rs delete mode 100644 gateway/src/stdb/bindings/walking_mode_type.rs delete mode 100644 gateway/src/stdb/bindings/weather_schedule_type.rs delete mode 100644 gateway/src/stdb/bindings/whisper_event_type.rs delete mode 100644 gateway/src/stdb/bindings/whisper_request_type.rs delete mode 100644 gateway/src/stdb/bindings/whisper_target_facts_type.rs delete mode 100644 gateway/src/stdb/bindings/world_entity_type.rs delete mode 100644 gateway/src/stdb/bindings/world_session_token_type.rs delete mode 100644 gateway/src/stdb/bindings/world_state_name_type.rs delete mode 100644 gateway/src/stdb/bindings/world_state_type.rs delete mode 100644 gateway/src/stdb/bindings/xp_event_type.rs delete mode 100644 gateway/src/stdb/bindings/zone_weather_chance_type.rs delete mode 100644 gateway/src/stdb/bindings/zone_weather_type.rs delete mode 100755 scripts/check-gateway-bindings.py delete mode 100644 scripts/tests/test_check_gateway_bindings.py diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4c7aa6e55..497cdfda1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -33,7 +33,7 @@ The commands CI runs, in `.github/workflows/rust.yml`: In `.github/workflows/module-durable.yml`, when the change reaches the Module or the schema: - [ ] `cargo test -p lyracore-module --test -- --ignored` for each durable target the change touches (CI runs them all) -- [ ] `scripts/check-gateway-bindings.py` +- [ ] `./lyracore bindings --check` In `.github/workflows/runtime-scripts.yml`, when the change reaches `datascripts/`: diff --git a/.github/actions/setup-spacetime/action.yml b/.github/actions/setup-spacetime/action.yml new file mode 100644 index 000000000..d083053e8 --- /dev/null +++ b/.github/actions/setup-spacetime/action.yml @@ -0,0 +1,20 @@ +name: Set up SpacetimeDB +description: Install the pinned CLI and standalone for offline generation and private durable tests. +runs: + using: composite + steps: + - shell: bash + env: + SPACETIME_VERSION: 2.7.1 + SPACETIME_ARCHIVE_SHA256: 9b58192135733083479f30aba47dbbbc79b51db368c46cc221baa663e9c3a2c1 + run: | + archive_path="$RUNNER_TEMP/spacetime.tar.gz" + cli_dir="$RUNNER_TEMP/spacetime-$SPACETIME_VERSION" + curl --fail --location --retry 3 \ + "https://github.com/clockworklabs/SpacetimeDB/releases/download/v$SPACETIME_VERSION/spacetime-x86_64-unknown-linux-gnu.tar.gz" \ + --output "$archive_path" + printf '%s %s\n' "$SPACETIME_ARCHIVE_SHA256" "$archive_path" | sha256sum --check --strict + mkdir -p "$cli_dir" + tar --extract --gzip --file "$archive_path" --directory "$cli_dir" + ln -sf spacetimedb-cli "$cli_dir/spacetime" + echo "$cli_dir" >> "$GITHUB_PATH" diff --git a/.github/workflows/module-durable.yml b/.github/workflows/module-durable.yml index ba108250d..9b3ec8d96 100644 --- a/.github/workflows/module-durable.yml +++ b/.github/workflows/module-durable.yml @@ -15,12 +15,6 @@ concurrency: permissions: contents: read -env: - # docs/quickstart.md and install.sh pin this exactly; `lyracore preflight` enforces the match. - SPACETIME_VERSION: 2.7.1 - # Digest of the x86_64 Linux archive in the upstream v2.7.1 GitHub release. - SPACETIME_ARCHIVE_SHA256: 9b58192135733083479f30aba47dbbbc79b51db368c46cc221baa663e9c3a2c1 - jobs: # Balance measured target durations, reserving time for each job's builds and Gateway checks. durable: @@ -36,37 +30,15 @@ jobs: persist-credentials: false - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 - # Each test uses its own temporary CLI configuration. - - name: Install SpacetimeDB ${{ env.SPACETIME_VERSION }} - timeout-minutes: 3 - run: | - archive_path="$RUNNER_TEMP/spacetime.tar.gz" - cli_dir="$RUNNER_TEMP/spacetime-$SPACETIME_VERSION" - curl --fail --location --retry 3 \ - "https://github.com/clockworklabs/SpacetimeDB/releases/download/v$SPACETIME_VERSION/spacetime-x86_64-unknown-linux-gnu.tar.gz" \ - --output "$archive_path" - printf '%s %s\n' "$SPACETIME_ARCHIVE_SHA256" "$archive_path" | sha256sum --check --strict - mkdir -p "$cli_dir" - tar --extract --gzip --file "$archive_path" --directory "$cli_dir" - ln -s spacetimedb-cli "$cli_dir/spacetime" - echo "$cli_dir" >> "$GITHUB_PATH" - - # Verify the downloaded CLI matches the version required by the Module. - - name: Check the pinned version - run: | - found=$(spacetime --version | sed -n 's/.*version[ ]*\([0-9][0-9.]*\).*/\1/p' | head -n 1) - echo "spacetime $found" - [ "$found" = "$SPACETIME_VERSION" ] + - uses: ./.github/actions/setup-spacetime - name: Test the CI scripts if: matrix.shard == 0 run: python3 -m unittest discover -s scripts/tests - # This regenerates the complete private schema into a temporary directory. It does not need a - # running Realm and never publishes the Module. - - name: Check all Gateway bindings - if: matrix.shard == 0 - run: scripts/check-gateway-bindings.py + - name: Prepare Gateway bindings + if: matrix.shard != 2 + run: ./lyracore bindings # Build failures report before any fixture starts. Each test process asks Cargo for the # current artifact, caches its bytes, and publishes private copies through --bin-path. diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2805c464d..7460266ff 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -45,6 +45,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 + - uses: ./.github/actions/setup-spacetime + - run: ./lyracore bindings - name: Run clippy run: cargo clippy --workspace --all-targets --all-features -- -D warnings @@ -54,6 +56,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 + - uses: ./.github/actions/setup-spacetime + - run: ./lyracore bindings # Share compiled dependencies while keeping each crate's result separate. - run: cargo test -p lyracore-importer - run: cargo test -p lyracore-module --lib --features=debug_reducers diff --git a/.gitignore b/.gitignore index c71ea85a6..035914bc5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ /target **/*.rs.bk -# Local lifecycle state, logs, process ownership locks, and the pinned-tool caches: the `lyracore` +# Local lifecycle state, logs, generated Gateway bindings, process ownership locks, and tool caches: the `lyracore` # CLI (.lyracore/cli//) and the wire harness (.lyracore/wire-harness//, #246 — a checkout # of LyraCoreProject/wire-harness plus its own target/, which is why this must stay ignored). /.lyracore/ diff --git a/.lyracore-cli-rev b/.lyracore-cli-rev index 896202d7e..eced94aca 100644 --- a/.lyracore-cli-rev +++ b/.lyracore-cli-rev @@ -1 +1 @@ -62807e2e2ca18d8606261b8d9272d6d232835583 +5eae8792ed66525eb8f8294a17ce42aa3398a1b3 diff --git a/Cargo.lock b/Cargo.lock index 80056e846..d69ca7167 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1835,6 +1835,7 @@ dependencies = [ "lyracore-module", "lyracore-shared", "lyracore-test-support", + "serde", "serde_json", "spacetimedb-lib", "spacetimedb-sdk", diff --git a/docs/binding-schema-parity.md b/docs/binding-schema-parity.md index 0bec8b144..d2c638c3c 100644 --- a/docs/binding-schema-parity.md +++ b/docs/binding-schema-parity.md @@ -2,7 +2,7 @@ `gateway/tests/schema_parity.rs` checks the ordered names and types of every table in the Coordinator subscription list. A Module column change without matching generated bindings -breaks BSATN row decoding. Regenerate bindings according to [danger zones](danger-zones.md). +breaks BSATN row decoding. Run `./lyracore bindings` after schema changes. See [danger zones](danger-zones.md). The test builds native Module table types with `RawModuleDefV9Builder`, then resolves nested type references with `Typespace::inline_typerefs_in_type`. This produces the same ordered product shape @@ -26,5 +26,5 @@ Only Coordinator subscriptions are included. The test reads `stdb/connection.rs` completeness. Per-player subscriptions and reducer arguments are outside its scope. The native Module dependency links on Linux, where the ELF linker removes unused Wasm host -intrinsics. The Gateway has no library target, so the test includes the self-contained generated -bindings tree through `#[path]` and compiles it into its own test binary. +intrinsics. The Gateway has no library target, so the test uses the same build-script wrapper as the Gateway to load the prepared +bindings outside the source tree and compiles them into its own test binary. diff --git a/docs/danger-zones.md b/docs/danger-zones.md index b2b59410c..27e9b8590 100644 --- a/docs/danger-zones.md +++ b/docs/danger-zones.md @@ -20,38 +20,19 @@ any line in §1 needs a human review before it ships, whoever or whatever wrote else = publish aborts. - New reducer ARG → change the module reducer **and** the gateway `call_reducer!` **in the same commit** (code lockstep, NOT a database migration). - - New TABLE → **regenerate the gateway bindings**. Regeneration is the supported path here: - `spacetime generate --lang rust --out-dir gateway/src/stdb/bindings --module-path module \ - --include-private --build-options='--features=debug_reducers' -y`. **`--include-private` is REQUIRED** - (without it `game_account`/`game_session`/the schedule tables/`pkg_*` silently vanish and the - gateway will not compile), and the generator snake-cases digit suffixes (`eff_p0`→`eff_p_0`, - `cond_value1`→`cond_value_1`), so a regen breaks exactly those columns whose GATEWAY CODE uses - the non-underscore name. Post-regen hand-patch (verified 2026-07-18 on the exploration-fog - regen, re-confirmed 2026-08-30 on the bot-transfer-intent regen): put `gossip_option_type.rs` - and `gossip_menu_profile_option_type.rs` `cond_value1`/`2`, and `aura_type.rs`/`mod.rs` - `eff_p0`/`1`(`_kind`), back to the no-underscore spelling. BUT LEAVE `spell_effect_type.rs` - `p_0`/`p_1` and `game_object_template_type.rs`/`debug_spawn_gameobject_reducer.rs` - `data_0`/`data_1` AS GENERATED (with the underscore) — their gateway code uses the underscore - names. The rule: match the COMMITTED (working) binding's field name, which is what the gateway - code accesses; `cargo build` E0609 "no field X" tells you which way each one goes. - Regeneration also removes the explanatory `facing` / `facing_angle` comment from - `creature_spline_type.rs`; restore it from the committed binding after every regeneration. - `scripts/check-gateway-bindings.py` runs the same private generation offline with SpacetimeDB - 2.7.1, applies only these spelling and comment exceptions in its temporary output, formats it - with the pinned Rust toolchain, and compares every generated file with the committed tree. - Regeneration needs a machine that can run `spacetimedb-standalone` — schema extraction shells - out to it, so a sandbox without it cannot regenerate. Diff-review the regenerated tree before - committing (it rewrites every file; drift deletions are expected and correct), then run the - gateway tests. Do NOT hand-splice new tables into `bindings/mod.rs` — that hand-maintenance tax - is what regeneration replaces. - `gateway/tests/schema_parity.rs` structurally checks every subscribed table's binding against - the module schema — run `cargo test -p lyracore-gateway` after ANY hand edit to a - `_type.rs` file to catch a missed, misordered, or mistyped column before it ships. - `game_transfer_out`, its transfer/instance reducers, `record_shard_load`, and - `record_region_load` began as narrow hand-splices when a full regeneration was unavailable or - carried too much unrelated churn. The full generated baseline now contains equivalent output - for them, and the complete-tree check covers their table and reducer definitions. The Gateway - still only needs to use a table binding when it subscribes to or reads that table. + - After a Module schema change, run `./lyracore bindings`. The CLI generates the Gateway's + private Rust bindings from the local Module with `debug_reducers`, using the pinned + SpacetimeDB and Rust versions. It needs `spacetimedb-standalone` for offline schema extraction, + but does not contact a Realm or publish anything. + - Bindings live under `.lyracore/generated/gateway/` and are never committed or hand-edited. + Use the generator's Rust field names, including digit separators such as `eff_p_0` and + `cond_value_1`. These Rust names do not rename the Module's SQL columns. + - Run `cargo test -p lyracore-gateway` after preparation. `gateway/tests/schema_parity.rs` + compares every Coordinator subscription with the Module schema. Update its field manifest + when a subscribed table changes, including explicit mappings for generated Rust names. + - Direct Gateway Cargo builds check the prepared output through the installed, pinned CLI. + Missing output, changed inputs, or edited generated files stop the build with preparation + instructions. `./lyracore bindings --check` performs the same read-only check. **A defaulted column's default can be a VALID VALUE, not a sentinel — plan the backfill (#456).** `cell` was END-appended to the four AOI-scoped tables as `#[default(0i64)]`, and 0 is the legitimate @@ -441,6 +422,7 @@ cargo build # SINGLE-DATABASE gateway — no Kalimdor, no instances, no realm-core — and every one of # those degrades SILENTLY rather than refusing to start. Anything that omits a variable below is the # single-database dev config, which is not what a sharded realm runs. +./lyracore bindings cargo build -p lyracore-gateway TOKEN=$(grep -oP 'spacetimedb_token = "\K[^"]+' ~/.config/spacetime/cli.toml) # ⚠ `lyracore-gatewa` is NOT a typo — see the trap note under this block. diff --git a/docs/quickstart.md b/docs/quickstart.md index b0b33df77..efe83be0b 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -202,7 +202,7 @@ What that actually did: 1. Started SpacetimeDB on `127.0.0.1:3000` — **or reused one already listening there.** A node this CLI did not start is never recorded and never stopped by `dev down`. -2. Built the gateway (`cargo build -p lyracore-gateway`). +2. Prepared the Gateway bindings, then built the Gateway with `cargo build -p lyracore-gateway`. 3. Published the **four fixture databases** — `lyracore`, `lyracore-kalimdor`, `lyracore-instances` and `lyracore-realm` — always through `./lyracore publish`. Nothing in this path runs a bare `spacetime publish`, and the command **refuses** to forward the destructive `-c` clear-publish. diff --git a/docs/recipes/add-a-spell-effect.md b/docs/recipes/add-a-spell-effect.md index cad945837..944a61d7f 100644 --- a/docs/recipes/add-a-spell-effect.md +++ b/docs/recipes/add-a-spell-effect.md @@ -75,12 +75,10 @@ Only when the effect outlives the cast. Add the table in the owning family's mod ## 7. Regenerate the Gateway bindings Required for every new table or reducer, including a private table the Gateway never reads, because -the binding check compares the complete generated tree. +preparation covers the complete private schema. -- Run the `spacetime generate` command in [`danger-zones.md`](../danger-zones.md) section 1.2, then - restore the hand-patched names and the comment it lists. -- Run `scripts/check-gateway-bindings.py`. It must report no difference. -- Review the diff under `gateway/src/stdb/bindings/`. Distract added +- Run `./lyracore bindings`, then `cargo test -p lyracore-gateway`. +- Inspect the generated files under `.lyracore/generated/gateway/`. Distract added `creature_distraction_type.rs`, `game_creature_distraction_table.rs` and lines in `mod.rs`. - If the table drives a Relay, declare it in `gateway/src/codec//subscriptions.rs`. The declaration generates its query and row callbacks. A table used only by Durable Reads goes in diff --git a/docs/recipes/add-an-opcode.md b/docs/recipes/add-an-opcode.md index 6d81f63f9..586aa7d73 100644 --- a/docs/recipes/add-an-opcode.md +++ b/docs/recipes/add-an-opcode.md @@ -50,9 +50,7 @@ instead of a scan. Required for every new table and every new reducer. -- Run the `spacetime generate` command in [`danger-zones.md`](../danger-zones.md) section 1.2 and - restore the hand-patched names and the comment it lists. -- Run `scripts/check-gateway-bindings.py`. It must report no difference. +- Run `./lyracore bindings`, then `cargo test -p lyracore-gateway`. - For a Relay table, add its declaration beside its codec as described in step 11. The declaration generates the subscription query. For a table used only by Durable Reads, add its query to `coordinator_queries` in `gateway/src/stdb/connection.rs`. diff --git a/docs/schema.md b/docs/schema.md index 1df37d4d7..88ec4a8af 100644 --- a/docs/schema.md +++ b/docs/schema.md @@ -41,10 +41,10 @@ Start at [`architecture.md`](./architecture.md) for how these tables fit into th limitation, not a repo convention. Put new string data in a **new table** instead — the same one-row-plus-child-rows shape the codebase already uses (`game_creature_waypoint`, `game_npc_text_slot`). -3. **A new table requires regenerating the gateway bindings**, and the generator snake-cases digit - suffixes, so a handful of columns must be hand-patched back. The exact patch list is in - `danger-zones.md` §1.2. `gateway/tests/schema_parity.rs` structurally checks every subscribed - table's binding against the module schema. +3. After a schema change, run `./lyracore bindings`. The generated Rust files stay outside the + source tree. Use the generator's field names, including digit separators. See `danger-zones.md` + §1.2. `gateway/tests/schema_parity.rs` checks every Coordinator subscription against the Module + schema. And the one that is not about a single table: **a schema change must reach every shard.** A partial publish presents as an unrelated mid-session hang, not a loud "no such table". diff --git a/docs/testing.md b/docs/testing.md index 87c2c511c..cfb6f4a0c 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -86,15 +86,33 @@ cargo test -p lyracore-gateway --bin lyracore-gateway stdb::subscriptions::party ## Gateway bindings -Also in `module-durable.yml`. The check regenerates the full private schema into a temporary -directory and compares it with `gateway/src/stdb/bindings`. It needs the SpacetimeDB 2.7.1 CLI and -publishes nothing. +Before Gateway tests, checks, or Clippy on a fresh checkout, prepare its bindings: ```bash -python3 -m unittest discover -s scripts/tests -scripts/check-gateway-bindings.py +./lyracore bindings +cargo test -p lyracore-gateway ``` +Preparation needs the pinned SpacetimeDB CLI and standalone, builds the local Module with +`debug_reducers`, and includes private tables. It does not contact a Realm. The Rust and durable +CI workflows prepare bindings before compiling the Gateway. Schema generation and CLI publishing +use Rust flags from the checkout's Cargo configuration and ignore ambient Rust-flag overrides. + +Generated files stay in `.lyracore/generated/gateway/`. The CLI reuses complete output while its +inputs and generated files match their recorded hashes. Module sources, installed Package sources, +workspace crates, Cargo manifests and lockfile, Cargo configuration, the Runtime Script event +catalogue, and toolchain pins are inputs. Source edits, Package additions and removals, and edits +through Package symlinks require preparation again. + +`./lyracore bindings --check` checks freshness without running Cargo or SpacetimeDB. It prints JSON +with the generated directory and watched paths for the Gateway build script. Direct Cargo builds +use the installed CLI binary for this check, so they never install tools or start a nested build. +Prepare bindings before opening the Gateway in an editor on a fresh checkout. + +A failed generation preserves the previous complete directory, but stale output cannot pass a +build. Old directories remain available to compilers already reading them. Delete +`.lyracore/generated/gateway/` to clear this cache, then prepare again. + ## Runtime Scripts From `.github/workflows/runtime-scripts.yml`: diff --git a/gateway/Cargo.toml b/gateway/Cargo.toml index 6a771e8ef..77589747d 100644 --- a/gateway/Cargo.toml +++ b/gateway/Cargo.toml @@ -62,7 +62,7 @@ serde_json = "1" syn = { version = "2", features = ["full", "visit"] } # Work-item 220 (binding schema-parity test, gateway/tests/schema_parity.rs): the module crate # compiles natively (its own test suite proves it — no wasm-only dep), so a dev-only dependency -# lets the test compare module `#[table]` structs against the hand-maintained gateway bindings +# lets the test compare module `#[table]` structs against the generated Gateway bindings # structurally instead of only at live-decode time. `spacetimedb-lib` gives the same # `SpacetimeType`/`AlgebraicType`/`RawModuleDefV9Builder` machinery the real `spacetime` CLI's # schema extraction uses; pinned exactly so the workspace lockfile resolves it to the SAME @@ -71,6 +71,10 @@ syn = { version = "2", features = ["full", "visit"] } # same reason those two are. spacetimedb-lib = "=2.7.1" +[build-dependencies] +serde = { version = "1", features = ["derive"] } +serde_json = "1" + [features] dhat-heap = ["dep:dhat"] diff --git a/gateway/build.rs b/gateway/build.rs new file mode 100644 index 000000000..a7dab3552 --- /dev/null +++ b/gateway/build.rs @@ -0,0 +1,54 @@ +use serde::Deserialize; +use std::path::PathBuf; +use std::{env, fs, process::Command}; + +#[derive(Deserialize)] +struct Prepared { + directory: PathBuf, + watches: Vec, +} + +fn prepare() -> Result<(), Box> { + let root = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?) + .parent() + .ok_or("Gateway has no workspace directory")? + .to_path_buf(); + let pin_path = root.join(".lyracore-cli-rev"); + println!("cargo:rerun-if-changed={}", pin_path.display()); + let pin = fs::read_to_string(&pin_path)?; + let pin = pin.trim(); + if pin.len() != 40 || !pin.bytes().all(|b| b.is_ascii_hexdigit()) { + return Err("invalid CLI revision".into()); + } + // Call the installed binary directly. The shim may install it with Cargo, which would wait + // for this build's lock. Preparation installs it before any Gateway build starts. + let cli = root.join(".lyracore/cli").join(pin).join("bin/lyracore"); + println!("cargo:rerun-if-changed={}", cli.display()); + let output = Command::new(cli) + .args(["bindings", "--check"]) + .current_dir(&root) + .output()?; + if !output.status.success() { + return Err(String::from_utf8_lossy(&output.stderr).into_owned().into()); + } + let prepared: Prepared = serde_json::from_slice(&output.stdout)?; + for path in prepared.watches { + println!("cargo:rerun-if-changed={}", path.display()); + } + let wrapper = format!( + "#[allow(clippy::too_many_lines)]\n#[path = {:?}]\npub mod bindings;\n", + prepared.directory.join("mod.rs") + ); + let destination = PathBuf::from(env::var("OUT_DIR")?).join("bindings.rs"); + if fs::read_to_string(&destination).ok().as_deref() != Some(&wrapper) { + fs::write(destination, wrapper)?; + } + Ok(()) +} + +fn main() { + if let Err(error) = prepare() { + eprintln!("Gateway bindings are missing or stale: {error}\nRun `./lyracore bindings` before Cargo."); + std::process::exit(1); + } +} diff --git a/gateway/src/codec/combat/subscriptions.rs b/gateway/src/codec/combat/subscriptions.rs index 279d4c3f0..94aa44e07 100644 --- a/gateway/src/codec/combat/subscriptions.rs +++ b/gateway/src/codec/combat/subscriptions.rs @@ -357,7 +357,7 @@ pub(crate) fn armor_packet( const RESISTANCE_MASK: u32 = 0x7f; if changed.target_guid != self_guid || changed.eff_kind != A_MOD_RESISTANCE - || (changed.eff_p0 as u32 & RESISTANCE_MASK) == 0 + || (changed.eff_p_0 as u32 & RESISTANCE_MASK) == 0 { return None; } @@ -382,7 +382,7 @@ pub(crate) fn sheet_packet( changed: &Aura, self_guid: u64, ) -> Option { - let moves_sheet = lyracore_shared::aura::moves_sheet(changed.eff_kind, changed.eff_p0); + let moves_sheet = lyracore_shared::aura::moves_sheet(changed.eff_kind, changed.eff_p_0); if changed.target_guid != self_guid || !moves_sheet { return None; } @@ -820,7 +820,7 @@ pub(crate) fn run_speed_packet( ) -> Option { const BASE_RUN_SPEED: f32 = 7.0; // vanilla base run yd/s if changed.target_guid != self_guid - || !lyracore_shared::aura::moves_run_speed(changed.eff_kind, changed.eff_p0) + || !lyracore_shared::aura::moves_run_speed(changed.eff_kind, changed.eff_p_0) { return None; } @@ -830,7 +830,7 @@ pub(crate) fn run_speed_packet( .filter(|aura| aura.target_guid == self_guid) .map(|aura| lyracore_shared::aura::AuraAmount { kind: aura.eff_kind, - parameter: aura.eff_p0, + parameter: aura.eff_p_0, amount: aura.amount, stacks: aura.stacks, }), @@ -850,7 +850,7 @@ pub(crate) fn swim_speed_packet( ) -> Option { if changed.target_guid != self_guid || changed.eff_kind != A_MOD_SPEED - || changed.eff_p0 != i32::from(SPEED_SWIM) + || changed.eff_p_0 != i32::from(SPEED_SWIM) { return None; } @@ -860,7 +860,7 @@ pub(crate) fn swim_speed_packet( .filter(|aura| aura.target_guid == self_guid) .map(|aura| lyracore_shared::aura::AuraAmount { kind: aura.eff_kind, - parameter: aura.eff_p0, + parameter: aura.eff_p_0, amount: aura.amount, stacks: aura.stacks, }), @@ -1183,13 +1183,13 @@ impl SpellCastEventKind { pub(crate) mod tests { use super::*; use lyracore_shared::spell::taxonomy::SPEED_MOVE; - /// A minimal `Aura` row for the packet-builder tests: `target_guid`/`eff_kind`/`eff_p0`/`amount` + /// A minimal `Aura` row for the packet-builder tests: `target_guid`/`eff_kind`/`eff_p_0`/`amount` /// are the fields those builders branch on; `applied_at`/`expires_at` (raw micros) drive the /// duration math. Everything else is a fixed, inert value. pub(crate) fn aura( target_guid: u64, eff_kind: u8, - eff_p0: i32, + eff_p_0: i32, amount: i32, applied_at_micros: i64, expires_at_micros: i64, @@ -1207,9 +1207,9 @@ pub(crate) mod tests { effect_id: 1, eff_kind, amount, - eff_p0, - eff_p0_kind: 0, - eff_p1: 0, + eff_p_0, + eff_p_0_kind: 0, + eff_p_1: 0, period_ms: 0, amount_remaining: 0, stacks: 1, diff --git a/gateway/src/codec/entity/subscriptions.rs b/gateway/src/codec/entity/subscriptions.rs index add9f4f51..f932ec53c 100644 --- a/gateway/src/codec/entity/subscriptions.rs +++ b/gateway/src/codec/entity/subscriptions.rs @@ -110,7 +110,7 @@ pub(crate) fn peer_create_outbound( .filter(|aura| aura.target_guid == view.guid) .map(|aura| lyracore_shared::aura::AuraAmount { kind: aura.eff_kind, - parameter: aura.eff_p0, + parameter: aura.eff_p_0, amount: aura.amount, stacks: aura.stacks, }); diff --git a/gateway/src/stdb/armor.rs b/gateway/src/stdb/armor.rs index 18dc6c995..5fbfb87e8 100644 --- a/gateway/src/stdb/armor.rs +++ b/gateway/src/stdb/armor.rs @@ -17,7 +17,7 @@ fn aura_values(db: &RemoteTables, guid: u64) -> Vec { .filter(move |a| a.target_guid == guid) .map(|a| AuraAmount { kind: a.eff_kind, - parameter: a.eff_p0, + parameter: a.eff_p_0, amount: a.amount, stacks: a.stacks, }) diff --git a/gateway/src/stdb/bindings/account_character_owner_type.rs b/gateway/src/stdb/bindings/account_character_owner_type.rs deleted file mode 100644 index 3baca3467..000000000 --- a/gateway/src/stdb/bindings/account_character_owner_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AccountCharacterOwner { - pub character_guid: u64, - pub account_id: u64, - pub account_name: String, -} - -impl __sdk::InModule for AccountCharacterOwner { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AccountCharacterOwner`. -/// -/// Provides typed access to columns for query building. -pub struct AccountCharacterOwnerCols { - pub character_guid: __sdk::__query_builder::Col, - pub account_id: __sdk::__query_builder::Col, - pub account_name: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AccountCharacterOwner { - type Cols = AccountCharacterOwnerCols; - fn cols(table_name: &'static str) -> Self::Cols { - AccountCharacterOwnerCols { - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - account_id: __sdk::__query_builder::Col::new(table_name, "account_id"), - account_name: __sdk::__query_builder::Col::new(table_name, "account_name"), - } - } -} - -/// Indexed column accessor struct for the table `AccountCharacterOwner`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AccountCharacterOwnerIxCols { - pub account_id: __sdk::__query_builder::IxCol, - pub character_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AccountCharacterOwner { - type IxCols = AccountCharacterOwnerIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AccountCharacterOwnerIxCols { - account_id: __sdk::__query_builder::IxCol::new(table_name, "account_id"), - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AccountCharacterOwner {} diff --git a/gateway/src/stdb/bindings/account_claim_type.rs b/gateway/src/stdb/bindings/account_claim_type.rs deleted file mode 100644 index f4bc801b0..000000000 --- a/gateway/src/stdb/bindings/account_claim_type.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AccountClaim { - pub account_id: u64, - pub generation: u64, - pub request_nonce: u128, - pub character_guid: u64, - pub expires_micros: i64, - pub closed: bool, -} - -impl __sdk::InModule for AccountClaim { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AccountClaim`. -/// -/// Provides typed access to columns for query building. -pub struct AccountClaimCols { - pub account_id: __sdk::__query_builder::Col, - pub generation: __sdk::__query_builder::Col, - pub request_nonce: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub expires_micros: __sdk::__query_builder::Col, - pub closed: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AccountClaim { - type Cols = AccountClaimCols; - fn cols(table_name: &'static str) -> Self::Cols { - AccountClaimCols { - account_id: __sdk::__query_builder::Col::new(table_name, "account_id"), - generation: __sdk::__query_builder::Col::new(table_name, "generation"), - request_nonce: __sdk::__query_builder::Col::new(table_name, "request_nonce"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - expires_micros: __sdk::__query_builder::Col::new(table_name, "expires_micros"), - closed: __sdk::__query_builder::Col::new(table_name, "closed"), - } - } -} - -/// Indexed column accessor struct for the table `AccountClaim`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AccountClaimIxCols { - pub account_id: __sdk::__query_builder::IxCol, - pub character_guid: __sdk::__query_builder::IxCol, - pub closed: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AccountClaim { - type IxCols = AccountClaimIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AccountClaimIxCols { - account_id: __sdk::__query_builder::IxCol::new(table_name, "account_id"), - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - closed: __sdk::__query_builder::IxCol::new(table_name, "closed"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AccountClaim {} diff --git a/gateway/src/stdb/bindings/account_fence_type.rs b/gateway/src/stdb/bindings/account_fence_type.rs deleted file mode 100644 index 339b33ad9..000000000 --- a/gateway/src/stdb/bindings/account_fence_type.rs +++ /dev/null @@ -1,71 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AccountFence { - pub account_id: u64, - pub account_name: String, - pub generation: u64, - pub request_nonce: u128, - pub character_guid: u64, - pub expires_micros: i64, - pub closed: bool, -} - -impl __sdk::InModule for AccountFence { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AccountFence`. -/// -/// Provides typed access to columns for query building. -pub struct AccountFenceCols { - pub account_id: __sdk::__query_builder::Col, - pub account_name: __sdk::__query_builder::Col, - pub generation: __sdk::__query_builder::Col, - pub request_nonce: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub expires_micros: __sdk::__query_builder::Col, - pub closed: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AccountFence { - type Cols = AccountFenceCols; - fn cols(table_name: &'static str) -> Self::Cols { - AccountFenceCols { - account_id: __sdk::__query_builder::Col::new(table_name, "account_id"), - account_name: __sdk::__query_builder::Col::new(table_name, "account_name"), - generation: __sdk::__query_builder::Col::new(table_name, "generation"), - request_nonce: __sdk::__query_builder::Col::new(table_name, "request_nonce"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - expires_micros: __sdk::__query_builder::Col::new(table_name, "expires_micros"), - closed: __sdk::__query_builder::Col::new(table_name, "closed"), - } - } -} - -/// Indexed column accessor struct for the table `AccountFence`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AccountFenceIxCols { - pub account_id: __sdk::__query_builder::IxCol, - pub character_guid: __sdk::__query_builder::IxCol, - pub closed: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AccountFence { - type IxCols = AccountFenceIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AccountFenceIxCols { - account_id: __sdk::__query_builder::IxCol::new(table_name, "account_id"), - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - closed: __sdk::__query_builder::IxCol::new(table_name, "closed"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AccountFence {} diff --git a/gateway/src/stdb/bindings/account_type.rs b/gateway/src/stdb/bindings/account_type.rs deleted file mode 100644 index 92e8cfe2a..000000000 --- a/gateway/src/stdb/bindings/account_type.rs +++ /dev/null @@ -1,69 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Account { - pub id: u64, - pub username: String, - pub salt: Vec, - pub verifier: Vec, - pub identity: Option<__sdk::Identity>, - pub banned: bool, - pub alpha_test_tools: bool, -} - -impl __sdk::InModule for Account { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `Account`. -/// -/// Provides typed access to columns for query building. -pub struct AccountCols { - pub id: __sdk::__query_builder::Col, - pub username: __sdk::__query_builder::Col, - pub salt: __sdk::__query_builder::Col>, - pub verifier: __sdk::__query_builder::Col>, - pub identity: __sdk::__query_builder::Col>, - pub banned: __sdk::__query_builder::Col, - pub alpha_test_tools: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for Account { - type Cols = AccountCols; - fn cols(table_name: &'static str) -> Self::Cols { - AccountCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - username: __sdk::__query_builder::Col::new(table_name, "username"), - salt: __sdk::__query_builder::Col::new(table_name, "salt"), - verifier: __sdk::__query_builder::Col::new(table_name, "verifier"), - identity: __sdk::__query_builder::Col::new(table_name, "identity"), - banned: __sdk::__query_builder::Col::new(table_name, "banned"), - alpha_test_tools: __sdk::__query_builder::Col::new(table_name, "alpha_test_tools"), - } - } -} - -/// Indexed column accessor struct for the table `Account`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AccountIxCols { - pub id: __sdk::__query_builder::IxCol, - pub username: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for Account { - type IxCols = AccountIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AccountIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - username: __sdk::__query_builder::IxCol::new(table_name, "username"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for Account {} diff --git a/gateway/src/stdb/bindings/activate_vmap_generation_reducer.rs b/gateway/src/stdb/bindings/activate_vmap_generation_reducer.rs deleted file mode 100644 index bb227098f..000000000 --- a/gateway/src/stdb/bindings/activate_vmap_generation_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ActivateVmapGenerationArgs { - pub generation_id: u64, -} - -impl From for super::Reducer { - fn from(args: ActivateVmapGenerationArgs) -> Self { - Self::ActivateVmapGeneration { - generation_id: args.generation_id, - } - } -} - -impl __sdk::InModule for ActivateVmapGenerationArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `activate_vmap_generation`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait activate_vmap_generation { - /// Request that the remote module invoke the reducer `activate_vmap_generation` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`activate_vmap_generation:activate_vmap_generation_then`] to run a callback after the reducer completes. - fn activate_vmap_generation(&self, generation_id: u64) -> __sdk::Result<()> { - self.activate_vmap_generation_then(generation_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `activate_vmap_generation` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn activate_vmap_generation_then( - &self, - generation_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl activate_vmap_generation for super::RemoteReducers { - fn activate_vmap_generation_then( - &self, - generation_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ActivateVmapGenerationArgs { generation_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/active_taxi_flight_type.rs b/gateway/src/stdb/bindings/active_taxi_flight_type.rs deleted file mode 100644 index 845225724..000000000 --- a/gateway/src/stdb/bindings/active_taxi_flight_type.rs +++ /dev/null @@ -1,73 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ActiveTaxiFlight { - pub character_guid: u64, - pub path_id: u32, - pub source_node_id: u32, - pub destination_node_id: u32, - pub mount_display_id: u32, - pub fare: u32, - pub current_node_index: u32, - pub started_micros: i64, -} - -impl __sdk::InModule for ActiveTaxiFlight { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ActiveTaxiFlight`. -/// -/// Provides typed access to columns for query building. -pub struct ActiveTaxiFlightCols { - pub character_guid: __sdk::__query_builder::Col, - pub path_id: __sdk::__query_builder::Col, - pub source_node_id: __sdk::__query_builder::Col, - pub destination_node_id: __sdk::__query_builder::Col, - pub mount_display_id: __sdk::__query_builder::Col, - pub fare: __sdk::__query_builder::Col, - pub current_node_index: __sdk::__query_builder::Col, - pub started_micros: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ActiveTaxiFlight { - type Cols = ActiveTaxiFlightCols; - fn cols(table_name: &'static str) -> Self::Cols { - ActiveTaxiFlightCols { - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - path_id: __sdk::__query_builder::Col::new(table_name, "path_id"), - source_node_id: __sdk::__query_builder::Col::new(table_name, "source_node_id"), - destination_node_id: __sdk::__query_builder::Col::new( - table_name, - "destination_node_id", - ), - mount_display_id: __sdk::__query_builder::Col::new(table_name, "mount_display_id"), - fare: __sdk::__query_builder::Col::new(table_name, "fare"), - current_node_index: __sdk::__query_builder::Col::new(table_name, "current_node_index"), - started_micros: __sdk::__query_builder::Col::new(table_name, "started_micros"), - } - } -} - -/// Indexed column accessor struct for the table `ActiveTaxiFlight`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ActiveTaxiFlightIxCols { - pub character_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ActiveTaxiFlight { - type IxCols = ActiveTaxiFlightIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ActiveTaxiFlightIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ActiveTaxiFlight {} diff --git a/gateway/src/stdb/bindings/addon_message_type.rs b/gateway/src/stdb/bindings/addon_message_type.rs deleted file mode 100644 index 4bc5d4997..000000000 --- a/gateway/src/stdb/bindings/addon_message_type.rs +++ /dev/null @@ -1,61 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AddonMessage { - pub id: u64, - pub recipient_identity: __sdk::Identity, - pub cmd: String, - pub payload: String, - pub created_at: __sdk::Timestamp, -} - -impl __sdk::InModule for AddonMessage { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AddonMessage`. -/// -/// Provides typed access to columns for query building. -pub struct AddonMessageCols { - pub id: __sdk::__query_builder::Col, - pub recipient_identity: __sdk::__query_builder::Col, - pub cmd: __sdk::__query_builder::Col, - pub payload: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AddonMessage { - type Cols = AddonMessageCols; - fn cols(table_name: &'static str) -> Self::Cols { - AddonMessageCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - recipient_identity: __sdk::__query_builder::Col::new(table_name, "recipient_identity"), - cmd: __sdk::__query_builder::Col::new(table_name, "cmd"), - payload: __sdk::__query_builder::Col::new(table_name, "payload"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } - } -} - -/// Indexed column accessor struct for the table `AddonMessage`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AddonMessageIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AddonMessage { - type IxCols = AddonMessageIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AddonMessageIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AddonMessage {} diff --git a/gateway/src/stdb/bindings/admit_party_command_authority_reducer.rs b/gateway/src/stdb/bindings/admit_party_command_authority_reducer.rs deleted file mode 100644 index 6fcc437f5..000000000 --- a/gateway/src/stdb/bindings/admit_party_command_authority_reducer.rs +++ /dev/null @@ -1,106 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct AdmitPartyCommandAuthorityArgs { - pub group_id: u64, - pub leader_guid: u64, - pub bot_guid: u64, - pub authority_member_guid: u64, - pub expected_members: Vec, -} - -impl From for super::Reducer { - fn from(args: AdmitPartyCommandAuthorityArgs) -> Self { - Self::AdmitPartyCommandAuthority { - group_id: args.group_id, - leader_guid: args.leader_guid, - bot_guid: args.bot_guid, - authority_member_guid: args.authority_member_guid, - expected_members: args.expected_members, - } - } -} - -impl __sdk::InModule for AdmitPartyCommandAuthorityArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `admit_party_command_authority`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait admit_party_command_authority { - /// Request that the remote module invoke the reducer `admit_party_command_authority` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`admit_party_command_authority:admit_party_command_authority_then`] to run a callback after the reducer completes. - fn admit_party_command_authority( - &self, - group_id: u64, - leader_guid: u64, - bot_guid: u64, - authority_member_guid: u64, - expected_members: Vec, - ) -> __sdk::Result<()> { - self.admit_party_command_authority_then( - group_id, - leader_guid, - bot_guid, - authority_member_guid, - expected_members, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `admit_party_command_authority` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn admit_party_command_authority_then( - &self, - group_id: u64, - leader_guid: u64, - bot_guid: u64, - authority_member_guid: u64, - expected_members: Vec, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl admit_party_command_authority for super::RemoteReducers { - fn admit_party_command_authority_then( - &self, - group_id: u64, - leader_guid: u64, - bot_guid: u64, - authority_member_guid: u64, - expected_members: Vec, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - AdmitPartyCommandAuthorityArgs { - group_id, - leader_guid, - bot_guid, - authority_member_guid, - expected_members, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/admit_sessionless_group_action_reducer.rs b/gateway/src/stdb/bindings/admit_sessionless_group_action_reducer.rs deleted file mode 100644 index 914b55ed8..000000000 --- a/gateway/src/stdb/bindings/admit_sessionless_group_action_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct AdmitSessionlessGroupActionArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: AdmitSessionlessGroupActionArgs) -> Self { - Self::AdmitSessionlessGroupAction { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for AdmitSessionlessGroupActionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `admit_sessionless_group_action`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait admit_sessionless_group_action { - /// Request that the remote module invoke the reducer `admit_sessionless_group_action` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`admit_sessionless_group_action:admit_sessionless_group_action_then`] to run a callback after the reducer completes. - fn admit_sessionless_group_action(&self, character_guid: u64) -> __sdk::Result<()> { - self.admit_sessionless_group_action_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `admit_sessionless_group_action` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn admit_sessionless_group_action_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl admit_sessionless_group_action for super::RemoteReducers { - fn admit_sessionless_group_action_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - AdmitSessionlessGroupActionArgs { character_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/advance_taxi_flight_reducer.rs b/gateway/src/stdb/bindings/advance_taxi_flight_reducer.rs deleted file mode 100644 index f01911770..000000000 --- a/gateway/src/stdb/bindings/advance_taxi_flight_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::taxi_flight_schedule_type::TaxiFlightSchedule; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct AdvanceTaxiFlightArgs { - pub schedule: TaxiFlightSchedule, -} - -impl From for super::Reducer { - fn from(args: AdvanceTaxiFlightArgs) -> Self { - Self::AdvanceTaxiFlight { - schedule: args.schedule, - } - } -} - -impl __sdk::InModule for AdvanceTaxiFlightArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `advance_taxi_flight`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait advance_taxi_flight { - /// Request that the remote module invoke the reducer `advance_taxi_flight` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`advance_taxi_flight:advance_taxi_flight_then`] to run a callback after the reducer completes. - fn advance_taxi_flight(&self, schedule: TaxiFlightSchedule) -> __sdk::Result<()> { - self.advance_taxi_flight_then(schedule, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `advance_taxi_flight` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn advance_taxi_flight_then( - &self, - schedule: TaxiFlightSchedule, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl advance_taxi_flight for super::RemoteReducers { - fn advance_taxi_flight_then( - &self, - schedule: TaxiFlightSchedule, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(AdvanceTaxiFlightArgs { schedule }, callback) - } -} diff --git a/gateway/src/stdb/bindings/ai_event_kind_type.rs b/gateway/src/stdb/bindings/ai_event_kind_type.rs deleted file mode 100644 index 8805199b4..000000000 --- a/gateway/src/stdb/bindings/ai_event_kind_type.rs +++ /dev/null @@ -1,38 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum AiEventKind { - JustDied, - - CriticalHealth, - - LostHealth, - - LostSomeHealth, - - GotFullHealth, - - CustomA, - - CustomB, - - CrowdControlled, - - CustomC, - - CustomD, - - CustomE, - - CustomF, -} - -impl __sdk::InModule for AiEventKind { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/alpha_test_tools_enrollment_type.rs b/gateway/src/stdb/bindings/alpha_test_tools_enrollment_type.rs deleted file mode 100644 index aaa128a38..000000000 --- a/gateway/src/stdb/bindings/alpha_test_tools_enrollment_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AlphaTestToolsEnrollment { - pub id: u8, - pub enabled: bool, -} - -impl __sdk::InModule for AlphaTestToolsEnrollment { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AlphaTestToolsEnrollment`. -/// -/// Provides typed access to columns for query building. -pub struct AlphaTestToolsEnrollmentCols { - pub id: __sdk::__query_builder::Col, - pub enabled: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AlphaTestToolsEnrollment { - type Cols = AlphaTestToolsEnrollmentCols; - fn cols(table_name: &'static str) -> Self::Cols { - AlphaTestToolsEnrollmentCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - enabled: __sdk::__query_builder::Col::new(table_name, "enabled"), - } - } -} - -/// Indexed column accessor struct for the table `AlphaTestToolsEnrollment`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AlphaTestToolsEnrollmentIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AlphaTestToolsEnrollment { - type IxCols = AlphaTestToolsEnrollmentIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AlphaTestToolsEnrollmentIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AlphaTestToolsEnrollment {} diff --git a/gateway/src/stdb/bindings/append_vmap_generation_chunks_reducer.rs b/gateway/src/stdb/bindings/append_vmap_generation_chunks_reducer.rs deleted file mode 100644 index 8306d4d4a..000000000 --- a/gateway/src/stdb/bindings/append_vmap_generation_chunks_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct AppendVmapGenerationChunksArgs { - pub generation_id: u64, - pub packed: String, -} - -impl From for super::Reducer { - fn from(args: AppendVmapGenerationChunksArgs) -> Self { - Self::AppendVmapGenerationChunks { - generation_id: args.generation_id, - packed: args.packed, - } - } -} - -impl __sdk::InModule for AppendVmapGenerationChunksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `append_vmap_generation_chunks`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait append_vmap_generation_chunks { - /// Request that the remote module invoke the reducer `append_vmap_generation_chunks` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`append_vmap_generation_chunks:append_vmap_generation_chunks_then`] to run a callback after the reducer completes. - fn append_vmap_generation_chunks( - &self, - generation_id: u64, - packed: String, - ) -> __sdk::Result<()> { - self.append_vmap_generation_chunks_then(generation_id, packed, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `append_vmap_generation_chunks` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn append_vmap_generation_chunks_then( - &self, - generation_id: u64, - packed: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl append_vmap_generation_chunks for super::RemoteReducers { - fn append_vmap_generation_chunks_then( - &self, - generation_id: u64, - packed: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - AppendVmapGenerationChunksArgs { - generation_id, - packed, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/apply_admitted_party_command_reducer.rs b/gateway/src/stdb/bindings/apply_admitted_party_command_reducer.rs deleted file mode 100644 index 4797c5d72..000000000 --- a/gateway/src/stdb/bindings/apply_admitted_party_command_reducer.rs +++ /dev/null @@ -1,162 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ApplyAdmittedPartyCommandArgs { - pub source_identity: __sdk::Identity, - pub intent_id: u64, - pub issuer_guid: u64, - pub issuer_sequence: u64, - pub group_id: u64, - pub leader_guid: u64, - pub members: Vec, - pub kind: u8, - pub bot_guid: u64, - pub authority_member_guid: u64, - pub exact_target_guid: u64, - pub expires_micros: i64, - pub receipt_retain_until_micros: i64, -} - -impl From for super::Reducer { - fn from(args: ApplyAdmittedPartyCommandArgs) -> Self { - Self::ApplyAdmittedPartyCommand { - source_identity: args.source_identity, - intent_id: args.intent_id, - issuer_guid: args.issuer_guid, - issuer_sequence: args.issuer_sequence, - group_id: args.group_id, - leader_guid: args.leader_guid, - members: args.members, - kind: args.kind, - bot_guid: args.bot_guid, - authority_member_guid: args.authority_member_guid, - exact_target_guid: args.exact_target_guid, - expires_micros: args.expires_micros, - receipt_retain_until_micros: args.receipt_retain_until_micros, - } - } -} - -impl __sdk::InModule for ApplyAdmittedPartyCommandArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `apply_admitted_party_command`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait apply_admitted_party_command { - /// Request that the remote module invoke the reducer `apply_admitted_party_command` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`apply_admitted_party_command:apply_admitted_party_command_then`] to run a callback after the reducer completes. - fn apply_admitted_party_command( - &self, - source_identity: __sdk::Identity, - intent_id: u64, - issuer_guid: u64, - issuer_sequence: u64, - group_id: u64, - leader_guid: u64, - members: Vec, - kind: u8, - bot_guid: u64, - authority_member_guid: u64, - exact_target_guid: u64, - expires_micros: i64, - receipt_retain_until_micros: i64, - ) -> __sdk::Result<()> { - self.apply_admitted_party_command_then( - source_identity, - intent_id, - issuer_guid, - issuer_sequence, - group_id, - leader_guid, - members, - kind, - bot_guid, - authority_member_guid, - exact_target_guid, - expires_micros, - receipt_retain_until_micros, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `apply_admitted_party_command` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn apply_admitted_party_command_then( - &self, - source_identity: __sdk::Identity, - intent_id: u64, - issuer_guid: u64, - issuer_sequence: u64, - group_id: u64, - leader_guid: u64, - members: Vec, - kind: u8, - bot_guid: u64, - authority_member_guid: u64, - exact_target_guid: u64, - expires_micros: i64, - receipt_retain_until_micros: i64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl apply_admitted_party_command for super::RemoteReducers { - fn apply_admitted_party_command_then( - &self, - source_identity: __sdk::Identity, - intent_id: u64, - issuer_guid: u64, - issuer_sequence: u64, - group_id: u64, - leader_guid: u64, - members: Vec, - kind: u8, - bot_guid: u64, - authority_member_guid: u64, - exact_target_guid: u64, - expires_micros: i64, - receipt_retain_until_micros: i64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ApplyAdmittedPartyCommandArgs { - source_identity, - intent_id, - issuer_guid, - issuer_sequence, - group_id, - leader_guid, - members, - kind, - bot_guid, - authority_member_guid, - exact_target_guid, - expires_micros, - receipt_retain_until_micros, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/apply_package_deltas_reducer.rs b/gateway/src/stdb/bindings/apply_package_deltas_reducer.rs deleted file mode 100644 index b08337866..000000000 --- a/gateway/src/stdb/bindings/apply_package_deltas_reducer.rs +++ /dev/null @@ -1,72 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ApplyPackageDeltasArgs { - pub family: String, - pub packed: String, -} - -impl From for super::Reducer { - fn from(args: ApplyPackageDeltasArgs) -> Self { - Self::ApplyPackageDeltas { - family: args.family, - packed: args.packed, - } - } -} - -impl __sdk::InModule for ApplyPackageDeltasArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `apply_package_deltas`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait apply_package_deltas { - /// Request that the remote module invoke the reducer `apply_package_deltas` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`apply_package_deltas:apply_package_deltas_then`] to run a callback after the reducer completes. - fn apply_package_deltas(&self, family: String, packed: String) -> __sdk::Result<()> { - self.apply_package_deltas_then(family, packed, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `apply_package_deltas` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn apply_package_deltas_then( - &self, - family: String, - packed: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl apply_package_deltas for super::RemoteReducers { - fn apply_package_deltas_then( - &self, - family: String, - packed: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ApplyPackageDeltasArgs { family, packed }, callback) - } -} diff --git a/gateway/src/stdb/bindings/areatrigger_teleport_type.rs b/gateway/src/stdb/bindings/areatrigger_teleport_type.rs deleted file mode 100644 index 509a3b42b..000000000 --- a/gateway/src/stdb/bindings/areatrigger_teleport_type.rs +++ /dev/null @@ -1,67 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AreatriggerTeleport { - pub trigger_id: u32, - pub target_map: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub o: f32, - pub name: String, -} - -impl __sdk::InModule for AreatriggerTeleport { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AreatriggerTeleport`. -/// -/// Provides typed access to columns for query building. -pub struct AreatriggerTeleportCols { - pub trigger_id: __sdk::__query_builder::Col, - pub target_map: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub o: __sdk::__query_builder::Col, - pub name: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AreatriggerTeleport { - type Cols = AreatriggerTeleportCols; - fn cols(table_name: &'static str) -> Self::Cols { - AreatriggerTeleportCols { - trigger_id: __sdk::__query_builder::Col::new(table_name, "trigger_id"), - target_map: __sdk::__query_builder::Col::new(table_name, "target_map"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - o: __sdk::__query_builder::Col::new(table_name, "o"), - name: __sdk::__query_builder::Col::new(table_name, "name"), - } - } -} - -/// Indexed column accessor struct for the table `AreatriggerTeleport`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AreatriggerTeleportIxCols { - pub trigger_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AreatriggerTeleport { - type IxCols = AreatriggerTeleportIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AreatriggerTeleportIxCols { - trigger_id: __sdk::__query_builder::IxCol::new(table_name, "trigger_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AreatriggerTeleport {} diff --git a/gateway/src/stdb/bindings/arm_all_pools_reducer.rs b/gateway/src/stdb/bindings/arm_all_pools_reducer.rs deleted file mode 100644 index fc7e94857..000000000 --- a/gateway/src/stdb/bindings/arm_all_pools_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ArmAllPoolsArgs {} - -impl From for super::Reducer { - fn from(args: ArmAllPoolsArgs) -> Self { - Self::ArmAllPools - } -} - -impl __sdk::InModule for ArmAllPoolsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `arm_all_pools`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait arm_all_pools { - /// Request that the remote module invoke the reducer `arm_all_pools` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`arm_all_pools:arm_all_pools_then`] to run a callback after the reducer completes. - fn arm_all_pools(&self) -> __sdk::Result<()> { - self.arm_all_pools_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `arm_all_pools` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn arm_all_pools_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl arm_all_pools for super::RemoteReducers { - fn arm_all_pools_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ArmAllPoolsArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/auction_bid_decision_type.rs b/gateway/src/stdb/bindings/auction_bid_decision_type.rs deleted file mode 100644 index d228b9fa8..000000000 --- a/gateway/src/stdb/bindings/auction_bid_decision_type.rs +++ /dev/null @@ -1,91 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuctionBidDecision { - pub operation_id: u64, - pub bidder_guid: u64, - pub auction_id: u32, - pub offer: u32, - pub outcome: u8, - pub revision: u64, - pub result_bidder_guid: u64, - pub result_bid: u32, - pub minimum_increment: u32, - pub deferred_refund: u32, - pub accepted_price: u32, - pub house: u32, - pub item_entry: u32, - pub random_property_id: u32, - pub operation: u8, -} - -impl __sdk::InModule for AuctionBidDecision { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AuctionBidDecision`. -/// -/// Provides typed access to columns for query building. -pub struct AuctionBidDecisionCols { - pub operation_id: __sdk::__query_builder::Col, - pub bidder_guid: __sdk::__query_builder::Col, - pub auction_id: __sdk::__query_builder::Col, - pub offer: __sdk::__query_builder::Col, - pub outcome: __sdk::__query_builder::Col, - pub revision: __sdk::__query_builder::Col, - pub result_bidder_guid: __sdk::__query_builder::Col, - pub result_bid: __sdk::__query_builder::Col, - pub minimum_increment: __sdk::__query_builder::Col, - pub deferred_refund: __sdk::__query_builder::Col, - pub accepted_price: __sdk::__query_builder::Col, - pub house: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub random_property_id: __sdk::__query_builder::Col, - pub operation: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AuctionBidDecision { - type Cols = AuctionBidDecisionCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuctionBidDecisionCols { - operation_id: __sdk::__query_builder::Col::new(table_name, "operation_id"), - bidder_guid: __sdk::__query_builder::Col::new(table_name, "bidder_guid"), - auction_id: __sdk::__query_builder::Col::new(table_name, "auction_id"), - offer: __sdk::__query_builder::Col::new(table_name, "offer"), - outcome: __sdk::__query_builder::Col::new(table_name, "outcome"), - revision: __sdk::__query_builder::Col::new(table_name, "revision"), - result_bidder_guid: __sdk::__query_builder::Col::new(table_name, "result_bidder_guid"), - result_bid: __sdk::__query_builder::Col::new(table_name, "result_bid"), - minimum_increment: __sdk::__query_builder::Col::new(table_name, "minimum_increment"), - deferred_refund: __sdk::__query_builder::Col::new(table_name, "deferred_refund"), - accepted_price: __sdk::__query_builder::Col::new(table_name, "accepted_price"), - house: __sdk::__query_builder::Col::new(table_name, "house"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - random_property_id: __sdk::__query_builder::Col::new(table_name, "random_property_id"), - operation: __sdk::__query_builder::Col::new(table_name, "operation"), - } - } -} - -/// Indexed column accessor struct for the table `AuctionBidDecision`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuctionBidDecisionIxCols { - pub operation_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AuctionBidDecision { - type IxCols = AuctionBidDecisionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuctionBidDecisionIxCols { - operation_id: __sdk::__query_builder::IxCol::new(table_name, "operation_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AuctionBidDecision {} diff --git a/gateway/src/stdb/bindings/auction_bid_hold_type.rs b/gateway/src/stdb/bindings/auction_bid_hold_type.rs deleted file mode 100644 index 9cd9ca3f3..000000000 --- a/gateway/src/stdb/bindings/auction_bid_hold_type.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuctionBidHold { - pub operation_id: u64, - pub bidder_guid: u64, - pub auction_id: u32, - pub offer: u32, - pub outcome: u8, - pub revision: u64, - pub result_bidder_guid: u64, - pub result_bid: u32, - pub minimum_increment: u32, - pub deferred_refund: u32, - pub accepted_price: u32, - pub house: u32, - pub operation: u8, -} - -impl __sdk::InModule for AuctionBidHold { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AuctionBidHold`. -/// -/// Provides typed access to columns for query building. -pub struct AuctionBidHoldCols { - pub operation_id: __sdk::__query_builder::Col, - pub bidder_guid: __sdk::__query_builder::Col, - pub auction_id: __sdk::__query_builder::Col, - pub offer: __sdk::__query_builder::Col, - pub outcome: __sdk::__query_builder::Col, - pub revision: __sdk::__query_builder::Col, - pub result_bidder_guid: __sdk::__query_builder::Col, - pub result_bid: __sdk::__query_builder::Col, - pub minimum_increment: __sdk::__query_builder::Col, - pub deferred_refund: __sdk::__query_builder::Col, - pub accepted_price: __sdk::__query_builder::Col, - pub house: __sdk::__query_builder::Col, - pub operation: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AuctionBidHold { - type Cols = AuctionBidHoldCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuctionBidHoldCols { - operation_id: __sdk::__query_builder::Col::new(table_name, "operation_id"), - bidder_guid: __sdk::__query_builder::Col::new(table_name, "bidder_guid"), - auction_id: __sdk::__query_builder::Col::new(table_name, "auction_id"), - offer: __sdk::__query_builder::Col::new(table_name, "offer"), - outcome: __sdk::__query_builder::Col::new(table_name, "outcome"), - revision: __sdk::__query_builder::Col::new(table_name, "revision"), - result_bidder_guid: __sdk::__query_builder::Col::new(table_name, "result_bidder_guid"), - result_bid: __sdk::__query_builder::Col::new(table_name, "result_bid"), - minimum_increment: __sdk::__query_builder::Col::new(table_name, "minimum_increment"), - deferred_refund: __sdk::__query_builder::Col::new(table_name, "deferred_refund"), - accepted_price: __sdk::__query_builder::Col::new(table_name, "accepted_price"), - house: __sdk::__query_builder::Col::new(table_name, "house"), - operation: __sdk::__query_builder::Col::new(table_name, "operation"), - } - } -} - -/// Indexed column accessor struct for the table `AuctionBidHold`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuctionBidHoldIxCols { - pub bidder_guid: __sdk::__query_builder::IxCol, - pub operation_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AuctionBidHold { - type IxCols = AuctionBidHoldIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuctionBidHoldIxCols { - bidder_guid: __sdk::__query_builder::IxCol::new(table_name, "bidder_guid"), - operation_id: __sdk::__query_builder::IxCol::new(table_name, "operation_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AuctionBidHold {} diff --git a/gateway/src/stdb/bindings/auction_expiry_type.rs b/gateway/src/stdb/bindings/auction_expiry_type.rs deleted file mode 100644 index e65912a5f..000000000 --- a/gateway/src/stdb/bindings/auction_expiry_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuctionExpiry { - pub scheduled_id: u64, - pub scheduled_at: __sdk::ScheduleAt, - pub auction_id: u32, -} - -impl __sdk::InModule for AuctionExpiry { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AuctionExpiry`. -/// -/// Provides typed access to columns for query building. -pub struct AuctionExpiryCols { - pub scheduled_id: __sdk::__query_builder::Col, - pub scheduled_at: __sdk::__query_builder::Col, - pub auction_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AuctionExpiry { - type Cols = AuctionExpiryCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuctionExpiryCols { - scheduled_id: __sdk::__query_builder::Col::new(table_name, "scheduled_id"), - scheduled_at: __sdk::__query_builder::Col::new(table_name, "scheduled_at"), - auction_id: __sdk::__query_builder::Col::new(table_name, "auction_id"), - } - } -} - -/// Indexed column accessor struct for the table `AuctionExpiry`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuctionExpiryIxCols { - pub auction_id: __sdk::__query_builder::IxCol, - pub scheduled_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AuctionExpiry { - type IxCols = AuctionExpiryIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuctionExpiryIxCols { - auction_id: __sdk::__query_builder::IxCol::new(table_name, "auction_id"), - scheduled_id: __sdk::__query_builder::IxCol::new(table_name, "scheduled_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AuctionExpiry {} diff --git a/gateway/src/stdb/bindings/auction_hold_type.rs b/gateway/src/stdb/bindings/auction_hold_type.rs deleted file mode 100644 index d62fd132b..000000000 --- a/gateway/src/stdb/bindings/auction_hold_type.rs +++ /dev/null @@ -1,105 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuctionHold { - pub operation_id: u64, - pub seller_guid: u64, - pub item_guid: u64, - pub item_entry: u32, - pub item_stack_count: u32, - pub item_durability: u32, - pub item_enchant_id: u32, - pub item_soulbound: bool, - pub start_bid: u32, - pub buyout: u32, - pub duration_minutes: u32, - pub deposit: u32, - pub created_micros: i64, - pub expires_micros: i64, - pub house: u32, - pub deposit_rate: u32, - pub consignment_rate: u32, - pub random_property_id: u32, - pub item_text_id: u32, -} - -impl __sdk::InModule for AuctionHold { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AuctionHold`. -/// -/// Provides typed access to columns for query building. -pub struct AuctionHoldCols { - pub operation_id: __sdk::__query_builder::Col, - pub seller_guid: __sdk::__query_builder::Col, - pub item_guid: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub item_stack_count: __sdk::__query_builder::Col, - pub item_durability: __sdk::__query_builder::Col, - pub item_enchant_id: __sdk::__query_builder::Col, - pub item_soulbound: __sdk::__query_builder::Col, - pub start_bid: __sdk::__query_builder::Col, - pub buyout: __sdk::__query_builder::Col, - pub duration_minutes: __sdk::__query_builder::Col, - pub deposit: __sdk::__query_builder::Col, - pub created_micros: __sdk::__query_builder::Col, - pub expires_micros: __sdk::__query_builder::Col, - pub house: __sdk::__query_builder::Col, - pub deposit_rate: __sdk::__query_builder::Col, - pub consignment_rate: __sdk::__query_builder::Col, - pub random_property_id: __sdk::__query_builder::Col, - pub item_text_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AuctionHold { - type Cols = AuctionHoldCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuctionHoldCols { - operation_id: __sdk::__query_builder::Col::new(table_name, "operation_id"), - seller_guid: __sdk::__query_builder::Col::new(table_name, "seller_guid"), - item_guid: __sdk::__query_builder::Col::new(table_name, "item_guid"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - item_stack_count: __sdk::__query_builder::Col::new(table_name, "item_stack_count"), - item_durability: __sdk::__query_builder::Col::new(table_name, "item_durability"), - item_enchant_id: __sdk::__query_builder::Col::new(table_name, "item_enchant_id"), - item_soulbound: __sdk::__query_builder::Col::new(table_name, "item_soulbound"), - start_bid: __sdk::__query_builder::Col::new(table_name, "start_bid"), - buyout: __sdk::__query_builder::Col::new(table_name, "buyout"), - duration_minutes: __sdk::__query_builder::Col::new(table_name, "duration_minutes"), - deposit: __sdk::__query_builder::Col::new(table_name, "deposit"), - created_micros: __sdk::__query_builder::Col::new(table_name, "created_micros"), - expires_micros: __sdk::__query_builder::Col::new(table_name, "expires_micros"), - house: __sdk::__query_builder::Col::new(table_name, "house"), - deposit_rate: __sdk::__query_builder::Col::new(table_name, "deposit_rate"), - consignment_rate: __sdk::__query_builder::Col::new(table_name, "consignment_rate"), - random_property_id: __sdk::__query_builder::Col::new(table_name, "random_property_id"), - item_text_id: __sdk::__query_builder::Col::new(table_name, "item_text_id"), - } - } -} - -/// Indexed column accessor struct for the table `AuctionHold`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuctionHoldIxCols { - pub operation_id: __sdk::__query_builder::IxCol, - pub seller_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AuctionHold { - type IxCols = AuctionHoldIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuctionHoldIxCols { - operation_id: __sdk::__query_builder::IxCol::new(table_name, "operation_id"), - seller_guid: __sdk::__query_builder::IxCol::new(table_name, "seller_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AuctionHold {} diff --git a/gateway/src/stdb/bindings/auction_house_definition_type.rs b/gateway/src/stdb/bindings/auction_house_definition_type.rs deleted file mode 100644 index 710920b9c..000000000 --- a/gateway/src/stdb/bindings/auction_house_definition_type.rs +++ /dev/null @@ -1,61 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuctionHouseDefinition { - pub id: u32, - pub faction: u32, - pub deposit_rate: u32, - pub consignment_rate: u32, - pub name: String, -} - -impl __sdk::InModule for AuctionHouseDefinition { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AuctionHouseDefinition`. -/// -/// Provides typed access to columns for query building. -pub struct AuctionHouseDefinitionCols { - pub id: __sdk::__query_builder::Col, - pub faction: __sdk::__query_builder::Col, - pub deposit_rate: __sdk::__query_builder::Col, - pub consignment_rate: __sdk::__query_builder::Col, - pub name: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AuctionHouseDefinition { - type Cols = AuctionHouseDefinitionCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuctionHouseDefinitionCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - faction: __sdk::__query_builder::Col::new(table_name, "faction"), - deposit_rate: __sdk::__query_builder::Col::new(table_name, "deposit_rate"), - consignment_rate: __sdk::__query_builder::Col::new(table_name, "consignment_rate"), - name: __sdk::__query_builder::Col::new(table_name, "name"), - } - } -} - -/// Indexed column accessor struct for the table `AuctionHouseDefinition`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuctionHouseDefinitionIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AuctionHouseDefinition { - type IxCols = AuctionHouseDefinitionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuctionHouseDefinitionIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AuctionHouseDefinition {} diff --git a/gateway/src/stdb/bindings/auction_notice_type.rs b/gateway/src/stdb/bindings/auction_notice_type.rs deleted file mode 100644 index 07b523cd4..000000000 --- a/gateway/src/stdb/bindings/auction_notice_type.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuctionNotice { - pub id: u64, - pub recipient_guid: u64, - pub kind: u8, - pub house: u32, - pub auction_id: u32, - pub item_entry: u32, - pub random_property_id: u32, - pub bid: u32, - pub out_bid: u32, - pub bidder_guid: u64, - pub created_at: __sdk::Timestamp, -} - -impl __sdk::InModule for AuctionNotice { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AuctionNotice`. -/// -/// Provides typed access to columns for query building. -pub struct AuctionNoticeCols { - pub id: __sdk::__query_builder::Col, - pub recipient_guid: __sdk::__query_builder::Col, - pub kind: __sdk::__query_builder::Col, - pub house: __sdk::__query_builder::Col, - pub auction_id: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub random_property_id: __sdk::__query_builder::Col, - pub bid: __sdk::__query_builder::Col, - pub out_bid: __sdk::__query_builder::Col, - pub bidder_guid: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AuctionNotice { - type Cols = AuctionNoticeCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuctionNoticeCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - recipient_guid: __sdk::__query_builder::Col::new(table_name, "recipient_guid"), - kind: __sdk::__query_builder::Col::new(table_name, "kind"), - house: __sdk::__query_builder::Col::new(table_name, "house"), - auction_id: __sdk::__query_builder::Col::new(table_name, "auction_id"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - random_property_id: __sdk::__query_builder::Col::new(table_name, "random_property_id"), - bid: __sdk::__query_builder::Col::new(table_name, "bid"), - out_bid: __sdk::__query_builder::Col::new(table_name, "out_bid"), - bidder_guid: __sdk::__query_builder::Col::new(table_name, "bidder_guid"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } - } -} - -/// Indexed column accessor struct for the table `AuctionNotice`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuctionNoticeIxCols { - pub id: __sdk::__query_builder::IxCol, - pub recipient_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AuctionNotice { - type IxCols = AuctionNoticeIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuctionNoticeIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - recipient_guid: __sdk::__query_builder::IxCol::new(table_name, "recipient_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AuctionNotice {} diff --git a/gateway/src/stdb/bindings/auction_operation_receipt_type.rs b/gateway/src/stdb/bindings/auction_operation_receipt_type.rs deleted file mode 100644 index f0ea0d985..000000000 --- a/gateway/src/stdb/bindings/auction_operation_receipt_type.rs +++ /dev/null @@ -1,108 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuctionOperationReceipt { - pub operation_id: u64, - pub auction_id: u32, - pub actor_guid: u64, - pub item_guid: u64, - pub item_entry: u32, - pub item_stack_count: u32, - pub item_durability: u32, - pub item_enchant_id: u32, - pub item_soulbound: bool, - pub start_bid: u32, - pub buyout: u32, - pub duration_minutes: u32, - pub deposit: u32, - pub created_micros: i64, - pub expires_micros: i64, - pub house: u32, - pub deposit_rate: u32, - pub consignment_rate: u32, - pub random_property_id: u32, - pub item_text_id: u32, -} - -impl __sdk::InModule for AuctionOperationReceipt { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AuctionOperationReceipt`. -/// -/// Provides typed access to columns for query building. -pub struct AuctionOperationReceiptCols { - pub operation_id: __sdk::__query_builder::Col, - pub auction_id: __sdk::__query_builder::Col, - pub actor_guid: __sdk::__query_builder::Col, - pub item_guid: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub item_stack_count: __sdk::__query_builder::Col, - pub item_durability: __sdk::__query_builder::Col, - pub item_enchant_id: __sdk::__query_builder::Col, - pub item_soulbound: __sdk::__query_builder::Col, - pub start_bid: __sdk::__query_builder::Col, - pub buyout: __sdk::__query_builder::Col, - pub duration_minutes: __sdk::__query_builder::Col, - pub deposit: __sdk::__query_builder::Col, - pub created_micros: __sdk::__query_builder::Col, - pub expires_micros: __sdk::__query_builder::Col, - pub house: __sdk::__query_builder::Col, - pub deposit_rate: __sdk::__query_builder::Col, - pub consignment_rate: __sdk::__query_builder::Col, - pub random_property_id: __sdk::__query_builder::Col, - pub item_text_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AuctionOperationReceipt { - type Cols = AuctionOperationReceiptCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuctionOperationReceiptCols { - operation_id: __sdk::__query_builder::Col::new(table_name, "operation_id"), - auction_id: __sdk::__query_builder::Col::new(table_name, "auction_id"), - actor_guid: __sdk::__query_builder::Col::new(table_name, "actor_guid"), - item_guid: __sdk::__query_builder::Col::new(table_name, "item_guid"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - item_stack_count: __sdk::__query_builder::Col::new(table_name, "item_stack_count"), - item_durability: __sdk::__query_builder::Col::new(table_name, "item_durability"), - item_enchant_id: __sdk::__query_builder::Col::new(table_name, "item_enchant_id"), - item_soulbound: __sdk::__query_builder::Col::new(table_name, "item_soulbound"), - start_bid: __sdk::__query_builder::Col::new(table_name, "start_bid"), - buyout: __sdk::__query_builder::Col::new(table_name, "buyout"), - duration_minutes: __sdk::__query_builder::Col::new(table_name, "duration_minutes"), - deposit: __sdk::__query_builder::Col::new(table_name, "deposit"), - created_micros: __sdk::__query_builder::Col::new(table_name, "created_micros"), - expires_micros: __sdk::__query_builder::Col::new(table_name, "expires_micros"), - house: __sdk::__query_builder::Col::new(table_name, "house"), - deposit_rate: __sdk::__query_builder::Col::new(table_name, "deposit_rate"), - consignment_rate: __sdk::__query_builder::Col::new(table_name, "consignment_rate"), - random_property_id: __sdk::__query_builder::Col::new(table_name, "random_property_id"), - item_text_id: __sdk::__query_builder::Col::new(table_name, "item_text_id"), - } - } -} - -/// Indexed column accessor struct for the table `AuctionOperationReceipt`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuctionOperationReceiptIxCols { - pub actor_guid: __sdk::__query_builder::IxCol, - pub operation_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AuctionOperationReceipt { - type IxCols = AuctionOperationReceiptIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuctionOperationReceiptIxCols { - actor_guid: __sdk::__query_builder::IxCol::new(table_name, "actor_guid"), - operation_id: __sdk::__query_builder::IxCol::new(table_name, "operation_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AuctionOperationReceipt {} diff --git a/gateway/src/stdb/bindings/auction_type.rs b/gateway/src/stdb/bindings/auction_type.rs deleted file mode 100644 index 5a86efddf..000000000 --- a/gateway/src/stdb/bindings/auction_type.rs +++ /dev/null @@ -1,125 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Auction { - pub id: u32, - pub listing_operation_id: u64, - pub house: u32, - pub owner_guid: u64, - pub item_guid: u64, - pub item_entry: u32, - pub item_stack_count: u32, - pub item_durability: u32, - pub item_enchant_id: u32, - pub item_soulbound: bool, - pub start_bid: u32, - pub buyout: u32, - pub highest_bidder_guid: u64, - pub highest_bid: u32, - pub deposit: u32, - pub created_at: __sdk::Timestamp, - pub expires_at: __sdk::Timestamp, - pub revision: u64, - pub deposit_rate: u32, - pub consignment_rate: u32, - pub random_property_id: u32, - pub item_text_id: u32, -} - -impl __sdk::InModule for Auction { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `Auction`. -/// -/// Provides typed access to columns for query building. -pub struct AuctionCols { - pub id: __sdk::__query_builder::Col, - pub listing_operation_id: __sdk::__query_builder::Col, - pub house: __sdk::__query_builder::Col, - pub owner_guid: __sdk::__query_builder::Col, - pub item_guid: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub item_stack_count: __sdk::__query_builder::Col, - pub item_durability: __sdk::__query_builder::Col, - pub item_enchant_id: __sdk::__query_builder::Col, - pub item_soulbound: __sdk::__query_builder::Col, - pub start_bid: __sdk::__query_builder::Col, - pub buyout: __sdk::__query_builder::Col, - pub highest_bidder_guid: __sdk::__query_builder::Col, - pub highest_bid: __sdk::__query_builder::Col, - pub deposit: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub expires_at: __sdk::__query_builder::Col, - pub revision: __sdk::__query_builder::Col, - pub deposit_rate: __sdk::__query_builder::Col, - pub consignment_rate: __sdk::__query_builder::Col, - pub random_property_id: __sdk::__query_builder::Col, - pub item_text_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for Auction { - type Cols = AuctionCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuctionCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - listing_operation_id: __sdk::__query_builder::Col::new( - table_name, - "listing_operation_id", - ), - house: __sdk::__query_builder::Col::new(table_name, "house"), - owner_guid: __sdk::__query_builder::Col::new(table_name, "owner_guid"), - item_guid: __sdk::__query_builder::Col::new(table_name, "item_guid"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - item_stack_count: __sdk::__query_builder::Col::new(table_name, "item_stack_count"), - item_durability: __sdk::__query_builder::Col::new(table_name, "item_durability"), - item_enchant_id: __sdk::__query_builder::Col::new(table_name, "item_enchant_id"), - item_soulbound: __sdk::__query_builder::Col::new(table_name, "item_soulbound"), - start_bid: __sdk::__query_builder::Col::new(table_name, "start_bid"), - buyout: __sdk::__query_builder::Col::new(table_name, "buyout"), - highest_bidder_guid: __sdk::__query_builder::Col::new( - table_name, - "highest_bidder_guid", - ), - highest_bid: __sdk::__query_builder::Col::new(table_name, "highest_bid"), - deposit: __sdk::__query_builder::Col::new(table_name, "deposit"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - expires_at: __sdk::__query_builder::Col::new(table_name, "expires_at"), - revision: __sdk::__query_builder::Col::new(table_name, "revision"), - deposit_rate: __sdk::__query_builder::Col::new(table_name, "deposit_rate"), - consignment_rate: __sdk::__query_builder::Col::new(table_name, "consignment_rate"), - random_property_id: __sdk::__query_builder::Col::new(table_name, "random_property_id"), - item_text_id: __sdk::__query_builder::Col::new(table_name, "item_text_id"), - } - } -} - -/// Indexed column accessor struct for the table `Auction`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuctionIxCols { - pub highest_bidder_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, - pub owner_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for Auction { - type IxCols = AuctionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuctionIxCols { - highest_bidder_guid: __sdk::__query_builder::IxCol::new( - table_name, - "highest_bidder_guid", - ), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - owner_guid: __sdk::__query_builder::IxCol::new(table_name, "owner_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for Auction {} diff --git a/gateway/src/stdb/bindings/aura_schedule_type.rs b/gateway/src/stdb/bindings/aura_schedule_type.rs deleted file mode 100644 index 75548d816..000000000 --- a/gateway/src/stdb/bindings/aura_schedule_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuraSchedule { - pub scheduled_id: u64, - pub scheduled_at: __sdk::ScheduleAt, -} - -impl __sdk::InModule for AuraSchedule { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `AuraSchedule`. -/// -/// Provides typed access to columns for query building. -pub struct AuraScheduleCols { - pub scheduled_id: __sdk::__query_builder::Col, - pub scheduled_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for AuraSchedule { - type Cols = AuraScheduleCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuraScheduleCols { - scheduled_id: __sdk::__query_builder::Col::new(table_name, "scheduled_id"), - scheduled_at: __sdk::__query_builder::Col::new(table_name, "scheduled_at"), - } - } -} - -/// Indexed column accessor struct for the table `AuraSchedule`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuraScheduleIxCols { - pub scheduled_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for AuraSchedule { - type IxCols = AuraScheduleIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuraScheduleIxCols { - scheduled_id: __sdk::__query_builder::IxCol::new(table_name, "scheduled_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for AuraSchedule {} diff --git a/gateway/src/stdb/bindings/aura_stack_condition_type.rs b/gateway/src/stdb/bindings/aura_stack_condition_type.rs deleted file mode 100644 index 27e1ec023..000000000 --- a/gateway/src/stdb/bindings/aura_stack_condition_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AuraStackCondition { - pub spell_id: u32, - pub stacks: u32, -} - -impl __sdk::InModule for AuraStackCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/aura_type.rs b/gateway/src/stdb/bindings/aura_type.rs deleted file mode 100644 index 412d716e5..000000000 --- a/gateway/src/stdb/bindings/aura_type.rs +++ /dev/null @@ -1,147 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Aura { - pub id: u64, - pub target_guid: u64, - pub caster_guid: u64, - pub spell_id: u32, - pub slot: u8, - pub level: u8, - pub flags: u8, - pub applied_at: __sdk::Timestamp, - pub expires_at: __sdk::Timestamp, - pub effect_id: u64, - pub eff_kind: u8, - pub amount: i32, - pub eff_p0: i32, - pub eff_p0_kind: u8, - pub eff_p1: i32, - pub period_ms: u32, - pub amount_remaining: i32, - pub stacks: u8, - pub next_tick_micros: i64, - pub channel_target: u64, - pub enters_combat: bool, - pub proc_flags: u32, - pub proc_chance: u8, - pub proc_ppm: f32, - pub proc_ex: u32, - pub proc_school_mask: u8, - pub proc_family_name: u8, - pub proc_family_flags: u64, - pub proc_charges: u8, - pub proc_icd_ms: u32, - pub proc_ready_micros: i64, -} - -impl __sdk::InModule for Aura { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `Aura`. -/// -/// Provides typed access to columns for query building. -pub struct AuraCols { - pub id: __sdk::__query_builder::Col, - pub target_guid: __sdk::__query_builder::Col, - pub caster_guid: __sdk::__query_builder::Col, - pub spell_id: __sdk::__query_builder::Col, - pub slot: __sdk::__query_builder::Col, - pub level: __sdk::__query_builder::Col, - pub flags: __sdk::__query_builder::Col, - pub applied_at: __sdk::__query_builder::Col, - pub expires_at: __sdk::__query_builder::Col, - pub effect_id: __sdk::__query_builder::Col, - pub eff_kind: __sdk::__query_builder::Col, - pub amount: __sdk::__query_builder::Col, - pub eff_p0: __sdk::__query_builder::Col, - pub eff_p0_kind: __sdk::__query_builder::Col, - pub eff_p1: __sdk::__query_builder::Col, - pub period_ms: __sdk::__query_builder::Col, - pub amount_remaining: __sdk::__query_builder::Col, - pub stacks: __sdk::__query_builder::Col, - pub next_tick_micros: __sdk::__query_builder::Col, - pub channel_target: __sdk::__query_builder::Col, - pub enters_combat: __sdk::__query_builder::Col, - pub proc_flags: __sdk::__query_builder::Col, - pub proc_chance: __sdk::__query_builder::Col, - pub proc_ppm: __sdk::__query_builder::Col, - pub proc_ex: __sdk::__query_builder::Col, - pub proc_school_mask: __sdk::__query_builder::Col, - pub proc_family_name: __sdk::__query_builder::Col, - pub proc_family_flags: __sdk::__query_builder::Col, - pub proc_charges: __sdk::__query_builder::Col, - pub proc_icd_ms: __sdk::__query_builder::Col, - pub proc_ready_micros: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for Aura { - type Cols = AuraCols; - fn cols(table_name: &'static str) -> Self::Cols { - AuraCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - target_guid: __sdk::__query_builder::Col::new(table_name, "target_guid"), - caster_guid: __sdk::__query_builder::Col::new(table_name, "caster_guid"), - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - slot: __sdk::__query_builder::Col::new(table_name, "slot"), - level: __sdk::__query_builder::Col::new(table_name, "level"), - flags: __sdk::__query_builder::Col::new(table_name, "flags"), - applied_at: __sdk::__query_builder::Col::new(table_name, "applied_at"), - expires_at: __sdk::__query_builder::Col::new(table_name, "expires_at"), - effect_id: __sdk::__query_builder::Col::new(table_name, "effect_id"), - eff_kind: __sdk::__query_builder::Col::new(table_name, "eff_kind"), - amount: __sdk::__query_builder::Col::new(table_name, "amount"), - eff_p0: __sdk::__query_builder::Col::new(table_name, "eff_p0"), - eff_p0_kind: __sdk::__query_builder::Col::new(table_name, "eff_p0_kind"), - eff_p1: __sdk::__query_builder::Col::new(table_name, "eff_p1"), - period_ms: __sdk::__query_builder::Col::new(table_name, "period_ms"), - amount_remaining: __sdk::__query_builder::Col::new(table_name, "amount_remaining"), - stacks: __sdk::__query_builder::Col::new(table_name, "stacks"), - next_tick_micros: __sdk::__query_builder::Col::new(table_name, "next_tick_micros"), - channel_target: __sdk::__query_builder::Col::new(table_name, "channel_target"), - enters_combat: __sdk::__query_builder::Col::new(table_name, "enters_combat"), - proc_flags: __sdk::__query_builder::Col::new(table_name, "proc_flags"), - proc_chance: __sdk::__query_builder::Col::new(table_name, "proc_chance"), - proc_ppm: __sdk::__query_builder::Col::new(table_name, "proc_ppm"), - proc_ex: __sdk::__query_builder::Col::new(table_name, "proc_ex"), - proc_school_mask: __sdk::__query_builder::Col::new(table_name, "proc_school_mask"), - proc_family_name: __sdk::__query_builder::Col::new(table_name, "proc_family_name"), - proc_family_flags: __sdk::__query_builder::Col::new(table_name, "proc_family_flags"), - proc_charges: __sdk::__query_builder::Col::new(table_name, "proc_charges"), - proc_icd_ms: __sdk::__query_builder::Col::new(table_name, "proc_icd_ms"), - proc_ready_micros: __sdk::__query_builder::Col::new(table_name, "proc_ready_micros"), - } - } -} - -/// Indexed column accessor struct for the table `Aura`. -/// -/// Provides typed access to indexed columns for query building. -pub struct AuraIxCols { - pub caster_guid: __sdk::__query_builder::IxCol, - pub expires_at: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, - pub next_tick_micros: __sdk::__query_builder::IxCol, - pub target_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for Aura { - type IxCols = AuraIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - AuraIxCols { - caster_guid: __sdk::__query_builder::IxCol::new(table_name, "caster_guid"), - expires_at: __sdk::__query_builder::IxCol::new(table_name, "expires_at"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - next_tick_micros: __sdk::__query_builder::IxCol::new(table_name, "next_tick_micros"), - target_guid: __sdk::__query_builder::IxCol::new(table_name, "target_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for Aura {} diff --git a/gateway/src/stdb/bindings/authored_idle_movement_type.rs b/gateway/src/stdb/bindings/authored_idle_movement_type.rs deleted file mode 100644 index 6ebbfd16a..000000000 --- a/gateway/src/stdb/bindings/authored_idle_movement_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum AuthoredIdleMovement { - InheritSpawn, - - Stationary, - - RandomAroundHomePosition, - - RandomAroundCurrentPosition, - - Patrol, -} - -impl __sdk::InModule for AuthoredIdleMovement { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/authored_walking_mode_type.rs b/gateway/src/stdb/bindings/authored_walking_mode_type.rs deleted file mode 100644 index 3e0118e02..000000000 --- a/gateway/src/stdb/bindings/authored_walking_mode_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum AuthoredWalkingMode { - Inherit, - - RunByDefault, - - WalkByDefault, - - RunWhileChasing, - - WalkWhileChasing, -} - -impl __sdk::InModule for AuthoredWalkingMode { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/begin_character_shard_transfer_reducer.rs b/gateway/src/stdb/bindings/begin_character_shard_transfer_reducer.rs deleted file mode 100644 index f1bd89c16..000000000 --- a/gateway/src/stdb/bindings/begin_character_shard_transfer_reducer.rs +++ /dev/null @@ -1,143 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct BeginCharacterShardTransferArgs { - pub character_guid: u64, - pub source_map_id: u32, - pub source_instance_id: u64, - pub source_revision: u64, - pub destination_map_id: u32, - pub destination_instance_id: u64, - pub source_module_identity: __sdk::Identity, - pub transfer_intent_id: u64, - pub controller_generation: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: BeginCharacterShardTransferArgs) -> Self { - Self::BeginCharacterShardTransfer { - character_guid: args.character_guid, - source_map_id: args.source_map_id, - source_instance_id: args.source_instance_id, - source_revision: args.source_revision, - destination_map_id: args.destination_map_id, - destination_instance_id: args.destination_instance_id, - source_module_identity: args.source_module_identity, - transfer_intent_id: args.transfer_intent_id, - controller_generation: args.controller_generation, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for BeginCharacterShardTransferArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `begin_character_shard_transfer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait begin_character_shard_transfer { - /// Request that the remote module invoke the reducer `begin_character_shard_transfer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`begin_character_shard_transfer:begin_character_shard_transfer_then`] to run a callback after the reducer completes. - fn begin_character_shard_transfer( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - ) -> __sdk::Result<()> { - self.begin_character_shard_transfer_then( - character_guid, - source_map_id, - source_instance_id, - source_revision, - destination_map_id, - destination_instance_id, - source_module_identity, - transfer_intent_id, - controller_generation, - request_actor, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `begin_character_shard_transfer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn begin_character_shard_transfer_then( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl begin_character_shard_transfer for super::RemoteReducers { - fn begin_character_shard_transfer_then( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - BeginCharacterShardTransferArgs { - character_guid, - source_map_id, - source_instance_id, - source_revision, - destination_map_id, - destination_instance_id, - source_module_identity, - transfer_intent_id, - controller_generation, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/begin_transfer_reducer.rs b/gateway/src/stdb/bindings/begin_transfer_reducer.rs deleted file mode 100644 index 2a1bf972a..000000000 --- a/gateway/src/stdb/bindings/begin_transfer_reducer.rs +++ /dev/null @@ -1,136 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct BeginTransferArgs { - pub transfer_id: u64, - pub request_actor: SessionActor, - pub dest_map_id: u32, - pub dest_instance_id: u64, - pub dest_x: f32, - pub dest_y: f32, - pub dest_z: f32, - pub dest_o: f32, - pub cross_database: bool, -} - -impl From for super::Reducer { - fn from(args: BeginTransferArgs) -> Self { - Self::BeginTransfer { - transfer_id: args.transfer_id, - request_actor: args.request_actor, - dest_map_id: args.dest_map_id, - dest_instance_id: args.dest_instance_id, - dest_x: args.dest_x, - dest_y: args.dest_y, - dest_z: args.dest_z, - dest_o: args.dest_o, - cross_database: args.cross_database, - } - } -} - -impl __sdk::InModule for BeginTransferArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `begin_transfer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait begin_transfer { - /// Request that the remote module invoke the reducer `begin_transfer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`begin_transfer:begin_transfer_then`] to run a callback after the reducer completes. - fn begin_transfer( - &self, - transfer_id: u64, - request_actor: SessionActor, - dest_map_id: u32, - dest_instance_id: u64, - dest_x: f32, - dest_y: f32, - dest_z: f32, - dest_o: f32, - cross_database: bool, - ) -> __sdk::Result<()> { - self.begin_transfer_then( - transfer_id, - request_actor, - dest_map_id, - dest_instance_id, - dest_x, - dest_y, - dest_z, - dest_o, - cross_database, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `begin_transfer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn begin_transfer_then( - &self, - transfer_id: u64, - request_actor: SessionActor, - dest_map_id: u32, - dest_instance_id: u64, - dest_x: f32, - dest_y: f32, - dest_z: f32, - dest_o: f32, - cross_database: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl begin_transfer for super::RemoteReducers { - fn begin_transfer_then( - &self, - transfer_id: u64, - request_actor: SessionActor, - dest_map_id: u32, - dest_instance_id: u64, - dest_x: f32, - dest_y: f32, - dest_z: f32, - dest_o: f32, - cross_database: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - BeginTransferArgs { - transfer_id, - request_actor, - dest_map_id, - dest_instance_id, - dest_x, - dest_y, - dest_z, - dest_o, - cross_database, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/bind_bot_transfer_locator_reducer.rs b/gateway/src/stdb/bindings/bind_bot_transfer_locator_reducer.rs deleted file mode 100644 index ab07b7017..000000000 --- a/gateway/src/stdb/bindings/bind_bot_transfer_locator_reducer.rs +++ /dev/null @@ -1,120 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct BindBotTransferLocatorArgs { - pub intent_id: u64, - pub bot_guid: u64, - pub controller_generation: u64, - pub claim_token: u64, - pub source_map: u32, - pub source_instance: u64, - pub source_locator_revision: u64, -} - -impl From for super::Reducer { - fn from(args: BindBotTransferLocatorArgs) -> Self { - Self::BindBotTransferLocator { - intent_id: args.intent_id, - bot_guid: args.bot_guid, - controller_generation: args.controller_generation, - claim_token: args.claim_token, - source_map: args.source_map, - source_instance: args.source_instance, - source_locator_revision: args.source_locator_revision, - } - } -} - -impl __sdk::InModule for BindBotTransferLocatorArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `bind_bot_transfer_locator`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait bind_bot_transfer_locator { - /// Request that the remote module invoke the reducer `bind_bot_transfer_locator` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`bind_bot_transfer_locator:bind_bot_transfer_locator_then`] to run a callback after the reducer completes. - fn bind_bot_transfer_locator( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - source_map: u32, - source_instance: u64, - source_locator_revision: u64, - ) -> __sdk::Result<()> { - self.bind_bot_transfer_locator_then( - intent_id, - bot_guid, - controller_generation, - claim_token, - source_map, - source_instance, - source_locator_revision, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `bind_bot_transfer_locator` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn bind_bot_transfer_locator_then( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - source_map: u32, - source_instance: u64, - source_locator_revision: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl bind_bot_transfer_locator for super::RemoteReducers { - fn bind_bot_transfer_locator_then( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - source_map: u32, - source_instance: u64, - source_locator_revision: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - BindBotTransferLocatorArgs { - intent_id, - bot_guid, - controller_generation, - claim_token, - source_map, - source_instance, - source_locator_revision, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/bot_invite_intent_type.rs b/gateway/src/stdb/bindings/bot_invite_intent_type.rs deleted file mode 100644 index 7f8ee2692..000000000 --- a/gateway/src/stdb/bindings/bot_invite_intent_type.rs +++ /dev/null @@ -1,63 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BotInviteIntent { - pub id: u64, - pub inviter_guid: u64, - pub target_guid: u64, - pub created_at: __sdk::Timestamp, - pub op: u8, -} - -impl __sdk::InModule for BotInviteIntent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `BotInviteIntent`. -/// -/// Provides typed access to columns for query building. -pub struct BotInviteIntentCols { - pub id: __sdk::__query_builder::Col, - pub inviter_guid: __sdk::__query_builder::Col, - pub target_guid: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub op: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for BotInviteIntent { - type Cols = BotInviteIntentCols; - fn cols(table_name: &'static str) -> Self::Cols { - BotInviteIntentCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - inviter_guid: __sdk::__query_builder::Col::new(table_name, "inviter_guid"), - target_guid: __sdk::__query_builder::Col::new(table_name, "target_guid"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - op: __sdk::__query_builder::Col::new(table_name, "op"), - } - } -} - -/// Indexed column accessor struct for the table `BotInviteIntent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct BotInviteIntentIxCols { - pub id: __sdk::__query_builder::IxCol, - pub inviter_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for BotInviteIntent { - type IxCols = BotInviteIntentIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - BotInviteIntentIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - inviter_guid: __sdk::__query_builder::IxCol::new(table_name, "inviter_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for BotInviteIntent {} diff --git a/gateway/src/stdb/bindings/bot_transfer_intent_type.rs b/gateway/src/stdb/bindings/bot_transfer_intent_type.rs deleted file mode 100644 index 7928e963c..000000000 --- a/gateway/src/stdb/bindings/bot_transfer_intent_type.rs +++ /dev/null @@ -1,102 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BotTransferIntent { - pub id: u64, - pub bot_guid: u64, - pub destination_map: u32, - pub destination_instance: u64, - pub reason: String, - pub created_at: __sdk::Timestamp, - pub controller_generation: u64, - pub claim_token: u64, - pub claim_until_micros: i64, - pub arrival_ready: bool, - pub source_module_identity: __sdk::Identity, - pub source_map: u32, - pub source_instance: u64, - pub source_locator_revision: u64, -} - -impl __sdk::InModule for BotTransferIntent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `BotTransferIntent`. -/// -/// Provides typed access to columns for query building. -pub struct BotTransferIntentCols { - pub id: __sdk::__query_builder::Col, - pub bot_guid: __sdk::__query_builder::Col, - pub destination_map: __sdk::__query_builder::Col, - pub destination_instance: __sdk::__query_builder::Col, - pub reason: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub controller_generation: __sdk::__query_builder::Col, - pub claim_token: __sdk::__query_builder::Col, - pub claim_until_micros: __sdk::__query_builder::Col, - pub arrival_ready: __sdk::__query_builder::Col, - pub source_module_identity: __sdk::__query_builder::Col, - pub source_map: __sdk::__query_builder::Col, - pub source_instance: __sdk::__query_builder::Col, - pub source_locator_revision: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for BotTransferIntent { - type Cols = BotTransferIntentCols; - fn cols(table_name: &'static str) -> Self::Cols { - BotTransferIntentCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - bot_guid: __sdk::__query_builder::Col::new(table_name, "bot_guid"), - destination_map: __sdk::__query_builder::Col::new(table_name, "destination_map"), - destination_instance: __sdk::__query_builder::Col::new( - table_name, - "destination_instance", - ), - reason: __sdk::__query_builder::Col::new(table_name, "reason"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - controller_generation: __sdk::__query_builder::Col::new( - table_name, - "controller_generation", - ), - claim_token: __sdk::__query_builder::Col::new(table_name, "claim_token"), - claim_until_micros: __sdk::__query_builder::Col::new(table_name, "claim_until_micros"), - arrival_ready: __sdk::__query_builder::Col::new(table_name, "arrival_ready"), - source_module_identity: __sdk::__query_builder::Col::new( - table_name, - "source_module_identity", - ), - source_map: __sdk::__query_builder::Col::new(table_name, "source_map"), - source_instance: __sdk::__query_builder::Col::new(table_name, "source_instance"), - source_locator_revision: __sdk::__query_builder::Col::new( - table_name, - "source_locator_revision", - ), - } - } -} - -/// Indexed column accessor struct for the table `BotTransferIntent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct BotTransferIntentIxCols { - pub bot_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for BotTransferIntent { - type IxCols = BotTransferIntentIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - BotTransferIntentIxCols { - bot_guid: __sdk::__query_builder::IxCol::new(table_name, "bot_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for BotTransferIntent {} diff --git a/gateway/src/stdb/bindings/breath_relay_event_type.rs b/gateway/src/stdb/bindings/breath_relay_event_type.rs deleted file mode 100644 index b552ff803..000000000 --- a/gateway/src/stdb/bindings/breath_relay_event_type.rs +++ /dev/null @@ -1,67 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BreathRelayEvent { - pub id: u64, - pub character_guid: u64, - pub kind: u8, - pub time_remaining_ms: u32, - pub duration_ms: u32, - pub damage: u32, - pub created_at: __sdk::Timestamp, -} - -impl __sdk::InModule for BreathRelayEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `BreathRelayEvent`. -/// -/// Provides typed access to columns for query building. -pub struct BreathRelayEventCols { - pub id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub kind: __sdk::__query_builder::Col, - pub time_remaining_ms: __sdk::__query_builder::Col, - pub duration_ms: __sdk::__query_builder::Col, - pub damage: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for BreathRelayEvent { - type Cols = BreathRelayEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - BreathRelayEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - kind: __sdk::__query_builder::Col::new(table_name, "kind"), - time_remaining_ms: __sdk::__query_builder::Col::new(table_name, "time_remaining_ms"), - duration_ms: __sdk::__query_builder::Col::new(table_name, "duration_ms"), - damage: __sdk::__query_builder::Col::new(table_name, "damage"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } - } -} - -/// Indexed column accessor struct for the table `BreathRelayEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct BreathRelayEventIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for BreathRelayEvent { - type IxCols = BreathRelayEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - BreathRelayEventIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for BreathRelayEvent {} diff --git a/gateway/src/stdb/bindings/breath_schedule_type.rs b/gateway/src/stdb/bindings/breath_schedule_type.rs deleted file mode 100644 index f77eda160..000000000 --- a/gateway/src/stdb/bindings/breath_schedule_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BreathSchedule { - pub scheduled_id: u64, - pub scheduled_at: __sdk::ScheduleAt, -} - -impl __sdk::InModule for BreathSchedule { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `BreathSchedule`. -/// -/// Provides typed access to columns for query building. -pub struct BreathScheduleCols { - pub scheduled_id: __sdk::__query_builder::Col, - pub scheduled_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for BreathSchedule { - type Cols = BreathScheduleCols; - fn cols(table_name: &'static str) -> Self::Cols { - BreathScheduleCols { - scheduled_id: __sdk::__query_builder::Col::new(table_name, "scheduled_id"), - scheduled_at: __sdk::__query_builder::Col::new(table_name, "scheduled_at"), - } - } -} - -/// Indexed column accessor struct for the table `BreathSchedule`. -/// -/// Provides typed access to indexed columns for query building. -pub struct BreathScheduleIxCols { - pub scheduled_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for BreathSchedule { - type IxCols = BreathScheduleIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - BreathScheduleIxCols { - scheduled_id: __sdk::__query_builder::IxCol::new(table_name, "scheduled_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for BreathSchedule {} diff --git a/gateway/src/stdb/bindings/breath_state_type.rs b/gateway/src/stdb/bindings/breath_state_type.rs deleted file mode 100644 index 28dffaeb9..000000000 --- a/gateway/src/stdb/bindings/breath_state_type.rs +++ /dev/null @@ -1,61 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BreathState { - pub entity_guid: u64, - pub remaining_air_micros: i64, - pub last_evaluated: __sdk::Timestamp, - pub draining: bool, -} - -impl __sdk::InModule for BreathState { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `BreathState`. -/// -/// Provides typed access to columns for query building. -pub struct BreathStateCols { - pub entity_guid: __sdk::__query_builder::Col, - pub remaining_air_micros: __sdk::__query_builder::Col, - pub last_evaluated: __sdk::__query_builder::Col, - pub draining: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for BreathState { - type Cols = BreathStateCols; - fn cols(table_name: &'static str) -> Self::Cols { - BreathStateCols { - entity_guid: __sdk::__query_builder::Col::new(table_name, "entity_guid"), - remaining_air_micros: __sdk::__query_builder::Col::new( - table_name, - "remaining_air_micros", - ), - last_evaluated: __sdk::__query_builder::Col::new(table_name, "last_evaluated"), - draining: __sdk::__query_builder::Col::new(table_name, "draining"), - } - } -} - -/// Indexed column accessor struct for the table `BreathState`. -/// -/// Provides typed access to indexed columns for query building. -pub struct BreathStateIxCols { - pub entity_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for BreathState { - type IxCols = BreathStateIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - BreathStateIxCols { - entity_guid: __sdk::__query_builder::IxCol::new(table_name, "entity_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for BreathState {} diff --git a/gateway/src/stdb/bindings/buyback_entry_type.rs b/gateway/src/stdb/bindings/buyback_entry_type.rs deleted file mode 100644 index d14f510b5..000000000 --- a/gateway/src/stdb/bindings/buyback_entry_type.rs +++ /dev/null @@ -1,69 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BuybackEntry { - pub id: u64, - pub player_guid: u64, - pub item_entry: u32, - pub stack_count: u32, - pub price: u32, - pub soulbound: bool, - pub random_property_id: u32, -} - -impl __sdk::InModule for BuybackEntry { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `BuybackEntry`. -/// -/// Provides typed access to columns for query building. -pub struct BuybackEntryCols { - pub id: __sdk::__query_builder::Col, - pub player_guid: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub stack_count: __sdk::__query_builder::Col, - pub price: __sdk::__query_builder::Col, - pub soulbound: __sdk::__query_builder::Col, - pub random_property_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for BuybackEntry { - type Cols = BuybackEntryCols; - fn cols(table_name: &'static str) -> Self::Cols { - BuybackEntryCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - player_guid: __sdk::__query_builder::Col::new(table_name, "player_guid"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - stack_count: __sdk::__query_builder::Col::new(table_name, "stack_count"), - price: __sdk::__query_builder::Col::new(table_name, "price"), - soulbound: __sdk::__query_builder::Col::new(table_name, "soulbound"), - random_property_id: __sdk::__query_builder::Col::new(table_name, "random_property_id"), - } - } -} - -/// Indexed column accessor struct for the table `BuybackEntry`. -/// -/// Provides typed access to indexed columns for query building. -pub struct BuybackEntryIxCols { - pub id: __sdk::__query_builder::IxCol, - pub player_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for BuybackEntry { - type IxCols = BuybackEntryIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - BuybackEntryIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - player_guid: __sdk::__query_builder::IxCol::new(table_name, "player_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for BuybackEntry {} diff --git a/gateway/src/stdb/bindings/call_for_help_instruction_type.rs b/gateway/src/stdb/bindings/call_for_help_instruction_type.rs deleted file mode 100644 index 56d3dda9f..000000000 --- a/gateway/src/stdb/bindings/call_for_help_instruction_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CallForHelpInstruction { - pub radius_yd: u32, -} - -impl __sdk::InModule for CallForHelpInstruction { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/cast_credit_type.rs b/gateway/src/stdb/bindings/cast_credit_type.rs deleted file mode 100644 index da560005a..000000000 --- a/gateway/src/stdb/bindings/cast_credit_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::quest_credit_recipient_policy_type::QuestCreditRecipientPolicy; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CastCredit { - pub creature_entry: u32, - pub spell_id: u32, - pub recipient_policy: QuestCreditRecipientPolicy, -} - -impl __sdk::InModule for CastCredit { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/cast_instruction_type.rs b/gateway/src/stdb/bindings/cast_instruction_type.rs deleted file mode 100644 index d68d511f5..000000000 --- a/gateway/src/stdb/bindings/cast_instruction_type.rs +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::instruction_target_type::InstructionTarget; -use super::spell_caster_role_type::SpellCasterRole; -use super::spell_start_mode_type::SpellStartMode; -use super::spell_target_role_type::SpellTargetRole; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CastInstruction { - pub spell_id: u32, - pub target: InstructionTarget, - pub interrupt_previous: bool, - pub start_mode: SpellStartMode, - pub caster_role: SpellCasterRole, - pub target_role: SpellTargetRole, - pub aura_absent: bool, - pub character_only: bool, - pub target_must_be_casting: bool, - pub main_spell: bool, - pub distance_after_start: bool, -} - -impl __sdk::InModule for CastInstruction { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/catalogue_fingerprint_type.rs b/gateway/src/stdb/bindings/catalogue_fingerprint_type.rs deleted file mode 100644 index a7c1c92ed..000000000 --- a/gateway/src/stdb/bindings/catalogue_fingerprint_type.rs +++ /dev/null @@ -1,58 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CatalogueFingerprint { - pub family: String, - pub row_count: u64, - pub fingerprint: u64, - pub tables: String, -} - -impl __sdk::InModule for CatalogueFingerprint { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CatalogueFingerprint`. -/// -/// Provides typed access to columns for query building. -pub struct CatalogueFingerprintCols { - pub family: __sdk::__query_builder::Col, - pub row_count: __sdk::__query_builder::Col, - pub fingerprint: __sdk::__query_builder::Col, - pub tables: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CatalogueFingerprint { - type Cols = CatalogueFingerprintCols; - fn cols(table_name: &'static str) -> Self::Cols { - CatalogueFingerprintCols { - family: __sdk::__query_builder::Col::new(table_name, "family"), - row_count: __sdk::__query_builder::Col::new(table_name, "row_count"), - fingerprint: __sdk::__query_builder::Col::new(table_name, "fingerprint"), - tables: __sdk::__query_builder::Col::new(table_name, "tables"), - } - } -} - -/// Indexed column accessor struct for the table `CatalogueFingerprint`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CatalogueFingerprintIxCols { - pub family: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CatalogueFingerprint { - type IxCols = CatalogueFingerprintIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CatalogueFingerprintIxCols { - family: __sdk::__query_builder::IxCol::new(table_name, "family"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CatalogueFingerprint {} diff --git a/gateway/src/stdb/bindings/channel_event_type.rs b/gateway/src/stdb/bindings/channel_event_type.rs deleted file mode 100644 index ef6e89342..000000000 --- a/gateway/src/stdb/bindings/channel_event_type.rs +++ /dev/null @@ -1,64 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChannelEvent { - pub id: u64, - pub channel: String, - pub channel_display: String, - pub sender_guid: u64, - pub message: String, - pub created_at: __sdk::Timestamp, -} - -impl __sdk::InModule for ChannelEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ChannelEvent`. -/// -/// Provides typed access to columns for query building. -pub struct ChannelEventCols { - pub id: __sdk::__query_builder::Col, - pub channel: __sdk::__query_builder::Col, - pub channel_display: __sdk::__query_builder::Col, - pub sender_guid: __sdk::__query_builder::Col, - pub message: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ChannelEvent { - type Cols = ChannelEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - ChannelEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - channel: __sdk::__query_builder::Col::new(table_name, "channel"), - channel_display: __sdk::__query_builder::Col::new(table_name, "channel_display"), - sender_guid: __sdk::__query_builder::Col::new(table_name, "sender_guid"), - message: __sdk::__query_builder::Col::new(table_name, "message"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } - } -} - -/// Indexed column accessor struct for the table `ChannelEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ChannelEventIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ChannelEvent { - type IxCols = ChannelEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ChannelEventIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ChannelEvent {} diff --git a/gateway/src/stdb/bindings/channel_member_type.rs b/gateway/src/stdb/bindings/channel_member_type.rs deleted file mode 100644 index bcbf4ea26..000000000 --- a/gateway/src/stdb/bindings/channel_member_type.rs +++ /dev/null @@ -1,60 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChannelMember { - pub id: u64, - pub channel: String, - pub character_guid: u64, - pub owner_identity: __sdk::Identity, -} - -impl __sdk::InModule for ChannelMember { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ChannelMember`. -/// -/// Provides typed access to columns for query building. -pub struct ChannelMemberCols { - pub id: __sdk::__query_builder::Col, - pub channel: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub owner_identity: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ChannelMember { - type Cols = ChannelMemberCols; - fn cols(table_name: &'static str) -> Self::Cols { - ChannelMemberCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - channel: __sdk::__query_builder::Col::new(table_name, "channel"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - owner_identity: __sdk::__query_builder::Col::new(table_name, "owner_identity"), - } - } -} - -/// Indexed column accessor struct for the table `ChannelMember`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ChannelMemberIxCols { - pub channel: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ChannelMember { - type IxCols = ChannelMemberIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ChannelMemberIxCols { - channel: __sdk::__query_builder::IxCol::new(table_name, "channel"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ChannelMember {} diff --git a/gateway/src/stdb/bindings/channel_request_type.rs b/gateway/src/stdb/bindings/channel_request_type.rs deleted file mode 100644 index 4c3fdf4c4..000000000 --- a/gateway/src/stdb/bindings/channel_request_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::speaker_facts_type::SpeakerFacts; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChannelRequest { - pub channel_name: String, - pub password: String, - pub target_guid: u64, - pub target_name: String, - pub target_race: u8, - pub target_ignores_actor: bool, - pub speaker: SpeakerFacts, -} - -impl __sdk::InModule for ChannelRequest { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/char_base_info_type.rs b/gateway/src/stdb/bindings/char_base_info_type.rs deleted file mode 100644 index d89a9ef0d..000000000 --- a/gateway/src/stdb/bindings/char_base_info_type.rs +++ /dev/null @@ -1,55 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CharBaseInfo { - pub race_class: u16, - pub race: u8, - pub class: u8, -} - -impl __sdk::InModule for CharBaseInfo { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CharBaseInfo`. -/// -/// Provides typed access to columns for query building. -pub struct CharBaseInfoCols { - pub race_class: __sdk::__query_builder::Col, - pub race: __sdk::__query_builder::Col, - pub class: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CharBaseInfo { - type Cols = CharBaseInfoCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharBaseInfoCols { - race_class: __sdk::__query_builder::Col::new(table_name, "race_class"), - race: __sdk::__query_builder::Col::new(table_name, "race"), - class: __sdk::__query_builder::Col::new(table_name, "class"), - } - } -} - -/// Indexed column accessor struct for the table `CharBaseInfo`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharBaseInfoIxCols { - pub race_class: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CharBaseInfo { - type IxCols = CharBaseInfoIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharBaseInfoIxCols { - race_class: __sdk::__query_builder::IxCol::new(table_name, "race_class"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CharBaseInfo {} diff --git a/gateway/src/stdb/bindings/character_away_type.rs b/gateway/src/stdb/bindings/character_away_type.rs deleted file mode 100644 index 1281b101f..000000000 --- a/gateway/src/stdb/bindings/character_away_type.rs +++ /dev/null @@ -1,55 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CharacterAway { - pub character_guid: u64, - pub kind: u8, - pub message: String, -} - -impl __sdk::InModule for CharacterAway { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CharacterAway`. -/// -/// Provides typed access to columns for query building. -pub struct CharacterAwayCols { - pub character_guid: __sdk::__query_builder::Col, - pub kind: __sdk::__query_builder::Col, - pub message: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CharacterAway { - type Cols = CharacterAwayCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharacterAwayCols { - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - kind: __sdk::__query_builder::Col::new(table_name, "kind"), - message: __sdk::__query_builder::Col::new(table_name, "message"), - } - } -} - -/// Indexed column accessor struct for the table `CharacterAway`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharacterAwayIxCols { - pub character_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CharacterAway { - type IxCols = CharacterAwayIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharacterAwayIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CharacterAway {} diff --git a/gateway/src/stdb/bindings/character_explored_type.rs b/gateway/src/stdb/bindings/character_explored_type.rs deleted file mode 100644 index 4d5d44259..000000000 --- a/gateway/src/stdb/bindings/character_explored_type.rs +++ /dev/null @@ -1,63 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CharacterExplored { - pub id: u64, - pub character_guid: u64, - pub area_bit: i32, - pub area_id: u32, - pub experience: u32, -} - -impl __sdk::InModule for CharacterExplored { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CharacterExplored`. -/// -/// Provides typed access to columns for query building. -pub struct CharacterExploredCols { - pub id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub area_bit: __sdk::__query_builder::Col, - pub area_id: __sdk::__query_builder::Col, - pub experience: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CharacterExplored { - type Cols = CharacterExploredCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharacterExploredCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - area_bit: __sdk::__query_builder::Col::new(table_name, "area_bit"), - area_id: __sdk::__query_builder::Col::new(table_name, "area_id"), - experience: __sdk::__query_builder::Col::new(table_name, "experience"), - } - } -} - -/// Indexed column accessor struct for the table `CharacterExplored`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharacterExploredIxCols { - pub character_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CharacterExplored { - type IxCols = CharacterExploredIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharacterExploredIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CharacterExplored {} diff --git a/gateway/src/stdb/bindings/character_quest_event_credit_type.rs b/gateway/src/stdb/bindings/character_quest_event_credit_type.rs deleted file mode 100644 index 2b5310624..000000000 --- a/gateway/src/stdb/bindings/character_quest_event_credit_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CharacterQuestEventCredit { - pub id: u64, - pub character_guid: u64, - pub quest_entry: u32, -} - -impl __sdk::InModule for CharacterQuestEventCredit { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CharacterQuestEventCredit`. -/// -/// Provides typed access to columns for query building. -pub struct CharacterQuestEventCreditCols { - pub id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub quest_entry: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CharacterQuestEventCredit { - type Cols = CharacterQuestEventCreditCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharacterQuestEventCreditCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - quest_entry: __sdk::__query_builder::Col::new(table_name, "quest_entry"), - } - } -} - -/// Indexed column accessor struct for the table `CharacterQuestEventCredit`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharacterQuestEventCreditIxCols { - pub character_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CharacterQuestEventCredit { - type IxCols = CharacterQuestEventCreditIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharacterQuestEventCreditIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CharacterQuestEventCredit {} diff --git a/gateway/src/stdb/bindings/character_quest_type.rs b/gateway/src/stdb/bindings/character_quest_type.rs deleted file mode 100644 index e2d6c931c..000000000 --- a/gateway/src/stdb/bindings/character_quest_type.rs +++ /dev/null @@ -1,72 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CharacterQuest { - pub id: u64, - pub character_guid: u64, - pub owner_identity: __sdk::Identity, - pub quest_entry: u32, - pub counts: Vec, - pub rewarded: bool, - pub deadline_micros: i64, - pub failed: bool, -} - -impl __sdk::InModule for CharacterQuest { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CharacterQuest`. -/// -/// Provides typed access to columns for query building. -pub struct CharacterQuestCols { - pub id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub owner_identity: __sdk::__query_builder::Col, - pub quest_entry: __sdk::__query_builder::Col, - pub counts: __sdk::__query_builder::Col>, - pub rewarded: __sdk::__query_builder::Col, - pub deadline_micros: __sdk::__query_builder::Col, - pub failed: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CharacterQuest { - type Cols = CharacterQuestCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharacterQuestCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - owner_identity: __sdk::__query_builder::Col::new(table_name, "owner_identity"), - quest_entry: __sdk::__query_builder::Col::new(table_name, "quest_entry"), - counts: __sdk::__query_builder::Col::new(table_name, "counts"), - rewarded: __sdk::__query_builder::Col::new(table_name, "rewarded"), - deadline_micros: __sdk::__query_builder::Col::new(table_name, "deadline_micros"), - failed: __sdk::__query_builder::Col::new(table_name, "failed"), - } - } -} - -/// Indexed column accessor struct for the table `CharacterQuest`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharacterQuestIxCols { - pub character_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CharacterQuest { - type IxCols = CharacterQuestIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharacterQuestIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CharacterQuest {} diff --git a/gateway/src/stdb/bindings/character_shard_type.rs b/gateway/src/stdb/bindings/character_shard_type.rs deleted file mode 100644 index 1afef64f8..000000000 --- a/gateway/src/stdb/bindings/character_shard_type.rs +++ /dev/null @@ -1,94 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CharacterShard { - pub character_guid: u64, - pub map_id: u32, - pub instance_id: u64, - pub updated_micros: i64, - pub revision: u64, - pub bot_source_identity: __sdk::Identity, - pub bot_transfer_intent_id: u64, - pub bot_controller_generation: u64, - pub transfer_pending: bool, - pub pending_destination_map: u32, - pub pending_destination_instance: u64, -} - -impl __sdk::InModule for CharacterShard { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CharacterShard`. -/// -/// Provides typed access to columns for query building. -pub struct CharacterShardCols { - pub character_guid: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub updated_micros: __sdk::__query_builder::Col, - pub revision: __sdk::__query_builder::Col, - pub bot_source_identity: __sdk::__query_builder::Col, - pub bot_transfer_intent_id: __sdk::__query_builder::Col, - pub bot_controller_generation: __sdk::__query_builder::Col, - pub transfer_pending: __sdk::__query_builder::Col, - pub pending_destination_map: __sdk::__query_builder::Col, - pub pending_destination_instance: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CharacterShard { - type Cols = CharacterShardCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharacterShardCols { - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - updated_micros: __sdk::__query_builder::Col::new(table_name, "updated_micros"), - revision: __sdk::__query_builder::Col::new(table_name, "revision"), - bot_source_identity: __sdk::__query_builder::Col::new( - table_name, - "bot_source_identity", - ), - bot_transfer_intent_id: __sdk::__query_builder::Col::new( - table_name, - "bot_transfer_intent_id", - ), - bot_controller_generation: __sdk::__query_builder::Col::new( - table_name, - "bot_controller_generation", - ), - transfer_pending: __sdk::__query_builder::Col::new(table_name, "transfer_pending"), - pending_destination_map: __sdk::__query_builder::Col::new( - table_name, - "pending_destination_map", - ), - pending_destination_instance: __sdk::__query_builder::Col::new( - table_name, - "pending_destination_instance", - ), - } - } -} - -/// Indexed column accessor struct for the table `CharacterShard`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharacterShardIxCols { - pub character_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CharacterShard { - type IxCols = CharacterShardIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharacterShardIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CharacterShard {} diff --git a/gateway/src/stdb/bindings/character_talent_type.rs b/gateway/src/stdb/bindings/character_talent_type.rs deleted file mode 100644 index b73fcbdc3..000000000 --- a/gateway/src/stdb/bindings/character_talent_type.rs +++ /dev/null @@ -1,63 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CharacterTalent { - pub id: u64, - pub character_guid: u64, - pub owner_identity: __sdk::Identity, - pub talent_id: u32, - pub rank: u8, -} - -impl __sdk::InModule for CharacterTalent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CharacterTalent`. -/// -/// Provides typed access to columns for query building. -pub struct CharacterTalentCols { - pub id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub owner_identity: __sdk::__query_builder::Col, - pub talent_id: __sdk::__query_builder::Col, - pub rank: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CharacterTalent { - type Cols = CharacterTalentCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharacterTalentCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - owner_identity: __sdk::__query_builder::Col::new(table_name, "owner_identity"), - talent_id: __sdk::__query_builder::Col::new(table_name, "talent_id"), - rank: __sdk::__query_builder::Col::new(table_name, "rank"), - } - } -} - -/// Indexed column accessor struct for the table `CharacterTalent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharacterTalentIxCols { - pub character_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CharacterTalent { - type IxCols = CharacterTalentIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharacterTalentIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CharacterTalent {} diff --git a/gateway/src/stdb/bindings/character_taxi_node_type.rs b/gateway/src/stdb/bindings/character_taxi_node_type.rs deleted file mode 100644 index ff30b6a99..000000000 --- a/gateway/src/stdb/bindings/character_taxi_node_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CharacterTaxiNode { - pub id: u64, - pub character_guid: u64, - pub node_id: u32, -} - -impl __sdk::InModule for CharacterTaxiNode { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CharacterTaxiNode`. -/// -/// Provides typed access to columns for query building. -pub struct CharacterTaxiNodeCols { - pub id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub node_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CharacterTaxiNode { - type Cols = CharacterTaxiNodeCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharacterTaxiNodeCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - node_id: __sdk::__query_builder::Col::new(table_name, "node_id"), - } - } -} - -/// Indexed column accessor struct for the table `CharacterTaxiNode`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharacterTaxiNodeIxCols { - pub character_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CharacterTaxiNode { - type IxCols = CharacterTaxiNodeIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharacterTaxiNodeIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CharacterTaxiNode {} diff --git a/gateway/src/stdb/bindings/character_type.rs b/gateway/src/stdb/bindings/character_type.rs deleted file mode 100644 index 7b5a910d9..000000000 --- a/gateway/src/stdb/bindings/character_type.rs +++ /dev/null @@ -1,206 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Character { - pub guid: u64, - pub account_id: u64, - pub owner_identity: __sdk::Identity, - pub name: String, - pub race: u8, - pub class: u8, - pub gender: u8, - pub skin: u8, - pub face: u8, - pub hair_style: u8, - pub hair_color: u8, - pub facial_hair: u8, - pub level: u8, - pub xp: u32, - pub next_level_xp: u32, - pub map_id: u32, - pub zone_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub orientation: f32, - pub first_login: bool, - pub online: bool, - pub money: u32, - pub rested_xp: u32, - pub last_logout_micros: u64, - pub home_map: u32, - pub home_zone: u32, - pub home_x: f32, - pub home_y: f32, - pub home_z: f32, - pub played_total_secs: u32, - pub session_start_micros: u64, - pub health: u32, - pub power: u32, - pub respec_count: u32, - pub death_expire_micros: i64, - pub pending_instance_id: u64, - pub gm_level: u8, - pub pending_ghost: bool, - pub resting: bool, - pub rested_since_micros: u64, - pub pending_godmode: bool, - pub pending_run_speed_mult_bp: u32, - pub bank_bag_slots: u8, - pub watched_faction_index: i32, -} - -impl __sdk::InModule for Character { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `Character`. -/// -/// Provides typed access to columns for query building. -pub struct CharacterCols { - pub guid: __sdk::__query_builder::Col, - pub account_id: __sdk::__query_builder::Col, - pub owner_identity: __sdk::__query_builder::Col, - pub name: __sdk::__query_builder::Col, - pub race: __sdk::__query_builder::Col, - pub class: __sdk::__query_builder::Col, - pub gender: __sdk::__query_builder::Col, - pub skin: __sdk::__query_builder::Col, - pub face: __sdk::__query_builder::Col, - pub hair_style: __sdk::__query_builder::Col, - pub hair_color: __sdk::__query_builder::Col, - pub facial_hair: __sdk::__query_builder::Col, - pub level: __sdk::__query_builder::Col, - pub xp: __sdk::__query_builder::Col, - pub next_level_xp: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub zone_id: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub orientation: __sdk::__query_builder::Col, - pub first_login: __sdk::__query_builder::Col, - pub online: __sdk::__query_builder::Col, - pub money: __sdk::__query_builder::Col, - pub rested_xp: __sdk::__query_builder::Col, - pub last_logout_micros: __sdk::__query_builder::Col, - pub home_map: __sdk::__query_builder::Col, - pub home_zone: __sdk::__query_builder::Col, - pub home_x: __sdk::__query_builder::Col, - pub home_y: __sdk::__query_builder::Col, - pub home_z: __sdk::__query_builder::Col, - pub played_total_secs: __sdk::__query_builder::Col, - pub session_start_micros: __sdk::__query_builder::Col, - pub health: __sdk::__query_builder::Col, - pub power: __sdk::__query_builder::Col, - pub respec_count: __sdk::__query_builder::Col, - pub death_expire_micros: __sdk::__query_builder::Col, - pub pending_instance_id: __sdk::__query_builder::Col, - pub gm_level: __sdk::__query_builder::Col, - pub pending_ghost: __sdk::__query_builder::Col, - pub resting: __sdk::__query_builder::Col, - pub rested_since_micros: __sdk::__query_builder::Col, - pub pending_godmode: __sdk::__query_builder::Col, - pub pending_run_speed_mult_bp: __sdk::__query_builder::Col, - pub bank_bag_slots: __sdk::__query_builder::Col, - pub watched_faction_index: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for Character { - type Cols = CharacterCols; - fn cols(table_name: &'static str) -> Self::Cols { - CharacterCols { - guid: __sdk::__query_builder::Col::new(table_name, "guid"), - account_id: __sdk::__query_builder::Col::new(table_name, "account_id"), - owner_identity: __sdk::__query_builder::Col::new(table_name, "owner_identity"), - name: __sdk::__query_builder::Col::new(table_name, "name"), - race: __sdk::__query_builder::Col::new(table_name, "race"), - class: __sdk::__query_builder::Col::new(table_name, "class"), - gender: __sdk::__query_builder::Col::new(table_name, "gender"), - skin: __sdk::__query_builder::Col::new(table_name, "skin"), - face: __sdk::__query_builder::Col::new(table_name, "face"), - hair_style: __sdk::__query_builder::Col::new(table_name, "hair_style"), - hair_color: __sdk::__query_builder::Col::new(table_name, "hair_color"), - facial_hair: __sdk::__query_builder::Col::new(table_name, "facial_hair"), - level: __sdk::__query_builder::Col::new(table_name, "level"), - xp: __sdk::__query_builder::Col::new(table_name, "xp"), - next_level_xp: __sdk::__query_builder::Col::new(table_name, "next_level_xp"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - zone_id: __sdk::__query_builder::Col::new(table_name, "zone_id"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - orientation: __sdk::__query_builder::Col::new(table_name, "orientation"), - first_login: __sdk::__query_builder::Col::new(table_name, "first_login"), - online: __sdk::__query_builder::Col::new(table_name, "online"), - money: __sdk::__query_builder::Col::new(table_name, "money"), - rested_xp: __sdk::__query_builder::Col::new(table_name, "rested_xp"), - last_logout_micros: __sdk::__query_builder::Col::new(table_name, "last_logout_micros"), - home_map: __sdk::__query_builder::Col::new(table_name, "home_map"), - home_zone: __sdk::__query_builder::Col::new(table_name, "home_zone"), - home_x: __sdk::__query_builder::Col::new(table_name, "home_x"), - home_y: __sdk::__query_builder::Col::new(table_name, "home_y"), - home_z: __sdk::__query_builder::Col::new(table_name, "home_z"), - played_total_secs: __sdk::__query_builder::Col::new(table_name, "played_total_secs"), - session_start_micros: __sdk::__query_builder::Col::new( - table_name, - "session_start_micros", - ), - health: __sdk::__query_builder::Col::new(table_name, "health"), - power: __sdk::__query_builder::Col::new(table_name, "power"), - respec_count: __sdk::__query_builder::Col::new(table_name, "respec_count"), - death_expire_micros: __sdk::__query_builder::Col::new( - table_name, - "death_expire_micros", - ), - pending_instance_id: __sdk::__query_builder::Col::new( - table_name, - "pending_instance_id", - ), - gm_level: __sdk::__query_builder::Col::new(table_name, "gm_level"), - pending_ghost: __sdk::__query_builder::Col::new(table_name, "pending_ghost"), - resting: __sdk::__query_builder::Col::new(table_name, "resting"), - rested_since_micros: __sdk::__query_builder::Col::new( - table_name, - "rested_since_micros", - ), - pending_godmode: __sdk::__query_builder::Col::new(table_name, "pending_godmode"), - pending_run_speed_mult_bp: __sdk::__query_builder::Col::new( - table_name, - "pending_run_speed_mult_bp", - ), - bank_bag_slots: __sdk::__query_builder::Col::new(table_name, "bank_bag_slots"), - watched_faction_index: __sdk::__query_builder::Col::new( - table_name, - "watched_faction_index", - ), - } - } -} - -/// Indexed column accessor struct for the table `Character`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CharacterIxCols { - pub account_id: __sdk::__query_builder::IxCol, - pub guid: __sdk::__query_builder::IxCol, - pub name: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for Character { - type IxCols = CharacterIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CharacterIxCols { - account_id: __sdk::__query_builder::IxCol::new(table_name, "account_id"), - guid: __sdk::__query_builder::IxCol::new(table_name, "guid"), - name: __sdk::__query_builder::IxCol::new(table_name, "name"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for Character {} diff --git a/gateway/src/stdb/bindings/chat_channel_ban_type.rs b/gateway/src/stdb/bindings/chat_channel_ban_type.rs deleted file mode 100644 index e888da5cc..000000000 --- a/gateway/src/stdb/bindings/chat_channel_ban_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChatChannelBan { - pub id: u64, - pub channel_id: u64, - pub character_guid: u64, -} - -impl __sdk::InModule for ChatChannelBan { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ChatChannelBan`. -/// -/// Provides typed access to columns for query building. -pub struct ChatChannelBanCols { - pub id: __sdk::__query_builder::Col, - pub channel_id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ChatChannelBan { - type Cols = ChatChannelBanCols; - fn cols(table_name: &'static str) -> Self::Cols { - ChatChannelBanCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - channel_id: __sdk::__query_builder::Col::new(table_name, "channel_id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - } - } -} - -/// Indexed column accessor struct for the table `ChatChannelBan`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ChatChannelBanIxCols { - pub channel_id: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ChatChannelBan { - type IxCols = ChatChannelBanIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ChatChannelBanIxCols { - channel_id: __sdk::__query_builder::IxCol::new(table_name, "channel_id"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ChatChannelBan {} diff --git a/gateway/src/stdb/bindings/chat_channel_member_type.rs b/gateway/src/stdb/bindings/chat_channel_member_type.rs deleted file mode 100644 index 5ca4a41eb..000000000 --- a/gateway/src/stdb/bindings/chat_channel_member_type.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChatChannelMember { - pub id: u64, - pub channel_id: u64, - pub character_guid: u64, - pub member_flags: u8, - pub account_id: u64, - pub claim_generation: u64, -} - -impl __sdk::InModule for ChatChannelMember { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ChatChannelMember`. -/// -/// Provides typed access to columns for query building. -pub struct ChatChannelMemberCols { - pub id: __sdk::__query_builder::Col, - pub channel_id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub member_flags: __sdk::__query_builder::Col, - pub account_id: __sdk::__query_builder::Col, - pub claim_generation: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ChatChannelMember { - type Cols = ChatChannelMemberCols; - fn cols(table_name: &'static str) -> Self::Cols { - ChatChannelMemberCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - channel_id: __sdk::__query_builder::Col::new(table_name, "channel_id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - member_flags: __sdk::__query_builder::Col::new(table_name, "member_flags"), - account_id: __sdk::__query_builder::Col::new(table_name, "account_id"), - claim_generation: __sdk::__query_builder::Col::new(table_name, "claim_generation"), - } - } -} - -/// Indexed column accessor struct for the table `ChatChannelMember`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ChatChannelMemberIxCols { - pub channel_id: __sdk::__query_builder::IxCol, - pub character_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ChatChannelMember { - type IxCols = ChatChannelMemberIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ChatChannelMemberIxCols { - channel_id: __sdk::__query_builder::IxCol::new(table_name, "channel_id"), - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ChatChannelMember {} diff --git a/gateway/src/stdb/bindings/chat_channel_notice_event_type.rs b/gateway/src/stdb/bindings/chat_channel_notice_event_type.rs deleted file mode 100644 index fb638aad5..000000000 --- a/gateway/src/stdb/bindings/chat_channel_notice_event_type.rs +++ /dev/null @@ -1,79 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChatChannelNoticeEvent { - pub id: u64, - pub notice: u8, - pub channel_name: String, - pub subject_guid: u64, - pub actor_guid: u64, - pub old_flags: u8, - pub new_flags: u8, - pub channel_flags: u32, - pub text: String, - pub recipients: Vec, - pub created_at: __sdk::Timestamp, -} - -impl __sdk::InModule for ChatChannelNoticeEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ChatChannelNoticeEvent`. -/// -/// Provides typed access to columns for query building. -pub struct ChatChannelNoticeEventCols { - pub id: __sdk::__query_builder::Col, - pub notice: __sdk::__query_builder::Col, - pub channel_name: __sdk::__query_builder::Col, - pub subject_guid: __sdk::__query_builder::Col, - pub actor_guid: __sdk::__query_builder::Col, - pub old_flags: __sdk::__query_builder::Col, - pub new_flags: __sdk::__query_builder::Col, - pub channel_flags: __sdk::__query_builder::Col, - pub text: __sdk::__query_builder::Col, - pub recipients: __sdk::__query_builder::Col>, - pub created_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ChatChannelNoticeEvent { - type Cols = ChatChannelNoticeEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - ChatChannelNoticeEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - notice: __sdk::__query_builder::Col::new(table_name, "notice"), - channel_name: __sdk::__query_builder::Col::new(table_name, "channel_name"), - subject_guid: __sdk::__query_builder::Col::new(table_name, "subject_guid"), - actor_guid: __sdk::__query_builder::Col::new(table_name, "actor_guid"), - old_flags: __sdk::__query_builder::Col::new(table_name, "old_flags"), - new_flags: __sdk::__query_builder::Col::new(table_name, "new_flags"), - channel_flags: __sdk::__query_builder::Col::new(table_name, "channel_flags"), - text: __sdk::__query_builder::Col::new(table_name, "text"), - recipients: __sdk::__query_builder::Col::new(table_name, "recipients"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } - } -} - -/// Indexed column accessor struct for the table `ChatChannelNoticeEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ChatChannelNoticeEventIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ChatChannelNoticeEvent { - type IxCols = ChatChannelNoticeEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ChatChannelNoticeEventIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ChatChannelNoticeEvent {} diff --git a/gateway/src/stdb/bindings/chat_channel_type.rs b/gateway/src/stdb/bindings/chat_channel_type.rs deleted file mode 100644 index 31d823c58..000000000 --- a/gateway/src/stdb/bindings/chat_channel_type.rs +++ /dev/null @@ -1,76 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChatChannel { - pub channel_id: u64, - pub team: u32, - pub name_key: String, - pub name: String, - pub builtin_id: u32, - pub flags: u8, - pub password: String, - pub owner_guid: u64, - pub announcements: bool, - pub moderated: bool, -} - -impl __sdk::InModule for ChatChannel { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ChatChannel`. -/// -/// Provides typed access to columns for query building. -pub struct ChatChannelCols { - pub channel_id: __sdk::__query_builder::Col, - pub team: __sdk::__query_builder::Col, - pub name_key: __sdk::__query_builder::Col, - pub name: __sdk::__query_builder::Col, - pub builtin_id: __sdk::__query_builder::Col, - pub flags: __sdk::__query_builder::Col, - pub password: __sdk::__query_builder::Col, - pub owner_guid: __sdk::__query_builder::Col, - pub announcements: __sdk::__query_builder::Col, - pub moderated: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ChatChannel { - type Cols = ChatChannelCols; - fn cols(table_name: &'static str) -> Self::Cols { - ChatChannelCols { - channel_id: __sdk::__query_builder::Col::new(table_name, "channel_id"), - team: __sdk::__query_builder::Col::new(table_name, "team"), - name_key: __sdk::__query_builder::Col::new(table_name, "name_key"), - name: __sdk::__query_builder::Col::new(table_name, "name"), - builtin_id: __sdk::__query_builder::Col::new(table_name, "builtin_id"), - flags: __sdk::__query_builder::Col::new(table_name, "flags"), - password: __sdk::__query_builder::Col::new(table_name, "password"), - owner_guid: __sdk::__query_builder::Col::new(table_name, "owner_guid"), - announcements: __sdk::__query_builder::Col::new(table_name, "announcements"), - moderated: __sdk::__query_builder::Col::new(table_name, "moderated"), - } - } -} - -/// Indexed column accessor struct for the table `ChatChannel`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ChatChannelIxCols { - pub channel_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ChatChannel { - type IxCols = ChatChannelIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ChatChannelIxCols { - channel_id: __sdk::__query_builder::IxCol::new(table_name, "channel_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ChatChannel {} diff --git a/gateway/src/stdb/bindings/chat_event_type.rs b/gateway/src/stdb/bindings/chat_event_type.rs deleted file mode 100644 index f27329de9..000000000 --- a/gateway/src/stdb/bindings/chat_event_type.rs +++ /dev/null @@ -1,67 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChatEvent { - pub id: u64, - pub sender_guid: u64, - pub chat_type: u8, - pub language: u8, - pub message: String, - pub created_at: __sdk::Timestamp, - pub target_guid: u64, -} - -impl __sdk::InModule for ChatEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ChatEvent`. -/// -/// Provides typed access to columns for query building. -pub struct ChatEventCols { - pub id: __sdk::__query_builder::Col, - pub sender_guid: __sdk::__query_builder::Col, - pub chat_type: __sdk::__query_builder::Col, - pub language: __sdk::__query_builder::Col, - pub message: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub target_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ChatEvent { - type Cols = ChatEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - ChatEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - sender_guid: __sdk::__query_builder::Col::new(table_name, "sender_guid"), - chat_type: __sdk::__query_builder::Col::new(table_name, "chat_type"), - language: __sdk::__query_builder::Col::new(table_name, "language"), - message: __sdk::__query_builder::Col::new(table_name, "message"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - target_guid: __sdk::__query_builder::Col::new(table_name, "target_guid"), - } - } -} - -/// Indexed column accessor struct for the table `ChatEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ChatEventIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ChatEvent { - type IxCols = ChatEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ChatEventIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ChatEvent {} diff --git a/gateway/src/stdb/bindings/claim_account_reducer.rs b/gateway/src/stdb/bindings/claim_account_reducer.rs deleted file mode 100644 index 739af80b1..000000000 --- a/gateway/src/stdb/bindings/claim_account_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ClaimAccountArgs { - pub account_id: u64, - pub character_guid: u64, - pub request_nonce: u128, -} - -impl From for super::Reducer { - fn from(args: ClaimAccountArgs) -> Self { - Self::ClaimAccount { - account_id: args.account_id, - character_guid: args.character_guid, - request_nonce: args.request_nonce, - } - } -} - -impl __sdk::InModule for ClaimAccountArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `claim_account`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait claim_account { - /// Request that the remote module invoke the reducer `claim_account` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`claim_account:claim_account_then`] to run a callback after the reducer completes. - fn claim_account( - &self, - account_id: u64, - character_guid: u64, - request_nonce: u128, - ) -> __sdk::Result<()> { - self.claim_account_then(account_id, character_guid, request_nonce, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `claim_account` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn claim_account_then( - &self, - account_id: u64, - character_guid: u64, - request_nonce: u128, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl claim_account for super::RemoteReducers { - fn claim_account_then( - &self, - account_id: u64, - character_guid: u64, - request_nonce: u128, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ClaimAccountArgs { - account_id, - character_guid, - request_nonce, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/claim_bot_invite_intent_reducer.rs b/gateway/src/stdb/bindings/claim_bot_invite_intent_reducer.rs deleted file mode 100644 index 08c085a55..000000000 --- a/gateway/src/stdb/bindings/claim_bot_invite_intent_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ClaimBotInviteIntentArgs { - pub intent_id: u64, -} - -impl From for super::Reducer { - fn from(args: ClaimBotInviteIntentArgs) -> Self { - Self::ClaimBotInviteIntent { - intent_id: args.intent_id, - } - } -} - -impl __sdk::InModule for ClaimBotInviteIntentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `claim_bot_invite_intent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait claim_bot_invite_intent { - /// Request that the remote module invoke the reducer `claim_bot_invite_intent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`claim_bot_invite_intent:claim_bot_invite_intent_then`] to run a callback after the reducer completes. - fn claim_bot_invite_intent(&self, intent_id: u64) -> __sdk::Result<()> { - self.claim_bot_invite_intent_then(intent_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `claim_bot_invite_intent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn claim_bot_invite_intent_then( - &self, - intent_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl claim_bot_invite_intent for super::RemoteReducers { - fn claim_bot_invite_intent_then( - &self, - intent_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ClaimBotInviteIntentArgs { intent_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/claim_bot_transfer_intent_reducer.rs b/gateway/src/stdb/bindings/claim_bot_transfer_intent_reducer.rs deleted file mode 100644 index caf197617..000000000 --- a/gateway/src/stdb/bindings/claim_bot_transfer_intent_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ClaimBotTransferIntentArgs { - pub intent_id: u64, - pub bot_guid: u64, - pub controller_generation: u64, - pub claim_token: u64, -} - -impl From for super::Reducer { - fn from(args: ClaimBotTransferIntentArgs) -> Self { - Self::ClaimBotTransferIntent { - intent_id: args.intent_id, - bot_guid: args.bot_guid, - controller_generation: args.controller_generation, - claim_token: args.claim_token, - } - } -} - -impl __sdk::InModule for ClaimBotTransferIntentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `claim_bot_transfer_intent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait claim_bot_transfer_intent { - /// Request that the remote module invoke the reducer `claim_bot_transfer_intent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`claim_bot_transfer_intent:claim_bot_transfer_intent_then`] to run a callback after the reducer completes. - fn claim_bot_transfer_intent( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - ) -> __sdk::Result<()> { - self.claim_bot_transfer_intent_then( - intent_id, - bot_guid, - controller_generation, - claim_token, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `claim_bot_transfer_intent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn claim_bot_transfer_intent_then( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl claim_bot_transfer_intent for super::RemoteReducers { - fn claim_bot_transfer_intent_then( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ClaimBotTransferIntentArgs { - intent_id, - bot_guid, - controller_generation, - claim_token, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/claim_guid_range_reducer.rs b/gateway/src/stdb/bindings/claim_guid_range_reducer.rs deleted file mode 100644 index f156afef7..000000000 --- a/gateway/src/stdb/bindings/claim_guid_range_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ClaimGuidRangeArgs { - pub shard_name: String, - pub current_mark: u64, -} - -impl From for super::Reducer { - fn from(args: ClaimGuidRangeArgs) -> Self { - Self::ClaimGuidRange { - shard_name: args.shard_name, - current_mark: args.current_mark, - } - } -} - -impl __sdk::InModule for ClaimGuidRangeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `claim_guid_range`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait claim_guid_range { - /// Request that the remote module invoke the reducer `claim_guid_range` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`claim_guid_range:claim_guid_range_then`] to run a callback after the reducer completes. - fn claim_guid_range(&self, shard_name: String, current_mark: u64) -> __sdk::Result<()> { - self.claim_guid_range_then(shard_name, current_mark, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `claim_guid_range` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn claim_guid_range_then( - &self, - shard_name: String, - current_mark: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl claim_guid_range for super::RemoteReducers { - fn claim_guid_range_then( - &self, - shard_name: String, - current_mark: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ClaimGuidRangeArgs { - shard_name, - current_mark, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/claim_operator_reducer.rs b/gateway/src/stdb/bindings/claim_operator_reducer.rs deleted file mode 100644 index 284e61011..000000000 --- a/gateway/src/stdb/bindings/claim_operator_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ClaimOperatorArgs {} - -impl From for super::Reducer { - fn from(args: ClaimOperatorArgs) -> Self { - Self::ClaimOperator - } -} - -impl __sdk::InModule for ClaimOperatorArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `claim_operator`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait claim_operator { - /// Request that the remote module invoke the reducer `claim_operator` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`claim_operator:claim_operator_then`] to run a callback after the reducer completes. - fn claim_operator(&self) -> __sdk::Result<()> { - self.claim_operator_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `claim_operator` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn claim_operator_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl claim_operator for super::RemoteReducers { - fn claim_operator_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ClaimOperatorArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/claim_party_command_intent_reducer.rs b/gateway/src/stdb/bindings/claim_party_command_intent_reducer.rs deleted file mode 100644 index e8afde9ff..000000000 --- a/gateway/src/stdb/bindings/claim_party_command_intent_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ClaimPartyCommandIntentArgs { - pub intent_id: u64, - pub claim_token: u64, -} - -impl From for super::Reducer { - fn from(args: ClaimPartyCommandIntentArgs) -> Self { - Self::ClaimPartyCommandIntent { - intent_id: args.intent_id, - claim_token: args.claim_token, - } - } -} - -impl __sdk::InModule for ClaimPartyCommandIntentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `claim_party_command_intent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait claim_party_command_intent { - /// Request that the remote module invoke the reducer `claim_party_command_intent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`claim_party_command_intent:claim_party_command_intent_then`] to run a callback after the reducer completes. - fn claim_party_command_intent(&self, intent_id: u64, claim_token: u64) -> __sdk::Result<()> { - self.claim_party_command_intent_then(intent_id, claim_token, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `claim_party_command_intent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn claim_party_command_intent_then( - &self, - intent_id: u64, - claim_token: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl claim_party_command_intent for super::RemoteReducers { - fn claim_party_command_intent_then( - &self, - intent_id: u64, - claim_token: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ClaimPartyCommandIntentArgs { - intent_id, - claim_token, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/class_level_stats_type.rs b/gateway/src/stdb/bindings/class_level_stats_type.rs deleted file mode 100644 index db9909e86..000000000 --- a/gateway/src/stdb/bindings/class_level_stats_type.rs +++ /dev/null @@ -1,61 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ClassLevelStats { - pub class_level: u32, - pub class: u8, - pub level: u32, - pub base_health: u32, - pub base_mana: u32, -} - -impl __sdk::InModule for ClassLevelStats { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ClassLevelStats`. -/// -/// Provides typed access to columns for query building. -pub struct ClassLevelStatsCols { - pub class_level: __sdk::__query_builder::Col, - pub class: __sdk::__query_builder::Col, - pub level: __sdk::__query_builder::Col, - pub base_health: __sdk::__query_builder::Col, - pub base_mana: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ClassLevelStats { - type Cols = ClassLevelStatsCols; - fn cols(table_name: &'static str) -> Self::Cols { - ClassLevelStatsCols { - class_level: __sdk::__query_builder::Col::new(table_name, "class_level"), - class: __sdk::__query_builder::Col::new(table_name, "class"), - level: __sdk::__query_builder::Col::new(table_name, "level"), - base_health: __sdk::__query_builder::Col::new(table_name, "base_health"), - base_mana: __sdk::__query_builder::Col::new(table_name, "base_mana"), - } - } -} - -/// Indexed column accessor struct for the table `ClassLevelStats`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ClassLevelStatsIxCols { - pub class_level: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ClassLevelStats { - type IxCols = ClassLevelStatsIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ClassLevelStatsIxCols { - class_level: __sdk::__query_builder::IxCol::new(table_name, "class_level"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ClassLevelStats {} diff --git a/gateway/src/stdb/bindings/clear_promoted_loot_roll_reducer.rs b/gateway/src/stdb/bindings/clear_promoted_loot_roll_reducer.rs deleted file mode 100644 index 019e5f042..000000000 --- a/gateway/src/stdb/bindings/clear_promoted_loot_roll_reducer.rs +++ /dev/null @@ -1,83 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ClearPromotedLootRollArgs { - pub roll_id: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: ClearPromotedLootRollArgs) -> Self { - Self::ClearPromotedLootRoll { - roll_id: args.roll_id, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for ClearPromotedLootRollArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `clear_promoted_loot_roll`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait clear_promoted_loot_roll { - /// Request that the remote module invoke the reducer `clear_promoted_loot_roll` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`clear_promoted_loot_roll:clear_promoted_loot_roll_then`] to run a callback after the reducer completes. - fn clear_promoted_loot_roll( - &self, - roll_id: u64, - request_actor: SessionActor, - ) -> __sdk::Result<()> { - self.clear_promoted_loot_roll_then(roll_id, request_actor, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `clear_promoted_loot_roll` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn clear_promoted_loot_roll_then( - &self, - roll_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl clear_promoted_loot_roll for super::RemoteReducers { - fn clear_promoted_loot_roll_then( - &self, - roll_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ClearPromotedLootRollArgs { - roll_id, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/close_account_fence_reducer.rs b/gateway/src/stdb/bindings/close_account_fence_reducer.rs deleted file mode 100644 index b582f0746..000000000 --- a/gateway/src/stdb/bindings/close_account_fence_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::world_session_token_type::WorldSessionToken; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct CloseAccountFenceArgs { - pub token: WorldSessionToken, -} - -impl From for super::Reducer { - fn from(args: CloseAccountFenceArgs) -> Self { - Self::CloseAccountFence { token: args.token } - } -} - -impl __sdk::InModule for CloseAccountFenceArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `close_account_fence`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait close_account_fence { - /// Request that the remote module invoke the reducer `close_account_fence` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`close_account_fence:close_account_fence_then`] to run a callback after the reducer completes. - fn close_account_fence(&self, token: WorldSessionToken) -> __sdk::Result<()> { - self.close_account_fence_then(token, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `close_account_fence` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn close_account_fence_then( - &self, - token: WorldSessionToken, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl close_account_fence for super::RemoteReducers { - fn close_account_fence_then( - &self, - token: WorldSessionToken, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(CloseAccountFenceArgs { token }, callback) - } -} diff --git a/gateway/src/stdb/bindings/combat_event_type.rs b/gateway/src/stdb/bindings/combat_event_type.rs deleted file mode 100644 index b7d03db56..000000000 --- a/gateway/src/stdb/bindings/combat_event_type.rs +++ /dev/null @@ -1,94 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CombatEvent { - pub id: u64, - pub attacker_guid: u64, - pub target_guid: u64, - pub damage: u32, - pub hit_info: u8, - pub killing_blow: bool, - pub created_at: __sdk::Timestamp, - pub blocked_amount: u32, - pub ranged_spell_id: u32, - pub ammo_display_id: u32, - pub spell_swing: bool, - pub impact_delay_ms: u32, - pub map_id: u32, - pub instance_id: u64, - pub grid_x: i32, - pub grid_y: i32, -} - -impl __sdk::InModule for CombatEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CombatEvent`. -/// -/// Provides typed access to columns for query building. -pub struct CombatEventCols { - pub id: __sdk::__query_builder::Col, - pub attacker_guid: __sdk::__query_builder::Col, - pub target_guid: __sdk::__query_builder::Col, - pub damage: __sdk::__query_builder::Col, - pub hit_info: __sdk::__query_builder::Col, - pub killing_blow: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub blocked_amount: __sdk::__query_builder::Col, - pub ranged_spell_id: __sdk::__query_builder::Col, - pub ammo_display_id: __sdk::__query_builder::Col, - pub spell_swing: __sdk::__query_builder::Col, - pub impact_delay_ms: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub grid_x: __sdk::__query_builder::Col, - pub grid_y: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CombatEvent { - type Cols = CombatEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - CombatEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - attacker_guid: __sdk::__query_builder::Col::new(table_name, "attacker_guid"), - target_guid: __sdk::__query_builder::Col::new(table_name, "target_guid"), - damage: __sdk::__query_builder::Col::new(table_name, "damage"), - hit_info: __sdk::__query_builder::Col::new(table_name, "hit_info"), - killing_blow: __sdk::__query_builder::Col::new(table_name, "killing_blow"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - blocked_amount: __sdk::__query_builder::Col::new(table_name, "blocked_amount"), - ranged_spell_id: __sdk::__query_builder::Col::new(table_name, "ranged_spell_id"), - ammo_display_id: __sdk::__query_builder::Col::new(table_name, "ammo_display_id"), - spell_swing: __sdk::__query_builder::Col::new(table_name, "spell_swing"), - impact_delay_ms: __sdk::__query_builder::Col::new(table_name, "impact_delay_ms"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - grid_x: __sdk::__query_builder::Col::new(table_name, "grid_x"), - grid_y: __sdk::__query_builder::Col::new(table_name, "grid_y"), - } - } -} - -/// Indexed column accessor struct for the table `CombatEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CombatEventIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CombatEvent { - type IxCols = CombatEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CombatEventIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CombatEvent {} diff --git a/gateway/src/stdb/bindings/combo_point_type.rs b/gateway/src/stdb/bindings/combo_point_type.rs deleted file mode 100644 index 1c64adf61..000000000 --- a/gateway/src/stdb/bindings/combo_point_type.rs +++ /dev/null @@ -1,60 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ComboPoint { - pub id: u64, - pub owner_guid: u64, - pub target_guid: u64, - pub points: u32, -} - -impl __sdk::InModule for ComboPoint { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ComboPoint`. -/// -/// Provides typed access to columns for query building. -pub struct ComboPointCols { - pub id: __sdk::__query_builder::Col, - pub owner_guid: __sdk::__query_builder::Col, - pub target_guid: __sdk::__query_builder::Col, - pub points: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ComboPoint { - type Cols = ComboPointCols; - fn cols(table_name: &'static str) -> Self::Cols { - ComboPointCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - owner_guid: __sdk::__query_builder::Col::new(table_name, "owner_guid"), - target_guid: __sdk::__query_builder::Col::new(table_name, "target_guid"), - points: __sdk::__query_builder::Col::new(table_name, "points"), - } - } -} - -/// Indexed column accessor struct for the table `ComboPoint`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ComboPointIxCols { - pub id: __sdk::__query_builder::IxCol, - pub owner_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ComboPoint { - type IxCols = ComboPointIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ComboPointIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - owner_guid: __sdk::__query_builder::IxCol::new(table_name, "owner_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ComboPoint {} diff --git a/gateway/src/stdb/bindings/command_intent_state_type.rs b/gateway/src/stdb/bindings/command_intent_state_type.rs deleted file mode 100644 index 0a1141b8f..000000000 --- a/gateway/src/stdb/bindings/command_intent_state_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::command_outcome_type::CommandOutcome; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub enum CommandIntentState { - Pending, - - Finished(CommandOutcome), -} - -impl __sdk::InModule for CommandIntentState { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/command_outcome_type.rs b/gateway/src/stdb/bindings/command_outcome_type.rs deleted file mode 100644 index a1d8f1bb3..000000000 --- a/gateway/src/stdb/bindings/command_outcome_type.rs +++ /dev/null @@ -1,48 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum CommandOutcome { - Applied, - - Unchanged, - - Malformed, - - NotLeader, - - NotMember, - - StalePartyMirror, - - WrongAccount, - - MissingBot, - - WrongPartition, - - Suppressed, - - TargetDead, - - TargetUnavailable, - - TargetControlled, - - Expired, - - WaitingForCapacity, - - OutcomeUnknown, - - Superseded, -} - -impl __sdk::InModule for CommandOutcome { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/complete_bot_transfer_intent_reducer.rs b/gateway/src/stdb/bindings/complete_bot_transfer_intent_reducer.rs deleted file mode 100644 index 0f2d9f6ae..000000000 --- a/gateway/src/stdb/bindings/complete_bot_transfer_intent_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct CompleteBotTransferIntentArgs { - pub intent_id: u64, - pub bot_guid: u64, - pub controller_generation: u64, - pub claim_token: u64, -} - -impl From for super::Reducer { - fn from(args: CompleteBotTransferIntentArgs) -> Self { - Self::CompleteBotTransferIntent { - intent_id: args.intent_id, - bot_guid: args.bot_guid, - controller_generation: args.controller_generation, - claim_token: args.claim_token, - } - } -} - -impl __sdk::InModule for CompleteBotTransferIntentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `complete_bot_transfer_intent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait complete_bot_transfer_intent { - /// Request that the remote module invoke the reducer `complete_bot_transfer_intent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`complete_bot_transfer_intent:complete_bot_transfer_intent_then`] to run a callback after the reducer completes. - fn complete_bot_transfer_intent( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - ) -> __sdk::Result<()> { - self.complete_bot_transfer_intent_then( - intent_id, - bot_guid, - controller_generation, - claim_token, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `complete_bot_transfer_intent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn complete_bot_transfer_intent_then( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl complete_bot_transfer_intent for super::RemoteReducers { - fn complete_bot_transfer_intent_then( - &self, - intent_id: u64, - bot_guid: u64, - controller_generation: u64, - claim_token: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - CompleteBotTransferIntentArgs { - intent_id, - bot_guid, - controller_generation, - claim_token, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/confirm_import_reducer.rs b/gateway/src/stdb/bindings/confirm_import_reducer.rs deleted file mode 100644 index c6e2478ef..000000000 --- a/gateway/src/stdb/bindings/confirm_import_reducer.rs +++ /dev/null @@ -1,79 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ConfirmImportArgs { - pub transfer_id: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: ConfirmImportArgs) -> Self { - Self::ConfirmImport { - transfer_id: args.transfer_id, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for ConfirmImportArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `confirm_import`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait confirm_import { - /// Request that the remote module invoke the reducer `confirm_import` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`confirm_import:confirm_import_then`] to run a callback after the reducer completes. - fn confirm_import(&self, transfer_id: u64, request_actor: SessionActor) -> __sdk::Result<()> { - self.confirm_import_then(transfer_id, request_actor, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `confirm_import` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn confirm_import_then( - &self, - transfer_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl confirm_import for super::RemoteReducers { - fn confirm_import_then( - &self, - transfer_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ConfirmImportArgs { - transfer_id, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/confirm_party_command_holder_reducer.rs b/gateway/src/stdb/bindings/confirm_party_command_holder_reducer.rs deleted file mode 100644 index f1bafe90e..000000000 --- a/gateway/src/stdb/bindings/confirm_party_command_holder_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ConfirmPartyCommandHolderArgs { - pub bot_guid: u64, -} - -impl From for super::Reducer { - fn from(args: ConfirmPartyCommandHolderArgs) -> Self { - Self::ConfirmPartyCommandHolder { - bot_guid: args.bot_guid, - } - } -} - -impl __sdk::InModule for ConfirmPartyCommandHolderArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `confirm_party_command_holder`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait confirm_party_command_holder { - /// Request that the remote module invoke the reducer `confirm_party_command_holder` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`confirm_party_command_holder:confirm_party_command_holder_then`] to run a callback after the reducer completes. - fn confirm_party_command_holder(&self, bot_guid: u64) -> __sdk::Result<()> { - self.confirm_party_command_holder_then(bot_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `confirm_party_command_holder` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn confirm_party_command_holder_then( - &self, - bot_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl confirm_party_command_holder for super::RemoteReducers { - fn confirm_party_command_holder_then( - &self, - bot_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ConfirmPartyCommandHolderArgs { bot_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/confirm_party_command_receipt_reducer.rs b/gateway/src/stdb/bindings/confirm_party_command_receipt_reducer.rs deleted file mode 100644 index 5ed8ff910..000000000 --- a/gateway/src/stdb/bindings/confirm_party_command_receipt_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ConfirmPartyCommandReceiptArgs { - pub source_identity: __sdk::Identity, - pub intent_id: u64, -} - -impl From for super::Reducer { - fn from(args: ConfirmPartyCommandReceiptArgs) -> Self { - Self::ConfirmPartyCommandReceipt { - source_identity: args.source_identity, - intent_id: args.intent_id, - } - } -} - -impl __sdk::InModule for ConfirmPartyCommandReceiptArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `confirm_party_command_receipt`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait confirm_party_command_receipt { - /// Request that the remote module invoke the reducer `confirm_party_command_receipt` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`confirm_party_command_receipt:confirm_party_command_receipt_then`] to run a callback after the reducer completes. - fn confirm_party_command_receipt( - &self, - source_identity: __sdk::Identity, - intent_id: u64, - ) -> __sdk::Result<()> { - self.confirm_party_command_receipt_then(source_identity, intent_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `confirm_party_command_receipt` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn confirm_party_command_receipt_then( - &self, - source_identity: __sdk::Identity, - intent_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl confirm_party_command_receipt for super::RemoteReducers { - fn confirm_party_command_receipt_then( - &self, - source_identity: __sdk::Identity, - intent_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ConfirmPartyCommandReceiptArgs { - source_identity, - intent_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/contact_entry_type.rs b/gateway/src/stdb/bindings/contact_entry_type.rs deleted file mode 100644 index 9d2475186..000000000 --- a/gateway/src/stdb/bindings/contact_entry_type.rs +++ /dev/null @@ -1,63 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ContactEntry { - pub id: u64, - pub owner_guid: u64, - pub owner_identity: __sdk::Identity, - pub target_guid: u64, - pub is_ignore: bool, -} - -impl __sdk::InModule for ContactEntry { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `ContactEntry`. -/// -/// Provides typed access to columns for query building. -pub struct ContactEntryCols { - pub id: __sdk::__query_builder::Col, - pub owner_guid: __sdk::__query_builder::Col, - pub owner_identity: __sdk::__query_builder::Col, - pub target_guid: __sdk::__query_builder::Col, - pub is_ignore: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for ContactEntry { - type Cols = ContactEntryCols; - fn cols(table_name: &'static str) -> Self::Cols { - ContactEntryCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - owner_guid: __sdk::__query_builder::Col::new(table_name, "owner_guid"), - owner_identity: __sdk::__query_builder::Col::new(table_name, "owner_identity"), - target_guid: __sdk::__query_builder::Col::new(table_name, "target_guid"), - is_ignore: __sdk::__query_builder::Col::new(table_name, "is_ignore"), - } - } -} - -/// Indexed column accessor struct for the table `ContactEntry`. -/// -/// Provides typed access to indexed columns for query building. -pub struct ContactEntryIxCols { - pub id: __sdk::__query_builder::IxCol, - pub owner_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for ContactEntry { - type IxCols = ContactEntryIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - ContactEntryIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - owner_guid: __sdk::__query_builder::IxCol::new(table_name, "owner_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for ContactEntry {} diff --git a/gateway/src/stdb/bindings/corpse_loot_eligible_type.rs b/gateway/src/stdb/bindings/corpse_loot_eligible_type.rs deleted file mode 100644 index 49535354b..000000000 --- a/gateway/src/stdb/bindings/corpse_loot_eligible_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CorpseLootEligible { - pub id: u64, - pub corpse_guid: u64, - pub eligible_guid: u64, -} - -impl __sdk::InModule for CorpseLootEligible { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CorpseLootEligible`. -/// -/// Provides typed access to columns for query building. -pub struct CorpseLootEligibleCols { - pub id: __sdk::__query_builder::Col, - pub corpse_guid: __sdk::__query_builder::Col, - pub eligible_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CorpseLootEligible { - type Cols = CorpseLootEligibleCols; - fn cols(table_name: &'static str) -> Self::Cols { - CorpseLootEligibleCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - corpse_guid: __sdk::__query_builder::Col::new(table_name, "corpse_guid"), - eligible_guid: __sdk::__query_builder::Col::new(table_name, "eligible_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CorpseLootEligible`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CorpseLootEligibleIxCols { - pub corpse_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CorpseLootEligible { - type IxCols = CorpseLootEligibleIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CorpseLootEligibleIxCols { - corpse_guid: __sdk::__query_builder::IxCol::new(table_name, "corpse_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CorpseLootEligible {} diff --git a/gateway/src/stdb/bindings/corpse_loot_type.rs b/gateway/src/stdb/bindings/corpse_loot_type.rs deleted file mode 100644 index 1d8ff5413..000000000 --- a/gateway/src/stdb/bindings/corpse_loot_type.rs +++ /dev/null @@ -1,84 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CorpseLoot { - pub id: u64, - pub corpse_guid: u64, - pub slot: u8, - pub item_entry: u32, - pub count: u32, - pub quest_only: bool, - pub reserved_for: u64, - pub designated_looter_guid: u64, - pub master_only: bool, - pub withheld: bool, - pub random_property_id: u32, -} - -impl __sdk::InModule for CorpseLoot { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CorpseLoot`. -/// -/// Provides typed access to columns for query building. -pub struct CorpseLootCols { - pub id: __sdk::__query_builder::Col, - pub corpse_guid: __sdk::__query_builder::Col, - pub slot: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub count: __sdk::__query_builder::Col, - pub quest_only: __sdk::__query_builder::Col, - pub reserved_for: __sdk::__query_builder::Col, - pub designated_looter_guid: __sdk::__query_builder::Col, - pub master_only: __sdk::__query_builder::Col, - pub withheld: __sdk::__query_builder::Col, - pub random_property_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CorpseLoot { - type Cols = CorpseLootCols; - fn cols(table_name: &'static str) -> Self::Cols { - CorpseLootCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - corpse_guid: __sdk::__query_builder::Col::new(table_name, "corpse_guid"), - slot: __sdk::__query_builder::Col::new(table_name, "slot"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - count: __sdk::__query_builder::Col::new(table_name, "count"), - quest_only: __sdk::__query_builder::Col::new(table_name, "quest_only"), - reserved_for: __sdk::__query_builder::Col::new(table_name, "reserved_for"), - designated_looter_guid: __sdk::__query_builder::Col::new( - table_name, - "designated_looter_guid", - ), - master_only: __sdk::__query_builder::Col::new(table_name, "master_only"), - withheld: __sdk::__query_builder::Col::new(table_name, "withheld"), - random_property_id: __sdk::__query_builder::Col::new(table_name, "random_property_id"), - } - } -} - -/// Indexed column accessor struct for the table `CorpseLoot`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CorpseLootIxCols { - pub corpse_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CorpseLoot { - type IxCols = CorpseLootIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CorpseLootIxCols { - corpse_guid: __sdk::__query_builder::IxCol::new(table_name, "corpse_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CorpseLoot {} diff --git a/gateway/src/stdb/bindings/corpse_type.rs b/gateway/src/stdb/bindings/corpse_type.rs deleted file mode 100644 index 20a394cfb..000000000 --- a/gateway/src/stdb/bindings/corpse_type.rs +++ /dev/null @@ -1,91 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Corpse { - pub guid: u64, - pub owner_guid: u64, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub orientation: f32, - pub display_id: u32, - pub bytes_1: u32, - pub bytes_2: u32, - pub created_at: __sdk::Timestamp, - pub reclaim_delay_micros: i64, - pub is_bones: bool, - pub instance_id: u64, -} - -impl __sdk::InModule for Corpse { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `Corpse`. -/// -/// Provides typed access to columns for query building. -pub struct CorpseCols { - pub guid: __sdk::__query_builder::Col, - pub owner_guid: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub orientation: __sdk::__query_builder::Col, - pub display_id: __sdk::__query_builder::Col, - pub bytes_1: __sdk::__query_builder::Col, - pub bytes_2: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub reclaim_delay_micros: __sdk::__query_builder::Col, - pub is_bones: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for Corpse { - type Cols = CorpseCols; - fn cols(table_name: &'static str) -> Self::Cols { - CorpseCols { - guid: __sdk::__query_builder::Col::new(table_name, "guid"), - owner_guid: __sdk::__query_builder::Col::new(table_name, "owner_guid"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - orientation: __sdk::__query_builder::Col::new(table_name, "orientation"), - display_id: __sdk::__query_builder::Col::new(table_name, "display_id"), - bytes_1: __sdk::__query_builder::Col::new(table_name, "bytes_1"), - bytes_2: __sdk::__query_builder::Col::new(table_name, "bytes_2"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - reclaim_delay_micros: __sdk::__query_builder::Col::new( - table_name, - "reclaim_delay_micros", - ), - is_bones: __sdk::__query_builder::Col::new(table_name, "is_bones"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - } - } -} - -/// Indexed column accessor struct for the table `Corpse`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CorpseIxCols { - pub guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for Corpse { - type IxCols = CorpseIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CorpseIxCols { - guid: __sdk::__query_builder::IxCol::new(table_name, "guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for Corpse {} diff --git a/gateway/src/stdb/bindings/create_character_reducer.rs b/gateway/src/stdb/bindings/create_character_reducer.rs deleted file mode 100644 index 24b3ede45..000000000 --- a/gateway/src/stdb/bindings/create_character_reducer.rs +++ /dev/null @@ -1,141 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct CreateCharacterArgs { - pub account_id: u64, - pub name: String, - pub race: u8, - pub class: u8, - pub gender: u8, - pub skin: u8, - pub face: u8, - pub hair_style: u8, - pub hair_color: u8, - pub facial_hair: u8, -} - -impl From for super::Reducer { - fn from(args: CreateCharacterArgs) -> Self { - Self::CreateCharacter { - account_id: args.account_id, - name: args.name, - race: args.race, - class: args.class, - gender: args.gender, - skin: args.skin, - face: args.face, - hair_style: args.hair_style, - hair_color: args.hair_color, - facial_hair: args.facial_hair, - } - } -} - -impl __sdk::InModule for CreateCharacterArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `create_character`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait create_character { - /// Request that the remote module invoke the reducer `create_character` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`create_character:create_character_then`] to run a callback after the reducer completes. - fn create_character( - &self, - account_id: u64, - name: String, - race: u8, - class: u8, - gender: u8, - skin: u8, - face: u8, - hair_style: u8, - hair_color: u8, - facial_hair: u8, - ) -> __sdk::Result<()> { - self.create_character_then( - account_id, - name, - race, - class, - gender, - skin, - face, - hair_style, - hair_color, - facial_hair, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `create_character` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn create_character_then( - &self, - account_id: u64, - name: String, - race: u8, - class: u8, - gender: u8, - skin: u8, - face: u8, - hair_style: u8, - hair_color: u8, - facial_hair: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl create_character for super::RemoteReducers { - fn create_character_then( - &self, - account_id: u64, - name: String, - race: u8, - class: u8, - gender: u8, - skin: u8, - face: u8, - hair_style: u8, - hair_color: u8, - facial_hair: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - CreateCharacterArgs { - account_id, - name, - race, - class, - gender, - skin, - face, - hair_style, - hair_color, - facial_hair, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/createinfo_action_type.rs b/gateway/src/stdb/bindings/createinfo_action_type.rs deleted file mode 100644 index 72a0e6dec..000000000 --- a/gateway/src/stdb/bindings/createinfo_action_type.rs +++ /dev/null @@ -1,64 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreateinfoAction { - pub row_id: u64, - pub race: u8, - pub class: u8, - pub button: u8, - pub action: u32, - pub action_type: u8, -} - -impl __sdk::InModule for CreateinfoAction { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreateinfoAction`. -/// -/// Provides typed access to columns for query building. -pub struct CreateinfoActionCols { - pub row_id: __sdk::__query_builder::Col, - pub race: __sdk::__query_builder::Col, - pub class: __sdk::__query_builder::Col, - pub button: __sdk::__query_builder::Col, - pub action: __sdk::__query_builder::Col, - pub action_type: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreateinfoAction { - type Cols = CreateinfoActionCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreateinfoActionCols { - row_id: __sdk::__query_builder::Col::new(table_name, "row_id"), - race: __sdk::__query_builder::Col::new(table_name, "race"), - class: __sdk::__query_builder::Col::new(table_name, "class"), - button: __sdk::__query_builder::Col::new(table_name, "button"), - action: __sdk::__query_builder::Col::new(table_name, "action"), - action_type: __sdk::__query_builder::Col::new(table_name, "action_type"), - } - } -} - -/// Indexed column accessor struct for the table `CreateinfoAction`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreateinfoActionIxCols { - pub row_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreateinfoAction { - type IxCols = CreateinfoActionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreateinfoActionIxCols { - row_id: __sdk::__query_builder::IxCol::new(table_name, "row_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreateinfoAction {} diff --git a/gateway/src/stdb/bindings/createinfo_spell_type.rs b/gateway/src/stdb/bindings/createinfo_spell_type.rs deleted file mode 100644 index ffa2cfc9b..000000000 --- a/gateway/src/stdb/bindings/createinfo_spell_type.rs +++ /dev/null @@ -1,58 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreateinfoSpell { - pub id: u64, - pub race: u8, - pub class: u8, - pub spell_id: u32, -} - -impl __sdk::InModule for CreateinfoSpell { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreateinfoSpell`. -/// -/// Provides typed access to columns for query building. -pub struct CreateinfoSpellCols { - pub id: __sdk::__query_builder::Col, - pub race: __sdk::__query_builder::Col, - pub class: __sdk::__query_builder::Col, - pub spell_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreateinfoSpell { - type Cols = CreateinfoSpellCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreateinfoSpellCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - race: __sdk::__query_builder::Col::new(table_name, "race"), - class: __sdk::__query_builder::Col::new(table_name, "class"), - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - } - } -} - -/// Indexed column accessor struct for the table `CreateinfoSpell`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreateinfoSpellIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreateinfoSpell { - type IxCols = CreateinfoSpellIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreateinfoSpellIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreateinfoSpell {} diff --git a/gateway/src/stdb/bindings/creature_ai_broadcast_text_type.rs b/gateway/src/stdb/bindings/creature_ai_broadcast_text_type.rs deleted file mode 100644 index f582cea40..000000000 --- a/gateway/src/stdb/bindings/creature_ai_broadcast_text_type.rs +++ /dev/null @@ -1,79 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiBroadcastText { - pub id: u32, - pub male_text: String, - pub female_text: String, - pub chat_type: u8, - pub language_id: u8, - pub emote_delay_1_ms: u32, - pub emote_id_1: u32, - pub emote_delay_2_ms: u32, - pub emote_id_2: u32, - pub emote_delay_3_ms: u32, - pub emote_id_3: u32, -} - -impl __sdk::InModule for CreatureAiBroadcastText { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiBroadcastText`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiBroadcastTextCols { - pub id: __sdk::__query_builder::Col, - pub male_text: __sdk::__query_builder::Col, - pub female_text: __sdk::__query_builder::Col, - pub chat_type: __sdk::__query_builder::Col, - pub language_id: __sdk::__query_builder::Col, - pub emote_delay_1_ms: __sdk::__query_builder::Col, - pub emote_id_1: __sdk::__query_builder::Col, - pub emote_delay_2_ms: __sdk::__query_builder::Col, - pub emote_id_2: __sdk::__query_builder::Col, - pub emote_delay_3_ms: __sdk::__query_builder::Col, - pub emote_id_3: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiBroadcastText { - type Cols = CreatureAiBroadcastTextCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiBroadcastTextCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - male_text: __sdk::__query_builder::Col::new(table_name, "male_text"), - female_text: __sdk::__query_builder::Col::new(table_name, "female_text"), - chat_type: __sdk::__query_builder::Col::new(table_name, "chat_type"), - language_id: __sdk::__query_builder::Col::new(table_name, "language_id"), - emote_delay_1_ms: __sdk::__query_builder::Col::new(table_name, "emote_delay_1_ms"), - emote_id_1: __sdk::__query_builder::Col::new(table_name, "emote_id_1"), - emote_delay_2_ms: __sdk::__query_builder::Col::new(table_name, "emote_delay_2_ms"), - emote_id_2: __sdk::__query_builder::Col::new(table_name, "emote_id_2"), - emote_delay_3_ms: __sdk::__query_builder::Col::new(table_name, "emote_delay_3_ms"), - emote_id_3: __sdk::__query_builder::Col::new(table_name, "emote_id_3"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiBroadcastText`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiBroadcastTextIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiBroadcastText { - type IxCols = CreatureAiBroadcastTextIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiBroadcastTextIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiBroadcastText {} diff --git a/gateway/src/stdb/bindings/creature_ai_definition_type.rs b/gateway/src/stdb/bindings/creature_ai_definition_type.rs deleted file mode 100644 index 6649754b3..000000000 --- a/gateway/src/stdb/bindings/creature_ai_definition_type.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::event_ai_rule_type::EventAiRule; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiDefinition { - pub id: u64, - pub creature_entry: u32, - pub creature_guid: u64, - pub definition_revision: u64, - pub rules: Vec, -} - -impl __sdk::InModule for CreatureAiDefinition { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiDefinition`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiDefinitionCols { - pub id: __sdk::__query_builder::Col, - pub creature_entry: __sdk::__query_builder::Col, - pub creature_guid: __sdk::__query_builder::Col, - pub definition_revision: __sdk::__query_builder::Col, - pub rules: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for CreatureAiDefinition { - type Cols = CreatureAiDefinitionCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiDefinitionCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - definition_revision: __sdk::__query_builder::Col::new( - table_name, - "definition_revision", - ), - rules: __sdk::__query_builder::Col::new(table_name, "rules"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiDefinition`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiDefinitionIxCols { - pub creature_entry: __sdk::__query_builder::IxCol, - pub creature_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiDefinition { - type IxCols = CreatureAiDefinitionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiDefinitionIxCols { - creature_entry: __sdk::__query_builder::IxCol::new(table_name, "creature_entry"), - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiDefinition {} diff --git a/gateway/src/stdb/bindings/creature_ai_event_type.rs b/gateway/src/stdb/bindings/creature_ai_event_type.rs deleted file mode 100644 index 952cb0c7d..000000000 --- a/gateway/src/stdb/bindings/creature_ai_event_type.rs +++ /dev/null @@ -1,134 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiEvent { - pub id: u64, - pub creature_entry: u32, - pub event_type: u8, - pub action_type: u8, - pub text: String, - pub spell_id: u32, - pub initial_min_ms: u32, - pub initial_max_ms: u32, - pub repeat_min_ms: u32, - pub repeat_max_ms: u32, - pub source_rule_id: u64, - pub action_order: u8, - pub creature_guid: u64, - pub chance_pct: u8, - pub allowed_phase_mask: u32, - pub source_flags: u32, - pub repeat_policy: u8, - pub event_param_1: u32, - pub event_param_2: u32, - pub event_param_3: u32, - pub event_param_4: u32, - pub event_param_5: u32, - pub event_param_6: u32, - pub action_param_1: u32, - pub action_param_2: u32, - pub action_param_3: u32, - pub target_policy: u8, - pub cast_options: u32, -} - -impl __sdk::InModule for CreatureAiEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiEvent`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiEventCols { - pub id: __sdk::__query_builder::Col, - pub creature_entry: __sdk::__query_builder::Col, - pub event_type: __sdk::__query_builder::Col, - pub action_type: __sdk::__query_builder::Col, - pub text: __sdk::__query_builder::Col, - pub spell_id: __sdk::__query_builder::Col, - pub initial_min_ms: __sdk::__query_builder::Col, - pub initial_max_ms: __sdk::__query_builder::Col, - pub repeat_min_ms: __sdk::__query_builder::Col, - pub repeat_max_ms: __sdk::__query_builder::Col, - pub source_rule_id: __sdk::__query_builder::Col, - pub action_order: __sdk::__query_builder::Col, - pub creature_guid: __sdk::__query_builder::Col, - pub chance_pct: __sdk::__query_builder::Col, - pub allowed_phase_mask: __sdk::__query_builder::Col, - pub source_flags: __sdk::__query_builder::Col, - pub repeat_policy: __sdk::__query_builder::Col, - pub event_param_1: __sdk::__query_builder::Col, - pub event_param_2: __sdk::__query_builder::Col, - pub event_param_3: __sdk::__query_builder::Col, - pub event_param_4: __sdk::__query_builder::Col, - pub event_param_5: __sdk::__query_builder::Col, - pub event_param_6: __sdk::__query_builder::Col, - pub action_param_1: __sdk::__query_builder::Col, - pub action_param_2: __sdk::__query_builder::Col, - pub action_param_3: __sdk::__query_builder::Col, - pub target_policy: __sdk::__query_builder::Col, - pub cast_options: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiEvent { - type Cols = CreatureAiEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - event_type: __sdk::__query_builder::Col::new(table_name, "event_type"), - action_type: __sdk::__query_builder::Col::new(table_name, "action_type"), - text: __sdk::__query_builder::Col::new(table_name, "text"), - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - initial_min_ms: __sdk::__query_builder::Col::new(table_name, "initial_min_ms"), - initial_max_ms: __sdk::__query_builder::Col::new(table_name, "initial_max_ms"), - repeat_min_ms: __sdk::__query_builder::Col::new(table_name, "repeat_min_ms"), - repeat_max_ms: __sdk::__query_builder::Col::new(table_name, "repeat_max_ms"), - source_rule_id: __sdk::__query_builder::Col::new(table_name, "source_rule_id"), - action_order: __sdk::__query_builder::Col::new(table_name, "action_order"), - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - chance_pct: __sdk::__query_builder::Col::new(table_name, "chance_pct"), - allowed_phase_mask: __sdk::__query_builder::Col::new(table_name, "allowed_phase_mask"), - source_flags: __sdk::__query_builder::Col::new(table_name, "source_flags"), - repeat_policy: __sdk::__query_builder::Col::new(table_name, "repeat_policy"), - event_param_1: __sdk::__query_builder::Col::new(table_name, "event_param_1"), - event_param_2: __sdk::__query_builder::Col::new(table_name, "event_param_2"), - event_param_3: __sdk::__query_builder::Col::new(table_name, "event_param_3"), - event_param_4: __sdk::__query_builder::Col::new(table_name, "event_param_4"), - event_param_5: __sdk::__query_builder::Col::new(table_name, "event_param_5"), - event_param_6: __sdk::__query_builder::Col::new(table_name, "event_param_6"), - action_param_1: __sdk::__query_builder::Col::new(table_name, "action_param_1"), - action_param_2: __sdk::__query_builder::Col::new(table_name, "action_param_2"), - action_param_3: __sdk::__query_builder::Col::new(table_name, "action_param_3"), - target_policy: __sdk::__query_builder::Col::new(table_name, "target_policy"), - cast_options: __sdk::__query_builder::Col::new(table_name, "cast_options"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiEventIxCols { - pub creature_entry: __sdk::__query_builder::IxCol, - pub creature_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiEvent { - type IxCols = CreatureAiEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiEventIxCols { - creature_entry: __sdk::__query_builder::IxCol::new(table_name, "creature_entry"), - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiEvent {} diff --git a/gateway/src/stdb/bindings/creature_ai_forced_despawn_type.rs b/gateway/src/stdb/bindings/creature_ai_forced_despawn_type.rs deleted file mode 100644 index 4bb37aaef..000000000 --- a/gateway/src/stdb/bindings/creature_ai_forced_despawn_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiForcedDespawn { - pub scheduled_id: u64, - pub scheduled_at: __sdk::ScheduleAt, - pub creature_guid: u64, -} - -impl __sdk::InModule for CreatureAiForcedDespawn { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiForcedDespawn`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiForcedDespawnCols { - pub scheduled_id: __sdk::__query_builder::Col, - pub scheduled_at: __sdk::__query_builder::Col, - pub creature_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiForcedDespawn { - type Cols = CreatureAiForcedDespawnCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiForcedDespawnCols { - scheduled_id: __sdk::__query_builder::Col::new(table_name, "scheduled_id"), - scheduled_at: __sdk::__query_builder::Col::new(table_name, "scheduled_at"), - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiForcedDespawn`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiForcedDespawnIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, - pub scheduled_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiForcedDespawn { - type IxCols = CreatureAiForcedDespawnIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiForcedDespawnIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - scheduled_id: __sdk::__query_builder::IxCol::new(table_name, "scheduled_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiForcedDespawn {} diff --git a/gateway/src/stdb/bindings/creature_ai_movement_intent_type.rs b/gateway/src/stdb/bindings/creature_ai_movement_intent_type.rs deleted file mode 100644 index 0a66980b2..000000000 --- a/gateway/src/stdb/bindings/creature_ai_movement_intent_type.rs +++ /dev/null @@ -1,136 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::authored_idle_movement_type::AuthoredIdleMovement; -use super::authored_walking_mode_type::AuthoredWalkingMode; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiMovementIntent { - pub creature_guid: u64, - pub definition_revision: u64, - pub creature_entry: u32, - pub map_id: u32, - pub instance_id: u64, - pub idle: AuthoredIdleMovement, - pub idle_active: bool, - pub anchor_x: f32, - pub anchor_y: f32, - pub anchor_z: f32, - pub random_radius_yd: f32, - pub path_id: u32, - pub patrol_paused: bool, - pub combat_movement_active: bool, - pub combat_movement_enabled: bool, - pub follow_movement_active: bool, - pub follow_movement_enabled: bool, - pub walking: AuthoredWalkingMode, - pub immobilized: bool, - pub immobilized_combat_only: bool, - pub facing_pending: bool, - pub facing_reset: bool, - pub facing_target_guid: u64, -} - -impl __sdk::InModule for CreatureAiMovementIntent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiMovementIntent`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiMovementIntentCols { - pub creature_guid: __sdk::__query_builder::Col, - pub definition_revision: __sdk::__query_builder::Col, - pub creature_entry: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub idle: __sdk::__query_builder::Col, - pub idle_active: __sdk::__query_builder::Col, - pub anchor_x: __sdk::__query_builder::Col, - pub anchor_y: __sdk::__query_builder::Col, - pub anchor_z: __sdk::__query_builder::Col, - pub random_radius_yd: __sdk::__query_builder::Col, - pub path_id: __sdk::__query_builder::Col, - pub patrol_paused: __sdk::__query_builder::Col, - pub combat_movement_active: __sdk::__query_builder::Col, - pub combat_movement_enabled: __sdk::__query_builder::Col, - pub follow_movement_active: __sdk::__query_builder::Col, - pub follow_movement_enabled: __sdk::__query_builder::Col, - pub walking: __sdk::__query_builder::Col, - pub immobilized: __sdk::__query_builder::Col, - pub immobilized_combat_only: __sdk::__query_builder::Col, - pub facing_pending: __sdk::__query_builder::Col, - pub facing_reset: __sdk::__query_builder::Col, - pub facing_target_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiMovementIntent { - type Cols = CreatureAiMovementIntentCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiMovementIntentCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - definition_revision: __sdk::__query_builder::Col::new( - table_name, - "definition_revision", - ), - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - idle: __sdk::__query_builder::Col::new(table_name, "idle"), - idle_active: __sdk::__query_builder::Col::new(table_name, "idle_active"), - anchor_x: __sdk::__query_builder::Col::new(table_name, "anchor_x"), - anchor_y: __sdk::__query_builder::Col::new(table_name, "anchor_y"), - anchor_z: __sdk::__query_builder::Col::new(table_name, "anchor_z"), - random_radius_yd: __sdk::__query_builder::Col::new(table_name, "random_radius_yd"), - path_id: __sdk::__query_builder::Col::new(table_name, "path_id"), - patrol_paused: __sdk::__query_builder::Col::new(table_name, "patrol_paused"), - combat_movement_active: __sdk::__query_builder::Col::new( - table_name, - "combat_movement_active", - ), - combat_movement_enabled: __sdk::__query_builder::Col::new( - table_name, - "combat_movement_enabled", - ), - follow_movement_active: __sdk::__query_builder::Col::new( - table_name, - "follow_movement_active", - ), - follow_movement_enabled: __sdk::__query_builder::Col::new( - table_name, - "follow_movement_enabled", - ), - walking: __sdk::__query_builder::Col::new(table_name, "walking"), - immobilized: __sdk::__query_builder::Col::new(table_name, "immobilized"), - immobilized_combat_only: __sdk::__query_builder::Col::new( - table_name, - "immobilized_combat_only", - ), - facing_pending: __sdk::__query_builder::Col::new(table_name, "facing_pending"), - facing_reset: __sdk::__query_builder::Col::new(table_name, "facing_reset"), - facing_target_guid: __sdk::__query_builder::Col::new(table_name, "facing_target_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiMovementIntent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiMovementIntentIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiMovementIntent { - type IxCols = CreatureAiMovementIntentIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiMovementIntentIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiMovementIntent {} diff --git a/gateway/src/stdb/bindings/creature_ai_movement_path_waypoint_type.rs b/gateway/src/stdb/bindings/creature_ai_movement_path_waypoint_type.rs deleted file mode 100644 index fbabc5060..000000000 --- a/gateway/src/stdb/bindings/creature_ai_movement_path_waypoint_type.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiMovementPathWaypoint { - pub id: u64, - pub creature_entry: u32, - pub map_id: u32, - pub path_id: u32, - pub point: u32, - pub x: f32, - pub y: f32, - pub z: f32, -} - -impl __sdk::InModule for CreatureAiMovementPathWaypoint { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiMovementPathWaypoint`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiMovementPathWaypointCols { - pub id: __sdk::__query_builder::Col, - pub creature_entry: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub path_id: __sdk::__query_builder::Col, - pub point: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiMovementPathWaypoint { - type Cols = CreatureAiMovementPathWaypointCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiMovementPathWaypointCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - path_id: __sdk::__query_builder::Col::new(table_name, "path_id"), - point: __sdk::__query_builder::Col::new(table_name, "point"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiMovementPathWaypoint`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiMovementPathWaypointIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiMovementPathWaypoint { - type IxCols = CreatureAiMovementPathWaypointIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiMovementPathWaypointIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiMovementPathWaypoint {} diff --git a/gateway/src/stdb/bindings/creature_ai_reset_deferral_type.rs b/gateway/src/stdb/bindings/creature_ai_reset_deferral_type.rs deleted file mode 100644 index 83ad9743a..000000000 --- a/gateway/src/stdb/bindings/creature_ai_reset_deferral_type.rs +++ /dev/null @@ -1,49 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiResetDeferral { - pub creature_guid: u64, -} - -impl __sdk::InModule for CreatureAiResetDeferral { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiResetDeferral`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiResetDeferralCols { - pub creature_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiResetDeferral { - type Cols = CreatureAiResetDeferralCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiResetDeferralCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiResetDeferral`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiResetDeferralIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiResetDeferral { - type IxCols = CreatureAiResetDeferralIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiResetDeferralIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiResetDeferral {} diff --git a/gateway/src/stdb/bindings/creature_ai_returning_home_type.rs b/gateway/src/stdb/bindings/creature_ai_returning_home_type.rs deleted file mode 100644 index 2ca9e6e46..000000000 --- a/gateway/src/stdb/bindings/creature_ai_returning_home_type.rs +++ /dev/null @@ -1,49 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiReturningHome { - pub creature_guid: u64, -} - -impl __sdk::InModule for CreatureAiReturningHome { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiReturningHome`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiReturningHomeCols { - pub creature_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiReturningHome { - type Cols = CreatureAiReturningHomeCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiReturningHomeCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiReturningHome`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiReturningHomeIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiReturningHome { - type IxCols = CreatureAiReturningHomeIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiReturningHomeIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiReturningHome {} diff --git a/gateway/src/stdb/bindings/creature_ai_rule_state_type.rs b/gateway/src/stdb/bindings/creature_ai_rule_state_type.rs deleted file mode 100644 index 7ee451f02..000000000 --- a/gateway/src/stdb/bindings/creature_ai_rule_state_type.rs +++ /dev/null @@ -1,84 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiRuleState { - pub id: u64, - pub creature_guid: u64, - pub source_rule_id: u64, - pub next_eligible_ms: u64, - pub consumed: bool, - pub lifecycle_id: u64, - pub engagement_id: u64, - pub invocation_seed: u64, - pub invocation_started: bool, - pub executing: bool, - pub invocation_branch: u32, - pub paused_at_ms: u64, -} - -impl __sdk::InModule for CreatureAiRuleState { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiRuleState`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiRuleStateCols { - pub id: __sdk::__query_builder::Col, - pub creature_guid: __sdk::__query_builder::Col, - pub source_rule_id: __sdk::__query_builder::Col, - pub next_eligible_ms: __sdk::__query_builder::Col, - pub consumed: __sdk::__query_builder::Col, - pub lifecycle_id: __sdk::__query_builder::Col, - pub engagement_id: __sdk::__query_builder::Col, - pub invocation_seed: __sdk::__query_builder::Col, - pub invocation_started: __sdk::__query_builder::Col, - pub executing: __sdk::__query_builder::Col, - pub invocation_branch: __sdk::__query_builder::Col, - pub paused_at_ms: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiRuleState { - type Cols = CreatureAiRuleStateCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiRuleStateCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - source_rule_id: __sdk::__query_builder::Col::new(table_name, "source_rule_id"), - next_eligible_ms: __sdk::__query_builder::Col::new(table_name, "next_eligible_ms"), - consumed: __sdk::__query_builder::Col::new(table_name, "consumed"), - lifecycle_id: __sdk::__query_builder::Col::new(table_name, "lifecycle_id"), - engagement_id: __sdk::__query_builder::Col::new(table_name, "engagement_id"), - invocation_seed: __sdk::__query_builder::Col::new(table_name, "invocation_seed"), - invocation_started: __sdk::__query_builder::Col::new(table_name, "invocation_started"), - executing: __sdk::__query_builder::Col::new(table_name, "executing"), - invocation_branch: __sdk::__query_builder::Col::new(table_name, "invocation_branch"), - paused_at_ms: __sdk::__query_builder::Col::new(table_name, "paused_at_ms"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiRuleState`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiRuleStateIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiRuleState { - type IxCols = CreatureAiRuleStateIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiRuleStateIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiRuleState {} diff --git a/gateway/src/stdb/bindings/creature_ai_spell_metadata_type.rs b/gateway/src/stdb/bindings/creature_ai_spell_metadata_type.rs deleted file mode 100644 index a682fbe2c..000000000 --- a/gateway/src/stdb/bindings/creature_ai_spell_metadata_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiSpellMetadata { - pub spell_id: u32, - pub exclude_caster: bool, -} - -impl __sdk::InModule for CreatureAiSpellMetadata { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiSpellMetadata`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiSpellMetadataCols { - pub spell_id: __sdk::__query_builder::Col, - pub exclude_caster: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiSpellMetadata { - type Cols = CreatureAiSpellMetadataCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiSpellMetadataCols { - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - exclude_caster: __sdk::__query_builder::Col::new(table_name, "exclude_caster"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiSpellMetadata`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiSpellMetadataIxCols { - pub spell_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiSpellMetadata { - type IxCols = CreatureAiSpellMetadataIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiSpellMetadataIxCols { - spell_id: __sdk::__query_builder::IxCol::new(table_name, "spell_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiSpellMetadata {} diff --git a/gateway/src/stdb/bindings/creature_ai_state_type.rs b/gateway/src/stdb/bindings/creature_ai_state_type.rs deleted file mode 100644 index a5c7f15ba..000000000 --- a/gateway/src/stdb/bindings/creature_ai_state_type.rs +++ /dev/null @@ -1,84 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiState { - pub creature_guid: u64, - pub phase: u8, - pub lifecycle_id: u64, - pub engagement_id: u64, - pub ranged_distance: f32, - pub ranged_angle: f32, - pub ranged_posture_active: bool, - pub definition_revision: u64, - pub active_object: bool, - pub react_state: u8, -} - -impl __sdk::InModule for CreatureAiState { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiState`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiStateCols { - pub creature_guid: __sdk::__query_builder::Col, - pub phase: __sdk::__query_builder::Col, - pub lifecycle_id: __sdk::__query_builder::Col, - pub engagement_id: __sdk::__query_builder::Col, - pub ranged_distance: __sdk::__query_builder::Col, - pub ranged_angle: __sdk::__query_builder::Col, - pub ranged_posture_active: __sdk::__query_builder::Col, - pub definition_revision: __sdk::__query_builder::Col, - pub active_object: __sdk::__query_builder::Col, - pub react_state: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiState { - type Cols = CreatureAiStateCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiStateCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - phase: __sdk::__query_builder::Col::new(table_name, "phase"), - lifecycle_id: __sdk::__query_builder::Col::new(table_name, "lifecycle_id"), - engagement_id: __sdk::__query_builder::Col::new(table_name, "engagement_id"), - ranged_distance: __sdk::__query_builder::Col::new(table_name, "ranged_distance"), - ranged_angle: __sdk::__query_builder::Col::new(table_name, "ranged_angle"), - ranged_posture_active: __sdk::__query_builder::Col::new( - table_name, - "ranged_posture_active", - ), - definition_revision: __sdk::__query_builder::Col::new( - table_name, - "definition_revision", - ), - active_object: __sdk::__query_builder::Col::new(table_name, "active_object"), - react_state: __sdk::__query_builder::Col::new(table_name, "react_state"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiState`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiStateIxCols { - pub active_object: __sdk::__query_builder::IxCol, - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiState { - type IxCols = CreatureAiStateIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiStateIxCols { - active_object: __sdk::__query_builder::IxCol::new(table_name, "active_object"), - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiState {} diff --git a/gateway/src/stdb/bindings/creature_ai_summon_expiry_type.rs b/gateway/src/stdb/bindings/creature_ai_summon_expiry_type.rs deleted file mode 100644 index 3d530ac94..000000000 --- a/gateway/src/stdb/bindings/creature_ai_summon_expiry_type.rs +++ /dev/null @@ -1,69 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiSummonExpiry { - pub scheduled_id: u64, - pub scheduled_at: __sdk::ScheduleAt, - pub creature_guid: u64, - pub lifetime_ms: u32, - pub remaining_ms: u32, - pub last_checked_ms: u64, - pub life_seq: u64, -} - -impl __sdk::InModule for CreatureAiSummonExpiry { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiSummonExpiry`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiSummonExpiryCols { - pub scheduled_id: __sdk::__query_builder::Col, - pub scheduled_at: __sdk::__query_builder::Col, - pub creature_guid: __sdk::__query_builder::Col, - pub lifetime_ms: __sdk::__query_builder::Col, - pub remaining_ms: __sdk::__query_builder::Col, - pub last_checked_ms: __sdk::__query_builder::Col, - pub life_seq: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiSummonExpiry { - type Cols = CreatureAiSummonExpiryCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiSummonExpiryCols { - scheduled_id: __sdk::__query_builder::Col::new(table_name, "scheduled_id"), - scheduled_at: __sdk::__query_builder::Col::new(table_name, "scheduled_at"), - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - lifetime_ms: __sdk::__query_builder::Col::new(table_name, "lifetime_ms"), - remaining_ms: __sdk::__query_builder::Col::new(table_name, "remaining_ms"), - last_checked_ms: __sdk::__query_builder::Col::new(table_name, "last_checked_ms"), - life_seq: __sdk::__query_builder::Col::new(table_name, "life_seq"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiSummonExpiry`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiSummonExpiryIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, - pub scheduled_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiSummonExpiry { - type IxCols = CreatureAiSummonExpiryIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiSummonExpiryIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - scheduled_id: __sdk::__query_builder::IxCol::new(table_name, "scheduled_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiSummonExpiry {} diff --git a/gateway/src/stdb/bindings/creature_ai_summon_origin_type.rs b/gateway/src/stdb/bindings/creature_ai_summon_origin_type.rs deleted file mode 100644 index 685abc30a..000000000 --- a/gateway/src/stdb/bindings/creature_ai_summon_origin_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiSummonOrigin { - pub creature_guid: u64, - pub summoner_guid: u64, -} - -impl __sdk::InModule for CreatureAiSummonOrigin { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiSummonOrigin`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiSummonOriginCols { - pub creature_guid: __sdk::__query_builder::Col, - pub summoner_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiSummonOrigin { - type Cols = CreatureAiSummonOriginCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiSummonOriginCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - summoner_guid: __sdk::__query_builder::Col::new(table_name, "summoner_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiSummonOrigin`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiSummonOriginIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiSummonOrigin { - type IxCols = CreatureAiSummonOriginIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiSummonOriginIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiSummonOrigin {} diff --git a/gateway/src/stdb/bindings/creature_ai_summon_type.rs b/gateway/src/stdb/bindings/creature_ai_summon_type.rs deleted file mode 100644 index 48bd5e3f2..000000000 --- a/gateway/src/stdb/bindings/creature_ai_summon_type.rs +++ /dev/null @@ -1,64 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureAiSummon { - pub id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub orientation: f32, - pub lifetime_ms: u32, -} - -impl __sdk::InModule for CreatureAiSummon { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureAiSummon`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureAiSummonCols { - pub id: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub orientation: __sdk::__query_builder::Col, - pub lifetime_ms: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureAiSummon { - type Cols = CreatureAiSummonCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureAiSummonCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - orientation: __sdk::__query_builder::Col::new(table_name, "orientation"), - lifetime_ms: __sdk::__query_builder::Col::new(table_name, "lifetime_ms"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureAiSummon`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureAiSummonIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureAiSummon { - type IxCols = CreatureAiSummonIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureAiSummonIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureAiSummon {} diff --git a/gateway/src/stdb/bindings/creature_cast_type.rs b/gateway/src/stdb/bindings/creature_cast_type.rs deleted file mode 100644 index 5a9b51290..000000000 --- a/gateway/src/stdb/bindings/creature_cast_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureCast { - pub creature_entry: u32, - pub spell_id: u32, -} - -impl __sdk::InModule for CreatureCast { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureCast`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureCastCols { - pub creature_entry: __sdk::__query_builder::Col, - pub spell_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureCast { - type Cols = CreatureCastCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureCastCols { - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureCast`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureCastIxCols { - pub creature_entry: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureCast { - type IxCols = CreatureCastIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureCastIxCols { - creature_entry: __sdk::__query_builder::IxCol::new(table_name, "creature_entry"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureCast {} diff --git a/gateway/src/stdb/bindings/creature_dead_callback_cast_admission_type.rs b/gateway/src/stdb/bindings/creature_dead_callback_cast_admission_type.rs deleted file mode 100644 index 94ae8d6b0..000000000 --- a/gateway/src/stdb/bindings/creature_dead_callback_cast_admission_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureDeadCallbackCastAdmission { - pub caster_guid: u64, - pub spell_id: u32, -} - -impl __sdk::InModule for CreatureDeadCallbackCastAdmission { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureDeadCallbackCastAdmission`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureDeadCallbackCastAdmissionCols { - pub caster_guid: __sdk::__query_builder::Col, - pub spell_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureDeadCallbackCastAdmission { - type Cols = CreatureDeadCallbackCastAdmissionCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureDeadCallbackCastAdmissionCols { - caster_guid: __sdk::__query_builder::Col::new(table_name, "caster_guid"), - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureDeadCallbackCastAdmission`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureDeadCallbackCastAdmissionIxCols { - pub caster_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureDeadCallbackCastAdmission { - type IxCols = CreatureDeadCallbackCastAdmissionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureDeadCallbackCastAdmissionIxCols { - caster_guid: __sdk::__query_builder::IxCol::new(table_name, "caster_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureDeadCallbackCastAdmission {} diff --git a/gateway/src/stdb/bindings/creature_distraction_type.rs b/gateway/src/stdb/bindings/creature_distraction_type.rs deleted file mode 100644 index 0b657190e..000000000 --- a/gateway/src/stdb/bindings/creature_distraction_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureDistraction { - pub creature_guid: u64, - pub ends_ms: u64, -} - -impl __sdk::InModule for CreatureDistraction { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureDistraction`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureDistractionCols { - pub creature_guid: __sdk::__query_builder::Col, - pub ends_ms: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureDistraction { - type Cols = CreatureDistractionCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureDistractionCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - ends_ms: __sdk::__query_builder::Col::new(table_name, "ends_ms"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureDistraction`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureDistractionIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureDistraction { - type IxCols = CreatureDistractionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureDistractionIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureDistraction {} diff --git a/gateway/src/stdb/bindings/creature_entry_condition_type.rs b/gateway/src/stdb/bindings/creature_entry_condition_type.rs deleted file mode 100644 index 3eb77acc1..000000000 --- a/gateway/src/stdb/bindings/creature_entry_condition_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureEntryCondition { - pub creature_entry: u32, -} - -impl __sdk::InModule for CreatureEntryCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/creature_family_type.rs b/gateway/src/stdb/bindings/creature_family_type.rs deleted file mode 100644 index b51b57258..000000000 --- a/gateway/src/stdb/bindings/creature_family_type.rs +++ /dev/null @@ -1,61 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureFamily { - pub family_id: u32, - pub name: String, - pub pet_food_mask: i32, - pub pet_talent_type: i32, - pub category: i32, -} - -impl __sdk::InModule for CreatureFamily { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureFamily`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureFamilyCols { - pub family_id: __sdk::__query_builder::Col, - pub name: __sdk::__query_builder::Col, - pub pet_food_mask: __sdk::__query_builder::Col, - pub pet_talent_type: __sdk::__query_builder::Col, - pub category: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureFamily { - type Cols = CreatureFamilyCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureFamilyCols { - family_id: __sdk::__query_builder::Col::new(table_name, "family_id"), - name: __sdk::__query_builder::Col::new(table_name, "name"), - pet_food_mask: __sdk::__query_builder::Col::new(table_name, "pet_food_mask"), - pet_talent_type: __sdk::__query_builder::Col::new(table_name, "pet_talent_type"), - category: __sdk::__query_builder::Col::new(table_name, "category"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureFamily`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureFamilyIxCols { - pub family_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureFamily { - type IxCols = CreatureFamilyIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureFamilyIxCols { - family_id: __sdk::__query_builder::IxCol::new(table_name, "family_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureFamily {} diff --git a/gateway/src/stdb/bindings/creature_gossip_menu_override_type.rs b/gateway/src/stdb/bindings/creature_gossip_menu_override_type.rs deleted file mode 100644 index ea38774bb..000000000 --- a/gateway/src/stdb/bindings/creature_gossip_menu_override_type.rs +++ /dev/null @@ -1,60 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureGossipMenuOverride { - pub creature_guid: u64, - pub menu_id: u32, - pub map_id: u32, - pub instance_id: u64, -} - -impl __sdk::InModule for CreatureGossipMenuOverride { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureGossipMenuOverride`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureGossipMenuOverrideCols { - pub creature_guid: __sdk::__query_builder::Col, - pub menu_id: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureGossipMenuOverride { - type Cols = CreatureGossipMenuOverrideCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureGossipMenuOverrideCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - menu_id: __sdk::__query_builder::Col::new(table_name, "menu_id"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureGossipMenuOverride`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureGossipMenuOverrideIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, - pub instance_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureGossipMenuOverride { - type IxCols = CreatureGossipMenuOverrideIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureGossipMenuOverrideIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - instance_id: __sdk::__query_builder::IxCol::new(table_name, "instance_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureGossipMenuOverride {} diff --git a/gateway/src/stdb/bindings/creature_health_condition_type.rs b/gateway/src/stdb/bindings/creature_health_condition_type.rs deleted file mode 100644 index 4f759ef8a..000000000 --- a/gateway/src/stdb/bindings/creature_health_condition_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureHealthCondition { - pub min_pct: u8, - pub max_pct: u8, - pub allow_out_of_combat: bool, -} - -impl __sdk::InModule for CreatureHealthCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/creature_instruction_type.rs b/gateway/src/stdb/bindings/creature_instruction_type.rs deleted file mode 100644 index e406e3f50..000000000 --- a/gateway/src/stdb/bindings/creature_instruction_type.rs +++ /dev/null @@ -1,105 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::call_for_help_instruction_type::CallForHelpInstruction; -use super::cast_instruction_type::CastInstruction; -use super::creature_presentation_instruction_type::CreaturePresentationInstruction; -use super::emote_instruction_type::EmoteInstruction; -use super::event_ai_quest_credit_type::EventAiQuestCredit; -use super::facing_instruction_type::FacingInstruction; -use super::force_despawn_instruction_type::ForceDespawnInstruction; -use super::increment_phase_instruction_type::IncrementPhaseInstruction; -use super::instruction_target_type::InstructionTarget; -use super::missing_text_template_no_effect_type::MissingTextTemplateNoEffect; -use super::movement_operation_type::MovementOperation; -use super::notify_encounter_instruction_type::NotifyEncounterInstruction; -use super::random_emote_instruction_type::RandomEmoteInstruction; -use super::random_phase_instruction_type::RandomPhaseInstruction; -use super::random_phase_range_instruction_type::RandomPhaseRangeInstruction; -use super::ranged_posture_instruction_type::RangedPostureInstruction; -use super::remove_aura_instruction_type::RemoveAuraInstruction; -use super::remove_guardians_instruction_type::RemoveGuardiansInstruction; -use super::scale_all_threat_instruction_type::ScaleAllThreatInstruction; -use super::scale_selected_threat_instruction_type::ScaleSelectedThreatInstruction; -use super::set_lethal_damage_floor_instruction_type::SetLethalDamageFloorInstruction; -use super::set_phase_instruction_type::SetPhaseInstruction; -use super::set_react_state_instruction_type::SetReactStateInstruction; -use super::set_stand_state_instruction_type::SetStandStateInstruction; -use super::spawn_at_actor_instruction_type::SpawnAtActorInstruction; -use super::speak_instruction_type::SpeakInstruction; -use super::start_relay_instruction_type::StartRelayInstruction; -use super::summon_instruction_type::SummonInstruction; -use super::throw_ai_event_instruction_type::ThrowAiEventInstruction; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub enum CreatureInstruction { - Speak(SpeakInstruction), - - Cast(CastInstruction), - - Emote(EmoteInstruction), - - RandomEmote(RandomEmoteInstruction), - - FleeForAssist, - - CallForHelp(CallForHelpInstruction), - - SetPhase(SetPhaseInstruction), - - IncrementPhase(IncrementPhaseInstruction), - - RandomPhase(RandomPhaseInstruction), - - RandomPhaseRange(RandomPhaseRangeInstruction), - - Summon(SummonInstruction), - - SpawnAtActor(SpawnAtActorInstruction), - - RemoveAura(RemoveAuraInstruction), - - ForceDespawn(ForceDespawnInstruction), - - ThrowAiEvent(ThrowAiEventInstruction), - - SetStandState(SetStandStateInstruction), - - SetReactState(SetReactStateInstruction), - - RemoveGuardians(RemoveGuardiansInstruction), - - MissingTextTemplateNoEffect(MissingTextTemplateNoEffect), - - SetRangedPosture(RangedPostureInstruction), - - SetLethalDamageFloor(SetLethalDamageFloorInstruction), - - ForceDeath, - - ScaleSelectedThreat(ScaleSelectedThreatInstruction), - - ScaleAllThreat(ScaleAllThreatInstruction), - - Presentation(CreaturePresentationInstruction), - - QuestCredit(EventAiQuestCredit), - - Movement(MovementOperation), - - SetFacing(FacingInstruction), - - NotifyEncounter(NotifyEncounterInstruction), - - StartRelay(StartRelayInstruction), - - AttackStart(InstructionTarget), -} - -impl __sdk::InModule for CreatureInstruction { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/creature_lethal_damage_floor_type.rs b/gateway/src/stdb/bindings/creature_lethal_damage_floor_type.rs deleted file mode 100644 index a619f10fe..000000000 --- a/gateway/src/stdb/bindings/creature_lethal_damage_floor_type.rs +++ /dev/null @@ -1,58 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureLethalDamageFloor { - pub creature_guid: u64, - pub definition_revision: u64, - pub notification_sent: bool, -} - -impl __sdk::InModule for CreatureLethalDamageFloor { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureLethalDamageFloor`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureLethalDamageFloorCols { - pub creature_guid: __sdk::__query_builder::Col, - pub definition_revision: __sdk::__query_builder::Col, - pub notification_sent: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureLethalDamageFloor { - type Cols = CreatureLethalDamageFloorCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureLethalDamageFloorCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - definition_revision: __sdk::__query_builder::Col::new( - table_name, - "definition_revision", - ), - notification_sent: __sdk::__query_builder::Col::new(table_name, "notification_sent"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureLethalDamageFloor`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureLethalDamageFloorIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureLethalDamageFloor { - type IxCols = CreatureLethalDamageFloorIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureLethalDamageFloorIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureLethalDamageFloor {} diff --git a/gateway/src/stdb/bindings/creature_loot_tag_group_type.rs b/gateway/src/stdb/bindings/creature_loot_tag_group_type.rs deleted file mode 100644 index da086d2b7..000000000 --- a/gateway/src/stdb/bindings/creature_loot_tag_group_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureLootTagGroup { - pub creature_guid: u64, - pub group_id: u64, -} - -impl __sdk::InModule for CreatureLootTagGroup { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureLootTagGroup`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureLootTagGroupCols { - pub creature_guid: __sdk::__query_builder::Col, - pub group_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureLootTagGroup { - type Cols = CreatureLootTagGroupCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureLootTagGroupCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - group_id: __sdk::__query_builder::Col::new(table_name, "group_id"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureLootTagGroup`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureLootTagGroupIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureLootTagGroup { - type IxCols = CreatureLootTagGroupIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureLootTagGroupIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureLootTagGroup {} diff --git a/gateway/src/stdb/bindings/creature_loot_type.rs b/gateway/src/stdb/bindings/creature_loot_type.rs deleted file mode 100644 index 1560036c9..000000000 --- a/gateway/src/stdb/bindings/creature_loot_type.rs +++ /dev/null @@ -1,69 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureLoot { - pub id: u64, - pub creature_entry: u32, - pub item_entry: u32, - pub chance_bp: u32, - pub count: u32, - pub group_id: u32, - pub quest_only: bool, -} - -impl __sdk::InModule for CreatureLoot { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureLoot`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureLootCols { - pub id: __sdk::__query_builder::Col, - pub creature_entry: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub chance_bp: __sdk::__query_builder::Col, - pub count: __sdk::__query_builder::Col, - pub group_id: __sdk::__query_builder::Col, - pub quest_only: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureLoot { - type Cols = CreatureLootCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureLootCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - chance_bp: __sdk::__query_builder::Col::new(table_name, "chance_bp"), - count: __sdk::__query_builder::Col::new(table_name, "count"), - group_id: __sdk::__query_builder::Col::new(table_name, "group_id"), - quest_only: __sdk::__query_builder::Col::new(table_name, "quest_only"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureLoot`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureLootIxCols { - pub creature_entry: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureLoot { - type IxCols = CreatureLootIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureLootIxCols { - creature_entry: __sdk::__query_builder::IxCol::new(table_name, "creature_entry"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureLoot {} diff --git a/gateway/src/stdb/bindings/creature_move_event_type.rs b/gateway/src/stdb/bindings/creature_move_event_type.rs deleted file mode 100644 index b4c20de38..000000000 --- a/gateway/src/stdb/bindings/creature_move_event_type.rs +++ /dev/null @@ -1,82 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureMoveEvent { - pub id: u64, - pub mover_guid: u64, - pub start_x: f32, - pub start_y: f32, - pub start_z: f32, - pub dest_x: f32, - pub dest_y: f32, - pub dest_z: f32, - pub duration_ms: u32, - pub spline_id: u32, - pub created_at: __sdk::Timestamp, - pub run: bool, -} - -impl __sdk::InModule for CreatureMoveEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureMoveEvent`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureMoveEventCols { - pub id: __sdk::__query_builder::Col, - pub mover_guid: __sdk::__query_builder::Col, - pub start_x: __sdk::__query_builder::Col, - pub start_y: __sdk::__query_builder::Col, - pub start_z: __sdk::__query_builder::Col, - pub dest_x: __sdk::__query_builder::Col, - pub dest_y: __sdk::__query_builder::Col, - pub dest_z: __sdk::__query_builder::Col, - pub duration_ms: __sdk::__query_builder::Col, - pub spline_id: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub run: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureMoveEvent { - type Cols = CreatureMoveEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureMoveEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - mover_guid: __sdk::__query_builder::Col::new(table_name, "mover_guid"), - start_x: __sdk::__query_builder::Col::new(table_name, "start_x"), - start_y: __sdk::__query_builder::Col::new(table_name, "start_y"), - start_z: __sdk::__query_builder::Col::new(table_name, "start_z"), - dest_x: __sdk::__query_builder::Col::new(table_name, "dest_x"), - dest_y: __sdk::__query_builder::Col::new(table_name, "dest_y"), - dest_z: __sdk::__query_builder::Col::new(table_name, "dest_z"), - duration_ms: __sdk::__query_builder::Col::new(table_name, "duration_ms"), - spline_id: __sdk::__query_builder::Col::new(table_name, "spline_id"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - run: __sdk::__query_builder::Col::new(table_name, "run"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureMoveEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureMoveEventIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureMoveEvent { - type IxCols = CreatureMoveEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureMoveEventIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureMoveEvent {} diff --git a/gateway/src/stdb/bindings/creature_move_schedule_type.rs b/gateway/src/stdb/bindings/creature_move_schedule_type.rs deleted file mode 100644 index c29c4f158..000000000 --- a/gateway/src/stdb/bindings/creature_move_schedule_type.rs +++ /dev/null @@ -1,55 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureMoveSchedule { - pub scheduled_id: u64, - pub scheduled_at: __sdk::ScheduleAt, - pub instance_id: u64, -} - -impl __sdk::InModule for CreatureMoveSchedule { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureMoveSchedule`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureMoveScheduleCols { - pub scheduled_id: __sdk::__query_builder::Col, - pub scheduled_at: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureMoveSchedule { - type Cols = CreatureMoveScheduleCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureMoveScheduleCols { - scheduled_id: __sdk::__query_builder::Col::new(table_name, "scheduled_id"), - scheduled_at: __sdk::__query_builder::Col::new(table_name, "scheduled_at"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureMoveSchedule`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureMoveScheduleIxCols { - pub scheduled_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureMoveSchedule { - type IxCols = CreatureMoveScheduleIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureMoveScheduleIxCols { - scheduled_id: __sdk::__query_builder::IxCol::new(table_name, "scheduled_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureMoveSchedule {} diff --git a/gateway/src/stdb/bindings/creature_path_point_type.rs b/gateway/src/stdb/bindings/creature_path_point_type.rs deleted file mode 100644 index affb50346..000000000 --- a/gateway/src/stdb/bindings/creature_path_point_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreaturePathPoint { - pub x: f32, - pub y: f32, - pub z: f32, -} - -impl __sdk::InModule for CreaturePathPoint { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/creature_path_type.rs b/gateway/src/stdb/bindings/creature_path_type.rs deleted file mode 100644 index 293d33b04..000000000 --- a/gateway/src/stdb/bindings/creature_path_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creature_path_point_type::CreaturePathPoint; -use super::navigation_inputs_type::NavigationInputs; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreaturePath { - pub points: Vec, - pub navigation: NavigationInputs, -} - -impl __sdk::InModule for CreaturePath { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/creature_presentation_instruction_type.rs b/gateway/src/stdb/bindings/creature_presentation_instruction_type.rs deleted file mode 100644 index daaecdb79..000000000 --- a/gateway/src/stdb/bindings/creature_presentation_instruction_type.rs +++ /dev/null @@ -1,49 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creature_presentation_mount_type::CreaturePresentationMount; -use super::import_verified_rajaxx_projection_type::ImportVerifiedRajaxxProjection; -use super::npc_flags_projection_type::NpcFlagsProjection; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub enum CreaturePresentationInstruction { - SetFaction(u32), - - ShowTemplateDisplay(u32), - - SetCreatureMount(CreaturePresentationMount), - - SetNpcFlags(NpcFlagsProjection), - - EmptyMana, - - ClearVirtualMainHand, - - SetNotAttackable, - - ClearNotAttackable, - - SetImmuneToPlayers, - - ClearImmuneToPlayers, - - SetImmuneToCreatures, - - ClearImmuneToCreatures, - - SetImmuneToPlayersAndCreatures, - - ClearImmuneToPlayersAndCreatures, - - SetNotSelectable, - - SetRajaxxSpawnProtection(ImportVerifiedRajaxxProjection), -} - -impl __sdk::InModule for CreaturePresentationInstruction { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/creature_presentation_mount_type.rs b/gateway/src/stdb/bindings/creature_presentation_mount_type.rs deleted file mode 100644 index f15b4f128..000000000 --- a/gateway/src/stdb/bindings/creature_presentation_mount_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum CreaturePresentationMount { - Clear, - - Raider, - - Kerr, - - Huntress, - - TwilightMarauder, -} - -impl __sdk::InModule for CreaturePresentationMount { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/creature_presentation_type.rs b/gateway/src/stdb/bindings/creature_presentation_type.rs deleted file mode 100644 index 354d2bde4..000000000 --- a/gateway/src/stdb/bindings/creature_presentation_type.rs +++ /dev/null @@ -1,117 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creature_presentation_mount_type::CreaturePresentationMount; -use super::flag_override_type::FlagOverride; -use super::npc_flags_projection_type::NpcFlagsProjection; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreaturePresentation { - pub creature_guid: u64, - pub lifecycle_id: u64, - pub definition_revision: u64, - pub faction_template_override: u32, - pub has_faction_template_override: bool, - pub display_template_override: u32, - pub creature_mount: CreaturePresentationMount, - pub npc_flags: NpcFlagsProjection, - pub not_attackable: FlagOverride, - pub immune_to_players: FlagOverride, - pub immune_to_creatures: FlagOverride, - pub not_selectable: FlagOverride, - pub rajaxx_client_projection: bool, - pub mana_emptied: bool, - pub virtual_main_hand_cleared: bool, -} - -impl __sdk::InModule for CreaturePresentation { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreaturePresentation`. -/// -/// Provides typed access to columns for query building. -pub struct CreaturePresentationCols { - pub creature_guid: __sdk::__query_builder::Col, - pub lifecycle_id: __sdk::__query_builder::Col, - pub definition_revision: __sdk::__query_builder::Col, - pub faction_template_override: __sdk::__query_builder::Col, - pub has_faction_template_override: __sdk::__query_builder::Col, - pub display_template_override: __sdk::__query_builder::Col, - pub creature_mount: - __sdk::__query_builder::Col, - pub npc_flags: __sdk::__query_builder::Col, - pub not_attackable: __sdk::__query_builder::Col, - pub immune_to_players: __sdk::__query_builder::Col, - pub immune_to_creatures: __sdk::__query_builder::Col, - pub not_selectable: __sdk::__query_builder::Col, - pub rajaxx_client_projection: __sdk::__query_builder::Col, - pub mana_emptied: __sdk::__query_builder::Col, - pub virtual_main_hand_cleared: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreaturePresentation { - type Cols = CreaturePresentationCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreaturePresentationCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - lifecycle_id: __sdk::__query_builder::Col::new(table_name, "lifecycle_id"), - definition_revision: __sdk::__query_builder::Col::new( - table_name, - "definition_revision", - ), - faction_template_override: __sdk::__query_builder::Col::new( - table_name, - "faction_template_override", - ), - has_faction_template_override: __sdk::__query_builder::Col::new( - table_name, - "has_faction_template_override", - ), - display_template_override: __sdk::__query_builder::Col::new( - table_name, - "display_template_override", - ), - creature_mount: __sdk::__query_builder::Col::new(table_name, "creature_mount"), - npc_flags: __sdk::__query_builder::Col::new(table_name, "npc_flags"), - not_attackable: __sdk::__query_builder::Col::new(table_name, "not_attackable"), - immune_to_players: __sdk::__query_builder::Col::new(table_name, "immune_to_players"), - immune_to_creatures: __sdk::__query_builder::Col::new( - table_name, - "immune_to_creatures", - ), - not_selectable: __sdk::__query_builder::Col::new(table_name, "not_selectable"), - rajaxx_client_projection: __sdk::__query_builder::Col::new( - table_name, - "rajaxx_client_projection", - ), - mana_emptied: __sdk::__query_builder::Col::new(table_name, "mana_emptied"), - virtual_main_hand_cleared: __sdk::__query_builder::Col::new( - table_name, - "virtual_main_hand_cleared", - ), - } - } -} - -/// Indexed column accessor struct for the table `CreaturePresentation`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreaturePresentationIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreaturePresentation { - type IxCols = CreaturePresentationIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreaturePresentationIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreaturePresentation {} diff --git a/gateway/src/stdb/bindings/creature_quest_tap_member_type.rs b/gateway/src/stdb/bindings/creature_quest_tap_member_type.rs deleted file mode 100644 index ca03ab9f4..000000000 --- a/gateway/src/stdb/bindings/creature_quest_tap_member_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureQuestTapMember { - pub id: u64, - pub creature_guid: u64, - pub character_guid: u64, -} - -impl __sdk::InModule for CreatureQuestTapMember { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureQuestTapMember`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureQuestTapMemberCols { - pub id: __sdk::__query_builder::Col, - pub creature_guid: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureQuestTapMember { - type Cols = CreatureQuestTapMemberCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureQuestTapMemberCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureQuestTapMember`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureQuestTapMemberIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureQuestTapMember { - type IxCols = CreatureQuestTapMemberIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureQuestTapMemberIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureQuestTapMember {} diff --git a/gateway/src/stdb/bindings/creature_quest_tap_type.rs b/gateway/src/stdb/bindings/creature_quest_tap_type.rs deleted file mode 100644 index 2cb98f37a..000000000 --- a/gateway/src/stdb/bindings/creature_quest_tap_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureQuestTap { - pub creature_guid: u64, - pub character_guid: u64, -} - -impl __sdk::InModule for CreatureQuestTap { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureQuestTap`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureQuestTapCols { - pub creature_guid: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureQuestTap { - type Cols = CreatureQuestTapCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureQuestTapCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureQuestTap`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureQuestTapIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureQuestTap { - type IxCols = CreatureQuestTapIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureQuestTapIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureQuestTap {} diff --git a/gateway/src/stdb/bindings/creature_quest_type.rs b/gateway/src/stdb/bindings/creature_quest_type.rs deleted file mode 100644 index b426bced7..000000000 --- a/gateway/src/stdb/bindings/creature_quest_type.rs +++ /dev/null @@ -1,60 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureQuest { - pub id: u64, - pub creature_entry: u32, - pub quest_entry: u32, - pub role: u8, -} - -impl __sdk::InModule for CreatureQuest { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureQuest`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureQuestCols { - pub id: __sdk::__query_builder::Col, - pub creature_entry: __sdk::__query_builder::Col, - pub quest_entry: __sdk::__query_builder::Col, - pub role: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureQuest { - type Cols = CreatureQuestCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureQuestCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - quest_entry: __sdk::__query_builder::Col::new(table_name, "quest_entry"), - role: __sdk::__query_builder::Col::new(table_name, "role"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureQuest`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureQuestIxCols { - pub creature_entry: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureQuest { - type IxCols = CreatureQuestIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureQuestIxCols { - creature_entry: __sdk::__query_builder::IxCol::new(table_name, "creature_entry"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureQuest {} diff --git a/gateway/src/stdb/bindings/creature_react_state_type.rs b/gateway/src/stdb/bindings/creature_react_state_type.rs deleted file mode 100644 index de8c45760..000000000 --- a/gateway/src/stdb/bindings/creature_react_state_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum CreatureReactState { - Passive, - - Defensive, - - Aggressive, -} - -impl __sdk::InModule for CreatureReactState { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/creature_relay_temporary_faction_type.rs b/gateway/src/stdb/bindings/creature_relay_temporary_faction_type.rs deleted file mode 100644 index 0168dceba..000000000 --- a/gateway/src/stdb/bindings/creature_relay_temporary_faction_type.rs +++ /dev/null @@ -1,49 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureRelayTemporaryFaction { - pub creature_guid: u64, -} - -impl __sdk::InModule for CreatureRelayTemporaryFaction { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureRelayTemporaryFaction`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureRelayTemporaryFactionCols { - pub creature_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureRelayTemporaryFaction { - type Cols = CreatureRelayTemporaryFactionCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureRelayTemporaryFactionCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureRelayTemporaryFaction`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureRelayTemporaryFactionIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureRelayTemporaryFaction { - type IxCols = CreatureRelayTemporaryFactionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureRelayTemporaryFactionIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureRelayTemporaryFaction {} diff --git a/gateway/src/stdb/bindings/creature_spawn_type.rs b/gateway/src/stdb/bindings/creature_spawn_type.rs deleted file mode 100644 index 116e83c90..000000000 --- a/gateway/src/stdb/bindings/creature_spawn_type.rs +++ /dev/null @@ -1,86 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureSpawn { - pub guid: u64, - pub entry: u32, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub orientation: f32, - pub respawn_at: __sdk::Timestamp, - pub despawn_at: __sdk::Timestamp, - pub movement_type: u8, - pub respawn_secs: u32, - pub life_seq: u64, -} - -impl __sdk::InModule for CreatureSpawn { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureSpawn`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureSpawnCols { - pub guid: __sdk::__query_builder::Col, - pub entry: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub orientation: __sdk::__query_builder::Col, - pub respawn_at: __sdk::__query_builder::Col, - pub despawn_at: __sdk::__query_builder::Col, - pub movement_type: __sdk::__query_builder::Col, - pub respawn_secs: __sdk::__query_builder::Col, - pub life_seq: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureSpawn { - type Cols = CreatureSpawnCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureSpawnCols { - guid: __sdk::__query_builder::Col::new(table_name, "guid"), - entry: __sdk::__query_builder::Col::new(table_name, "entry"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - orientation: __sdk::__query_builder::Col::new(table_name, "orientation"), - respawn_at: __sdk::__query_builder::Col::new(table_name, "respawn_at"), - despawn_at: __sdk::__query_builder::Col::new(table_name, "despawn_at"), - movement_type: __sdk::__query_builder::Col::new(table_name, "movement_type"), - respawn_secs: __sdk::__query_builder::Col::new(table_name, "respawn_secs"), - life_seq: __sdk::__query_builder::Col::new(table_name, "life_seq"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureSpawn`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureSpawnIxCols { - pub despawn_at: __sdk::__query_builder::IxCol, - pub guid: __sdk::__query_builder::IxCol, - pub respawn_at: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureSpawn { - type IxCols = CreatureSpawnIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureSpawnIxCols { - despawn_at: __sdk::__query_builder::IxCol::new(table_name, "despawn_at"), - guid: __sdk::__query_builder::IxCol::new(table_name, "guid"), - respawn_at: __sdk::__query_builder::IxCol::new(table_name, "respawn_at"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureSpawn {} diff --git a/gateway/src/stdb/bindings/creature_spell_type.rs b/gateway/src/stdb/bindings/creature_spell_type.rs deleted file mode 100644 index e750b16de..000000000 --- a/gateway/src/stdb/bindings/creature_spell_type.rs +++ /dev/null @@ -1,66 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureSpell { - pub id: u64, - pub creature_entry: u32, - pub spell_id: u32, - pub priority: u8, - pub condition: u8, - pub condition_value: u8, -} - -impl __sdk::InModule for CreatureSpell { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureSpell`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureSpellCols { - pub id: __sdk::__query_builder::Col, - pub creature_entry: __sdk::__query_builder::Col, - pub spell_id: __sdk::__query_builder::Col, - pub priority: __sdk::__query_builder::Col, - pub condition: __sdk::__query_builder::Col, - pub condition_value: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureSpell { - type Cols = CreatureSpellCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureSpellCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - priority: __sdk::__query_builder::Col::new(table_name, "priority"), - condition: __sdk::__query_builder::Col::new(table_name, "condition"), - condition_value: __sdk::__query_builder::Col::new(table_name, "condition_value"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureSpell`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureSpellIxCols { - pub creature_entry: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureSpell { - type IxCols = CreatureSpellIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureSpellIxCols { - creature_entry: __sdk::__query_builder::IxCol::new(table_name, "creature_entry"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureSpell {} diff --git a/gateway/src/stdb/bindings/creature_spline_type.rs b/gateway/src/stdb/bindings/creature_spline_type.rs deleted file mode 100644 index bd7627de9..000000000 --- a/gateway/src/stdb/bindings/creature_spline_type.rs +++ /dev/null @@ -1,107 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creature_path_type::CreaturePath; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureSpline { - pub guid: u64, - pub start_micros: u64, - pub dur_ms: u32, - pub sx: f32, - pub sy: f32, - pub sz: f32, - pub dx: f32, - pub dy: f32, - pub dz: f32, - pub map_id: u32, - pub instance_id: u64, - pub grid_x: i32, - pub grid_y: i32, - pub spline_id: u32, - pub run: bool, - pub cell: i64, - // Hand-appended under the END-append rule in docs/danger-zones.md: a facing-only leg does not - // move (`sx/sy/sz == dx/dy/dz`, `dur_ms == 0`). The angle is ignored unless `facing` is true. - pub facing: bool, - pub facing_angle: f32, - pub path: Option, -} - -impl __sdk::InModule for CreatureSpline { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureSpline`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureSplineCols { - pub guid: __sdk::__query_builder::Col, - pub start_micros: __sdk::__query_builder::Col, - pub dur_ms: __sdk::__query_builder::Col, - pub sx: __sdk::__query_builder::Col, - pub sy: __sdk::__query_builder::Col, - pub sz: __sdk::__query_builder::Col, - pub dx: __sdk::__query_builder::Col, - pub dy: __sdk::__query_builder::Col, - pub dz: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub grid_x: __sdk::__query_builder::Col, - pub grid_y: __sdk::__query_builder::Col, - pub spline_id: __sdk::__query_builder::Col, - pub run: __sdk::__query_builder::Col, - pub cell: __sdk::__query_builder::Col, - pub facing: __sdk::__query_builder::Col, - pub facing_angle: __sdk::__query_builder::Col, - pub path: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for CreatureSpline { - type Cols = CreatureSplineCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureSplineCols { - guid: __sdk::__query_builder::Col::new(table_name, "guid"), - start_micros: __sdk::__query_builder::Col::new(table_name, "start_micros"), - dur_ms: __sdk::__query_builder::Col::new(table_name, "dur_ms"), - sx: __sdk::__query_builder::Col::new(table_name, "sx"), - sy: __sdk::__query_builder::Col::new(table_name, "sy"), - sz: __sdk::__query_builder::Col::new(table_name, "sz"), - dx: __sdk::__query_builder::Col::new(table_name, "dx"), - dy: __sdk::__query_builder::Col::new(table_name, "dy"), - dz: __sdk::__query_builder::Col::new(table_name, "dz"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - grid_x: __sdk::__query_builder::Col::new(table_name, "grid_x"), - grid_y: __sdk::__query_builder::Col::new(table_name, "grid_y"), - spline_id: __sdk::__query_builder::Col::new(table_name, "spline_id"), - run: __sdk::__query_builder::Col::new(table_name, "run"), - cell: __sdk::__query_builder::Col::new(table_name, "cell"), - facing: __sdk::__query_builder::Col::new(table_name, "facing"), - facing_angle: __sdk::__query_builder::Col::new(table_name, "facing_angle"), - path: __sdk::__query_builder::Col::new(table_name, "path"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureSpline`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureSplineIxCols { - pub guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureSpline { - type IxCols = CreatureSplineIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureSplineIxCols { - guid: __sdk::__query_builder::IxCol::new(table_name, "guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureSpline {} diff --git a/gateway/src/stdb/bindings/creature_template_type.rs b/gateway/src/stdb/bindings/creature_template_type.rs deleted file mode 100644 index bf70ed994..000000000 --- a/gateway/src/stdb/bindings/creature_template_type.rs +++ /dev/null @@ -1,132 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureTemplate { - pub entry: u32, - pub name: String, - pub subname: String, - pub display_id: u32, - pub level: u32, - pub health: u32, - pub faction_template: u32, - pub npc_flags: u32, - pub unit_flags: u32, - pub creature_type: u8, - pub creature_family: u8, - pub type_flags: u32, - pub rank: u8, - pub scale: f32, - pub base_attack_time_ms: u32, - pub money_min: u32, - pub money_max: u32, - pub max_level: u32, - pub max_level_health: u32, - pub aggro_range: u32, - pub damage_min: u32, - pub damage_max: u32, - pub armor: u32, - pub pickpocket_loot_id: u32, - pub skin_loot_id: u32, - pub trainer_type: u8, - pub trainer_class: u8, -} - -impl __sdk::InModule for CreatureTemplate { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureTemplate`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureTemplateCols { - pub entry: __sdk::__query_builder::Col, - pub name: __sdk::__query_builder::Col, - pub subname: __sdk::__query_builder::Col, - pub display_id: __sdk::__query_builder::Col, - pub level: __sdk::__query_builder::Col, - pub health: __sdk::__query_builder::Col, - pub faction_template: __sdk::__query_builder::Col, - pub npc_flags: __sdk::__query_builder::Col, - pub unit_flags: __sdk::__query_builder::Col, - pub creature_type: __sdk::__query_builder::Col, - pub creature_family: __sdk::__query_builder::Col, - pub type_flags: __sdk::__query_builder::Col, - pub rank: __sdk::__query_builder::Col, - pub scale: __sdk::__query_builder::Col, - pub base_attack_time_ms: __sdk::__query_builder::Col, - pub money_min: __sdk::__query_builder::Col, - pub money_max: __sdk::__query_builder::Col, - pub max_level: __sdk::__query_builder::Col, - pub max_level_health: __sdk::__query_builder::Col, - pub aggro_range: __sdk::__query_builder::Col, - pub damage_min: __sdk::__query_builder::Col, - pub damage_max: __sdk::__query_builder::Col, - pub armor: __sdk::__query_builder::Col, - pub pickpocket_loot_id: __sdk::__query_builder::Col, - pub skin_loot_id: __sdk::__query_builder::Col, - pub trainer_type: __sdk::__query_builder::Col, - pub trainer_class: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureTemplate { - type Cols = CreatureTemplateCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureTemplateCols { - entry: __sdk::__query_builder::Col::new(table_name, "entry"), - name: __sdk::__query_builder::Col::new(table_name, "name"), - subname: __sdk::__query_builder::Col::new(table_name, "subname"), - display_id: __sdk::__query_builder::Col::new(table_name, "display_id"), - level: __sdk::__query_builder::Col::new(table_name, "level"), - health: __sdk::__query_builder::Col::new(table_name, "health"), - faction_template: __sdk::__query_builder::Col::new(table_name, "faction_template"), - npc_flags: __sdk::__query_builder::Col::new(table_name, "npc_flags"), - unit_flags: __sdk::__query_builder::Col::new(table_name, "unit_flags"), - creature_type: __sdk::__query_builder::Col::new(table_name, "creature_type"), - creature_family: __sdk::__query_builder::Col::new(table_name, "creature_family"), - type_flags: __sdk::__query_builder::Col::new(table_name, "type_flags"), - rank: __sdk::__query_builder::Col::new(table_name, "rank"), - scale: __sdk::__query_builder::Col::new(table_name, "scale"), - base_attack_time_ms: __sdk::__query_builder::Col::new( - table_name, - "base_attack_time_ms", - ), - money_min: __sdk::__query_builder::Col::new(table_name, "money_min"), - money_max: __sdk::__query_builder::Col::new(table_name, "money_max"), - max_level: __sdk::__query_builder::Col::new(table_name, "max_level"), - max_level_health: __sdk::__query_builder::Col::new(table_name, "max_level_health"), - aggro_range: __sdk::__query_builder::Col::new(table_name, "aggro_range"), - damage_min: __sdk::__query_builder::Col::new(table_name, "damage_min"), - damage_max: __sdk::__query_builder::Col::new(table_name, "damage_max"), - armor: __sdk::__query_builder::Col::new(table_name, "armor"), - pickpocket_loot_id: __sdk::__query_builder::Col::new(table_name, "pickpocket_loot_id"), - skin_loot_id: __sdk::__query_builder::Col::new(table_name, "skin_loot_id"), - trainer_type: __sdk::__query_builder::Col::new(table_name, "trainer_type"), - trainer_class: __sdk::__query_builder::Col::new(table_name, "trainer_class"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureTemplate`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureTemplateIxCols { - pub aggro_range: __sdk::__query_builder::IxCol, - pub entry: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureTemplate { - type IxCols = CreatureTemplateIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureTemplateIxCols { - aggro_range: __sdk::__query_builder::IxCol::new(table_name, "aggro_range"), - entry: __sdk::__query_builder::IxCol::new(table_name, "entry"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureTemplate {} diff --git a/gateway/src/stdb/bindings/creature_waypoint_type.rs b/gateway/src/stdb/bindings/creature_waypoint_type.rs deleted file mode 100644 index 5c113d887..000000000 --- a/gateway/src/stdb/bindings/creature_waypoint_type.rs +++ /dev/null @@ -1,63 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreatureWaypoint { - pub id: u64, - pub creature_guid: u64, - pub x: f32, - pub y: f32, - pub z: f32, -} - -impl __sdk::InModule for CreatureWaypoint { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `CreatureWaypoint`. -/// -/// Provides typed access to columns for query building. -pub struct CreatureWaypointCols { - pub id: __sdk::__query_builder::Col, - pub creature_guid: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for CreatureWaypoint { - type Cols = CreatureWaypointCols; - fn cols(table_name: &'static str) -> Self::Cols { - CreatureWaypointCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - } - } -} - -/// Indexed column accessor struct for the table `CreatureWaypoint`. -/// -/// Provides typed access to indexed columns for query building. -pub struct CreatureWaypointIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for CreatureWaypoint { - type IxCols = CreatureWaypointIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - CreatureWaypointIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for CreatureWaypoint {} diff --git a/gateway/src/stdb/bindings/death_condition_type.rs b/gateway/src/stdb/bindings/death_condition_type.rs deleted file mode 100644 index c9ab82b02..000000000 --- a/gateway/src/stdb/bindings/death_condition_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::event_predicate_type::EventPredicate; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct DeathCondition { - pub predicate: EventPredicate, -} - -impl __sdk::InModule for DeathCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/debug_accelerate_session_reaper_reducer.rs b/gateway/src/stdb/bindings/debug_accelerate_session_reaper_reducer.rs deleted file mode 100644 index d507f832a..000000000 --- a/gateway/src/stdb/bindings/debug_accelerate_session_reaper_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAccelerateSessionReaperArgs {} - -impl From for super::Reducer { - fn from(args: DebugAccelerateSessionReaperArgs) -> Self { - Self::DebugAccelerateSessionReaper - } -} - -impl __sdk::InModule for DebugAccelerateSessionReaperArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_accelerate_session_reaper`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_accelerate_session_reaper { - /// Request that the remote module invoke the reducer `debug_accelerate_session_reaper` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_accelerate_session_reaper:debug_accelerate_session_reaper_then`] to run a callback after the reducer completes. - fn debug_accelerate_session_reaper(&self) -> __sdk::Result<()> { - self.debug_accelerate_session_reaper_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_accelerate_session_reaper` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_accelerate_session_reaper_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_accelerate_session_reaper for super::RemoteReducers { - fn debug_accelerate_session_reaper_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugAccelerateSessionReaperArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_accept_quest_reducer.rs b/gateway/src/stdb/bindings/debug_accept_quest_reducer.rs deleted file mode 100644 index be9a7ac5c..000000000 --- a/gateway/src/stdb/bindings/debug_accept_quest_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAcceptQuestArgs { - pub character_guid: u64, - pub giver_guid: u64, - pub quest_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugAcceptQuestArgs) -> Self { - Self::DebugAcceptQuest { - character_guid: args.character_guid, - giver_guid: args.giver_guid, - quest_entry: args.quest_entry, - } - } -} - -impl __sdk::InModule for DebugAcceptQuestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_accept_quest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_accept_quest { - /// Request that the remote module invoke the reducer `debug_accept_quest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_accept_quest:debug_accept_quest_then`] to run a callback after the reducer completes. - fn debug_accept_quest( - &self, - character_guid: u64, - giver_guid: u64, - quest_entry: u32, - ) -> __sdk::Result<()> { - self.debug_accept_quest_then(character_guid, giver_guid, quest_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_accept_quest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_accept_quest_then( - &self, - character_guid: u64, - giver_guid: u64, - quest_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_accept_quest for super::RemoteReducers { - fn debug_accept_quest_then( - &self, - character_guid: u64, - giver_guid: u64, - quest_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugAcceptQuestArgs { - character_guid, - giver_guid, - quest_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_add_threat_reducer.rs b/gateway/src/stdb/bindings/debug_add_threat_reducer.rs deleted file mode 100644 index 84fd5ba6a..000000000 --- a/gateway/src/stdb/bindings/debug_add_threat_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAddThreatArgs { - pub creature_guid: u64, - pub source_guid: u64, - pub amount: i64, -} - -impl From for super::Reducer { - fn from(args: DebugAddThreatArgs) -> Self { - Self::DebugAddThreat { - creature_guid: args.creature_guid, - source_guid: args.source_guid, - amount: args.amount, - } - } -} - -impl __sdk::InModule for DebugAddThreatArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_add_threat`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_add_threat { - /// Request that the remote module invoke the reducer `debug_add_threat` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_add_threat:debug_add_threat_then`] to run a callback after the reducer completes. - fn debug_add_threat( - &self, - creature_guid: u64, - source_guid: u64, - amount: i64, - ) -> __sdk::Result<()> { - self.debug_add_threat_then(creature_guid, source_guid, amount, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_add_threat` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_add_threat_then( - &self, - creature_guid: u64, - source_guid: u64, - amount: i64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_add_threat for super::RemoteReducers { - fn debug_add_threat_then( - &self, - creature_guid: u64, - source_guid: u64, - amount: i64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugAddThreatArgs { - creature_guid, - source_guid, - amount, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_admit_sessionless_action_reducer.rs b/gateway/src/stdb/bindings/debug_admit_sessionless_action_reducer.rs deleted file mode 100644 index 32c233619..000000000 --- a/gateway/src/stdb/bindings/debug_admit_sessionless_action_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAdmitSessionlessActionArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugAdmitSessionlessActionArgs) -> Self { - Self::DebugAdmitSessionlessAction { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugAdmitSessionlessActionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_admit_sessionless_action`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_admit_sessionless_action { - /// Request that the remote module invoke the reducer `debug_admit_sessionless_action` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_admit_sessionless_action:debug_admit_sessionless_action_then`] to run a callback after the reducer completes. - fn debug_admit_sessionless_action(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_admit_sessionless_action_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_admit_sessionless_action` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_admit_sessionless_action_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_admit_sessionless_action for super::RemoteReducers { - fn debug_admit_sessionless_action_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugAdmitSessionlessActionArgs { character_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_age_mail_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_age_mail_fixture_reducer.rs deleted file mode 100644 index 5e593db2e..000000000 --- a/gateway/src/stdb/bindings/debug_age_mail_fixture_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAgeMailFixtureArgs { - pub recipient_guid: u64, - pub subject: String, - pub age_secs: u64, -} - -impl From for super::Reducer { - fn from(args: DebugAgeMailFixtureArgs) -> Self { - Self::DebugAgeMailFixture { - recipient_guid: args.recipient_guid, - subject: args.subject, - age_secs: args.age_secs, - } - } -} - -impl __sdk::InModule for DebugAgeMailFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_age_mail_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_age_mail_fixture { - /// Request that the remote module invoke the reducer `debug_age_mail_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_age_mail_fixture:debug_age_mail_fixture_then`] to run a callback after the reducer completes. - fn debug_age_mail_fixture( - &self, - recipient_guid: u64, - subject: String, - age_secs: u64, - ) -> __sdk::Result<()> { - self.debug_age_mail_fixture_then(recipient_guid, subject, age_secs, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_age_mail_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_age_mail_fixture_then( - &self, - recipient_guid: u64, - subject: String, - age_secs: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_age_mail_fixture for super::RemoteReducers { - fn debug_age_mail_fixture_then( - &self, - recipient_guid: u64, - subject: String, - age_secs: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugAgeMailFixtureArgs { - recipient_guid, - subject, - age_secs, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_apply_damage_reducer.rs b/gateway/src/stdb/bindings/debug_apply_damage_reducer.rs deleted file mode 100644 index c226728a6..000000000 --- a/gateway/src/stdb/bindings/debug_apply_damage_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugApplyDamageArgs { - pub target_guid: u64, - pub amount: u32, - pub attacker_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugApplyDamageArgs) -> Self { - Self::DebugApplyDamage { - target_guid: args.target_guid, - amount: args.amount, - attacker_guid: args.attacker_guid, - } - } -} - -impl __sdk::InModule for DebugApplyDamageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_apply_damage`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_apply_damage { - /// Request that the remote module invoke the reducer `debug_apply_damage` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_apply_damage:debug_apply_damage_then`] to run a callback after the reducer completes. - fn debug_apply_damage( - &self, - target_guid: u64, - amount: u32, - attacker_guid: u64, - ) -> __sdk::Result<()> { - self.debug_apply_damage_then(target_guid, amount, attacker_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_apply_damage` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_apply_damage_then( - &self, - target_guid: u64, - amount: u32, - attacker_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_apply_damage for super::RemoteReducers { - fn debug_apply_damage_then( - &self, - target_guid: u64, - amount: u32, - attacker_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugApplyDamageArgs { - target_guid, - amount, - attacker_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_apply_lethal_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_apply_lethal_damage_floor_fixture_reducer.rs deleted file mode 100644 index 1fb107b40..000000000 --- a/gateway/src/stdb/bindings/debug_apply_lethal_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,92 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugApplyLethalDamageFloorFixtureArgs { - pub attacker_guid: u64, - pub target_guid: u64, - pub rolled: u32, -} - -impl From for super::Reducer { - fn from(args: DebugApplyLethalDamageFloorFixtureArgs) -> Self { - Self::DebugApplyLethalDamageFloorFixture { - attacker_guid: args.attacker_guid, - target_guid: args.target_guid, - rolled: args.rolled, - } - } -} - -impl __sdk::InModule for DebugApplyLethalDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_apply_lethal_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_apply_lethal_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_apply_lethal_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_apply_lethal_damage_floor_fixture:debug_apply_lethal_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_apply_lethal_damage_floor_fixture( - &self, - attacker_guid: u64, - target_guid: u64, - rolled: u32, - ) -> __sdk::Result<()> { - self.debug_apply_lethal_damage_floor_fixture_then( - attacker_guid, - target_guid, - rolled, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_apply_lethal_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_apply_lethal_damage_floor_fixture_then( - &self, - attacker_guid: u64, - target_guid: u64, - rolled: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_apply_lethal_damage_floor_fixture for super::RemoteReducers { - fn debug_apply_lethal_damage_floor_fixture_then( - &self, - attacker_guid: u64, - target_guid: u64, - rolled: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugApplyLethalDamageFloorFixtureArgs { - attacker_guid, - target_guid, - rolled, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_arm_instance_tick_reducer.rs b/gateway/src/stdb/bindings/debug_arm_instance_tick_reducer.rs deleted file mode 100644 index faea8295d..000000000 --- a/gateway/src/stdb/bindings/debug_arm_instance_tick_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugArmInstanceTickArgs { - pub instance_id: u64, - pub tick_ms: u64, -} - -impl From for super::Reducer { - fn from(args: DebugArmInstanceTickArgs) -> Self { - Self::DebugArmInstanceTick { - instance_id: args.instance_id, - tick_ms: args.tick_ms, - } - } -} - -impl __sdk::InModule for DebugArmInstanceTickArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_arm_instance_tick`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_arm_instance_tick { - /// Request that the remote module invoke the reducer `debug_arm_instance_tick` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_arm_instance_tick:debug_arm_instance_tick_then`] to run a callback after the reducer completes. - fn debug_arm_instance_tick(&self, instance_id: u64, tick_ms: u64) -> __sdk::Result<()> { - self.debug_arm_instance_tick_then(instance_id, tick_ms, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_arm_instance_tick` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_arm_instance_tick_then( - &self, - instance_id: u64, - tick_ms: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_arm_instance_tick for super::RemoteReducers { - fn debug_arm_instance_tick_then( - &self, - instance_id: u64, - tick_ms: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugArmInstanceTickArgs { - instance_id, - tick_ms, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_assert_blink_clamp_reducer.rs b/gateway/src/stdb/bindings/debug_assert_blink_clamp_reducer.rs deleted file mode 100644 index f460c4907..000000000 --- a/gateway/src/stdb/bindings/debug_assert_blink_clamp_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAssertBlinkClampArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugAssertBlinkClampArgs) -> Self { - Self::DebugAssertBlinkClamp { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugAssertBlinkClampArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_assert_blink_clamp`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_assert_blink_clamp { - /// Request that the remote module invoke the reducer `debug_assert_blink_clamp` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_assert_blink_clamp:debug_assert_blink_clamp_then`] to run a callback after the reducer completes. - fn debug_assert_blink_clamp(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_assert_blink_clamp_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_assert_blink_clamp` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_assert_blink_clamp_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_assert_blink_clamp for super::RemoteReducers { - fn debug_assert_blink_clamp_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugAssertBlinkClampArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_assert_chase_stops_at_column_reducer.rs b/gateway/src/stdb/bindings/debug_assert_chase_stops_at_column_reducer.rs deleted file mode 100644 index 5a3fdf6bb..000000000 --- a/gateway/src/stdb/bindings/debug_assert_chase_stops_at_column_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAssertChaseStopsAtColumnArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugAssertChaseStopsAtColumnArgs) -> Self { - Self::DebugAssertChaseStopsAtColumn { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugAssertChaseStopsAtColumnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_assert_chase_stops_at_column`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_assert_chase_stops_at_column { - /// Request that the remote module invoke the reducer `debug_assert_chase_stops_at_column` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_assert_chase_stops_at_column:debug_assert_chase_stops_at_column_then`] to run a callback after the reducer completes. - fn debug_assert_chase_stops_at_column(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_assert_chase_stops_at_column_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_assert_chase_stops_at_column` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_assert_chase_stops_at_column_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_assert_chase_stops_at_column for super::RemoteReducers { - fn debug_assert_chase_stops_at_column_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugAssertChaseStopsAtColumnArgs { character_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_assert_floor_snap_reducer.rs b/gateway/src/stdb/bindings/debug_assert_floor_snap_reducer.rs deleted file mode 100644 index 40ae9e201..000000000 --- a/gateway/src/stdb/bindings/debug_assert_floor_snap_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAssertFloorSnapArgs { - pub map_id: u32, - pub creature_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugAssertFloorSnapArgs) -> Self { - Self::DebugAssertFloorSnap { - map_id: args.map_id, - creature_entry: args.creature_entry, - } - } -} - -impl __sdk::InModule for DebugAssertFloorSnapArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_assert_floor_snap`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_assert_floor_snap { - /// Request that the remote module invoke the reducer `debug_assert_floor_snap` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_assert_floor_snap:debug_assert_floor_snap_then`] to run a callback after the reducer completes. - fn debug_assert_floor_snap(&self, map_id: u32, creature_entry: u32) -> __sdk::Result<()> { - self.debug_assert_floor_snap_then(map_id, creature_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_assert_floor_snap` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_assert_floor_snap_then( - &self, - map_id: u32, - creature_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_assert_floor_snap for super::RemoteReducers { - fn debug_assert_floor_snap_then( - &self, - map_id: u32, - creature_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugAssertFloorSnapArgs { - map_id, - creature_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_assert_go_collision_reducer.rs b/gateway/src/stdb/bindings/debug_assert_go_collision_reducer.rs deleted file mode 100644 index 9d6d1ae49..000000000 --- a/gateway/src/stdb/bindings/debug_assert_go_collision_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAssertGoCollisionArgs {} - -impl From for super::Reducer { - fn from(args: DebugAssertGoCollisionArgs) -> Self { - Self::DebugAssertGoCollision - } -} - -impl __sdk::InModule for DebugAssertGoCollisionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_assert_go_collision`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_assert_go_collision { - /// Request that the remote module invoke the reducer `debug_assert_go_collision` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_assert_go_collision:debug_assert_go_collision_then`] to run a callback after the reducer completes. - fn debug_assert_go_collision(&self) -> __sdk::Result<()> { - self.debug_assert_go_collision_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_assert_go_collision` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_assert_go_collision_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_assert_go_collision for super::RemoteReducers { - fn debug_assert_go_collision_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugAssertGoCollisionArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_assert_unreachable_goal_stops_at_wall_reducer.rs b/gateway/src/stdb/bindings/debug_assert_unreachable_goal_stops_at_wall_reducer.rs deleted file mode 100644 index 4268f0a7b..000000000 --- a/gateway/src/stdb/bindings/debug_assert_unreachable_goal_stops_at_wall_reducer.rs +++ /dev/null @@ -1,73 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAssertUnreachableGoalStopsAtWallArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugAssertUnreachableGoalStopsAtWallArgs) -> Self { - Self::DebugAssertUnreachableGoalStopsAtWall { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugAssertUnreachableGoalStopsAtWallArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_assert_unreachable_goal_stops_at_wall`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_assert_unreachable_goal_stops_at_wall { - /// Request that the remote module invoke the reducer `debug_assert_unreachable_goal_stops_at_wall` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_assert_unreachable_goal_stops_at_wall:debug_assert_unreachable_goal_stops_at_wall_then`] to run a callback after the reducer completes. - fn debug_assert_unreachable_goal_stops_at_wall( - &self, - character_guid: u64, - ) -> __sdk::Result<()> { - self.debug_assert_unreachable_goal_stops_at_wall_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_assert_unreachable_goal_stops_at_wall` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_assert_unreachable_goal_stops_at_wall_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_assert_unreachable_goal_stops_at_wall for super::RemoteReducers { - fn debug_assert_unreachable_goal_stops_at_wall_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugAssertUnreachableGoalStopsAtWallArgs { character_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_audit_class_kits_reducer.rs b/gateway/src/stdb/bindings/debug_audit_class_kits_reducer.rs deleted file mode 100644 index 9dee88906..000000000 --- a/gateway/src/stdb/bindings/debug_audit_class_kits_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAuditClassKitsArgs {} - -impl From for super::Reducer { - fn from(args: DebugAuditClassKitsArgs) -> Self { - Self::DebugAuditClassKits - } -} - -impl __sdk::InModule for DebugAuditClassKitsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_audit_class_kits`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_audit_class_kits { - /// Request that the remote module invoke the reducer `debug_audit_class_kits` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_audit_class_kits:debug_audit_class_kits_then`] to run a callback after the reducer completes. - fn debug_audit_class_kits(&self) -> __sdk::Result<()> { - self.debug_audit_class_kits_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_audit_class_kits` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_audit_class_kits_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_audit_class_kits for super::RemoteReducers { - fn debug_audit_class_kits_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugAuditClassKitsArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_audit_quest_chains_reducer.rs b/gateway/src/stdb/bindings/debug_audit_quest_chains_reducer.rs deleted file mode 100644 index d7eeb1397..000000000 --- a/gateway/src/stdb/bindings/debug_audit_quest_chains_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAuditQuestChainsArgs {} - -impl From for super::Reducer { - fn from(args: DebugAuditQuestChainsArgs) -> Self { - Self::DebugAuditQuestChains - } -} - -impl __sdk::InModule for DebugAuditQuestChainsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_audit_quest_chains`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_audit_quest_chains { - /// Request that the remote module invoke the reducer `debug_audit_quest_chains` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_audit_quest_chains:debug_audit_quest_chains_then`] to run a callback after the reducer completes. - fn debug_audit_quest_chains(&self) -> __sdk::Result<()> { - self.debug_audit_quest_chains_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_audit_quest_chains` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_audit_quest_chains_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_audit_quest_chains for super::RemoteReducers { - fn debug_audit_quest_chains_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugAuditQuestChainsArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_auto_bank_item_reducer.rs b/gateway/src/stdb/bindings/debug_auto_bank_item_reducer.rs deleted file mode 100644 index 6a42060a3..000000000 --- a/gateway/src/stdb/bindings/debug_auto_bank_item_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugAutoBankItemArgs { - pub character_guid: u64, - pub slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugAutoBankItemArgs) -> Self { - Self::DebugAutoBankItem { - character_guid: args.character_guid, - slot: args.slot, - } - } -} - -impl __sdk::InModule for DebugAutoBankItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_auto_bank_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_auto_bank_item { - /// Request that the remote module invoke the reducer `debug_auto_bank_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_auto_bank_item:debug_auto_bank_item_then`] to run a callback after the reducer completes. - fn debug_auto_bank_item(&self, character_guid: u64, slot: u8) -> __sdk::Result<()> { - self.debug_auto_bank_item_then(character_guid, slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_auto_bank_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_auto_bank_item_then( - &self, - character_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_auto_bank_item for super::RemoteReducers { - fn debug_auto_bank_item_then( - &self, - character_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugAutoBankItemArgs { - character_guid, - slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_backdate_meeting_stone_party_reducer.rs b/gateway/src/stdb/bindings/debug_backdate_meeting_stone_party_reducer.rs deleted file mode 100644 index f66f2fa09..000000000 --- a/gateway/src/stdb/bindings/debug_backdate_meeting_stone_party_reducer.rs +++ /dev/null @@ -1,74 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBackdateMeetingStonePartyArgs { - pub group_id: u64, - pub secs: u32, -} - -impl From for super::Reducer { - fn from(args: DebugBackdateMeetingStonePartyArgs) -> Self { - Self::DebugBackdateMeetingStoneParty { - group_id: args.group_id, - secs: args.secs, - } - } -} - -impl __sdk::InModule for DebugBackdateMeetingStonePartyArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_backdate_meeting_stone_party`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_backdate_meeting_stone_party { - /// Request that the remote module invoke the reducer `debug_backdate_meeting_stone_party` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_backdate_meeting_stone_party:debug_backdate_meeting_stone_party_then`] to run a callback after the reducer completes. - fn debug_backdate_meeting_stone_party(&self, group_id: u64, secs: u32) -> __sdk::Result<()> { - self.debug_backdate_meeting_stone_party_then(group_id, secs, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_backdate_meeting_stone_party` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_backdate_meeting_stone_party_then( - &self, - group_id: u64, - secs: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_backdate_meeting_stone_party for super::RemoteReducers { - fn debug_backdate_meeting_stone_party_then( - &self, - group_id: u64, - secs: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBackdateMeetingStonePartyArgs { group_id, secs }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_backdate_meeting_stone_seeker_reducer.rs b/gateway/src/stdb/bindings/debug_backdate_meeting_stone_seeker_reducer.rs deleted file mode 100644 index 63de38ab8..000000000 --- a/gateway/src/stdb/bindings/debug_backdate_meeting_stone_seeker_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBackdateMeetingStoneSeekerArgs { - pub character_guid: u64, - pub secs: u32, -} - -impl From for super::Reducer { - fn from(args: DebugBackdateMeetingStoneSeekerArgs) -> Self { - Self::DebugBackdateMeetingStoneSeeker { - character_guid: args.character_guid, - secs: args.secs, - } - } -} - -impl __sdk::InModule for DebugBackdateMeetingStoneSeekerArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_backdate_meeting_stone_seeker`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_backdate_meeting_stone_seeker { - /// Request that the remote module invoke the reducer `debug_backdate_meeting_stone_seeker` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_backdate_meeting_stone_seeker:debug_backdate_meeting_stone_seeker_then`] to run a callback after the reducer completes. - fn debug_backdate_meeting_stone_seeker( - &self, - character_guid: u64, - secs: u32, - ) -> __sdk::Result<()> { - self.debug_backdate_meeting_stone_seeker_then(character_guid, secs, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_backdate_meeting_stone_seeker` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_backdate_meeting_stone_seeker_then( - &self, - character_guid: u64, - secs: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_backdate_meeting_stone_seeker for super::RemoteReducers { - fn debug_backdate_meeting_stone_seeker_then( - &self, - character_guid: u64, - secs: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBackdateMeetingStoneSeekerArgs { - character_guid, - secs, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_backfill_cell_ids_reducer.rs b/gateway/src/stdb/bindings/debug_backfill_cell_ids_reducer.rs deleted file mode 100644 index 86d3383fa..000000000 --- a/gateway/src/stdb/bindings/debug_backfill_cell_ids_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBackfillCellIdsArgs {} - -impl From for super::Reducer { - fn from(args: DebugBackfillCellIdsArgs) -> Self { - Self::DebugBackfillCellIds - } -} - -impl __sdk::InModule for DebugBackfillCellIdsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_backfill_cell_ids`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_backfill_cell_ids { - /// Request that the remote module invoke the reducer `debug_backfill_cell_ids` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_backfill_cell_ids:debug_backfill_cell_ids_then`] to run a callback after the reducer completes. - fn debug_backfill_cell_ids(&self) -> __sdk::Result<()> { - self.debug_backfill_cell_ids_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_backfill_cell_ids` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_backfill_cell_ids_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_backfill_cell_ids for super::RemoteReducers { - fn debug_backfill_cell_ids_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugBackfillCellIdsArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_backfill_go_grid_reducer.rs b/gateway/src/stdb/bindings/debug_backfill_go_grid_reducer.rs deleted file mode 100644 index 4f259c587..000000000 --- a/gateway/src/stdb/bindings/debug_backfill_go_grid_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBackfillGoGridArgs {} - -impl From for super::Reducer { - fn from(args: DebugBackfillGoGridArgs) -> Self { - Self::DebugBackfillGoGrid - } -} - -impl __sdk::InModule for DebugBackfillGoGridArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_backfill_go_grid`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_backfill_go_grid { - /// Request that the remote module invoke the reducer `debug_backfill_go_grid` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_backfill_go_grid:debug_backfill_go_grid_then`] to run a callback after the reducer completes. - fn debug_backfill_go_grid(&self) -> __sdk::Result<()> { - self.debug_backfill_go_grid_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_backfill_go_grid` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_backfill_go_grid_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_backfill_go_grid for super::RemoteReducers { - fn debug_backfill_go_grid_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugBackfillGoGridArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_begin_cast_reducer.rs b/gateway/src/stdb/bindings/debug_begin_cast_reducer.rs deleted file mode 100644 index ad545962d..000000000 --- a/gateway/src/stdb/bindings/debug_begin_cast_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBeginCastArgs { - pub caster_guid: u64, - pub spell_id: u32, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugBeginCastArgs) -> Self { - Self::DebugBeginCast { - caster_guid: args.caster_guid, - spell_id: args.spell_id, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugBeginCastArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_begin_cast`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_begin_cast { - /// Request that the remote module invoke the reducer `debug_begin_cast` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_begin_cast:debug_begin_cast_then`] to run a callback after the reducer completes. - fn debug_begin_cast( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - ) -> __sdk::Result<()> { - self.debug_begin_cast_then(caster_guid, spell_id, target_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_begin_cast` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_begin_cast_then( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_begin_cast for super::RemoteReducers { - fn debug_begin_cast_then( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBeginCastArgs { - caster_guid, - spell_id, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_bench_collision_gate_reducer.rs b/gateway/src/stdb/bindings/debug_bench_collision_gate_reducer.rs deleted file mode 100644 index f527042db..000000000 --- a/gateway/src/stdb/bindings/debug_bench_collision_gate_reducer.rs +++ /dev/null @@ -1,120 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBenchCollisionGateArgs { - pub map: u32, - pub min_x: f32, - pub min_y: f32, - pub max_x: f32, - pub max_y: f32, - pub directions: u32, - pub radius: f32, -} - -impl From for super::Reducer { - fn from(args: DebugBenchCollisionGateArgs) -> Self { - Self::DebugBenchCollisionGate { - map: args.map, - min_x: args.min_x, - min_y: args.min_y, - max_x: args.max_x, - max_y: args.max_y, - directions: args.directions, - radius: args.radius, - } - } -} - -impl __sdk::InModule for DebugBenchCollisionGateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_bench_collision_gate`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_bench_collision_gate { - /// Request that the remote module invoke the reducer `debug_bench_collision_gate` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_bench_collision_gate:debug_bench_collision_gate_then`] to run a callback after the reducer completes. - fn debug_bench_collision_gate( - &self, - map: u32, - min_x: f32, - min_y: f32, - max_x: f32, - max_y: f32, - directions: u32, - radius: f32, - ) -> __sdk::Result<()> { - self.debug_bench_collision_gate_then( - map, - min_x, - min_y, - max_x, - max_y, - directions, - radius, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_bench_collision_gate` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_bench_collision_gate_then( - &self, - map: u32, - min_x: f32, - min_y: f32, - max_x: f32, - max_y: f32, - directions: u32, - radius: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_bench_collision_gate for super::RemoteReducers { - fn debug_bench_collision_gate_then( - &self, - map: u32, - min_x: f32, - min_y: f32, - max_x: f32, - max_y: f32, - directions: u32, - radius: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBenchCollisionGateArgs { - map, - min_x, - min_y, - max_x, - max_y, - directions, - radius, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_bench_los_reducer.rs b/gateway/src/stdb/bindings/debug_bench_los_reducer.rs deleted file mode 100644 index 5831af984..000000000 --- a/gateway/src/stdb/bindings/debug_bench_los_reducer.rs +++ /dev/null @@ -1,127 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBenchLosArgs { - pub map: u32, - pub min_x: f32, - pub min_y: f32, - pub max_x: f32, - pub max_y: f32, - pub directions: u32, - pub radius: f32, - pub exact: bool, -} - -impl From for super::Reducer { - fn from(args: DebugBenchLosArgs) -> Self { - Self::DebugBenchLos { - map: args.map, - min_x: args.min_x, - min_y: args.min_y, - max_x: args.max_x, - max_y: args.max_y, - directions: args.directions, - radius: args.radius, - exact: args.exact, - } - } -} - -impl __sdk::InModule for DebugBenchLosArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_bench_los`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_bench_los { - /// Request that the remote module invoke the reducer `debug_bench_los` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_bench_los:debug_bench_los_then`] to run a callback after the reducer completes. - fn debug_bench_los( - &self, - map: u32, - min_x: f32, - min_y: f32, - max_x: f32, - max_y: f32, - directions: u32, - radius: f32, - exact: bool, - ) -> __sdk::Result<()> { - self.debug_bench_los_then( - map, - min_x, - min_y, - max_x, - max_y, - directions, - radius, - exact, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_bench_los` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_bench_los_then( - &self, - map: u32, - min_x: f32, - min_y: f32, - max_x: f32, - max_y: f32, - directions: u32, - radius: f32, - exact: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_bench_los for super::RemoteReducers { - fn debug_bench_los_then( - &self, - map: u32, - min_x: f32, - min_y: f32, - max_x: f32, - max_y: f32, - directions: u32, - radius: f32, - exact: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBenchLosArgs { - map, - min_x, - min_y, - max_x, - max_y, - directions, - radius, - exact, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_bind_home_reducer.rs b/gateway/src/stdb/bindings/debug_bind_home_reducer.rs deleted file mode 100644 index 472d78e73..000000000 --- a/gateway/src/stdb/bindings/debug_bind_home_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBindHomeArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugBindHomeArgs) -> Self { - Self::DebugBindHome { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugBindHomeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_bind_home`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_bind_home { - /// Request that the remote module invoke the reducer `debug_bind_home` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_bind_home:debug_bind_home_then`] to run a callback after the reducer completes. - fn debug_bind_home(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_bind_home_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_bind_home` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_bind_home_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_bind_home for super::RemoteReducers { - fn debug_bind_home_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugBindHomeArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_bot_transfer_reducer.rs b/gateway/src/stdb/bindings/debug_bot_transfer_reducer.rs deleted file mode 100644 index afc5722fb..000000000 --- a/gateway/src/stdb/bindings/debug_bot_transfer_reducer.rs +++ /dev/null @@ -1,127 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBotTransferArgs { - pub character_guid: u64, - pub map_id: u32, - pub instance_id: u64, - pub x: f32, - pub y: f32, - pub z: f32, - pub o: f32, - pub reason: String, -} - -impl From for super::Reducer { - fn from(args: DebugBotTransferArgs) -> Self { - Self::DebugBotTransfer { - character_guid: args.character_guid, - map_id: args.map_id, - instance_id: args.instance_id, - x: args.x, - y: args.y, - z: args.z, - o: args.o, - reason: args.reason, - } - } -} - -impl __sdk::InModule for DebugBotTransferArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_bot_transfer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_bot_transfer { - /// Request that the remote module invoke the reducer `debug_bot_transfer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_bot_transfer:debug_bot_transfer_then`] to run a callback after the reducer completes. - fn debug_bot_transfer( - &self, - character_guid: u64, - map_id: u32, - instance_id: u64, - x: f32, - y: f32, - z: f32, - o: f32, - reason: String, - ) -> __sdk::Result<()> { - self.debug_bot_transfer_then( - character_guid, - map_id, - instance_id, - x, - y, - z, - o, - reason, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_bot_transfer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_bot_transfer_then( - &self, - character_guid: u64, - map_id: u32, - instance_id: u64, - x: f32, - y: f32, - z: f32, - o: f32, - reason: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_bot_transfer for super::RemoteReducers { - fn debug_bot_transfer_then( - &self, - character_guid: u64, - map_id: u32, - instance_id: u64, - x: f32, - y: f32, - z: f32, - o: f32, - reason: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBotTransferArgs { - character_guid, - map_id, - instance_id, - x, - y, - z, - o, - reason, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_buy_bank_slot_reducer.rs b/gateway/src/stdb/bindings/debug_buy_bank_slot_reducer.rs deleted file mode 100644 index addb9c8ca..000000000 --- a/gateway/src/stdb/bindings/debug_buy_bank_slot_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBuyBankSlotArgs { - pub character_guid: u64, - pub banker_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugBuyBankSlotArgs) -> Self { - Self::DebugBuyBankSlot { - character_guid: args.character_guid, - banker_guid: args.banker_guid, - } - } -} - -impl __sdk::InModule for DebugBuyBankSlotArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_buy_bank_slot`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_buy_bank_slot { - /// Request that the remote module invoke the reducer `debug_buy_bank_slot` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_buy_bank_slot:debug_buy_bank_slot_then`] to run a callback after the reducer completes. - fn debug_buy_bank_slot(&self, character_guid: u64, banker_guid: u64) -> __sdk::Result<()> { - self.debug_buy_bank_slot_then(character_guid, banker_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_buy_bank_slot` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_buy_bank_slot_then( - &self, - character_guid: u64, - banker_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_buy_bank_slot for super::RemoteReducers { - fn debug_buy_bank_slot_then( - &self, - character_guid: u64, - banker_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBuyBankSlotArgs { - character_guid, - banker_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_buy_item_reducer.rs b/gateway/src/stdb/bindings/debug_buy_item_reducer.rs deleted file mode 100644 index 195660682..000000000 --- a/gateway/src/stdb/bindings/debug_buy_item_reducer.rs +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBuyItemArgs { - pub character_guid: u64, - pub vendor_guid: u64, - pub item_entry: u32, - pub count: u32, -} - -impl From for super::Reducer { - fn from(args: DebugBuyItemArgs) -> Self { - Self::DebugBuyItem { - character_guid: args.character_guid, - vendor_guid: args.vendor_guid, - item_entry: args.item_entry, - count: args.count, - } - } -} - -impl __sdk::InModule for DebugBuyItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_buy_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_buy_item { - /// Request that the remote module invoke the reducer `debug_buy_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_buy_item:debug_buy_item_then`] to run a callback after the reducer completes. - fn debug_buy_item( - &self, - character_guid: u64, - vendor_guid: u64, - item_entry: u32, - count: u32, - ) -> __sdk::Result<()> { - self.debug_buy_item_then(character_guid, vendor_guid, item_entry, count, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_buy_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_buy_item_then( - &self, - character_guid: u64, - vendor_guid: u64, - item_entry: u32, - count: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_buy_item for super::RemoteReducers { - fn debug_buy_item_then( - &self, - character_guid: u64, - vendor_guid: u64, - item_entry: u32, - count: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBuyItemArgs { - character_guid, - vendor_guid, - item_entry, - count, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_buy_trainer_spell_reducer.rs b/gateway/src/stdb/bindings/debug_buy_trainer_spell_reducer.rs deleted file mode 100644 index 8462f9105..000000000 --- a/gateway/src/stdb/bindings/debug_buy_trainer_spell_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugBuyTrainerSpellArgs { - pub character_guid: u64, - pub trainer_entry: u32, - pub spell_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugBuyTrainerSpellArgs) -> Self { - Self::DebugBuyTrainerSpell { - character_guid: args.character_guid, - trainer_entry: args.trainer_entry, - spell_id: args.spell_id, - } - } -} - -impl __sdk::InModule for DebugBuyTrainerSpellArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_buy_trainer_spell`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_buy_trainer_spell { - /// Request that the remote module invoke the reducer `debug_buy_trainer_spell` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_buy_trainer_spell:debug_buy_trainer_spell_then`] to run a callback after the reducer completes. - fn debug_buy_trainer_spell( - &self, - character_guid: u64, - trainer_entry: u32, - spell_id: u32, - ) -> __sdk::Result<()> { - self.debug_buy_trainer_spell_then(character_guid, trainer_entry, spell_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_buy_trainer_spell` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_buy_trainer_spell_then( - &self, - character_guid: u64, - trainer_entry: u32, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_buy_trainer_spell for super::RemoteReducers { - fn debug_buy_trainer_spell_then( - &self, - character_guid: u64, - trainer_entry: u32, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugBuyTrainerSpellArgs { - character_guid, - trainer_entry, - spell_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_cast_at_reducer.rs b/gateway/src/stdb/bindings/debug_cast_at_reducer.rs deleted file mode 100644 index 8073ae84f..000000000 --- a/gateway/src/stdb/bindings/debug_cast_at_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCastAtArgs { - pub caster_guid: u64, - pub spell_id: u32, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugCastAtArgs) -> Self { - Self::DebugCastAt { - caster_guid: args.caster_guid, - spell_id: args.spell_id, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugCastAtArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_cast_at`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_cast_at { - /// Request that the remote module invoke the reducer `debug_cast_at` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_cast_at:debug_cast_at_then`] to run a callback after the reducer completes. - fn debug_cast_at( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - ) -> __sdk::Result<()> { - self.debug_cast_at_then(caster_guid, spell_id, target_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_cast_at` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_cast_at_then( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_cast_at for super::RemoteReducers { - fn debug_cast_at_then( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugCastAtArgs { - caster_guid, - spell_id, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_cast_spell_at_reducer.rs b/gateway/src/stdb/bindings/debug_cast_spell_at_reducer.rs deleted file mode 100644 index dbeab4dfd..000000000 --- a/gateway/src/stdb/bindings/debug_cast_spell_at_reducer.rs +++ /dev/null @@ -1,105 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCastSpellAtArgs { - pub caster_guid: u64, - pub spell_id: u32, - pub target_guid: u64, - pub x: f32, - pub y: f32, - pub z: f32, -} - -impl From for super::Reducer { - fn from(args: DebugCastSpellAtArgs) -> Self { - Self::DebugCastSpellAt { - caster_guid: args.caster_guid, - spell_id: args.spell_id, - target_guid: args.target_guid, - x: args.x, - y: args.y, - z: args.z, - } - } -} - -impl __sdk::InModule for DebugCastSpellAtArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_cast_spell_at`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_cast_spell_at { - /// Request that the remote module invoke the reducer `debug_cast_spell_at` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_cast_spell_at:debug_cast_spell_at_then`] to run a callback after the reducer completes. - fn debug_cast_spell_at( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - x: f32, - y: f32, - z: f32, - ) -> __sdk::Result<()> { - self.debug_cast_spell_at_then(caster_guid, spell_id, target_guid, x, y, z, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_cast_spell_at` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_cast_spell_at_then( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - x: f32, - y: f32, - z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_cast_spell_at for super::RemoteReducers { - fn debug_cast_spell_at_then( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - x: f32, - y: f32, - z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugCastSpellAtArgs { - caster_guid, - spell_id, - target_guid, - x, - y, - z, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_cast_spell_reducer.rs b/gateway/src/stdb/bindings/debug_cast_spell_reducer.rs deleted file mode 100644 index 0e931b4df..000000000 --- a/gateway/src/stdb/bindings/debug_cast_spell_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCastSpellArgs { - pub character_guid: u64, - pub spell_id: u32, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugCastSpellArgs) -> Self { - Self::DebugCastSpell { - character_guid: args.character_guid, - spell_id: args.spell_id, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugCastSpellArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_cast_spell`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_cast_spell { - /// Request that the remote module invoke the reducer `debug_cast_spell` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_cast_spell:debug_cast_spell_then`] to run a callback after the reducer completes. - fn debug_cast_spell( - &self, - character_guid: u64, - spell_id: u32, - target_guid: u64, - ) -> __sdk::Result<()> { - self.debug_cast_spell_then(character_guid, spell_id, target_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_cast_spell` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_cast_spell_then( - &self, - character_guid: u64, - spell_id: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_cast_spell for super::RemoteReducers { - fn debug_cast_spell_then( - &self, - character_guid: u64, - spell_id: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugCastSpellArgs { - character_guid, - spell_id, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_catalogue_fingerprint_reducer.rs b/gateway/src/stdb/bindings/debug_catalogue_fingerprint_reducer.rs deleted file mode 100644 index 459f0448e..000000000 --- a/gateway/src/stdb/bindings/debug_catalogue_fingerprint_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCatalogueFingerprintArgs {} - -impl From for super::Reducer { - fn from(args: DebugCatalogueFingerprintArgs) -> Self { - Self::DebugCatalogueFingerprint - } -} - -impl __sdk::InModule for DebugCatalogueFingerprintArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_catalogue_fingerprint`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_catalogue_fingerprint { - /// Request that the remote module invoke the reducer `debug_catalogue_fingerprint` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_catalogue_fingerprint:debug_catalogue_fingerprint_then`] to run a callback after the reducer completes. - fn debug_catalogue_fingerprint(&self) -> __sdk::Result<()> { - self.debug_catalogue_fingerprint_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_catalogue_fingerprint` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_catalogue_fingerprint_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_catalogue_fingerprint for super::RemoteReducers { - fn debug_catalogue_fingerprint_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugCatalogueFingerprintArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_check_rest_at_reducer.rs b/gateway/src/stdb/bindings/debug_check_rest_at_reducer.rs deleted file mode 100644 index 992249030..000000000 --- a/gateway/src/stdb/bindings/debug_check_rest_at_reducer.rs +++ /dev/null @@ -1,80 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCheckRestAtArgs { - pub guid: u64, - pub map_id: u32, - pub x: f32, - pub y: f32, -} - -impl From for super::Reducer { - fn from(args: DebugCheckRestAtArgs) -> Self { - Self::DebugCheckRestAt { - guid: args.guid, - map_id: args.map_id, - x: args.x, - y: args.y, - } - } -} - -impl __sdk::InModule for DebugCheckRestAtArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_check_rest_at`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_check_rest_at { - /// Request that the remote module invoke the reducer `debug_check_rest_at` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_check_rest_at:debug_check_rest_at_then`] to run a callback after the reducer completes. - fn debug_check_rest_at(&self, guid: u64, map_id: u32, x: f32, y: f32) -> __sdk::Result<()> { - self.debug_check_rest_at_then(guid, map_id, x, y, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_check_rest_at` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_check_rest_at_then( - &self, - guid: u64, - map_id: u32, - x: f32, - y: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_check_rest_at for super::RemoteReducers { - fn debug_check_rest_at_then( - &self, - guid: u64, - map_id: u32, - x: f32, - y: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugCheckRestAtArgs { guid, map_id, x, y }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_check_submerged_reducer.rs b/gateway/src/stdb/bindings/debug_check_submerged_reducer.rs deleted file mode 100644 index 231327e00..000000000 --- a/gateway/src/stdb/bindings/debug_check_submerged_reducer.rs +++ /dev/null @@ -1,66 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCheckSubmergedArgs { - pub guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugCheckSubmergedArgs) -> Self { - Self::DebugCheckSubmerged { guid: args.guid } - } -} - -impl __sdk::InModule for DebugCheckSubmergedArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_check_submerged`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_check_submerged { - /// Request that the remote module invoke the reducer `debug_check_submerged` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_check_submerged:debug_check_submerged_then`] to run a callback after the reducer completes. - fn debug_check_submerged(&self, guid: u64) -> __sdk::Result<()> { - self.debug_check_submerged_then(guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_check_submerged` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_check_submerged_then( - &self, - guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_check_submerged for super::RemoteReducers { - fn debug_check_submerged_then( - &self, - guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugCheckSubmergedArgs { guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_clear_creatures_reducer.rs b/gateway/src/stdb/bindings/debug_clear_creatures_reducer.rs deleted file mode 100644 index 3aa79810e..000000000 --- a/gateway/src/stdb/bindings/debug_clear_creatures_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugClearCreaturesArgs { - pub map_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugClearCreaturesArgs) -> Self { - Self::DebugClearCreatures { - map_id: args.map_id, - } - } -} - -impl __sdk::InModule for DebugClearCreaturesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_clear_creatures`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_clear_creatures { - /// Request that the remote module invoke the reducer `debug_clear_creatures` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_clear_creatures:debug_clear_creatures_then`] to run a callback after the reducer completes. - fn debug_clear_creatures(&self, map_id: u32) -> __sdk::Result<()> { - self.debug_clear_creatures_then(map_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_clear_creatures` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_clear_creatures_then( - &self, - map_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_clear_creatures for super::RemoteReducers { - fn debug_clear_creatures_then( - &self, - map_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugClearCreaturesArgs { map_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_compute_spell_reducer.rs b/gateway/src/stdb/bindings/debug_compute_spell_reducer.rs deleted file mode 100644 index 24b6d2689..000000000 --- a/gateway/src/stdb/bindings/debug_compute_spell_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugComputeSpellArgs { - pub caster_guid: u64, - pub target_guid: u64, - pub spell_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugComputeSpellArgs) -> Self { - Self::DebugComputeSpell { - caster_guid: args.caster_guid, - target_guid: args.target_guid, - spell_id: args.spell_id, - } - } -} - -impl __sdk::InModule for DebugComputeSpellArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_compute_spell`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_compute_spell { - /// Request that the remote module invoke the reducer `debug_compute_spell` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_compute_spell:debug_compute_spell_then`] to run a callback after the reducer completes. - fn debug_compute_spell( - &self, - caster_guid: u64, - target_guid: u64, - spell_id: u32, - ) -> __sdk::Result<()> { - self.debug_compute_spell_then(caster_guid, target_guid, spell_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_compute_spell` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_compute_spell_then( - &self, - caster_guid: u64, - target_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_compute_spell for super::RemoteReducers { - fn debug_compute_spell_then( - &self, - caster_guid: u64, - target_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugComputeSpellArgs { - caster_guid, - target_guid, - spell_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_compute_swing_reducer.rs b/gateway/src/stdb/bindings/debug_compute_swing_reducer.rs deleted file mode 100644 index 82ec46a3c..000000000 --- a/gateway/src/stdb/bindings/debug_compute_swing_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugComputeSwingArgs { - pub attacker_guid: u64, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugComputeSwingArgs) -> Self { - Self::DebugComputeSwing { - attacker_guid: args.attacker_guid, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugComputeSwingArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_compute_swing`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_compute_swing { - /// Request that the remote module invoke the reducer `debug_compute_swing` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_compute_swing:debug_compute_swing_then`] to run a callback after the reducer completes. - fn debug_compute_swing(&self, attacker_guid: u64, target_guid: u64) -> __sdk::Result<()> { - self.debug_compute_swing_then(attacker_guid, target_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_compute_swing` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_compute_swing_then( - &self, - attacker_guid: u64, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_compute_swing for super::RemoteReducers { - fn debug_compute_swing_then( - &self, - attacker_guid: u64, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugComputeSwingArgs { - attacker_guid, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_create_fixture_instance_reducer.rs b/gateway/src/stdb/bindings/debug_create_fixture_instance_reducer.rs deleted file mode 100644 index 2f4f31e89..000000000 --- a/gateway/src/stdb/bindings/debug_create_fixture_instance_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCreateFixtureInstanceArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugCreateFixtureInstanceArgs) -> Self { - Self::DebugCreateFixtureInstance { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugCreateFixtureInstanceArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_create_fixture_instance`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_create_fixture_instance { - /// Request that the remote module invoke the reducer `debug_create_fixture_instance` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_create_fixture_instance:debug_create_fixture_instance_then`] to run a callback after the reducer completes. - fn debug_create_fixture_instance(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_create_fixture_instance_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_create_fixture_instance` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_create_fixture_instance_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_create_fixture_instance for super::RemoteReducers { - fn debug_create_fixture_instance_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugCreateFixtureInstanceArgs { character_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_create_package_character_reducer.rs b/gateway/src/stdb/bindings/debug_create_package_character_reducer.rs deleted file mode 100644 index 99539f342..000000000 --- a/gateway/src/stdb/bindings/debug_create_package_character_reducer.rs +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCreatePackageCharacterArgs { - pub package_name: String, - pub name: String, - pub race: u8, - pub class: u8, -} - -impl From for super::Reducer { - fn from(args: DebugCreatePackageCharacterArgs) -> Self { - Self::DebugCreatePackageCharacter { - package_name: args.package_name, - name: args.name, - race: args.race, - class: args.class, - } - } -} - -impl __sdk::InModule for DebugCreatePackageCharacterArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_create_package_character`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_create_package_character { - /// Request that the remote module invoke the reducer `debug_create_package_character` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_create_package_character:debug_create_package_character_then`] to run a callback after the reducer completes. - fn debug_create_package_character( - &self, - package_name: String, - name: String, - race: u8, - class: u8, - ) -> __sdk::Result<()> { - self.debug_create_package_character_then(package_name, name, race, class, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_create_package_character` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_create_package_character_then( - &self, - package_name: String, - name: String, - race: u8, - class: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_create_package_character for super::RemoteReducers { - fn debug_create_package_character_then( - &self, - package_name: String, - name: String, - race: u8, - class: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugCreatePackageCharacterArgs { - package_name, - name, - race, - class, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_creature_path_reducer.rs b/gateway/src/stdb/bindings/debug_creature_path_reducer.rs deleted file mode 100644 index 0b58949eb..000000000 --- a/gateway/src/stdb/bindings/debug_creature_path_reducer.rs +++ /dev/null @@ -1,91 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugCreaturePathArgs { - pub guid: u64, - pub x: f32, - pub y: f32, - pub z: f32, - pub run: bool, -} - -impl From for super::Reducer { - fn from(args: DebugCreaturePathArgs) -> Self { - Self::DebugCreaturePath { - guid: args.guid, - x: args.x, - y: args.y, - z: args.z, - run: args.run, - } - } -} - -impl __sdk::InModule for DebugCreaturePathArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_creature_path`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_creature_path { - /// Request that the remote module invoke the reducer `debug_creature_path` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_creature_path:debug_creature_path_then`] to run a callback after the reducer completes. - fn debug_creature_path( - &self, - guid: u64, - x: f32, - y: f32, - z: f32, - run: bool, - ) -> __sdk::Result<()> { - self.debug_creature_path_then(guid, x, y, z, run, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_creature_path` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_creature_path_then( - &self, - guid: u64, - x: f32, - y: f32, - z: f32, - run: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_creature_path for super::RemoteReducers { - fn debug_creature_path_then( - &self, - guid: u64, - x: f32, - y: f32, - z: f32, - run: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugCreaturePathArgs { guid, x, y, z, run }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_delete_character_reducer.rs b/gateway/src/stdb/bindings/debug_delete_character_reducer.rs deleted file mode 100644 index bbddbd908..000000000 --- a/gateway/src/stdb/bindings/debug_delete_character_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugDeleteCharacterArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugDeleteCharacterArgs) -> Self { - Self::DebugDeleteCharacter { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugDeleteCharacterArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_delete_character`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_delete_character { - /// Request that the remote module invoke the reducer `debug_delete_character` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_delete_character:debug_delete_character_then`] to run a callback after the reducer completes. - fn debug_delete_character(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_delete_character_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_delete_character` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_delete_character_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_delete_character for super::RemoteReducers { - fn debug_delete_character_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugDeleteCharacterArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_deliver_mail_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_deliver_mail_fixture_reducer.rs deleted file mode 100644 index 9d3934b07..000000000 --- a/gateway/src/stdb/bindings/debug_deliver_mail_fixture_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugDeliverMailFixtureArgs { - pub recipient_guid: u64, - pub subject: String, -} - -impl From for super::Reducer { - fn from(args: DebugDeliverMailFixtureArgs) -> Self { - Self::DebugDeliverMailFixture { - recipient_guid: args.recipient_guid, - subject: args.subject, - } - } -} - -impl __sdk::InModule for DebugDeliverMailFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_deliver_mail_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_deliver_mail_fixture { - /// Request that the remote module invoke the reducer `debug_deliver_mail_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_deliver_mail_fixture:debug_deliver_mail_fixture_then`] to run a callback after the reducer completes. - fn debug_deliver_mail_fixture( - &self, - recipient_guid: u64, - subject: String, - ) -> __sdk::Result<()> { - self.debug_deliver_mail_fixture_then(recipient_guid, subject, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_deliver_mail_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_deliver_mail_fixture_then( - &self, - recipient_guid: u64, - subject: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_deliver_mail_fixture for super::RemoteReducers { - fn debug_deliver_mail_fixture_then( - &self, - recipient_guid: u64, - subject: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugDeliverMailFixtureArgs { - recipient_guid, - subject, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_disarm_instance_tick_reducer.rs b/gateway/src/stdb/bindings/debug_disarm_instance_tick_reducer.rs deleted file mode 100644 index 60bf419f0..000000000 --- a/gateway/src/stdb/bindings/debug_disarm_instance_tick_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugDisarmInstanceTickArgs { - pub instance_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugDisarmInstanceTickArgs) -> Self { - Self::DebugDisarmInstanceTick { - instance_id: args.instance_id, - } - } -} - -impl __sdk::InModule for DebugDisarmInstanceTickArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_disarm_instance_tick`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_disarm_instance_tick { - /// Request that the remote module invoke the reducer `debug_disarm_instance_tick` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_disarm_instance_tick:debug_disarm_instance_tick_then`] to run a callback after the reducer completes. - fn debug_disarm_instance_tick(&self, instance_id: u64) -> __sdk::Result<()> { - self.debug_disarm_instance_tick_then(instance_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_disarm_instance_tick` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_disarm_instance_tick_then( - &self, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_disarm_instance_tick for super::RemoteReducers { - fn debug_disarm_instance_tick_then( - &self, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugDisarmInstanceTickArgs { instance_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_disenchant_reducer.rs b/gateway/src/stdb/bindings/debug_disenchant_reducer.rs deleted file mode 100644 index cf4c22abc..000000000 --- a/gateway/src/stdb/bindings/debug_disenchant_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugDisenchantArgs { - pub character_guid: u64, - pub slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugDisenchantArgs) -> Self { - Self::DebugDisenchant { - character_guid: args.character_guid, - slot: args.slot, - } - } -} - -impl __sdk::InModule for DebugDisenchantArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_disenchant`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_disenchant { - /// Request that the remote module invoke the reducer `debug_disenchant` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_disenchant:debug_disenchant_then`] to run a callback after the reducer completes. - fn debug_disenchant(&self, character_guid: u64, slot: u8) -> __sdk::Result<()> { - self.debug_disenchant_then(character_guid, slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_disenchant` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_disenchant_then( - &self, - character_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_disenchant for super::RemoteReducers { - fn debug_disenchant_then( - &self, - character_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugDisenchantArgs { - character_guid, - slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_emit_sessionless_group_intent_reducer.rs b/gateway/src/stdb/bindings/debug_emit_sessionless_group_intent_reducer.rs deleted file mode 100644 index 13f110c84..000000000 --- a/gateway/src/stdb/bindings/debug_emit_sessionless_group_intent_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEmitSessionlessGroupIntentArgs { - pub character_guid: u64, - pub target_guid: u64, - pub leave: bool, -} - -impl From for super::Reducer { - fn from(args: DebugEmitSessionlessGroupIntentArgs) -> Self { - Self::DebugEmitSessionlessGroupIntent { - character_guid: args.character_guid, - target_guid: args.target_guid, - leave: args.leave, - } - } -} - -impl __sdk::InModule for DebugEmitSessionlessGroupIntentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_emit_sessionless_group_intent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_emit_sessionless_group_intent { - /// Request that the remote module invoke the reducer `debug_emit_sessionless_group_intent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_emit_sessionless_group_intent:debug_emit_sessionless_group_intent_then`] to run a callback after the reducer completes. - fn debug_emit_sessionless_group_intent( - &self, - character_guid: u64, - target_guid: u64, - leave: bool, - ) -> __sdk::Result<()> { - self.debug_emit_sessionless_group_intent_then(character_guid, target_guid, leave, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_emit_sessionless_group_intent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_emit_sessionless_group_intent_then( - &self, - character_guid: u64, - target_guid: u64, - leave: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_emit_sessionless_group_intent for super::RemoteReducers { - fn debug_emit_sessionless_group_intent_then( - &self, - character_guid: u64, - target_guid: u64, - leave: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEmitSessionlessGroupIntentArgs { - character_guid, - target_guid, - leave, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_enchant_item_reducer.rs b/gateway/src/stdb/bindings/debug_enchant_item_reducer.rs deleted file mode 100644 index 8aad9adfa..000000000 --- a/gateway/src/stdb/bindings/debug_enchant_item_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEnchantItemArgs { - pub character_guid: u64, - pub target_slot: u8, - pub enchant_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugEnchantItemArgs) -> Self { - Self::DebugEnchantItem { - character_guid: args.character_guid, - target_slot: args.target_slot, - enchant_id: args.enchant_id, - } - } -} - -impl __sdk::InModule for DebugEnchantItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_enchant_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_enchant_item { - /// Request that the remote module invoke the reducer `debug_enchant_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_enchant_item:debug_enchant_item_then`] to run a callback after the reducer completes. - fn debug_enchant_item( - &self, - character_guid: u64, - target_slot: u8, - enchant_id: u32, - ) -> __sdk::Result<()> { - self.debug_enchant_item_then(character_guid, target_slot, enchant_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_enchant_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_enchant_item_then( - &self, - character_guid: u64, - target_slot: u8, - enchant_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_enchant_item for super::RemoteReducers { - fn debug_enchant_item_then( - &self, - character_guid: u64, - target_slot: u8, - enchant_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEnchantItemArgs { - character_guid, - target_slot, - enchant_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_encounter_equip_reducer.rs b/gateway/src/stdb/bindings/debug_encounter_equip_reducer.rs deleted file mode 100644 index 6d370f79e..000000000 --- a/gateway/src/stdb/bindings/debug_encounter_equip_reducer.rs +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEncounterEquipArgs { - pub creature_guid: u64, - pub main_hand: u32, - pub off_hand: u32, - pub ranged: u32, -} - -impl From for super::Reducer { - fn from(args: DebugEncounterEquipArgs) -> Self { - Self::DebugEncounterEquip { - creature_guid: args.creature_guid, - main_hand: args.main_hand, - off_hand: args.off_hand, - ranged: args.ranged, - } - } -} - -impl __sdk::InModule for DebugEncounterEquipArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_encounter_equip`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_encounter_equip { - /// Request that the remote module invoke the reducer `debug_encounter_equip` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_encounter_equip:debug_encounter_equip_then`] to run a callback after the reducer completes. - fn debug_encounter_equip( - &self, - creature_guid: u64, - main_hand: u32, - off_hand: u32, - ranged: u32, - ) -> __sdk::Result<()> { - self.debug_encounter_equip_then(creature_guid, main_hand, off_hand, ranged, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_encounter_equip` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_encounter_equip_then( - &self, - creature_guid: u64, - main_hand: u32, - off_hand: u32, - ranged: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_encounter_equip for super::RemoteReducers { - fn debug_encounter_equip_then( - &self, - creature_guid: u64, - main_hand: u32, - off_hand: u32, - ranged: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEncounterEquipArgs { - creature_guid, - main_hand, - off_hand, - ranged, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_encounter_move_reducer.rs b/gateway/src/stdb/bindings/debug_encounter_move_reducer.rs deleted file mode 100644 index f35ede423..000000000 --- a/gateway/src/stdb/bindings/debug_encounter_move_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEncounterMoveArgs { - pub creature_guid: u64, - pub x: f32, - pub y: f32, - pub z: f32, - pub run: bool, -} - -impl From for super::Reducer { - fn from(args: DebugEncounterMoveArgs) -> Self { - Self::DebugEncounterMove { - creature_guid: args.creature_guid, - x: args.x, - y: args.y, - z: args.z, - run: args.run, - } - } -} - -impl __sdk::InModule for DebugEncounterMoveArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_encounter_move`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_encounter_move { - /// Request that the remote module invoke the reducer `debug_encounter_move` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_encounter_move:debug_encounter_move_then`] to run a callback after the reducer completes. - fn debug_encounter_move( - &self, - creature_guid: u64, - x: f32, - y: f32, - z: f32, - run: bool, - ) -> __sdk::Result<()> { - self.debug_encounter_move_then(creature_guid, x, y, z, run, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_encounter_move` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_encounter_move_then( - &self, - creature_guid: u64, - x: f32, - y: f32, - z: f32, - run: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_encounter_move for super::RemoteReducers { - fn debug_encounter_move_then( - &self, - creature_guid: u64, - x: f32, - y: f32, - z: f32, - run: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEncounterMoveArgs { - creature_guid, - x, - y, - z, - run, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_encounter_open_door_reducer.rs b/gateway/src/stdb/bindings/debug_encounter_open_door_reducer.rs deleted file mode 100644 index 78b0fc70e..000000000 --- a/gateway/src/stdb/bindings/debug_encounter_open_door_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEncounterOpenDoorArgs { - pub go_entry: u32, - pub instance_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugEncounterOpenDoorArgs) -> Self { - Self::DebugEncounterOpenDoor { - go_entry: args.go_entry, - instance_id: args.instance_id, - } - } -} - -impl __sdk::InModule for DebugEncounterOpenDoorArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_encounter_open_door`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_encounter_open_door { - /// Request that the remote module invoke the reducer `debug_encounter_open_door` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_encounter_open_door:debug_encounter_open_door_then`] to run a callback after the reducer completes. - fn debug_encounter_open_door(&self, go_entry: u32, instance_id: u64) -> __sdk::Result<()> { - self.debug_encounter_open_door_then(go_entry, instance_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_encounter_open_door` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_encounter_open_door_then( - &self, - go_entry: u32, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_encounter_open_door for super::RemoteReducers { - fn debug_encounter_open_door_then( - &self, - go_entry: u32, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEncounterOpenDoorArgs { - go_entry, - instance_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_encounter_reset_hp_fired_reducer.rs b/gateway/src/stdb/bindings/debug_encounter_reset_hp_fired_reducer.rs deleted file mode 100644 index 8fab556bb..000000000 --- a/gateway/src/stdb/bindings/debug_encounter_reset_hp_fired_reducer.rs +++ /dev/null @@ -1,74 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEncounterResetHpFiredArgs { - pub instance_id: u64, - pub entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugEncounterResetHpFiredArgs) -> Self { - Self::DebugEncounterResetHpFired { - instance_id: args.instance_id, - entry: args.entry, - } - } -} - -impl __sdk::InModule for DebugEncounterResetHpFiredArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_encounter_reset_hp_fired`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_encounter_reset_hp_fired { - /// Request that the remote module invoke the reducer `debug_encounter_reset_hp_fired` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_encounter_reset_hp_fired:debug_encounter_reset_hp_fired_then`] to run a callback after the reducer completes. - fn debug_encounter_reset_hp_fired(&self, instance_id: u64, entry: u32) -> __sdk::Result<()> { - self.debug_encounter_reset_hp_fired_then(instance_id, entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_encounter_reset_hp_fired` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_encounter_reset_hp_fired_then( - &self, - instance_id: u64, - entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_encounter_reset_hp_fired for super::RemoteReducers { - fn debug_encounter_reset_hp_fired_then( - &self, - instance_id: u64, - entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEncounterResetHpFiredArgs { instance_id, entry }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_encounter_reset_reducer.rs b/gateway/src/stdb/bindings/debug_encounter_reset_reducer.rs deleted file mode 100644 index 1b9c6cb20..000000000 --- a/gateway/src/stdb/bindings/debug_encounter_reset_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEncounterResetArgs { - pub instance_id: u64, - pub encounter_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugEncounterResetArgs) -> Self { - Self::DebugEncounterReset { - instance_id: args.instance_id, - encounter_id: args.encounter_id, - } - } -} - -impl __sdk::InModule for DebugEncounterResetArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_encounter_reset`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_encounter_reset { - /// Request that the remote module invoke the reducer `debug_encounter_reset` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_encounter_reset:debug_encounter_reset_then`] to run a callback after the reducer completes. - fn debug_encounter_reset(&self, instance_id: u64, encounter_id: u32) -> __sdk::Result<()> { - self.debug_encounter_reset_then(instance_id, encounter_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_encounter_reset` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_encounter_reset_then( - &self, - instance_id: u64, - encounter_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_encounter_reset for super::RemoteReducers { - fn debug_encounter_reset_then( - &self, - instance_id: u64, - encounter_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEncounterResetArgs { - instance_id, - encounter_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_encounter_set_state_reducer.rs b/gateway/src/stdb/bindings/debug_encounter_set_state_reducer.rs deleted file mode 100644 index c673cfb68..000000000 --- a/gateway/src/stdb/bindings/debug_encounter_set_state_reducer.rs +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEncounterSetStateArgs { - pub instance_id: u64, - pub encounter_id: u32, - pub state: u8, - pub data: u32, -} - -impl From for super::Reducer { - fn from(args: DebugEncounterSetStateArgs) -> Self { - Self::DebugEncounterSetState { - instance_id: args.instance_id, - encounter_id: args.encounter_id, - state: args.state, - data: args.data, - } - } -} - -impl __sdk::InModule for DebugEncounterSetStateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_encounter_set_state`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_encounter_set_state { - /// Request that the remote module invoke the reducer `debug_encounter_set_state` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_encounter_set_state:debug_encounter_set_state_then`] to run a callback after the reducer completes. - fn debug_encounter_set_state( - &self, - instance_id: u64, - encounter_id: u32, - state: u8, - data: u32, - ) -> __sdk::Result<()> { - self.debug_encounter_set_state_then(instance_id, encounter_id, state, data, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_encounter_set_state` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_encounter_set_state_then( - &self, - instance_id: u64, - encounter_id: u32, - state: u8, - data: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_encounter_set_state for super::RemoteReducers { - fn debug_encounter_set_state_then( - &self, - instance_id: u64, - encounter_id: u32, - state: u8, - data: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEncounterSetStateArgs { - instance_id, - encounter_id, - state, - data, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_encounter_spawn_wave_reducer.rs b/gateway/src/stdb/bindings/debug_encounter_spawn_wave_reducer.rs deleted file mode 100644 index 673a93ebe..000000000 --- a/gateway/src/stdb/bindings/debug_encounter_spawn_wave_reducer.rs +++ /dev/null @@ -1,134 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEncounterSpawnWaveArgs { - pub instance_id: u64, - pub encounter_id: u32, - pub map_id: u32, - pub entry: u32, - pub count: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub orientation: f32, -} - -impl From for super::Reducer { - fn from(args: DebugEncounterSpawnWaveArgs) -> Self { - Self::DebugEncounterSpawnWave { - instance_id: args.instance_id, - encounter_id: args.encounter_id, - map_id: args.map_id, - entry: args.entry, - count: args.count, - x: args.x, - y: args.y, - z: args.z, - orientation: args.orientation, - } - } -} - -impl __sdk::InModule for DebugEncounterSpawnWaveArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_encounter_spawn_wave`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_encounter_spawn_wave { - /// Request that the remote module invoke the reducer `debug_encounter_spawn_wave` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_encounter_spawn_wave:debug_encounter_spawn_wave_then`] to run a callback after the reducer completes. - fn debug_encounter_spawn_wave( - &self, - instance_id: u64, - encounter_id: u32, - map_id: u32, - entry: u32, - count: u32, - x: f32, - y: f32, - z: f32, - orientation: f32, - ) -> __sdk::Result<()> { - self.debug_encounter_spawn_wave_then( - instance_id, - encounter_id, - map_id, - entry, - count, - x, - y, - z, - orientation, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_encounter_spawn_wave` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_encounter_spawn_wave_then( - &self, - instance_id: u64, - encounter_id: u32, - map_id: u32, - entry: u32, - count: u32, - x: f32, - y: f32, - z: f32, - orientation: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_encounter_spawn_wave for super::RemoteReducers { - fn debug_encounter_spawn_wave_then( - &self, - instance_id: u64, - encounter_id: u32, - map_id: u32, - entry: u32, - count: u32, - x: f32, - y: f32, - z: f32, - orientation: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEncounterSpawnWaveArgs { - instance_id, - encounter_id, - map_id, - entry, - count, - x, - y, - z, - orientation, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_encounter_watch_hp_reducer.rs b/gateway/src/stdb/bindings/debug_encounter_watch_hp_reducer.rs deleted file mode 100644 index 24fb9f066..000000000 --- a/gateway/src/stdb/bindings/debug_encounter_watch_hp_reducer.rs +++ /dev/null @@ -1,72 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEncounterWatchHpArgs { - pub entry: u32, - pub pct: u8, -} - -impl From for super::Reducer { - fn from(args: DebugEncounterWatchHpArgs) -> Self { - Self::DebugEncounterWatchHp { - entry: args.entry, - pct: args.pct, - } - } -} - -impl __sdk::InModule for DebugEncounterWatchHpArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_encounter_watch_hp`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_encounter_watch_hp { - /// Request that the remote module invoke the reducer `debug_encounter_watch_hp` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_encounter_watch_hp:debug_encounter_watch_hp_then`] to run a callback after the reducer completes. - fn debug_encounter_watch_hp(&self, entry: u32, pct: u8) -> __sdk::Result<()> { - self.debug_encounter_watch_hp_then(entry, pct, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_encounter_watch_hp` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_encounter_watch_hp_then( - &self, - entry: u32, - pct: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_encounter_watch_hp for super::RemoteReducers { - fn debug_encounter_watch_hp_then( - &self, - entry: u32, - pct: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugEncounterWatchHpArgs { entry, pct }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_engage_reducer.rs b/gateway/src/stdb/bindings/debug_engage_reducer.rs deleted file mode 100644 index 6bbf5ea1b..000000000 --- a/gateway/src/stdb/bindings/debug_engage_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEngageArgs { - pub attacker_guid: u64, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugEngageArgs) -> Self { - Self::DebugEngage { - attacker_guid: args.attacker_guid, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugEngageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_engage`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_engage { - /// Request that the remote module invoke the reducer `debug_engage` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_engage:debug_engage_then`] to run a callback after the reducer completes. - fn debug_engage(&self, attacker_guid: u64, target_guid: u64) -> __sdk::Result<()> { - self.debug_engage_then(attacker_guid, target_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_engage` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_engage_then( - &self, - attacker_guid: u64, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_engage for super::RemoteReducers { - fn debug_engage_then( - &self, - attacker_guid: u64, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEngageArgs { - attacker_guid, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_enter_areatrigger_reducer.rs b/gateway/src/stdb/bindings/debug_enter_areatrigger_reducer.rs deleted file mode 100644 index 75f01ef35..000000000 --- a/gateway/src/stdb/bindings/debug_enter_areatrigger_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEnterAreatriggerArgs { - pub character_guid: u64, - pub trigger_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugEnterAreatriggerArgs) -> Self { - Self::DebugEnterAreatrigger { - character_guid: args.character_guid, - trigger_id: args.trigger_id, - } - } -} - -impl __sdk::InModule for DebugEnterAreatriggerArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_enter_areatrigger`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_enter_areatrigger { - /// Request that the remote module invoke the reducer `debug_enter_areatrigger` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_enter_areatrigger:debug_enter_areatrigger_then`] to run a callback after the reducer completes. - fn debug_enter_areatrigger(&self, character_guid: u64, trigger_id: u32) -> __sdk::Result<()> { - self.debug_enter_areatrigger_then(character_guid, trigger_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_enter_areatrigger` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_enter_areatrigger_then( - &self, - character_guid: u64, - trigger_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_enter_areatrigger for super::RemoteReducers { - fn debug_enter_areatrigger_then( - &self, - character_guid: u64, - trigger_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEnterAreatriggerArgs { - character_guid, - trigger_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_enter_instance_reducer.rs b/gateway/src/stdb/bindings/debug_enter_instance_reducer.rs deleted file mode 100644 index 14b694707..000000000 --- a/gateway/src/stdb/bindings/debug_enter_instance_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEnterInstanceArgs { - pub character_guid: u64, - pub instance_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugEnterInstanceArgs) -> Self { - Self::DebugEnterInstance { - character_guid: args.character_guid, - instance_id: args.instance_id, - } - } -} - -impl __sdk::InModule for DebugEnterInstanceArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_enter_instance`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_enter_instance { - /// Request that the remote module invoke the reducer `debug_enter_instance` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_enter_instance:debug_enter_instance_then`] to run a callback after the reducer completes. - fn debug_enter_instance(&self, character_guid: u64, instance_id: u64) -> __sdk::Result<()> { - self.debug_enter_instance_then(character_guid, instance_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_enter_instance` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_enter_instance_then( - &self, - character_guid: u64, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_enter_instance for super::RemoteReducers { - fn debug_enter_instance_then( - &self, - character_guid: u64, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEnterInstanceArgs { - character_guid, - instance_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_equip_item_reducer.rs b/gateway/src/stdb/bindings/debug_equip_item_reducer.rs deleted file mode 100644 index 704ce95f7..000000000 --- a/gateway/src/stdb/bindings/debug_equip_item_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEquipItemArgs { - pub character_guid: u64, - pub from_slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugEquipItemArgs) -> Self { - Self::DebugEquipItem { - character_guid: args.character_guid, - from_slot: args.from_slot, - } - } -} - -impl __sdk::InModule for DebugEquipItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_equip_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_equip_item { - /// Request that the remote module invoke the reducer `debug_equip_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_equip_item:debug_equip_item_then`] to run a callback after the reducer completes. - fn debug_equip_item(&self, character_guid: u64, from_slot: u8) -> __sdk::Result<()> { - self.debug_equip_item_then(character_guid, from_slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_equip_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_equip_item_then( - &self, - character_guid: u64, - from_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_equip_item for super::RemoteReducers { - fn debug_equip_item_then( - &self, - character_guid: u64, - from_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEquipItemArgs { - character_guid, - from_slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_equip_offhand_reducer.rs b/gateway/src/stdb/bindings/debug_equip_offhand_reducer.rs deleted file mode 100644 index eb4a03a07..000000000 --- a/gateway/src/stdb/bindings/debug_equip_offhand_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEquipOffhandArgs { - pub character_guid: u64, - pub item_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugEquipOffhandArgs) -> Self { - Self::DebugEquipOffhand { - character_guid: args.character_guid, - item_entry: args.item_entry, - } - } -} - -impl __sdk::InModule for DebugEquipOffhandArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_equip_offhand`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_equip_offhand { - /// Request that the remote module invoke the reducer `debug_equip_offhand` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_equip_offhand:debug_equip_offhand_then`] to run a callback after the reducer completes. - fn debug_equip_offhand(&self, character_guid: u64, item_entry: u32) -> __sdk::Result<()> { - self.debug_equip_offhand_then(character_guid, item_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_equip_offhand` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_equip_offhand_then( - &self, - character_guid: u64, - item_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_equip_offhand for super::RemoteReducers { - fn debug_equip_offhand_then( - &self, - character_guid: u64, - item_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEquipOffhandArgs { - character_guid, - item_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_equip_weapon_reducer.rs b/gateway/src/stdb/bindings/debug_equip_weapon_reducer.rs deleted file mode 100644 index 507cef13e..000000000 --- a/gateway/src/stdb/bindings/debug_equip_weapon_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugEquipWeaponArgs { - pub character_guid: u64, - pub item_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugEquipWeaponArgs) -> Self { - Self::DebugEquipWeapon { - character_guid: args.character_guid, - item_entry: args.item_entry, - } - } -} - -impl __sdk::InModule for DebugEquipWeaponArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_equip_weapon`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_equip_weapon { - /// Request that the remote module invoke the reducer `debug_equip_weapon` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_equip_weapon:debug_equip_weapon_then`] to run a callback after the reducer completes. - fn debug_equip_weapon(&self, character_guid: u64, item_entry: u32) -> __sdk::Result<()> { - self.debug_equip_weapon_then(character_guid, item_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_equip_weapon` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_equip_weapon_then( - &self, - character_guid: u64, - item_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_equip_weapon for super::RemoteReducers { - fn debug_equip_weapon_then( - &self, - character_guid: u64, - item_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugEquipWeaponArgs { - character_guid, - item_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_expire_instance_removal_reducer.rs b/gateway/src/stdb/bindings/debug_expire_instance_removal_reducer.rs deleted file mode 100644 index 290cb0984..000000000 --- a/gateway/src/stdb/bindings/debug_expire_instance_removal_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugExpireInstanceRemovalArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugExpireInstanceRemovalArgs) -> Self { - Self::DebugExpireInstanceRemoval { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugExpireInstanceRemovalArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_expire_instance_removal`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_expire_instance_removal { - /// Request that the remote module invoke the reducer `debug_expire_instance_removal` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_expire_instance_removal:debug_expire_instance_removal_then`] to run a callback after the reducer completes. - fn debug_expire_instance_removal(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_expire_instance_removal_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_expire_instance_removal` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_expire_instance_removal_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_expire_instance_removal for super::RemoteReducers { - fn debug_expire_instance_removal_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugExpireInstanceRemovalArgs { character_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_expire_quest_reducer.rs b/gateway/src/stdb/bindings/debug_expire_quest_reducer.rs deleted file mode 100644 index 709532add..000000000 --- a/gateway/src/stdb/bindings/debug_expire_quest_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugExpireQuestArgs { - pub character_guid: u64, - pub quest_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugExpireQuestArgs) -> Self { - Self::DebugExpireQuest { - character_guid: args.character_guid, - quest_entry: args.quest_entry, - } - } -} - -impl __sdk::InModule for DebugExpireQuestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_expire_quest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_expire_quest { - /// Request that the remote module invoke the reducer `debug_expire_quest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_expire_quest:debug_expire_quest_then`] to run a callback after the reducer completes. - fn debug_expire_quest(&self, character_guid: u64, quest_entry: u32) -> __sdk::Result<()> { - self.debug_expire_quest_then(character_guid, quest_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_expire_quest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_expire_quest_then( - &self, - character_guid: u64, - quest_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_expire_quest for super::RemoteReducers { - fn debug_expire_quest_then( - &self, - character_guid: u64, - quest_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugExpireQuestArgs { - character_guid, - quest_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_expire_session_reducer.rs b/gateway/src/stdb/bindings/debug_expire_session_reducer.rs deleted file mode 100644 index 0c588297a..000000000 --- a/gateway/src/stdb/bindings/debug_expire_session_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugExpireSessionArgs { - pub account_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugExpireSessionArgs) -> Self { - Self::DebugExpireSession { - account_id: args.account_id, - } - } -} - -impl __sdk::InModule for DebugExpireSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_expire_session`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_expire_session { - /// Request that the remote module invoke the reducer `debug_expire_session` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_expire_session:debug_expire_session_then`] to run a callback after the reducer completes. - fn debug_expire_session(&self, account_id: u64) -> __sdk::Result<()> { - self.debug_expire_session_then(account_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_expire_session` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_expire_session_then( - &self, - account_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_expire_session for super::RemoteReducers { - fn debug_expire_session_then( - &self, - account_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugExpireSessionArgs { account_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_explore_at_reducer.rs b/gateway/src/stdb/bindings/debug_explore_at_reducer.rs deleted file mode 100644 index a70738dcd..000000000 --- a/gateway/src/stdb/bindings/debug_explore_at_reducer.rs +++ /dev/null @@ -1,80 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugExploreAtArgs { - pub guid: u64, - pub map_id: u32, - pub x: f32, - pub y: f32, -} - -impl From for super::Reducer { - fn from(args: DebugExploreAtArgs) -> Self { - Self::DebugExploreAt { - guid: args.guid, - map_id: args.map_id, - x: args.x, - y: args.y, - } - } -} - -impl __sdk::InModule for DebugExploreAtArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_explore_at`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_explore_at { - /// Request that the remote module invoke the reducer `debug_explore_at` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_explore_at:debug_explore_at_then`] to run a callback after the reducer completes. - fn debug_explore_at(&self, guid: u64, map_id: u32, x: f32, y: f32) -> __sdk::Result<()> { - self.debug_explore_at_then(guid, map_id, x, y, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_explore_at` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_explore_at_then( - &self, - guid: u64, - map_id: u32, - x: f32, - y: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_explore_at for super::RemoteReducers { - fn debug_explore_at_then( - &self, - guid: u64, - map_id: u32, - x: f32, - y: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugExploreAtArgs { guid, map_id, x, y }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_fill_aura_slots_reducer.rs b/gateway/src/stdb/bindings/debug_fill_aura_slots_reducer.rs deleted file mode 100644 index 2d8b68ebe..000000000 --- a/gateway/src/stdb/bindings/debug_fill_aura_slots_reducer.rs +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugFillAuraSlotsArgs { - pub target_guid: u64, - pub caster_guid: u64, - pub debuff: bool, - pub count: u8, -} - -impl From for super::Reducer { - fn from(args: DebugFillAuraSlotsArgs) -> Self { - Self::DebugFillAuraSlots { - target_guid: args.target_guid, - caster_guid: args.caster_guid, - debuff: args.debuff, - count: args.count, - } - } -} - -impl __sdk::InModule for DebugFillAuraSlotsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_fill_aura_slots`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_fill_aura_slots { - /// Request that the remote module invoke the reducer `debug_fill_aura_slots` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_fill_aura_slots:debug_fill_aura_slots_then`] to run a callback after the reducer completes. - fn debug_fill_aura_slots( - &self, - target_guid: u64, - caster_guid: u64, - debuff: bool, - count: u8, - ) -> __sdk::Result<()> { - self.debug_fill_aura_slots_then(target_guid, caster_guid, debuff, count, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_fill_aura_slots` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_fill_aura_slots_then( - &self, - target_guid: u64, - caster_guid: u64, - debuff: bool, - count: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_fill_aura_slots for super::RemoteReducers { - fn debug_fill_aura_slots_then( - &self, - target_guid: u64, - caster_guid: u64, - debuff: bool, - count: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugFillAuraSlotsArgs { - target_guid, - caster_guid, - debuff, - count, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_fish_reducer.rs b/gateway/src/stdb/bindings/debug_fish_reducer.rs deleted file mode 100644 index 2eab2fd86..000000000 --- a/gateway/src/stdb/bindings/debug_fish_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugFishArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugFishArgs) -> Self { - Self::DebugFish { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugFishArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_fish`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_fish { - /// Request that the remote module invoke the reducer `debug_fish` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_fish:debug_fish_then`] to run a callback after the reducer completes. - fn debug_fish(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_fish_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_fish` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_fish_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_fish for super::RemoteReducers { - fn debug_fish_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugFishArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_floor_probe_reducer.rs b/gateway/src/stdb/bindings/debug_floor_probe_reducer.rs deleted file mode 100644 index e2c28a1a7..000000000 --- a/gateway/src/stdb/bindings/debug_floor_probe_reducer.rs +++ /dev/null @@ -1,80 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugFloorProbeArgs { - pub map: u32, - pub x: f32, - pub y: f32, - pub probe_z: f32, -} - -impl From for super::Reducer { - fn from(args: DebugFloorProbeArgs) -> Self { - Self::DebugFloorProbe { - map: args.map, - x: args.x, - y: args.y, - probe_z: args.probe_z, - } - } -} - -impl __sdk::InModule for DebugFloorProbeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_floor_probe`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_floor_probe { - /// Request that the remote module invoke the reducer `debug_floor_probe` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_floor_probe:debug_floor_probe_then`] to run a callback after the reducer completes. - fn debug_floor_probe(&self, map: u32, x: f32, y: f32, probe_z: f32) -> __sdk::Result<()> { - self.debug_floor_probe_then(map, x, y, probe_z, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_floor_probe` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_floor_probe_then( - &self, - map: u32, - x: f32, - y: f32, - probe_z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_floor_probe for super::RemoteReducers { - fn debug_floor_probe_then( - &self, - map: u32, - x: f32, - y: f32, - probe_z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugFloorProbeArgs { map, x, y, probe_z }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_force_cast_at_reducer.rs b/gateway/src/stdb/bindings/debug_force_cast_at_reducer.rs deleted file mode 100644 index cef6d0a4e..000000000 --- a/gateway/src/stdb/bindings/debug_force_cast_at_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugForceCastAtArgs { - pub caster_guid: u64, - pub spell_id: u32, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugForceCastAtArgs) -> Self { - Self::DebugForceCastAt { - caster_guid: args.caster_guid, - spell_id: args.spell_id, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugForceCastAtArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_force_cast_at`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_force_cast_at { - /// Request that the remote module invoke the reducer `debug_force_cast_at` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_force_cast_at:debug_force_cast_at_then`] to run a callback after the reducer completes. - fn debug_force_cast_at( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - ) -> __sdk::Result<()> { - self.debug_force_cast_at_then(caster_guid, spell_id, target_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_force_cast_at` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_force_cast_at_then( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_force_cast_at for super::RemoteReducers { - fn debug_force_cast_at_then( - &self, - caster_guid: u64, - spell_id: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugForceCastAtArgs { - caster_guid, - spell_id, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_force_cast_reducer.rs b/gateway/src/stdb/bindings/debug_force_cast_reducer.rs deleted file mode 100644 index 2d2f97208..000000000 --- a/gateway/src/stdb/bindings/debug_force_cast_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugForceCastArgs { - pub character_guid: u64, - pub spell_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugForceCastArgs) -> Self { - Self::DebugForceCast { - character_guid: args.character_guid, - spell_id: args.spell_id, - } - } -} - -impl __sdk::InModule for DebugForceCastArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_force_cast`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_force_cast { - /// Request that the remote module invoke the reducer `debug_force_cast` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_force_cast:debug_force_cast_then`] to run a callback after the reducer completes. - fn debug_force_cast(&self, character_guid: u64, spell_id: u32) -> __sdk::Result<()> { - self.debug_force_cast_then(character_guid, spell_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_force_cast` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_force_cast_then( - &self, - character_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_force_cast for super::RemoteReducers { - fn debug_force_cast_then( - &self, - character_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugForceCastArgs { - character_guid, - spell_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_force_gameobject_respawn_reducer.rs b/gateway/src/stdb/bindings/debug_force_gameobject_respawn_reducer.rs deleted file mode 100644 index 1fa2f0f2d..000000000 --- a/gateway/src/stdb/bindings/debug_force_gameobject_respawn_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugForceGameobjectRespawnArgs { - pub go_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugForceGameobjectRespawnArgs) -> Self { - Self::DebugForceGameobjectRespawn { - go_entry: args.go_entry, - } - } -} - -impl __sdk::InModule for DebugForceGameobjectRespawnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_force_gameobject_respawn`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_force_gameobject_respawn { - /// Request that the remote module invoke the reducer `debug_force_gameobject_respawn` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_force_gameobject_respawn:debug_force_gameobject_respawn_then`] to run a callback after the reducer completes. - fn debug_force_gameobject_respawn(&self, go_entry: u32) -> __sdk::Result<()> { - self.debug_force_gameobject_respawn_then(go_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_force_gameobject_respawn` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_force_gameobject_respawn_then( - &self, - go_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_force_gameobject_respawn for super::RemoteReducers { - fn debug_force_gameobject_respawn_then( - &self, - go_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugForceGameobjectRespawnArgs { go_entry }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_force_lethal_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_force_lethal_damage_floor_fixture_reducer.rs deleted file mode 100644 index 7c89c6644..000000000 --- a/gateway/src/stdb/bindings/debug_force_lethal_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugForceLethalDamageFloorFixtureArgs { - pub creature_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugForceLethalDamageFloorFixtureArgs) -> Self { - Self::DebugForceLethalDamageFloorFixture { - creature_guid: args.creature_guid, - } - } -} - -impl __sdk::InModule for DebugForceLethalDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_force_lethal_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_force_lethal_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_force_lethal_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_force_lethal_damage_floor_fixture:debug_force_lethal_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_force_lethal_damage_floor_fixture(&self, creature_guid: u64) -> __sdk::Result<()> { - self.debug_force_lethal_damage_floor_fixture_then(creature_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_force_lethal_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_force_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_force_lethal_damage_floor_fixture for super::RemoteReducers { - fn debug_force_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugForceLethalDamageFloorFixtureArgs { creature_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_force_pool_reroll_reducer.rs b/gateway/src/stdb/bindings/debug_force_pool_reroll_reducer.rs deleted file mode 100644 index e8e5abbb7..000000000 --- a/gateway/src/stdb/bindings/debug_force_pool_reroll_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugForcePoolRerollArgs { - pub pool_id: u32, - pub gathered_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugForcePoolRerollArgs) -> Self { - Self::DebugForcePoolReroll { - pool_id: args.pool_id, - gathered_guid: args.gathered_guid, - } - } -} - -impl __sdk::InModule for DebugForcePoolRerollArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_force_pool_reroll`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_force_pool_reroll { - /// Request that the remote module invoke the reducer `debug_force_pool_reroll` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_force_pool_reroll:debug_force_pool_reroll_then`] to run a callback after the reducer completes. - fn debug_force_pool_reroll(&self, pool_id: u32, gathered_guid: u64) -> __sdk::Result<()> { - self.debug_force_pool_reroll_then(pool_id, gathered_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_force_pool_reroll` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_force_pool_reroll_then( - &self, - pool_id: u32, - gathered_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_force_pool_reroll for super::RemoteReducers { - fn debug_force_pool_reroll_then( - &self, - pool_id: u32, - gathered_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugForcePoolRerollArgs { - pool_id, - gathered_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_gossip_select_reducer.rs b/gateway/src/stdb/bindings/debug_gossip_select_reducer.rs deleted file mode 100644 index c7c3571ea..000000000 --- a/gateway/src/stdb/bindings/debug_gossip_select_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugGossipSelectArgs { - pub character_guid: u64, - pub npc_guid: u64, - pub option_id: u32, - pub option_row_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugGossipSelectArgs) -> Self { - Self::DebugGossipSelect { - character_guid: args.character_guid, - npc_guid: args.npc_guid, - option_id: args.option_id, - option_row_id: args.option_row_id, - } - } -} - -impl __sdk::InModule for DebugGossipSelectArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_gossip_select`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_gossip_select { - /// Request that the remote module invoke the reducer `debug_gossip_select` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_gossip_select:debug_gossip_select_then`] to run a callback after the reducer completes. - fn debug_gossip_select( - &self, - character_guid: u64, - npc_guid: u64, - option_id: u32, - option_row_id: u32, - ) -> __sdk::Result<()> { - self.debug_gossip_select_then( - character_guid, - npc_guid, - option_id, - option_row_id, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_gossip_select` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_gossip_select_then( - &self, - character_guid: u64, - npc_guid: u64, - option_id: u32, - option_row_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_gossip_select for super::RemoteReducers { - fn debug_gossip_select_then( - &self, - character_guid: u64, - npc_guid: u64, - option_id: u32, - option_row_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugGossipSelectArgs { - character_guid, - npc_guid, - option_id, - option_row_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_grant_default_actions_reducer.rs b/gateway/src/stdb/bindings/debug_grant_default_actions_reducer.rs deleted file mode 100644 index 4169979fc..000000000 --- a/gateway/src/stdb/bindings/debug_grant_default_actions_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugGrantDefaultActionsArgs { - pub character_name: String, -} - -impl From for super::Reducer { - fn from(args: DebugGrantDefaultActionsArgs) -> Self { - Self::DebugGrantDefaultActions { - character_name: args.character_name, - } - } -} - -impl __sdk::InModule for DebugGrantDefaultActionsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_grant_default_actions`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_grant_default_actions { - /// Request that the remote module invoke the reducer `debug_grant_default_actions` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_grant_default_actions:debug_grant_default_actions_then`] to run a callback after the reducer completes. - fn debug_grant_default_actions(&self, character_name: String) -> __sdk::Result<()> { - self.debug_grant_default_actions_then(character_name, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_grant_default_actions` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_grant_default_actions_then( - &self, - character_name: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_grant_default_actions for super::RemoteReducers { - fn debug_grant_default_actions_then( - &self, - character_name: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugGrantDefaultActionsArgs { character_name }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_grant_item_reducer.rs b/gateway/src/stdb/bindings/debug_grant_item_reducer.rs deleted file mode 100644 index 9316c6070..000000000 --- a/gateway/src/stdb/bindings/debug_grant_item_reducer.rs +++ /dev/null @@ -1,82 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugGrantItemArgs { - pub character_guid: u64, - pub entry: u32, - pub count: u32, -} - -impl From for super::Reducer { - fn from(args: DebugGrantItemArgs) -> Self { - Self::DebugGrantItem { - character_guid: args.character_guid, - entry: args.entry, - count: args.count, - } - } -} - -impl __sdk::InModule for DebugGrantItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_grant_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_grant_item { - /// Request that the remote module invoke the reducer `debug_grant_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_grant_item:debug_grant_item_then`] to run a callback after the reducer completes. - fn debug_grant_item(&self, character_guid: u64, entry: u32, count: u32) -> __sdk::Result<()> { - self.debug_grant_item_then(character_guid, entry, count, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_grant_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_grant_item_then( - &self, - character_guid: u64, - entry: u32, - count: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_grant_item for super::RemoteReducers { - fn debug_grant_item_then( - &self, - character_guid: u64, - entry: u32, - count: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugGrantItemArgs { - character_guid, - entry, - count, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_grant_quest_reducer.rs b/gateway/src/stdb/bindings/debug_grant_quest_reducer.rs deleted file mode 100644 index ea911b693..000000000 --- a/gateway/src/stdb/bindings/debug_grant_quest_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugGrantQuestArgs { - pub character_guid: u64, - pub quest_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugGrantQuestArgs) -> Self { - Self::DebugGrantQuest { - character_guid: args.character_guid, - quest_entry: args.quest_entry, - } - } -} - -impl __sdk::InModule for DebugGrantQuestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_grant_quest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_grant_quest { - /// Request that the remote module invoke the reducer `debug_grant_quest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_grant_quest:debug_grant_quest_then`] to run a callback after the reducer completes. - fn debug_grant_quest(&self, character_guid: u64, quest_entry: u32) -> __sdk::Result<()> { - self.debug_grant_quest_then(character_guid, quest_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_grant_quest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_grant_quest_then( - &self, - character_guid: u64, - quest_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_grant_quest for super::RemoteReducers { - fn debug_grant_quest_then( - &self, - character_guid: u64, - quest_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugGrantQuestArgs { - character_guid, - quest_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_grant_reputation_reducer.rs b/gateway/src/stdb/bindings/debug_grant_reputation_reducer.rs deleted file mode 100644 index f98b969e7..000000000 --- a/gateway/src/stdb/bindings/debug_grant_reputation_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugGrantReputationArgs { - pub character_guid: u64, - pub faction_id: u32, - pub amount: i32, -} - -impl From for super::Reducer { - fn from(args: DebugGrantReputationArgs) -> Self { - Self::DebugGrantReputation { - character_guid: args.character_guid, - faction_id: args.faction_id, - amount: args.amount, - } - } -} - -impl __sdk::InModule for DebugGrantReputationArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_grant_reputation`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_grant_reputation { - /// Request that the remote module invoke the reducer `debug_grant_reputation` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_grant_reputation:debug_grant_reputation_then`] to run a callback after the reducer completes. - fn debug_grant_reputation( - &self, - character_guid: u64, - faction_id: u32, - amount: i32, - ) -> __sdk::Result<()> { - self.debug_grant_reputation_then(character_guid, faction_id, amount, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_grant_reputation` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_grant_reputation_then( - &self, - character_guid: u64, - faction_id: u32, - amount: i32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_grant_reputation for super::RemoteReducers { - fn debug_grant_reputation_then( - &self, - character_guid: u64, - faction_id: u32, - amount: i32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugGrantReputationArgs { - character_guid, - faction_id, - amount, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_hold_instance_removals_reducer.rs b/gateway/src/stdb/bindings/debug_hold_instance_removals_reducer.rs deleted file mode 100644 index fd76125b0..000000000 --- a/gateway/src/stdb/bindings/debug_hold_instance_removals_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugHoldInstanceRemovalsArgs {} - -impl From for super::Reducer { - fn from(args: DebugHoldInstanceRemovalsArgs) -> Self { - Self::DebugHoldInstanceRemovals - } -} - -impl __sdk::InModule for DebugHoldInstanceRemovalsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_hold_instance_removals`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_hold_instance_removals { - /// Request that the remote module invoke the reducer `debug_hold_instance_removals` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_hold_instance_removals:debug_hold_instance_removals_then`] to run a callback after the reducer completes. - fn debug_hold_instance_removals(&self) -> __sdk::Result<()> { - self.debug_hold_instance_removals_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_hold_instance_removals` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_hold_instance_removals_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_hold_instance_removals for super::RemoteReducers { - fn debug_hold_instance_removals_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugHoldInstanceRemovalsArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_kill_creature_reducer.rs b/gateway/src/stdb/bindings/debug_kill_creature_reducer.rs deleted file mode 100644 index 5525f4fb3..000000000 --- a/gateway/src/stdb/bindings/debug_kill_creature_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugKillCreatureArgs { - pub killer_guid: u64, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugKillCreatureArgs) -> Self { - Self::DebugKillCreature { - killer_guid: args.killer_guid, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugKillCreatureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_kill_creature`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_kill_creature { - /// Request that the remote module invoke the reducer `debug_kill_creature` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_kill_creature:debug_kill_creature_then`] to run a callback after the reducer completes. - fn debug_kill_creature(&self, killer_guid: u64, target_guid: u64) -> __sdk::Result<()> { - self.debug_kill_creature_then(killer_guid, target_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_kill_creature` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_kill_creature_then( - &self, - killer_guid: u64, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_kill_creature for super::RemoteReducers { - fn debug_kill_creature_then( - &self, - killer_guid: u64, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugKillCreatureArgs { - killer_guid, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_kill_nearest_reducer.rs b/gateway/src/stdb/bindings/debug_kill_nearest_reducer.rs deleted file mode 100644 index 23a47a190..000000000 --- a/gateway/src/stdb/bindings/debug_kill_nearest_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugKillNearestArgs { - pub killer_guid: u64, - pub creature_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugKillNearestArgs) -> Self { - Self::DebugKillNearest { - killer_guid: args.killer_guid, - creature_entry: args.creature_entry, - } - } -} - -impl __sdk::InModule for DebugKillNearestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_kill_nearest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_kill_nearest { - /// Request that the remote module invoke the reducer `debug_kill_nearest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_kill_nearest:debug_kill_nearest_then`] to run a callback after the reducer completes. - fn debug_kill_nearest(&self, killer_guid: u64, creature_entry: u32) -> __sdk::Result<()> { - self.debug_kill_nearest_then(killer_guid, creature_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_kill_nearest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_kill_nearest_then( - &self, - killer_guid: u64, - creature_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_kill_nearest for super::RemoteReducers { - fn debug_kill_nearest_then( - &self, - killer_guid: u64, - creature_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugKillNearestArgs { - killer_guid, - creature_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_learn_profession_from_trainer_reducer.rs b/gateway/src/stdb/bindings/debug_learn_profession_from_trainer_reducer.rs deleted file mode 100644 index e0dd4aea2..000000000 --- a/gateway/src/stdb/bindings/debug_learn_profession_from_trainer_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLearnProfessionFromTrainerArgs { - pub character_guid: u64, - pub profession: u32, -} - -impl From for super::Reducer { - fn from(args: DebugLearnProfessionFromTrainerArgs) -> Self { - Self::DebugLearnProfessionFromTrainer { - character_guid: args.character_guid, - profession: args.profession, - } - } -} - -impl __sdk::InModule for DebugLearnProfessionFromTrainerArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_learn_profession_from_trainer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_learn_profession_from_trainer { - /// Request that the remote module invoke the reducer `debug_learn_profession_from_trainer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_learn_profession_from_trainer:debug_learn_profession_from_trainer_then`] to run a callback after the reducer completes. - fn debug_learn_profession_from_trainer( - &self, - character_guid: u64, - profession: u32, - ) -> __sdk::Result<()> { - self.debug_learn_profession_from_trainer_then(character_guid, profession, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_learn_profession_from_trainer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_learn_profession_from_trainer_then( - &self, - character_guid: u64, - profession: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_learn_profession_from_trainer for super::RemoteReducers { - fn debug_learn_profession_from_trainer_then( - &self, - character_guid: u64, - profession: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugLearnProfessionFromTrainerArgs { - character_guid, - profession, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_learn_profession_reducer.rs b/gateway/src/stdb/bindings/debug_learn_profession_reducer.rs deleted file mode 100644 index 5f83a1c29..000000000 --- a/gateway/src/stdb/bindings/debug_learn_profession_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLearnProfessionArgs { - pub character_guid: u64, - pub skill_line: u32, - pub cap: u32, -} - -impl From for super::Reducer { - fn from(args: DebugLearnProfessionArgs) -> Self { - Self::DebugLearnProfession { - character_guid: args.character_guid, - skill_line: args.skill_line, - cap: args.cap, - } - } -} - -impl __sdk::InModule for DebugLearnProfessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_learn_profession`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_learn_profession { - /// Request that the remote module invoke the reducer `debug_learn_profession` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_learn_profession:debug_learn_profession_then`] to run a callback after the reducer completes. - fn debug_learn_profession( - &self, - character_guid: u64, - skill_line: u32, - cap: u32, - ) -> __sdk::Result<()> { - self.debug_learn_profession_then(character_guid, skill_line, cap, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_learn_profession` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_learn_profession_then( - &self, - character_guid: u64, - skill_line: u32, - cap: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_learn_profession for super::RemoteReducers { - fn debug_learn_profession_then( - &self, - character_guid: u64, - skill_line: u32, - cap: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugLearnProfessionArgs { - character_guid, - skill_line, - cap, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_learn_riding_from_trainer_reducer.rs b/gateway/src/stdb/bindings/debug_learn_riding_from_trainer_reducer.rs deleted file mode 100644 index e804a0efa..000000000 --- a/gateway/src/stdb/bindings/debug_learn_riding_from_trainer_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLearnRidingFromTrainerArgs { - pub character_guid: u64, - pub rank: u32, -} - -impl From for super::Reducer { - fn from(args: DebugLearnRidingFromTrainerArgs) -> Self { - Self::DebugLearnRidingFromTrainer { - character_guid: args.character_guid, - rank: args.rank, - } - } -} - -impl __sdk::InModule for DebugLearnRidingFromTrainerArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_learn_riding_from_trainer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_learn_riding_from_trainer { - /// Request that the remote module invoke the reducer `debug_learn_riding_from_trainer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_learn_riding_from_trainer:debug_learn_riding_from_trainer_then`] to run a callback after the reducer completes. - fn debug_learn_riding_from_trainer(&self, character_guid: u64, rank: u32) -> __sdk::Result<()> { - self.debug_learn_riding_from_trainer_then(character_guid, rank, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_learn_riding_from_trainer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_learn_riding_from_trainer_then( - &self, - character_guid: u64, - rank: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_learn_riding_from_trainer for super::RemoteReducers { - fn debug_learn_riding_from_trainer_then( - &self, - character_guid: u64, - rank: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugLearnRidingFromTrainerArgs { - character_guid, - rank, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_learn_riding_reducer.rs b/gateway/src/stdb/bindings/debug_learn_riding_reducer.rs deleted file mode 100644 index 5a96e96be..000000000 --- a/gateway/src/stdb/bindings/debug_learn_riding_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLearnRidingArgs { - pub character_guid: u64, - pub rank: u32, -} - -impl From for super::Reducer { - fn from(args: DebugLearnRidingArgs) -> Self { - Self::DebugLearnRiding { - character_guid: args.character_guid, - rank: args.rank, - } - } -} - -impl __sdk::InModule for DebugLearnRidingArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_learn_riding`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_learn_riding { - /// Request that the remote module invoke the reducer `debug_learn_riding` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_learn_riding:debug_learn_riding_then`] to run a callback after the reducer completes. - fn debug_learn_riding(&self, character_guid: u64, rank: u32) -> __sdk::Result<()> { - self.debug_learn_riding_then(character_guid, rank, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_learn_riding` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_learn_riding_then( - &self, - character_guid: u64, - rank: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_learn_riding for super::RemoteReducers { - fn debug_learn_riding_then( - &self, - character_guid: u64, - rank: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugLearnRidingArgs { - character_guid, - rank, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_learn_spell_reducer.rs b/gateway/src/stdb/bindings/debug_learn_spell_reducer.rs deleted file mode 100644 index e5d69019c..000000000 --- a/gateway/src/stdb/bindings/debug_learn_spell_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLearnSpellArgs { - pub character_guid: u64, - pub spell_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugLearnSpellArgs) -> Self { - Self::DebugLearnSpell { - character_guid: args.character_guid, - spell_id: args.spell_id, - } - } -} - -impl __sdk::InModule for DebugLearnSpellArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_learn_spell`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_learn_spell { - /// Request that the remote module invoke the reducer `debug_learn_spell` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_learn_spell:debug_learn_spell_then`] to run a callback after the reducer completes. - fn debug_learn_spell(&self, character_guid: u64, spell_id: u32) -> __sdk::Result<()> { - self.debug_learn_spell_then(character_guid, spell_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_learn_spell` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_learn_spell_then( - &self, - character_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_learn_spell for super::RemoteReducers { - fn debug_learn_spell_then( - &self, - character_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugLearnSpellArgs { - character_guid, - spell_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_learn_talent_reducer.rs b/gateway/src/stdb/bindings/debug_learn_talent_reducer.rs deleted file mode 100644 index d17e9c63b..000000000 --- a/gateway/src/stdb/bindings/debug_learn_talent_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLearnTalentArgs { - pub character_guid: u64, - pub talent_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugLearnTalentArgs) -> Self { - Self::DebugLearnTalent { - character_guid: args.character_guid, - talent_id: args.talent_id, - } - } -} - -impl __sdk::InModule for DebugLearnTalentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_learn_talent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_learn_talent { - /// Request that the remote module invoke the reducer `debug_learn_talent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_learn_talent:debug_learn_talent_then`] to run a callback after the reducer completes. - fn debug_learn_talent(&self, character_guid: u64, talent_id: u32) -> __sdk::Result<()> { - self.debug_learn_talent_then(character_guid, talent_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_learn_talent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_learn_talent_then( - &self, - character_guid: u64, - talent_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_learn_talent for super::RemoteReducers { - fn debug_learn_talent_then( - &self, - character_guid: u64, - talent_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugLearnTalentArgs { - character_guid, - talent_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_learn_weapon_from_trainer_reducer.rs b/gateway/src/stdb/bindings/debug_learn_weapon_from_trainer_reducer.rs deleted file mode 100644 index 6a420bf96..000000000 --- a/gateway/src/stdb/bindings/debug_learn_weapon_from_trainer_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLearnWeaponFromTrainerArgs { - pub character_guid: u64, - pub skill_line: u32, -} - -impl From for super::Reducer { - fn from(args: DebugLearnWeaponFromTrainerArgs) -> Self { - Self::DebugLearnWeaponFromTrainer { - character_guid: args.character_guid, - skill_line: args.skill_line, - } - } -} - -impl __sdk::InModule for DebugLearnWeaponFromTrainerArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_learn_weapon_from_trainer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_learn_weapon_from_trainer { - /// Request that the remote module invoke the reducer `debug_learn_weapon_from_trainer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_learn_weapon_from_trainer:debug_learn_weapon_from_trainer_then`] to run a callback after the reducer completes. - fn debug_learn_weapon_from_trainer( - &self, - character_guid: u64, - skill_line: u32, - ) -> __sdk::Result<()> { - self.debug_learn_weapon_from_trainer_then(character_guid, skill_line, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_learn_weapon_from_trainer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_learn_weapon_from_trainer_then( - &self, - character_guid: u64, - skill_line: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_learn_weapon_from_trainer for super::RemoteReducers { - fn debug_learn_weapon_from_trainer_then( - &self, - character_guid: u64, - skill_line: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugLearnWeaponFromTrainerArgs { - character_guid, - skill_line, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_log_vendor_discount_reducer.rs b/gateway/src/stdb/bindings/debug_log_vendor_discount_reducer.rs deleted file mode 100644 index fb633eae1..000000000 --- a/gateway/src/stdb/bindings/debug_log_vendor_discount_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLogVendorDiscountArgs { - pub player_guid: u64, - pub faction_template_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugLogVendorDiscountArgs) -> Self { - Self::DebugLogVendorDiscount { - player_guid: args.player_guid, - faction_template_id: args.faction_template_id, - } - } -} - -impl __sdk::InModule for DebugLogVendorDiscountArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_log_vendor_discount`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_log_vendor_discount { - /// Request that the remote module invoke the reducer `debug_log_vendor_discount` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_log_vendor_discount:debug_log_vendor_discount_then`] to run a callback after the reducer completes. - fn debug_log_vendor_discount( - &self, - player_guid: u64, - faction_template_id: u32, - ) -> __sdk::Result<()> { - self.debug_log_vendor_discount_then(player_guid, faction_template_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_log_vendor_discount` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_log_vendor_discount_then( - &self, - player_guid: u64, - faction_template_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_log_vendor_discount for super::RemoteReducers { - fn debug_log_vendor_discount_then( - &self, - player_guid: u64, - faction_template_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugLogVendorDiscountArgs { - player_guid, - faction_template_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_logout_character_reducer.rs b/gateway/src/stdb/bindings/debug_logout_character_reducer.rs deleted file mode 100644 index ae8f19102..000000000 --- a/gateway/src/stdb/bindings/debug_logout_character_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugLogoutCharacterArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugLogoutCharacterArgs) -> Self { - Self::DebugLogoutCharacter { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugLogoutCharacterArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_logout_character`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_logout_character { - /// Request that the remote module invoke the reducer `debug_logout_character` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_logout_character:debug_logout_character_then`] to run a callback after the reducer completes. - fn debug_logout_character(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_logout_character_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_logout_character` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_logout_character_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_logout_character for super::RemoteReducers { - fn debug_logout_character_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugLogoutCharacterArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_move_item_reducer.rs b/gateway/src/stdb/bindings/debug_move_item_reducer.rs deleted file mode 100644 index 07fde6ae3..000000000 --- a/gateway/src/stdb/bindings/debug_move_item_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugMoveItemArgs { - pub character_guid: u64, - pub from_slot: u8, - pub to_slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugMoveItemArgs) -> Self { - Self::DebugMoveItem { - character_guid: args.character_guid, - from_slot: args.from_slot, - to_slot: args.to_slot, - } - } -} - -impl __sdk::InModule for DebugMoveItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_move_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_move_item { - /// Request that the remote module invoke the reducer `debug_move_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_move_item:debug_move_item_then`] to run a callback after the reducer completes. - fn debug_move_item( - &self, - character_guid: u64, - from_slot: u8, - to_slot: u8, - ) -> __sdk::Result<()> { - self.debug_move_item_then(character_guid, from_slot, to_slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_move_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_move_item_then( - &self, - character_guid: u64, - from_slot: u8, - to_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_move_item for super::RemoteReducers { - fn debug_move_item_then( - &self, - character_guid: u64, - from_slot: u8, - to_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugMoveItemArgs { - character_guid, - from_slot, - to_slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_nav_leg_reducer.rs b/gateway/src/stdb/bindings/debug_nav_leg_reducer.rs deleted file mode 100644 index db63839af..000000000 --- a/gateway/src/stdb/bindings/debug_nav_leg_reducer.rs +++ /dev/null @@ -1,92 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugNavLegArgs { - pub map: u32, - pub x_0: f32, - pub y_0: f32, - pub x_1: f32, - pub y_1: f32, -} - -impl From for super::Reducer { - fn from(args: DebugNavLegArgs) -> Self { - Self::DebugNavLeg { - map: args.map, - x_0: args.x_0, - y_0: args.y_0, - x_1: args.x_1, - y_1: args.y_1, - } - } -} - -impl __sdk::InModule for DebugNavLegArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_nav_leg`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_nav_leg { - /// Request that the remote module invoke the reducer `debug_nav_leg` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_nav_leg:debug_nav_leg_then`] to run a callback after the reducer completes. - fn debug_nav_leg(&self, map: u32, x_0: f32, y_0: f32, x_1: f32, y_1: f32) -> __sdk::Result<()> { - self.debug_nav_leg_then(map, x_0, y_0, x_1, y_1, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_nav_leg` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_nav_leg_then( - &self, - map: u32, - x_0: f32, - y_0: f32, - x_1: f32, - y_1: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_nav_leg for super::RemoteReducers { - fn debug_nav_leg_then( - &self, - map: u32, - x_0: f32, - y_0: f32, - x_1: f32, - y_1: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugNavLegArgs { - map, - x_0, - y_0, - x_1, - y_1, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_nav_probe_reducer.rs b/gateway/src/stdb/bindings/debug_nav_probe_reducer.rs deleted file mode 100644 index 8ca12d3cb..000000000 --- a/gateway/src/stdb/bindings/debug_nav_probe_reducer.rs +++ /dev/null @@ -1,76 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugNavProbeArgs { - pub map: u32, - pub x: f32, - pub y: f32, -} - -impl From for super::Reducer { - fn from(args: DebugNavProbeArgs) -> Self { - Self::DebugNavProbe { - map: args.map, - x: args.x, - y: args.y, - } - } -} - -impl __sdk::InModule for DebugNavProbeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_nav_probe`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_nav_probe { - /// Request that the remote module invoke the reducer `debug_nav_probe` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_nav_probe:debug_nav_probe_then`] to run a callback after the reducer completes. - fn debug_nav_probe(&self, map: u32, x: f32, y: f32) -> __sdk::Result<()> { - self.debug_nav_probe_then(map, x, y, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_nav_probe` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_nav_probe_then( - &self, - map: u32, - x: f32, - y: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_nav_probe for super::RemoteReducers { - fn debug_nav_probe_then( - &self, - map: u32, - x: f32, - y: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugNavProbeArgs { map, x, y }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_normalize_spawn_timers_reducer.rs b/gateway/src/stdb/bindings/debug_normalize_spawn_timers_reducer.rs deleted file mode 100644 index 3383b6775..000000000 --- a/gateway/src/stdb/bindings/debug_normalize_spawn_timers_reducer.rs +++ /dev/null @@ -1,66 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugNormalizeSpawnTimersArgs { - pub limit: u32, -} - -impl From for super::Reducer { - fn from(args: DebugNormalizeSpawnTimersArgs) -> Self { - Self::DebugNormalizeSpawnTimers { limit: args.limit } - } -} - -impl __sdk::InModule for DebugNormalizeSpawnTimersArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_normalize_spawn_timers`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_normalize_spawn_timers { - /// Request that the remote module invoke the reducer `debug_normalize_spawn_timers` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_normalize_spawn_timers:debug_normalize_spawn_timers_then`] to run a callback after the reducer completes. - fn debug_normalize_spawn_timers(&self, limit: u32) -> __sdk::Result<()> { - self.debug_normalize_spawn_timers_then(limit, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_normalize_spawn_timers` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_normalize_spawn_timers_then( - &self, - limit: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_normalize_spawn_timers for super::RemoteReducers { - fn debug_normalize_spawn_timers_then( - &self, - limit: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugNormalizeSpawnTimersArgs { limit }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_pet_command_reducer.rs b/gateway/src/stdb/bindings/debug_pet_command_reducer.rs deleted file mode 100644 index df0568ee2..000000000 --- a/gateway/src/stdb/bindings/debug_pet_command_reducer.rs +++ /dev/null @@ -1,82 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugPetCommandArgs { - pub owner_guid: u64, - pub data: u32, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugPetCommandArgs) -> Self { - Self::DebugPetCommand { - owner_guid: args.owner_guid, - data: args.data, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugPetCommandArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_pet_command`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_pet_command { - /// Request that the remote module invoke the reducer `debug_pet_command` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_pet_command:debug_pet_command_then`] to run a callback after the reducer completes. - fn debug_pet_command(&self, owner_guid: u64, data: u32, target_guid: u64) -> __sdk::Result<()> { - self.debug_pet_command_then(owner_guid, data, target_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_pet_command` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_pet_command_then( - &self, - owner_guid: u64, - data: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_pet_command for super::RemoteReducers { - fn debug_pet_command_then( - &self, - owner_guid: u64, - data: u32, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugPetCommandArgs { - owner_guid, - data, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_pick_lock_entry_reducer.rs b/gateway/src/stdb/bindings/debug_pick_lock_entry_reducer.rs deleted file mode 100644 index 852540eb1..000000000 --- a/gateway/src/stdb/bindings/debug_pick_lock_entry_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugPickLockEntryArgs { - pub character_guid: u64, - pub go_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugPickLockEntryArgs) -> Self { - Self::DebugPickLockEntry { - character_guid: args.character_guid, - go_entry: args.go_entry, - } - } -} - -impl __sdk::InModule for DebugPickLockEntryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_pick_lock_entry`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_pick_lock_entry { - /// Request that the remote module invoke the reducer `debug_pick_lock_entry` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_pick_lock_entry:debug_pick_lock_entry_then`] to run a callback after the reducer completes. - fn debug_pick_lock_entry(&self, character_guid: u64, go_entry: u32) -> __sdk::Result<()> { - self.debug_pick_lock_entry_then(character_guid, go_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_pick_lock_entry` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_pick_lock_entry_then( - &self, - character_guid: u64, - go_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_pick_lock_entry for super::RemoteReducers { - fn debug_pick_lock_entry_then( - &self, - character_guid: u64, - go_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugPickLockEntryArgs { - character_guid, - go_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_push_quest_reducer.rs b/gateway/src/stdb/bindings/debug_push_quest_reducer.rs deleted file mode 100644 index 27b0652c2..000000000 --- a/gateway/src/stdb/bindings/debug_push_quest_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugPushQuestArgs { - pub character_guid: u64, - pub quest_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugPushQuestArgs) -> Self { - Self::DebugPushQuest { - character_guid: args.character_guid, - quest_entry: args.quest_entry, - } - } -} - -impl __sdk::InModule for DebugPushQuestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_push_quest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_push_quest { - /// Request that the remote module invoke the reducer `debug_push_quest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_push_quest:debug_push_quest_then`] to run a callback after the reducer completes. - fn debug_push_quest(&self, character_guid: u64, quest_entry: u32) -> __sdk::Result<()> { - self.debug_push_quest_then(character_guid, quest_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_push_quest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_push_quest_then( - &self, - character_guid: u64, - quest_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_push_quest for super::RemoteReducers { - fn debug_push_quest_then( - &self, - character_guid: u64, - quest_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugPushQuestArgs { - character_guid, - quest_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_ranged_attack_nearest_reducer.rs b/gateway/src/stdb/bindings/debug_ranged_attack_nearest_reducer.rs deleted file mode 100644 index 63024b8c1..000000000 --- a/gateway/src/stdb/bindings/debug_ranged_attack_nearest_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugRangedAttackNearestArgs { - pub attacker_guid: u64, - pub spell_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugRangedAttackNearestArgs) -> Self { - Self::DebugRangedAttackNearest { - attacker_guid: args.attacker_guid, - spell_id: args.spell_id, - } - } -} - -impl __sdk::InModule for DebugRangedAttackNearestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_ranged_attack_nearest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_ranged_attack_nearest { - /// Request that the remote module invoke the reducer `debug_ranged_attack_nearest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_ranged_attack_nearest:debug_ranged_attack_nearest_then`] to run a callback after the reducer completes. - fn debug_ranged_attack_nearest(&self, attacker_guid: u64, spell_id: u32) -> __sdk::Result<()> { - self.debug_ranged_attack_nearest_then(attacker_guid, spell_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_ranged_attack_nearest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_ranged_attack_nearest_then( - &self, - attacker_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_ranged_attack_nearest for super::RemoteReducers { - fn debug_ranged_attack_nearest_then( - &self, - attacker_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugRangedAttackNearestArgs { - attacker_guid, - spell_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_readout_type.rs b/gateway/src/stdb/bindings/debug_readout_type.rs deleted file mode 100644 index 7acbc8c4f..000000000 --- a/gateway/src/stdb/bindings/debug_readout_type.rs +++ /dev/null @@ -1,112 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct DebugReadout { - pub key: String, - pub base_min: u32, - pub base_max: u32, - pub mitigation_pct: u32, - pub final_min: u32, - pub final_max: u32, - pub note: String, - pub dodge_bp: u32, - pub crit_bp: u32, - pub hit_miss_bp: u32, - pub parry_bp: u32, - pub attack_time_ms: u32, - pub spell_crit_bp: u32, - pub spell_hit_normal: u32, - pub spell_hit_crit: u32, - pub damage_taken_pct: i32, - pub block_bp: u32, - pub block_value: u32, - pub attacker_weapon_skill: u32, - pub defender_defense_skill: u32, -} - -impl __sdk::InModule for DebugReadout { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `DebugReadout`. -/// -/// Provides typed access to columns for query building. -pub struct DebugReadoutCols { - pub key: __sdk::__query_builder::Col, - pub base_min: __sdk::__query_builder::Col, - pub base_max: __sdk::__query_builder::Col, - pub mitigation_pct: __sdk::__query_builder::Col, - pub final_min: __sdk::__query_builder::Col, - pub final_max: __sdk::__query_builder::Col, - pub note: __sdk::__query_builder::Col, - pub dodge_bp: __sdk::__query_builder::Col, - pub crit_bp: __sdk::__query_builder::Col, - pub hit_miss_bp: __sdk::__query_builder::Col, - pub parry_bp: __sdk::__query_builder::Col, - pub attack_time_ms: __sdk::__query_builder::Col, - pub spell_crit_bp: __sdk::__query_builder::Col, - pub spell_hit_normal: __sdk::__query_builder::Col, - pub spell_hit_crit: __sdk::__query_builder::Col, - pub damage_taken_pct: __sdk::__query_builder::Col, - pub block_bp: __sdk::__query_builder::Col, - pub block_value: __sdk::__query_builder::Col, - pub attacker_weapon_skill: __sdk::__query_builder::Col, - pub defender_defense_skill: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for DebugReadout { - type Cols = DebugReadoutCols; - fn cols(table_name: &'static str) -> Self::Cols { - DebugReadoutCols { - key: __sdk::__query_builder::Col::new(table_name, "key"), - base_min: __sdk::__query_builder::Col::new(table_name, "base_min"), - base_max: __sdk::__query_builder::Col::new(table_name, "base_max"), - mitigation_pct: __sdk::__query_builder::Col::new(table_name, "mitigation_pct"), - final_min: __sdk::__query_builder::Col::new(table_name, "final_min"), - final_max: __sdk::__query_builder::Col::new(table_name, "final_max"), - note: __sdk::__query_builder::Col::new(table_name, "note"), - dodge_bp: __sdk::__query_builder::Col::new(table_name, "dodge_bp"), - crit_bp: __sdk::__query_builder::Col::new(table_name, "crit_bp"), - hit_miss_bp: __sdk::__query_builder::Col::new(table_name, "hit_miss_bp"), - parry_bp: __sdk::__query_builder::Col::new(table_name, "parry_bp"), - attack_time_ms: __sdk::__query_builder::Col::new(table_name, "attack_time_ms"), - spell_crit_bp: __sdk::__query_builder::Col::new(table_name, "spell_crit_bp"), - spell_hit_normal: __sdk::__query_builder::Col::new(table_name, "spell_hit_normal"), - spell_hit_crit: __sdk::__query_builder::Col::new(table_name, "spell_hit_crit"), - damage_taken_pct: __sdk::__query_builder::Col::new(table_name, "damage_taken_pct"), - block_bp: __sdk::__query_builder::Col::new(table_name, "block_bp"), - block_value: __sdk::__query_builder::Col::new(table_name, "block_value"), - attacker_weapon_skill: __sdk::__query_builder::Col::new( - table_name, - "attacker_weapon_skill", - ), - defender_defense_skill: __sdk::__query_builder::Col::new( - table_name, - "defender_defense_skill", - ), - } - } -} - -/// Indexed column accessor struct for the table `DebugReadout`. -/// -/// Provides typed access to indexed columns for query building. -pub struct DebugReadoutIxCols { - pub key: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for DebugReadout { - type IxCols = DebugReadoutIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - DebugReadoutIxCols { - key: __sdk::__query_builder::IxCol::new(table_name, "key"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for DebugReadout {} diff --git a/gateway/src/stdb/bindings/debug_reap_instance_reducer.rs b/gateway/src/stdb/bindings/debug_reap_instance_reducer.rs deleted file mode 100644 index 31c5e65d7..000000000 --- a/gateway/src/stdb/bindings/debug_reap_instance_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugReapInstanceArgs { - pub instance_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugReapInstanceArgs) -> Self { - Self::DebugReapInstance { - instance_id: args.instance_id, - } - } -} - -impl __sdk::InModule for DebugReapInstanceArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_reap_instance`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_reap_instance { - /// Request that the remote module invoke the reducer `debug_reap_instance` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_reap_instance:debug_reap_instance_then`] to run a callback after the reducer completes. - fn debug_reap_instance(&self, instance_id: u64) -> __sdk::Result<()> { - self.debug_reap_instance_then(instance_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_reap_instance` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_reap_instance_then( - &self, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_reap_instance for super::RemoteReducers { - fn debug_reap_instance_then( - &self, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugReapInstanceArgs { instance_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_regrid_reducer.rs b/gateway/src/stdb/bindings/debug_regrid_reducer.rs deleted file mode 100644 index 73d2342eb..000000000 --- a/gateway/src/stdb/bindings/debug_regrid_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugRegridArgs {} - -impl From for super::Reducer { - fn from(args: DebugRegridArgs) -> Self { - Self::DebugRegrid - } -} - -impl __sdk::InModule for DebugRegridArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_regrid`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_regrid { - /// Request that the remote module invoke the reducer `debug_regrid` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_regrid:debug_regrid_then`] to run a callback after the reducer completes. - fn debug_regrid(&self) -> __sdk::Result<()> { - self.debug_regrid_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_regrid` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_regrid_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_regrid for super::RemoteReducers { - fn debug_regrid_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugRegridArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_repair_after_publish_reducer.rs b/gateway/src/stdb/bindings/debug_repair_after_publish_reducer.rs deleted file mode 100644 index 345e1fbf0..000000000 --- a/gateway/src/stdb/bindings/debug_repair_after_publish_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugRepairAfterPublishArgs {} - -impl From for super::Reducer { - fn from(args: DebugRepairAfterPublishArgs) -> Self { - Self::DebugRepairAfterPublish - } -} - -impl __sdk::InModule for DebugRepairAfterPublishArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_repair_after_publish`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_repair_after_publish { - /// Request that the remote module invoke the reducer `debug_repair_after_publish` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_repair_after_publish:debug_repair_after_publish_then`] to run a callback after the reducer completes. - fn debug_repair_after_publish(&self) -> __sdk::Result<()> { - self.debug_repair_after_publish_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_repair_after_publish` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_repair_after_publish_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_repair_after_publish for super::RemoteReducers { - fn debug_repair_after_publish_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugRepairAfterPublishArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_repair_item_reducer.rs b/gateway/src/stdb/bindings/debug_repair_item_reducer.rs deleted file mode 100644 index 6422e85fe..000000000 --- a/gateway/src/stdb/bindings/debug_repair_item_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugRepairItemArgs { - pub character_guid: u64, - pub slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugRepairItemArgs) -> Self { - Self::DebugRepairItem { - character_guid: args.character_guid, - slot: args.slot, - } - } -} - -impl __sdk::InModule for DebugRepairItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_repair_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_repair_item { - /// Request that the remote module invoke the reducer `debug_repair_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_repair_item:debug_repair_item_then`] to run a callback after the reducer completes. - fn debug_repair_item(&self, character_guid: u64, slot: u8) -> __sdk::Result<()> { - self.debug_repair_item_then(character_guid, slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_repair_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_repair_item_then( - &self, - character_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_repair_item for super::RemoteReducers { - fn debug_repair_item_then( - &self, - character_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugRepairItemArgs { - character_guid, - slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_replace_definition_then_apply_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_replace_definition_then_apply_damage_floor_fixture_reducer.rs deleted file mode 100644 index 639c1284d..000000000 --- a/gateway/src/stdb/bindings/debug_replace_definition_then_apply_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugReplaceDefinitionThenApplyDamageFloorFixtureArgs { - pub attacker_guid: u64, - pub target_guid: u64, - pub packed_definition: String, - pub rolled: u32, -} - -impl From for super::Reducer { - fn from(args: DebugReplaceDefinitionThenApplyDamageFloorFixtureArgs) -> Self { - Self::DebugReplaceDefinitionThenApplyDamageFloorFixture { - attacker_guid: args.attacker_guid, - target_guid: args.target_guid, - packed_definition: args.packed_definition, - rolled: args.rolled, - } - } -} - -impl __sdk::InModule for DebugReplaceDefinitionThenApplyDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_replace_definition_then_apply_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_replace_definition_then_apply_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_replace_definition_then_apply_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_replace_definition_then_apply_damage_floor_fixture:debug_replace_definition_then_apply_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_replace_definition_then_apply_damage_floor_fixture( - &self, - attacker_guid: u64, - target_guid: u64, - packed_definition: String, - rolled: u32, - ) -> __sdk::Result<()> { - self.debug_replace_definition_then_apply_damage_floor_fixture_then( - attacker_guid, - target_guid, - packed_definition, - rolled, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_replace_definition_then_apply_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_replace_definition_then_apply_damage_floor_fixture_then( - &self, - attacker_guid: u64, - target_guid: u64, - packed_definition: String, - rolled: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_replace_definition_then_apply_damage_floor_fixture for super::RemoteReducers { - fn debug_replace_definition_then_apply_damage_floor_fixture_then( - &self, - attacker_guid: u64, - target_guid: u64, - packed_definition: String, - rolled: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugReplaceDefinitionThenApplyDamageFloorFixtureArgs { - attacker_guid, - target_guid, - packed_definition, - rolled, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_replay_auction_expiry_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_replay_auction_expiry_fixture_reducer.rs deleted file mode 100644 index a9402fcca..000000000 --- a/gateway/src/stdb/bindings/debug_replay_auction_expiry_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugReplayAuctionExpiryFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugReplayAuctionExpiryFixtureArgs) -> Self { - Self::DebugReplayAuctionExpiryFixture - } -} - -impl __sdk::InModule for DebugReplayAuctionExpiryFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_replay_auction_expiry_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_replay_auction_expiry_fixture { - /// Request that the remote module invoke the reducer `debug_replay_auction_expiry_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_replay_auction_expiry_fixture:debug_replay_auction_expiry_fixture_then`] to run a callback after the reducer completes. - fn debug_replay_auction_expiry_fixture(&self) -> __sdk::Result<()> { - self.debug_replay_auction_expiry_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_replay_auction_expiry_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_replay_auction_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_replay_auction_expiry_fixture for super::RemoteReducers { - fn debug_replay_auction_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugReplayAuctionExpiryFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_replay_mail_timer_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_replay_mail_timer_fixture_reducer.rs deleted file mode 100644 index 86b4a124c..000000000 --- a/gateway/src/stdb/bindings/debug_replay_mail_timer_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugReplayMailTimerFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugReplayMailTimerFixtureArgs) -> Self { - Self::DebugReplayMailTimerFixture - } -} - -impl __sdk::InModule for DebugReplayMailTimerFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_replay_mail_timer_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_replay_mail_timer_fixture { - /// Request that the remote module invoke the reducer `debug_replay_mail_timer_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_replay_mail_timer_fixture:debug_replay_mail_timer_fixture_then`] to run a callback after the reducer completes. - fn debug_replay_mail_timer_fixture(&self) -> __sdk::Result<()> { - self.debug_replay_mail_timer_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_replay_mail_timer_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_replay_mail_timer_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_replay_mail_timer_fixture for super::RemoteReducers { - fn debug_replay_mail_timer_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugReplayMailTimerFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_replay_sessionless_areatrigger_reducer.rs b/gateway/src/stdb/bindings/debug_replay_sessionless_areatrigger_reducer.rs deleted file mode 100644 index fd4fbc71e..000000000 --- a/gateway/src/stdb/bindings/debug_replay_sessionless_areatrigger_reducer.rs +++ /dev/null @@ -1,113 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugReplaySessionlessAreatriggerArgs { - pub character_guid: u64, - pub trigger_id: u32, - pub expected_map: u32, - pub expected_instance: u64, - pub controller_generation: u64, - pub expected_intent_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugReplaySessionlessAreatriggerArgs) -> Self { - Self::DebugReplaySessionlessAreatrigger { - character_guid: args.character_guid, - trigger_id: args.trigger_id, - expected_map: args.expected_map, - expected_instance: args.expected_instance, - controller_generation: args.controller_generation, - expected_intent_id: args.expected_intent_id, - } - } -} - -impl __sdk::InModule for DebugReplaySessionlessAreatriggerArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_replay_sessionless_areatrigger`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_replay_sessionless_areatrigger { - /// Request that the remote module invoke the reducer `debug_replay_sessionless_areatrigger` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_replay_sessionless_areatrigger:debug_replay_sessionless_areatrigger_then`] to run a callback after the reducer completes. - fn debug_replay_sessionless_areatrigger( - &self, - character_guid: u64, - trigger_id: u32, - expected_map: u32, - expected_instance: u64, - controller_generation: u64, - expected_intent_id: u64, - ) -> __sdk::Result<()> { - self.debug_replay_sessionless_areatrigger_then( - character_guid, - trigger_id, - expected_map, - expected_instance, - controller_generation, - expected_intent_id, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_replay_sessionless_areatrigger` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_replay_sessionless_areatrigger_then( - &self, - character_guid: u64, - trigger_id: u32, - expected_map: u32, - expected_instance: u64, - controller_generation: u64, - expected_intent_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_replay_sessionless_areatrigger for super::RemoteReducers { - fn debug_replay_sessionless_areatrigger_then( - &self, - character_guid: u64, - trigger_id: u32, - expected_map: u32, - expected_instance: u64, - controller_generation: u64, - expected_intent_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugReplaySessionlessAreatriggerArgs { - character_guid, - trigger_id, - expected_map, - expected_instance, - controller_generation, - expected_intent_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_repop_reducer.rs b/gateway/src/stdb/bindings/debug_repop_reducer.rs deleted file mode 100644 index 9f9ec637a..000000000 --- a/gateway/src/stdb/bindings/debug_repop_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugRepopArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugRepopArgs) -> Self { - Self::DebugRepop { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugRepopArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_repop`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_repop { - /// Request that the remote module invoke the reducer `debug_repop` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_repop:debug_repop_then`] to run a callback after the reducer completes. - fn debug_repop(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_repop_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_repop` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_repop_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_repop for super::RemoteReducers { - fn debug_repop_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugRepopArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_reseed_skills_reducer.rs b/gateway/src/stdb/bindings/debug_reseed_skills_reducer.rs deleted file mode 100644 index cc75f73a8..000000000 --- a/gateway/src/stdb/bindings/debug_reseed_skills_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugReseedSkillsArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugReseedSkillsArgs) -> Self { - Self::DebugReseedSkills { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugReseedSkillsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_reseed_skills`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_reseed_skills { - /// Request that the remote module invoke the reducer `debug_reseed_skills` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_reseed_skills:debug_reseed_skills_then`] to run a callback after the reducer completes. - fn debug_reseed_skills(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_reseed_skills_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_reseed_skills` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_reseed_skills_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_reseed_skills for super::RemoteReducers { - fn debug_reseed_skills_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugReseedSkillsArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_reset_instance_reducer.rs b/gateway/src/stdb/bindings/debug_reset_instance_reducer.rs deleted file mode 100644 index f52133f8e..000000000 --- a/gateway/src/stdb/bindings/debug_reset_instance_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugResetInstanceArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugResetInstanceArgs) -> Self { - Self::DebugResetInstance { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugResetInstanceArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_reset_instance`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_reset_instance { - /// Request that the remote module invoke the reducer `debug_reset_instance` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_reset_instance:debug_reset_instance_then`] to run a callback after the reducer completes. - fn debug_reset_instance(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_reset_instance_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_reset_instance` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_reset_instance_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_reset_instance for super::RemoteReducers { - fn debug_reset_instance_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugResetInstanceArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_reset_talents_reducer.rs b/gateway/src/stdb/bindings/debug_reset_talents_reducer.rs deleted file mode 100644 index 0c086c87a..000000000 --- a/gateway/src/stdb/bindings/debug_reset_talents_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugResetTalentsArgs { - pub character_guid: u64, - pub trainer_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugResetTalentsArgs) -> Self { - Self::DebugResetTalents { - character_guid: args.character_guid, - trainer_guid: args.trainer_guid, - } - } -} - -impl __sdk::InModule for DebugResetTalentsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_reset_talents`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_reset_talents { - /// Request that the remote module invoke the reducer `debug_reset_talents` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_reset_talents:debug_reset_talents_then`] to run a callback after the reducer completes. - fn debug_reset_talents(&self, character_guid: u64, trainer_guid: u64) -> __sdk::Result<()> { - self.debug_reset_talents_then(character_guid, trainer_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_reset_talents` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_reset_talents_then( - &self, - character_guid: u64, - trainer_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_reset_talents for super::RemoteReducers { - fn debug_reset_talents_then( - &self, - character_guid: u64, - trainer_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugResetTalentsArgs { - character_guid, - trainer_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_respawn_lethal_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_respawn_lethal_damage_floor_fixture_reducer.rs deleted file mode 100644 index 253379bef..000000000 --- a/gateway/src/stdb/bindings/debug_respawn_lethal_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugRespawnLethalDamageFloorFixtureArgs { - pub creature_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugRespawnLethalDamageFloorFixtureArgs) -> Self { - Self::DebugRespawnLethalDamageFloorFixture { - creature_guid: args.creature_guid, - } - } -} - -impl __sdk::InModule for DebugRespawnLethalDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_respawn_lethal_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_respawn_lethal_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_respawn_lethal_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_respawn_lethal_damage_floor_fixture:debug_respawn_lethal_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_respawn_lethal_damage_floor_fixture(&self, creature_guid: u64) -> __sdk::Result<()> { - self.debug_respawn_lethal_damage_floor_fixture_then(creature_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_respawn_lethal_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_respawn_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_respawn_lethal_damage_floor_fixture for super::RemoteReducers { - fn debug_respawn_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugRespawnLethalDamageFloorFixtureArgs { creature_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_resurrect_response_reducer.rs b/gateway/src/stdb/bindings/debug_resurrect_response_reducer.rs deleted file mode 100644 index 147a4abea..000000000 --- a/gateway/src/stdb/bindings/debug_resurrect_response_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugResurrectResponseArgs { - pub character_guid: u64, - pub accept: bool, -} - -impl From for super::Reducer { - fn from(args: DebugResurrectResponseArgs) -> Self { - Self::DebugResurrectResponse { - character_guid: args.character_guid, - accept: args.accept, - } - } -} - -impl __sdk::InModule for DebugResurrectResponseArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_resurrect_response`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_resurrect_response { - /// Request that the remote module invoke the reducer `debug_resurrect_response` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_resurrect_response:debug_resurrect_response_then`] to run a callback after the reducer completes. - fn debug_resurrect_response(&self, character_guid: u64, accept: bool) -> __sdk::Result<()> { - self.debug_resurrect_response_then(character_guid, accept, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_resurrect_response` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_resurrect_response_then( - &self, - character_guid: u64, - accept: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_resurrect_response for super::RemoteReducers { - fn debug_resurrect_response_then( - &self, - character_guid: u64, - accept: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugResurrectResponseArgs { - character_guid, - accept, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_retire_region_creatures_reducer.rs b/gateway/src/stdb/bindings/debug_retire_region_creatures_reducer.rs deleted file mode 100644 index baec01cc9..000000000 --- a/gateway/src/stdb/bindings/debug_retire_region_creatures_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugRetireRegionCreaturesArgs { - pub map_id: u32, - pub gx_min: i32, - pub gx_max: i32, - pub gy_min: i32, - pub gy_max: i32, -} - -impl From for super::Reducer { - fn from(args: DebugRetireRegionCreaturesArgs) -> Self { - Self::DebugRetireRegionCreatures { - map_id: args.map_id, - gx_min: args.gx_min, - gx_max: args.gx_max, - gy_min: args.gy_min, - gy_max: args.gy_max, - } - } -} - -impl __sdk::InModule for DebugRetireRegionCreaturesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_retire_region_creatures`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_retire_region_creatures { - /// Request that the remote module invoke the reducer `debug_retire_region_creatures` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_retire_region_creatures:debug_retire_region_creatures_then`] to run a callback after the reducer completes. - fn debug_retire_region_creatures( - &self, - map_id: u32, - gx_min: i32, - gx_max: i32, - gy_min: i32, - gy_max: i32, - ) -> __sdk::Result<()> { - self.debug_retire_region_creatures_then(map_id, gx_min, gx_max, gy_min, gy_max, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_retire_region_creatures` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_retire_region_creatures_then( - &self, - map_id: u32, - gx_min: i32, - gx_max: i32, - gy_min: i32, - gy_max: i32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_retire_region_creatures for super::RemoteReducers { - fn debug_retire_region_creatures_then( - &self, - map_id: u32, - gx_min: i32, - gx_max: i32, - gy_min: i32, - gy_max: i32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugRetireRegionCreaturesArgs { - map_id, - gx_min, - gx_max, - gy_min, - gy_max, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_run_runtime_script_reducer.rs b/gateway/src/stdb/bindings/debug_run_runtime_script_reducer.rs deleted file mode 100644 index 4f57f3f41..000000000 --- a/gateway/src/stdb/bindings/debug_run_runtime_script_reducer.rs +++ /dev/null @@ -1,106 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugRunRuntimeScriptArgs { - pub script_name: String, - pub event: String, - pub source: String, - pub actor_guid: u64, - pub target_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugRunRuntimeScriptArgs) -> Self { - Self::DebugRunRuntimeScript { - script_name: args.script_name, - event: args.event, - source: args.source, - actor_guid: args.actor_guid, - target_guid: args.target_guid, - } - } -} - -impl __sdk::InModule for DebugRunRuntimeScriptArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_run_runtime_script`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_run_runtime_script { - /// Request that the remote module invoke the reducer `debug_run_runtime_script` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_run_runtime_script:debug_run_runtime_script_then`] to run a callback after the reducer completes. - fn debug_run_runtime_script( - &self, - script_name: String, - event: String, - source: String, - actor_guid: u64, - target_guid: u64, - ) -> __sdk::Result<()> { - self.debug_run_runtime_script_then( - script_name, - event, - source, - actor_guid, - target_guid, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_run_runtime_script` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_run_runtime_script_then( - &self, - script_name: String, - event: String, - source: String, - actor_guid: u64, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_run_runtime_script for super::RemoteReducers { - fn debug_run_runtime_script_then( - &self, - script_name: String, - event: String, - source: String, - actor_guid: u64, - target_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugRunRuntimeScriptArgs { - script_name, - event, - source, - actor_guid, - target_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_score_movement_reducer.rs b/gateway/src/stdb/bindings/debug_score_movement_reducer.rs deleted file mode 100644 index 13a869197..000000000 --- a/gateway/src/stdb/bindings/debug_score_movement_reducer.rs +++ /dev/null @@ -1,127 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugScoreMovementArgs { - pub guid: u64, - pub old_x: f32, - pub old_y: f32, - pub x: f32, - pub y: f32, - pub z: f32, - pub old_move_ms: u32, - pub move_time_ms: u32, -} - -impl From for super::Reducer { - fn from(args: DebugScoreMovementArgs) -> Self { - Self::DebugScoreMovement { - guid: args.guid, - old_x: args.old_x, - old_y: args.old_y, - x: args.x, - y: args.y, - z: args.z, - old_move_ms: args.old_move_ms, - move_time_ms: args.move_time_ms, - } - } -} - -impl __sdk::InModule for DebugScoreMovementArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_score_movement`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_score_movement { - /// Request that the remote module invoke the reducer `debug_score_movement` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_score_movement:debug_score_movement_then`] to run a callback after the reducer completes. - fn debug_score_movement( - &self, - guid: u64, - old_x: f32, - old_y: f32, - x: f32, - y: f32, - z: f32, - old_move_ms: u32, - move_time_ms: u32, - ) -> __sdk::Result<()> { - self.debug_score_movement_then( - guid, - old_x, - old_y, - x, - y, - z, - old_move_ms, - move_time_ms, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_score_movement` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_score_movement_then( - &self, - guid: u64, - old_x: f32, - old_y: f32, - x: f32, - y: f32, - z: f32, - old_move_ms: u32, - move_time_ms: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_score_movement for super::RemoteReducers { - fn debug_score_movement_then( - &self, - guid: u64, - old_x: f32, - old_y: f32, - x: f32, - y: f32, - z: f32, - old_move_ms: u32, - move_time_ms: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugScoreMovementArgs { - guid, - old_x, - old_y, - x, - y, - z, - old_move_ms, - move_time_ms, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_seed_creature_ai_fixtures_reducer.rs b/gateway/src/stdb/bindings/debug_seed_creature_ai_fixtures_reducer.rs deleted file mode 100644 index 395cbf6be..000000000 --- a/gateway/src/stdb/bindings/debug_seed_creature_ai_fixtures_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSeedCreatureAiFixturesArgs {} - -impl From for super::Reducer { - fn from(args: DebugSeedCreatureAiFixturesArgs) -> Self { - Self::DebugSeedCreatureAiFixtures - } -} - -impl __sdk::InModule for DebugSeedCreatureAiFixturesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_seed_creature_ai_fixtures`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_seed_creature_ai_fixtures { - /// Request that the remote module invoke the reducer `debug_seed_creature_ai_fixtures` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_seed_creature_ai_fixtures:debug_seed_creature_ai_fixtures_then`] to run a callback after the reducer completes. - fn debug_seed_creature_ai_fixtures(&self) -> __sdk::Result<()> { - self.debug_seed_creature_ai_fixtures_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_seed_creature_ai_fixtures` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_seed_creature_ai_fixtures_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_seed_creature_ai_fixtures for super::RemoteReducers { - fn debug_seed_creature_ai_fixtures_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSeedCreatureAiFixturesArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_seed_mail_reducer.rs b/gateway/src/stdb/bindings/debug_seed_mail_reducer.rs deleted file mode 100644 index 0d1fd3e29..000000000 --- a/gateway/src/stdb/bindings/debug_seed_mail_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSeedMailArgs { - pub recipient_guid: u64, - pub sender_guid: u64, - pub subject: String, - pub body: String, - pub money: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSeedMailArgs) -> Self { - Self::DebugSeedMail { - recipient_guid: args.recipient_guid, - sender_guid: args.sender_guid, - subject: args.subject, - body: args.body, - money: args.money, - } - } -} - -impl __sdk::InModule for DebugSeedMailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_seed_mail`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_seed_mail { - /// Request that the remote module invoke the reducer `debug_seed_mail` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_seed_mail:debug_seed_mail_then`] to run a callback after the reducer completes. - fn debug_seed_mail( - &self, - recipient_guid: u64, - sender_guid: u64, - subject: String, - body: String, - money: u32, - ) -> __sdk::Result<()> { - self.debug_seed_mail_then(recipient_guid, sender_guid, subject, body, money, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_seed_mail` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_seed_mail_then( - &self, - recipient_guid: u64, - sender_guid: u64, - subject: String, - body: String, - money: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_seed_mail for super::RemoteReducers { - fn debug_seed_mail_then( - &self, - recipient_guid: u64, - sender_guid: u64, - subject: String, - body: String, - money: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSeedMailArgs { - recipient_guid, - sender_guid, - subject, - body, - money, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_seed_package_config_reducer.rs b/gateway/src/stdb/bindings/debug_seed_package_config_reducer.rs deleted file mode 100644 index f8523ff90..000000000 --- a/gateway/src/stdb/bindings/debug_seed_package_config_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSeedPackageConfigArgs { - pub package_name: String, - pub key: String, - pub value: String, -} - -impl From for super::Reducer { - fn from(args: DebugSeedPackageConfigArgs) -> Self { - Self::DebugSeedPackageConfig { - package_name: args.package_name, - key: args.key, - value: args.value, - } - } -} - -impl __sdk::InModule for DebugSeedPackageConfigArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_seed_package_config`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_seed_package_config { - /// Request that the remote module invoke the reducer `debug_seed_package_config` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_seed_package_config:debug_seed_package_config_then`] to run a callback after the reducer completes. - fn debug_seed_package_config( - &self, - package_name: String, - key: String, - value: String, - ) -> __sdk::Result<()> { - self.debug_seed_package_config_then(package_name, key, value, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_seed_package_config` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_seed_package_config_then( - &self, - package_name: String, - key: String, - value: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_seed_package_config for super::RemoteReducers { - fn debug_seed_package_config_then( - &self, - package_name: String, - key: String, - value: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSeedPackageConfigArgs { - package_name, - key, - value, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_seed_scenario_fixtures_reducer.rs b/gateway/src/stdb/bindings/debug_seed_scenario_fixtures_reducer.rs deleted file mode 100644 index 43a989d9e..000000000 --- a/gateway/src/stdb/bindings/debug_seed_scenario_fixtures_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSeedScenarioFixturesArgs {} - -impl From for super::Reducer { - fn from(args: DebugSeedScenarioFixturesArgs) -> Self { - Self::DebugSeedScenarioFixtures - } -} - -impl __sdk::InModule for DebugSeedScenarioFixturesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_seed_scenario_fixtures`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_seed_scenario_fixtures { - /// Request that the remote module invoke the reducer `debug_seed_scenario_fixtures` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_seed_scenario_fixtures:debug_seed_scenario_fixtures_then`] to run a callback after the reducer completes. - fn debug_seed_scenario_fixtures(&self) -> __sdk::Result<()> { - self.debug_seed_scenario_fixtures_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_seed_scenario_fixtures` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_seed_scenario_fixtures_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_seed_scenario_fixtures for super::RemoteReducers { - fn debug_seed_scenario_fixtures_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSeedScenarioFixturesArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_self_resurrect_reducer.rs b/gateway/src/stdb/bindings/debug_self_resurrect_reducer.rs deleted file mode 100644 index b36eac189..000000000 --- a/gateway/src/stdb/bindings/debug_self_resurrect_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSelfResurrectArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugSelfResurrectArgs) -> Self { - Self::DebugSelfResurrect { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugSelfResurrectArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_self_resurrect`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_self_resurrect { - /// Request that the remote module invoke the reducer `debug_self_resurrect` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_self_resurrect:debug_self_resurrect_then`] to run a callback after the reducer completes. - fn debug_self_resurrect(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_self_resurrect_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_self_resurrect` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_self_resurrect_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_self_resurrect for super::RemoteReducers { - fn debug_self_resurrect_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSelfResurrectArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_sell_item_reducer.rs b/gateway/src/stdb/bindings/debug_sell_item_reducer.rs deleted file mode 100644 index 45b7e98ab..000000000 --- a/gateway/src/stdb/bindings/debug_sell_item_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSellItemArgs { - pub character_guid: u64, - pub vendor_guid: u64, - pub slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugSellItemArgs) -> Self { - Self::DebugSellItem { - character_guid: args.character_guid, - vendor_guid: args.vendor_guid, - slot: args.slot, - } - } -} - -impl __sdk::InModule for DebugSellItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_sell_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_sell_item { - /// Request that the remote module invoke the reducer `debug_sell_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_sell_item:debug_sell_item_then`] to run a callback after the reducer completes. - fn debug_sell_item( - &self, - character_guid: u64, - vendor_guid: u64, - slot: u8, - ) -> __sdk::Result<()> { - self.debug_sell_item_then(character_guid, vendor_guid, slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_sell_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_sell_item_then( - &self, - character_guid: u64, - vendor_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_sell_item for super::RemoteReducers { - fn debug_sell_item_then( - &self, - character_guid: u64, - vendor_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSellItemArgs { - character_guid, - vendor_guid, - slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_health_reducer.rs b/gateway/src/stdb/bindings/debug_set_health_reducer.rs deleted file mode 100644 index b07eadca8..000000000 --- a/gateway/src/stdb/bindings/debug_set_health_reducer.rs +++ /dev/null @@ -1,72 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetHealthArgs { - pub guid: u64, - pub health: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSetHealthArgs) -> Self { - Self::DebugSetHealth { - guid: args.guid, - health: args.health, - } - } -} - -impl __sdk::InModule for DebugSetHealthArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_health`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_health { - /// Request that the remote module invoke the reducer `debug_set_health` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_health:debug_set_health_then`] to run a callback after the reducer completes. - fn debug_set_health(&self, guid: u64, health: u32) -> __sdk::Result<()> { - self.debug_set_health_then(guid, health, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_health` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_health_then( - &self, - guid: u64, - health: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_health for super::RemoteReducers { - fn debug_set_health_then( - &self, - guid: u64, - health: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSetHealthArgs { guid, health }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_lethal_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_set_lethal_damage_floor_fixture_reducer.rs deleted file mode 100644 index ba0204d6f..000000000 --- a/gateway/src/stdb/bindings/debug_set_lethal_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetLethalDamageFloorFixtureArgs { - pub creature_guid: u64, - pub enabled: bool, -} - -impl From for super::Reducer { - fn from(args: DebugSetLethalDamageFloorFixtureArgs) -> Self { - Self::DebugSetLethalDamageFloorFixture { - creature_guid: args.creature_guid, - enabled: args.enabled, - } - } -} - -impl __sdk::InModule for DebugSetLethalDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_lethal_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_lethal_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_set_lethal_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_lethal_damage_floor_fixture:debug_set_lethal_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_set_lethal_damage_floor_fixture( - &self, - creature_guid: u64, - enabled: bool, - ) -> __sdk::Result<()> { - self.debug_set_lethal_damage_floor_fixture_then(creature_guid, enabled, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_lethal_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - enabled: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_lethal_damage_floor_fixture for super::RemoteReducers { - fn debug_set_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - enabled: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSetLethalDamageFloorFixtureArgs { - creature_guid, - enabled, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_lethal_damage_floor_health_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_set_lethal_damage_floor_health_fixture_reducer.rs deleted file mode 100644 index daa2a1959..000000000 --- a/gateway/src/stdb/bindings/debug_set_lethal_damage_floor_health_fixture_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetLethalDamageFloorHealthFixtureArgs { - pub creature_guid: u64, - pub health: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSetLethalDamageFloorHealthFixtureArgs) -> Self { - Self::DebugSetLethalDamageFloorHealthFixture { - creature_guid: args.creature_guid, - health: args.health, - } - } -} - -impl __sdk::InModule for DebugSetLethalDamageFloorHealthFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_lethal_damage_floor_health_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_lethal_damage_floor_health_fixture { - /// Request that the remote module invoke the reducer `debug_set_lethal_damage_floor_health_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_lethal_damage_floor_health_fixture:debug_set_lethal_damage_floor_health_fixture_then`] to run a callback after the reducer completes. - fn debug_set_lethal_damage_floor_health_fixture( - &self, - creature_guid: u64, - health: u32, - ) -> __sdk::Result<()> { - self.debug_set_lethal_damage_floor_health_fixture_then(creature_guid, health, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_lethal_damage_floor_health_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_lethal_damage_floor_health_fixture_then( - &self, - creature_guid: u64, - health: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_lethal_damage_floor_health_fixture for super::RemoteReducers { - fn debug_set_lethal_damage_floor_health_fixture_then( - &self, - creature_guid: u64, - health: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSetLethalDamageFloorHealthFixtureArgs { - creature_guid, - health, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_level_reducer.rs b/gateway/src/stdb/bindings/debug_set_level_reducer.rs deleted file mode 100644 index 5fe0316c3..000000000 --- a/gateway/src/stdb/bindings/debug_set_level_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetLevelArgs { - pub character_guid: u64, - pub level: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSetLevelArgs) -> Self { - Self::DebugSetLevel { - character_guid: args.character_guid, - level: args.level, - } - } -} - -impl __sdk::InModule for DebugSetLevelArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_level`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_level { - /// Request that the remote module invoke the reducer `debug_set_level` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_level:debug_set_level_then`] to run a callback after the reducer completes. - fn debug_set_level(&self, character_guid: u64, level: u32) -> __sdk::Result<()> { - self.debug_set_level_then(character_guid, level, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_level` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_level_then( - &self, - character_guid: u64, - level: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_level for super::RemoteReducers { - fn debug_set_level_then( - &self, - character_guid: u64, - level: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSetLevelArgs { - character_guid, - level, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_money_reducer.rs b/gateway/src/stdb/bindings/debug_set_money_reducer.rs deleted file mode 100644 index 8a600e9dd..000000000 --- a/gateway/src/stdb/bindings/debug_set_money_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetMoneyArgs { - pub character_guid: u64, - pub copper: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSetMoneyArgs) -> Self { - Self::DebugSetMoney { - character_guid: args.character_guid, - copper: args.copper, - } - } -} - -impl __sdk::InModule for DebugSetMoneyArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_money`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_money { - /// Request that the remote module invoke the reducer `debug_set_money` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_money:debug_set_money_then`] to run a callback after the reducer completes. - fn debug_set_money(&self, character_guid: u64, copper: u32) -> __sdk::Result<()> { - self.debug_set_money_then(character_guid, copper, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_money` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_money_then( - &self, - character_guid: u64, - copper: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_money for super::RemoteReducers { - fn debug_set_money_then( - &self, - character_guid: u64, - copper: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSetMoneyArgs { - character_guid, - copper, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_nav_coverage_enabled_reducer.rs b/gateway/src/stdb/bindings/debug_set_nav_coverage_enabled_reducer.rs deleted file mode 100644 index a50b59975..000000000 --- a/gateway/src/stdb/bindings/debug_set_nav_coverage_enabled_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetNavCoverageEnabledArgs { - pub enabled: bool, -} - -impl From for super::Reducer { - fn from(args: DebugSetNavCoverageEnabledArgs) -> Self { - Self::DebugSetNavCoverageEnabled { - enabled: args.enabled, - } - } -} - -impl __sdk::InModule for DebugSetNavCoverageEnabledArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_nav_coverage_enabled`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_nav_coverage_enabled { - /// Request that the remote module invoke the reducer `debug_set_nav_coverage_enabled` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_nav_coverage_enabled:debug_set_nav_coverage_enabled_then`] to run a callback after the reducer completes. - fn debug_set_nav_coverage_enabled(&self, enabled: bool) -> __sdk::Result<()> { - self.debug_set_nav_coverage_enabled_then(enabled, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_nav_coverage_enabled` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_nav_coverage_enabled_then( - &self, - enabled: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_nav_coverage_enabled for super::RemoteReducers { - fn debug_set_nav_coverage_enabled_then( - &self, - enabled: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSetNavCoverageEnabledArgs { enabled }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_nav_enabled_reducer.rs b/gateway/src/stdb/bindings/debug_set_nav_enabled_reducer.rs deleted file mode 100644 index 3771e5ceb..000000000 --- a/gateway/src/stdb/bindings/debug_set_nav_enabled_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetNavEnabledArgs { - pub enabled: bool, -} - -impl From for super::Reducer { - fn from(args: DebugSetNavEnabledArgs) -> Self { - Self::DebugSetNavEnabled { - enabled: args.enabled, - } - } -} - -impl __sdk::InModule for DebugSetNavEnabledArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_nav_enabled`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_nav_enabled { - /// Request that the remote module invoke the reducer `debug_set_nav_enabled` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_nav_enabled:debug_set_nav_enabled_then`] to run a callback after the reducer completes. - fn debug_set_nav_enabled(&self, enabled: bool) -> __sdk::Result<()> { - self.debug_set_nav_enabled_then(enabled, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_nav_enabled` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_nav_enabled_then( - &self, - enabled: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_nav_enabled for super::RemoteReducers { - fn debug_set_nav_enabled_then( - &self, - enabled: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSetNavEnabledArgs { enabled }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_power_reducer.rs b/gateway/src/stdb/bindings/debug_set_power_reducer.rs deleted file mode 100644 index 51d6a94b4..000000000 --- a/gateway/src/stdb/bindings/debug_set_power_reducer.rs +++ /dev/null @@ -1,72 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetPowerArgs { - pub guid: u64, - pub power: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSetPowerArgs) -> Self { - Self::DebugSetPower { - guid: args.guid, - power: args.power, - } - } -} - -impl __sdk::InModule for DebugSetPowerArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_power`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_power { - /// Request that the remote module invoke the reducer `debug_set_power` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_power:debug_set_power_then`] to run a callback after the reducer completes. - fn debug_set_power(&self, guid: u64, power: u32) -> __sdk::Result<()> { - self.debug_set_power_then(guid, power, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_power` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_power_then( - &self, - guid: u64, - power: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_power for super::RemoteReducers { - fn debug_set_power_then( - &self, - guid: u64, - power: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSetPowerArgs { guid, power }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_sessionless_action_consent_reducer.rs b/gateway/src/stdb/bindings/debug_set_sessionless_action_consent_reducer.rs deleted file mode 100644 index e6e7cac1e..000000000 --- a/gateway/src/stdb/bindings/debug_set_sessionless_action_consent_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetSessionlessActionConsentArgs { - pub character_guid: u64, - pub allowed: bool, -} - -impl From for super::Reducer { - fn from(args: DebugSetSessionlessActionConsentArgs) -> Self { - Self::DebugSetSessionlessActionConsent { - character_guid: args.character_guid, - allowed: args.allowed, - } - } -} - -impl __sdk::InModule for DebugSetSessionlessActionConsentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_sessionless_action_consent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_sessionless_action_consent { - /// Request that the remote module invoke the reducer `debug_set_sessionless_action_consent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_sessionless_action_consent:debug_set_sessionless_action_consent_then`] to run a callback after the reducer completes. - fn debug_set_sessionless_action_consent( - &self, - character_guid: u64, - allowed: bool, - ) -> __sdk::Result<()> { - self.debug_set_sessionless_action_consent_then(character_guid, allowed, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_sessionless_action_consent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_sessionless_action_consent_then( - &self, - character_guid: u64, - allowed: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_sessionless_action_consent for super::RemoteReducers { - fn debug_set_sessionless_action_consent_then( - &self, - character_guid: u64, - allowed: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSetSessionlessActionConsentArgs { - character_guid, - allowed, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_skill_reducer.rs b/gateway/src/stdb/bindings/debug_set_skill_reducer.rs deleted file mode 100644 index 7c625a803..000000000 --- a/gateway/src/stdb/bindings/debug_set_skill_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetSkillArgs { - pub character_guid: u64, - pub skill_line: u32, - pub value: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSetSkillArgs) -> Self { - Self::DebugSetSkill { - character_guid: args.character_guid, - skill_line: args.skill_line, - value: args.value, - } - } -} - -impl __sdk::InModule for DebugSetSkillArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_skill`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_skill { - /// Request that the remote module invoke the reducer `debug_set_skill` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_skill:debug_set_skill_then`] to run a callback after the reducer completes. - fn debug_set_skill( - &self, - character_guid: u64, - skill_line: u32, - value: u32, - ) -> __sdk::Result<()> { - self.debug_set_skill_then(character_guid, skill_line, value, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_skill` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_skill_then( - &self, - character_guid: u64, - skill_line: u32, - value: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_skill for super::RemoteReducers { - fn debug_set_skill_then( - &self, - character_guid: u64, - skill_line: u32, - value: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSetSkillArgs { - character_guid, - skill_line, - value, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_vmap_enabled_reducer.rs b/gateway/src/stdb/bindings/debug_set_vmap_enabled_reducer.rs deleted file mode 100644 index 619d61f89..000000000 --- a/gateway/src/stdb/bindings/debug_set_vmap_enabled_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetVmapEnabledArgs { - pub enabled: bool, -} - -impl From for super::Reducer { - fn from(args: DebugSetVmapEnabledArgs) -> Self { - Self::DebugSetVmapEnabled { - enabled: args.enabled, - } - } -} - -impl __sdk::InModule for DebugSetVmapEnabledArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_vmap_enabled`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_vmap_enabled { - /// Request that the remote module invoke the reducer `debug_set_vmap_enabled` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_vmap_enabled:debug_set_vmap_enabled_then`] to run a callback after the reducer completes. - fn debug_set_vmap_enabled(&self, enabled: bool) -> __sdk::Result<()> { - self.debug_set_vmap_enabled_then(enabled, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_vmap_enabled` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_vmap_enabled_then( - &self, - enabled: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_vmap_enabled for super::RemoteReducers { - fn debug_set_vmap_enabled_then( - &self, - enabled: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSetVmapEnabledArgs { enabled }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_set_xp_rate_reducer.rs b/gateway/src/stdb/bindings/debug_set_xp_rate_reducer.rs deleted file mode 100644 index f88e2cabe..000000000 --- a/gateway/src/stdb/bindings/debug_set_xp_rate_reducer.rs +++ /dev/null @@ -1,66 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetXpRateArgs { - pub rate: f32, -} - -impl From for super::Reducer { - fn from(args: DebugSetXpRateArgs) -> Self { - Self::DebugSetXpRate { rate: args.rate } - } -} - -impl __sdk::InModule for DebugSetXpRateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_set_xp_rate`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_set_xp_rate { - /// Request that the remote module invoke the reducer `debug_set_xp_rate` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_set_xp_rate:debug_set_xp_rate_then`] to run a callback after the reducer completes. - fn debug_set_xp_rate(&self, rate: f32) -> __sdk::Result<()> { - self.debug_set_xp_rate_then(rate, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_set_xp_rate` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_set_xp_rate_then( - &self, - rate: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_set_xp_rate for super::RemoteReducers { - fn debug_set_xp_rate_then( - &self, - rate: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSetXpRateArgs { rate }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_setup_gather_pool_reducer.rs b/gateway/src/stdb/bindings/debug_setup_gather_pool_reducer.rs deleted file mode 100644 index 480ca47ad..000000000 --- a/gateway/src/stdb/bindings/debug_setup_gather_pool_reducer.rs +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSetupGatherPoolArgs { - pub pool_id: u32, - pub max_active: u32, - pub in_place: bool, - pub members: String, -} - -impl From for super::Reducer { - fn from(args: DebugSetupGatherPoolArgs) -> Self { - Self::DebugSetupGatherPool { - pool_id: args.pool_id, - max_active: args.max_active, - in_place: args.in_place, - members: args.members, - } - } -} - -impl __sdk::InModule for DebugSetupGatherPoolArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_setup_gather_pool`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_setup_gather_pool { - /// Request that the remote module invoke the reducer `debug_setup_gather_pool` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_setup_gather_pool:debug_setup_gather_pool_then`] to run a callback after the reducer completes. - fn debug_setup_gather_pool( - &self, - pool_id: u32, - max_active: u32, - in_place: bool, - members: String, - ) -> __sdk::Result<()> { - self.debug_setup_gather_pool_then(pool_id, max_active, in_place, members, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_setup_gather_pool` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_setup_gather_pool_then( - &self, - pool_id: u32, - max_active: u32, - in_place: bool, - members: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_setup_gather_pool for super::RemoteReducers { - fn debug_setup_gather_pool_then( - &self, - pool_id: u32, - max_active: u32, - in_place: bool, - members: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSetupGatherPoolArgs { - pool_id, - max_active, - in_place, - members, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_skin_nearest_reducer.rs b/gateway/src/stdb/bindings/debug_skin_nearest_reducer.rs deleted file mode 100644 index e059c75ff..000000000 --- a/gateway/src/stdb/bindings/debug_skin_nearest_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSkinNearestArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugSkinNearestArgs) -> Self { - Self::DebugSkinNearest { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugSkinNearestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_skin_nearest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_skin_nearest { - /// Request that the remote module invoke the reducer `debug_skin_nearest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_skin_nearest:debug_skin_nearest_then`] to run a callback after the reducer completes. - fn debug_skin_nearest(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_skin_nearest_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_skin_nearest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_skin_nearest_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_skin_nearest for super::RemoteReducers { - fn debug_skin_nearest_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSkinNearestArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_spawn_at_feet_reducer.rs b/gateway/src/stdb/bindings/debug_spawn_at_feet_reducer.rs deleted file mode 100644 index 81fac11d9..000000000 --- a/gateway/src/stdb/bindings/debug_spawn_at_feet_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSpawnAtFeetArgs { - pub character_guid: u64, - pub creature_entry: u32, - pub offset: f32, -} - -impl From for super::Reducer { - fn from(args: DebugSpawnAtFeetArgs) -> Self { - Self::DebugSpawnAtFeet { - character_guid: args.character_guid, - creature_entry: args.creature_entry, - offset: args.offset, - } - } -} - -impl __sdk::InModule for DebugSpawnAtFeetArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_spawn_at_feet`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_spawn_at_feet { - /// Request that the remote module invoke the reducer `debug_spawn_at_feet` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_spawn_at_feet:debug_spawn_at_feet_then`] to run a callback after the reducer completes. - fn debug_spawn_at_feet( - &self, - character_guid: u64, - creature_entry: u32, - offset: f32, - ) -> __sdk::Result<()> { - self.debug_spawn_at_feet_then(character_guid, creature_entry, offset, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_spawn_at_feet` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_spawn_at_feet_then( - &self, - character_guid: u64, - creature_entry: u32, - offset: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_spawn_at_feet for super::RemoteReducers { - fn debug_spawn_at_feet_then( - &self, - character_guid: u64, - creature_entry: u32, - offset: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSpawnAtFeetArgs { - character_guid, - creature_entry, - offset, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_spawn_gameobject_reducer.rs b/gateway/src/stdb/bindings/debug_spawn_gameobject_reducer.rs deleted file mode 100644 index 4ad30cee6..000000000 --- a/gateway/src/stdb/bindings/debug_spawn_gameobject_reducer.rs +++ /dev/null @@ -1,155 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSpawnGameobjectArgs { - pub template_entry: u32, - pub type_id: u8, - pub display_id: u32, - pub data_0: u32, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub data_1: u32, - pub gather_skill_line: u32, - pub respawn_secs: u32, - pub gather_gray: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSpawnGameobjectArgs) -> Self { - Self::DebugSpawnGameobject { - template_entry: args.template_entry, - type_id: args.type_id, - display_id: args.display_id, - data_0: args.data_0, - map_id: args.map_id, - x: args.x, - y: args.y, - z: args.z, - data_1: args.data_1, - gather_skill_line: args.gather_skill_line, - respawn_secs: args.respawn_secs, - gather_gray: args.gather_gray, - } - } -} - -impl __sdk::InModule for DebugSpawnGameobjectArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_spawn_gameobject`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_spawn_gameobject { - /// Request that the remote module invoke the reducer `debug_spawn_gameobject` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_spawn_gameobject:debug_spawn_gameobject_then`] to run a callback after the reducer completes. - fn debug_spawn_gameobject( - &self, - template_entry: u32, - type_id: u8, - display_id: u32, - data_0: u32, - map_id: u32, - x: f32, - y: f32, - z: f32, - data_1: u32, - gather_skill_line: u32, - respawn_secs: u32, - gather_gray: u32, - ) -> __sdk::Result<()> { - self.debug_spawn_gameobject_then( - template_entry, - type_id, - display_id, - data_0, - map_id, - x, - y, - z, - data_1, - gather_skill_line, - respawn_secs, - gather_gray, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_spawn_gameobject` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_spawn_gameobject_then( - &self, - template_entry: u32, - type_id: u8, - display_id: u32, - data_0: u32, - map_id: u32, - x: f32, - y: f32, - z: f32, - data_1: u32, - gather_skill_line: u32, - respawn_secs: u32, - gather_gray: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_spawn_gameobject for super::RemoteReducers { - fn debug_spawn_gameobject_then( - &self, - template_entry: u32, - type_id: u8, - display_id: u32, - data_0: u32, - map_id: u32, - x: f32, - y: f32, - z: f32, - data_1: u32, - gather_skill_line: u32, - respawn_secs: u32, - gather_gray: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSpawnGameobjectArgs { - template_entry, - type_id, - display_id, - data_0, - map_id, - x, - y, - z, - data_1, - gather_skill_line, - respawn_secs, - gather_gray, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_spawn_ground_area_reducer.rs b/gateway/src/stdb/bindings/debug_spawn_ground_area_reducer.rs deleted file mode 100644 index e635295bf..000000000 --- a/gateway/src/stdb/bindings/debug_spawn_ground_area_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSpawnGroundAreaArgs { - pub caster_guid: u64, - pub spell_id: u32, -} - -impl From for super::Reducer { - fn from(args: DebugSpawnGroundAreaArgs) -> Self { - Self::DebugSpawnGroundArea { - caster_guid: args.caster_guid, - spell_id: args.spell_id, - } - } -} - -impl __sdk::InModule for DebugSpawnGroundAreaArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_spawn_ground_area`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_spawn_ground_area { - /// Request that the remote module invoke the reducer `debug_spawn_ground_area` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_spawn_ground_area:debug_spawn_ground_area_then`] to run a callback after the reducer completes. - fn debug_spawn_ground_area(&self, caster_guid: u64, spell_id: u32) -> __sdk::Result<()> { - self.debug_spawn_ground_area_then(caster_guid, spell_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_spawn_ground_area` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_spawn_ground_area_then( - &self, - caster_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_spawn_ground_area for super::RemoteReducers { - fn debug_spawn_ground_area_then( - &self, - caster_guid: u64, - spell_id: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSpawnGroundAreaArgs { - caster_guid, - spell_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_spawn_player_entity_reducer.rs b/gateway/src/stdb/bindings/debug_spawn_player_entity_reducer.rs deleted file mode 100644 index e92dfdf8b..000000000 --- a/gateway/src/stdb/bindings/debug_spawn_player_entity_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSpawnPlayerEntityArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugSpawnPlayerEntityArgs) -> Self { - Self::DebugSpawnPlayerEntity { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugSpawnPlayerEntityArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_spawn_player_entity`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_spawn_player_entity { - /// Request that the remote module invoke the reducer `debug_spawn_player_entity` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_spawn_player_entity:debug_spawn_player_entity_then`] to run a callback after the reducer completes. - fn debug_spawn_player_entity(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_spawn_player_entity_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_spawn_player_entity` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_spawn_player_entity_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_spawn_player_entity for super::RemoteReducers { - fn debug_spawn_player_entity_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSpawnPlayerEntityArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_spirit_healer_res_reducer.rs b/gateway/src/stdb/bindings/debug_spirit_healer_res_reducer.rs deleted file mode 100644 index b188d37c3..000000000 --- a/gateway/src/stdb/bindings/debug_spirit_healer_res_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSpiritHealerResArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugSpiritHealerResArgs) -> Self { - Self::DebugSpiritHealerRes { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugSpiritHealerResArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_spirit_healer_res`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_spirit_healer_res { - /// Request that the remote module invoke the reducer `debug_spirit_healer_res` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_spirit_healer_res:debug_spirit_healer_res_then`] to run a callback after the reducer completes. - fn debug_spirit_healer_res(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_spirit_healer_res_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_spirit_healer_res` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_spirit_healer_res_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_spirit_healer_res for super::RemoteReducers { - fn debug_spirit_healer_res_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSpiritHealerResArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_split_item_reducer.rs b/gateway/src/stdb/bindings/debug_split_item_reducer.rs deleted file mode 100644 index c6534bbfb..000000000 --- a/gateway/src/stdb/bindings/debug_split_item_reducer.rs +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSplitItemArgs { - pub character_guid: u64, - pub slot: u8, - pub count: u32, - pub to_slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugSplitItemArgs) -> Self { - Self::DebugSplitItem { - character_guid: args.character_guid, - slot: args.slot, - count: args.count, - to_slot: args.to_slot, - } - } -} - -impl __sdk::InModule for DebugSplitItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_split_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_split_item { - /// Request that the remote module invoke the reducer `debug_split_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_split_item:debug_split_item_then`] to run a callback after the reducer completes. - fn debug_split_item( - &self, - character_guid: u64, - slot: u8, - count: u32, - to_slot: u8, - ) -> __sdk::Result<()> { - self.debug_split_item_then(character_guid, slot, count, to_slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_split_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_split_item_then( - &self, - character_guid: u64, - slot: u8, - count: u32, - to_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_split_item for super::RemoteReducers { - fn debug_split_item_then( - &self, - character_guid: u64, - slot: u8, - count: u32, - to_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugSplitItemArgs { - character_guid, - slot, - count, - to_slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_auction_buyout_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_auction_buyout_fixture_reducer.rs deleted file mode 100644 index 23454535e..000000000 --- a/gateway/src/stdb/bindings/debug_stage_auction_buyout_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageAuctionBuyoutFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugStageAuctionBuyoutFixtureArgs) -> Self { - Self::DebugStageAuctionBuyoutFixture - } -} - -impl __sdk::InModule for DebugStageAuctionBuyoutFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_auction_buyout_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_auction_buyout_fixture { - /// Request that the remote module invoke the reducer `debug_stage_auction_buyout_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_auction_buyout_fixture:debug_stage_auction_buyout_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_auction_buyout_fixture(&self) -> __sdk::Result<()> { - self.debug_stage_auction_buyout_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_auction_buyout_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_auction_buyout_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_auction_buyout_fixture for super::RemoteReducers { - fn debug_stage_auction_buyout_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugStageAuctionBuyoutFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_auction_cancel_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_auction_cancel_fixture_reducer.rs deleted file mode 100644 index b81a80f12..000000000 --- a/gateway/src/stdb/bindings/debug_stage_auction_cancel_fixture_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageAuctionCancelFixtureArgs { - pub seller_guid: u64, - pub auctioneer_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugStageAuctionCancelFixtureArgs) -> Self { - Self::DebugStageAuctionCancelFixture { - seller_guid: args.seller_guid, - auctioneer_guid: args.auctioneer_guid, - } - } -} - -impl __sdk::InModule for DebugStageAuctionCancelFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_auction_cancel_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_auction_cancel_fixture { - /// Request that the remote module invoke the reducer `debug_stage_auction_cancel_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_auction_cancel_fixture:debug_stage_auction_cancel_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_auction_cancel_fixture( - &self, - seller_guid: u64, - auctioneer_guid: u64, - ) -> __sdk::Result<()> { - self.debug_stage_auction_cancel_fixture_then(seller_guid, auctioneer_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_auction_cancel_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_auction_cancel_fixture_then( - &self, - seller_guid: u64, - auctioneer_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_auction_cancel_fixture for super::RemoteReducers { - fn debug_stage_auction_cancel_fixture_then( - &self, - seller_guid: u64, - auctioneer_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageAuctionCancelFixtureArgs { - seller_guid, - auctioneer_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_auction_expiry_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_auction_expiry_fixture_reducer.rs deleted file mode 100644 index 293b5a945..000000000 --- a/gateway/src/stdb/bindings/debug_stage_auction_expiry_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageAuctionExpiryFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugStageAuctionExpiryFixtureArgs) -> Self { - Self::DebugStageAuctionExpiryFixture - } -} - -impl __sdk::InModule for DebugStageAuctionExpiryFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_auction_expiry_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_auction_expiry_fixture { - /// Request that the remote module invoke the reducer `debug_stage_auction_expiry_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_auction_expiry_fixture:debug_stage_auction_expiry_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_auction_expiry_fixture(&self) -> __sdk::Result<()> { - self.debug_stage_auction_expiry_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_auction_expiry_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_auction_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_auction_expiry_fixture for super::RemoteReducers { - fn debug_stage_auction_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugStageAuctionExpiryFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_choice_reward_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_choice_reward_fixture_reducer.rs deleted file mode 100644 index 0550d4615..000000000 --- a/gateway/src/stdb/bindings/debug_stage_choice_reward_fixture_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageChoiceRewardFixtureArgs { - pub fill_inventory: bool, -} - -impl From for super::Reducer { - fn from(args: DebugStageChoiceRewardFixtureArgs) -> Self { - Self::DebugStageChoiceRewardFixture { - fill_inventory: args.fill_inventory, - } - } -} - -impl __sdk::InModule for DebugStageChoiceRewardFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_choice_reward_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_choice_reward_fixture { - /// Request that the remote module invoke the reducer `debug_stage_choice_reward_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_choice_reward_fixture:debug_stage_choice_reward_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_choice_reward_fixture(&self, fill_inventory: bool) -> __sdk::Result<()> { - self.debug_stage_choice_reward_fixture_then(fill_inventory, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_choice_reward_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_choice_reward_fixture_then( - &self, - fill_inventory: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_choice_reward_fixture for super::RemoteReducers { - fn debug_stage_choice_reward_fixture_then( - &self, - fill_inventory: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageChoiceRewardFixtureArgs { fill_inventory }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_eventai_revision_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_eventai_revision_fixture_reducer.rs deleted file mode 100644 index d635d1c1d..000000000 --- a/gateway/src/stdb/bindings/debug_stage_eventai_revision_fixture_reducer.rs +++ /dev/null @@ -1,92 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageEventaiRevisionFixtureArgs { - pub creature_guid: u64, - pub target_guid: u64, - pub packed: String, -} - -impl From for super::Reducer { - fn from(args: DebugStageEventaiRevisionFixtureArgs) -> Self { - Self::DebugStageEventaiRevisionFixture { - creature_guid: args.creature_guid, - target_guid: args.target_guid, - packed: args.packed, - } - } -} - -impl __sdk::InModule for DebugStageEventaiRevisionFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_eventai_revision_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_eventai_revision_fixture { - /// Request that the remote module invoke the reducer `debug_stage_eventai_revision_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_eventai_revision_fixture:debug_stage_eventai_revision_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_eventai_revision_fixture( - &self, - creature_guid: u64, - target_guid: u64, - packed: String, - ) -> __sdk::Result<()> { - self.debug_stage_eventai_revision_fixture_then( - creature_guid, - target_guid, - packed, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_stage_eventai_revision_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_eventai_revision_fixture_then( - &self, - creature_guid: u64, - target_guid: u64, - packed: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_eventai_revision_fixture for super::RemoteReducers { - fn debug_stage_eventai_revision_fixture_then( - &self, - creature_guid: u64, - target_guid: u64, - packed: String, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageEventaiRevisionFixtureArgs { - creature_guid, - target_guid, - packed, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_instance_removal_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_instance_removal_fixture_reducer.rs deleted file mode 100644 index b728769fc..000000000 --- a/gateway/src/stdb/bindings/debug_stage_instance_removal_fixture_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageInstanceRemovalFixtureArgs { - pub party_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugStageInstanceRemovalFixtureArgs) -> Self { - Self::DebugStageInstanceRemovalFixture { - party_id: args.party_id, - } - } -} - -impl __sdk::InModule for DebugStageInstanceRemovalFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_instance_removal_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_instance_removal_fixture { - /// Request that the remote module invoke the reducer `debug_stage_instance_removal_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_instance_removal_fixture:debug_stage_instance_removal_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_instance_removal_fixture(&self, party_id: u64) -> __sdk::Result<()> { - self.debug_stage_instance_removal_fixture_then(party_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_instance_removal_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_instance_removal_fixture_then( - &self, - party_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_instance_removal_fixture for super::RemoteReducers { - fn debug_stage_instance_removal_fixture_then( - &self, - party_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageInstanceRemovalFixtureArgs { party_id }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_legacy_auction_mail_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_legacy_auction_mail_fixture_reducer.rs deleted file mode 100644 index 5115103c6..000000000 --- a/gateway/src/stdb/bindings/debug_stage_legacy_auction_mail_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageLegacyAuctionMailFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugStageLegacyAuctionMailFixtureArgs) -> Self { - Self::DebugStageLegacyAuctionMailFixture - } -} - -impl __sdk::InModule for DebugStageLegacyAuctionMailFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_legacy_auction_mail_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_legacy_auction_mail_fixture { - /// Request that the remote module invoke the reducer `debug_stage_legacy_auction_mail_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_legacy_auction_mail_fixture:debug_stage_legacy_auction_mail_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_legacy_auction_mail_fixture(&self) -> __sdk::Result<()> { - self.debug_stage_legacy_auction_mail_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_legacy_auction_mail_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_legacy_auction_mail_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_legacy_auction_mail_fixture for super::RemoteReducers { - fn debug_stage_legacy_auction_mail_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugStageLegacyAuctionMailFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_lethal_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_lethal_damage_floor_fixture_reducer.rs deleted file mode 100644 index e95ba6d61..000000000 --- a/gateway/src/stdb/bindings/debug_stage_lethal_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageLethalDamageFloorFixtureArgs { - pub creature_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugStageLethalDamageFloorFixtureArgs) -> Self { - Self::DebugStageLethalDamageFloorFixture { - creature_guid: args.creature_guid, - } - } -} - -impl __sdk::InModule for DebugStageLethalDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_lethal_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_lethal_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_stage_lethal_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_lethal_damage_floor_fixture:debug_stage_lethal_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_lethal_damage_floor_fixture(&self, creature_guid: u64) -> __sdk::Result<()> { - self.debug_stage_lethal_damage_floor_fixture_then(creature_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_lethal_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_lethal_damage_floor_fixture for super::RemoteReducers { - fn debug_stage_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageLethalDamageFloorFixtureArgs { creature_guid }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_loot_roll_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_loot_roll_fixture_reducer.rs deleted file mode 100644 index 42f1b87fc..000000000 --- a/gateway/src/stdb/bindings/debug_stage_loot_roll_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageLootRollFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugStageLootRollFixtureArgs) -> Self { - Self::DebugStageLootRollFixture - } -} - -impl __sdk::InModule for DebugStageLootRollFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_loot_roll_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_loot_roll_fixture { - /// Request that the remote module invoke the reducer `debug_stage_loot_roll_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_loot_roll_fixture:debug_stage_loot_roll_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_loot_roll_fixture(&self) -> __sdk::Result<()> { - self.debug_stage_loot_roll_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_loot_roll_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_loot_roll_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_loot_roll_fixture for super::RemoteReducers { - fn debug_stage_loot_roll_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugStageLootRollFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_mail_expiry_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_mail_expiry_fixture_reducer.rs deleted file mode 100644 index da51b69b5..000000000 --- a/gateway/src/stdb/bindings/debug_stage_mail_expiry_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageMailExpiryFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugStageMailExpiryFixtureArgs) -> Self { - Self::DebugStageMailExpiryFixture - } -} - -impl __sdk::InModule for DebugStageMailExpiryFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_mail_expiry_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_mail_expiry_fixture { - /// Request that the remote module invoke the reducer `debug_stage_mail_expiry_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_mail_expiry_fixture:debug_stage_mail_expiry_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_mail_expiry_fixture(&self) -> __sdk::Result<()> { - self.debug_stage_mail_expiry_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_mail_expiry_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_mail_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_mail_expiry_fixture for super::RemoteReducers { - fn debug_stage_mail_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugStageMailExpiryFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_mail_legacy_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_mail_legacy_fixture_reducer.rs deleted file mode 100644 index 698911b32..000000000 --- a/gateway/src/stdb/bindings/debug_stage_mail_legacy_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageMailLegacyFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugStageMailLegacyFixtureArgs) -> Self { - Self::DebugStageMailLegacyFixture - } -} - -impl __sdk::InModule for DebugStageMailLegacyFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_mail_legacy_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_mail_legacy_fixture { - /// Request that the remote module invoke the reducer `debug_stage_mail_legacy_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_mail_legacy_fixture:debug_stage_mail_legacy_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_mail_legacy_fixture(&self) -> __sdk::Result<()> { - self.debug_stage_mail_legacy_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_mail_legacy_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_mail_legacy_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_mail_legacy_fixture for super::RemoteReducers { - fn debug_stage_mail_legacy_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugStageMailLegacyFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_mail_take_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_mail_take_fixture_reducer.rs deleted file mode 100644 index 2fb7d37d8..000000000 --- a/gateway/src/stdb/bindings/debug_stage_mail_take_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageMailTakeFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugStageMailTakeFixtureArgs) -> Self { - Self::DebugStageMailTakeFixture - } -} - -impl __sdk::InModule for DebugStageMailTakeFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_mail_take_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_mail_take_fixture { - /// Request that the remote module invoke the reducer `debug_stage_mail_take_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_mail_take_fixture:debug_stage_mail_take_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_mail_take_fixture(&self) -> __sdk::Result<()> { - self.debug_stage_mail_take_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_mail_take_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_mail_take_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_mail_take_fixture for super::RemoteReducers { - fn debug_stage_mail_take_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugStageMailTakeFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_meeting_stone_character_reducer.rs b/gateway/src/stdb/bindings/debug_stage_meeting_stone_character_reducer.rs deleted file mode 100644 index 7e94f2504..000000000 --- a/gateway/src/stdb/bindings/debug_stage_meeting_stone_character_reducer.rs +++ /dev/null @@ -1,134 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageMeetingStoneCharacterArgs { - pub guid: u64, - pub account_id: u64, - pub race: u8, - pub class: u8, - pub level: u8, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, -} - -impl From for super::Reducer { - fn from(args: DebugStageMeetingStoneCharacterArgs) -> Self { - Self::DebugStageMeetingStoneCharacter { - guid: args.guid, - account_id: args.account_id, - race: args.race, - class: args.class, - level: args.level, - map_id: args.map_id, - x: args.x, - y: args.y, - z: args.z, - } - } -} - -impl __sdk::InModule for DebugStageMeetingStoneCharacterArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_meeting_stone_character`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_meeting_stone_character { - /// Request that the remote module invoke the reducer `debug_stage_meeting_stone_character` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_meeting_stone_character:debug_stage_meeting_stone_character_then`] to run a callback after the reducer completes. - fn debug_stage_meeting_stone_character( - &self, - guid: u64, - account_id: u64, - race: u8, - class: u8, - level: u8, - map_id: u32, - x: f32, - y: f32, - z: f32, - ) -> __sdk::Result<()> { - self.debug_stage_meeting_stone_character_then( - guid, - account_id, - race, - class, - level, - map_id, - x, - y, - z, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_stage_meeting_stone_character` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_meeting_stone_character_then( - &self, - guid: u64, - account_id: u64, - race: u8, - class: u8, - level: u8, - map_id: u32, - x: f32, - y: f32, - z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_meeting_stone_character for super::RemoteReducers { - fn debug_stage_meeting_stone_character_then( - &self, - guid: u64, - account_id: u64, - race: u8, - class: u8, - level: u8, - map_id: u32, - x: f32, - y: f32, - z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageMeetingStoneCharacterArgs { - guid, - account_id, - race, - class, - level, - map_id, - x, - y, - z, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_meeting_stone_claim_reducer.rs b/gateway/src/stdb/bindings/debug_stage_meeting_stone_claim_reducer.rs deleted file mode 100644 index 7aebf5827..000000000 --- a/gateway/src/stdb/bindings/debug_stage_meeting_stone_claim_reducer.rs +++ /dev/null @@ -1,74 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageMeetingStoneClaimArgs { - pub guid: u64, - pub account_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugStageMeetingStoneClaimArgs) -> Self { - Self::DebugStageMeetingStoneClaim { - guid: args.guid, - account_id: args.account_id, - } - } -} - -impl __sdk::InModule for DebugStageMeetingStoneClaimArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_meeting_stone_claim`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_meeting_stone_claim { - /// Request that the remote module invoke the reducer `debug_stage_meeting_stone_claim` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_meeting_stone_claim:debug_stage_meeting_stone_claim_then`] to run a callback after the reducer completes. - fn debug_stage_meeting_stone_claim(&self, guid: u64, account_id: u64) -> __sdk::Result<()> { - self.debug_stage_meeting_stone_claim_then(guid, account_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_meeting_stone_claim` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_meeting_stone_claim_then( - &self, - guid: u64, - account_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_meeting_stone_claim for super::RemoteReducers { - fn debug_stage_meeting_stone_claim_then( - &self, - guid: u64, - account_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageMeetingStoneClaimArgs { guid, account_id }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_meeting_stone_group_reducer.rs b/gateway/src/stdb/bindings/debug_stage_meeting_stone_group_reducer.rs deleted file mode 100644 index cad4e7377..000000000 --- a/gateway/src/stdb/bindings/debug_stage_meeting_stone_group_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageMeetingStoneGroupArgs { - pub leader_guid: u64, - pub member_guids: Vec, - pub raid: bool, -} - -impl From for super::Reducer { - fn from(args: DebugStageMeetingStoneGroupArgs) -> Self { - Self::DebugStageMeetingStoneGroup { - leader_guid: args.leader_guid, - member_guids: args.member_guids, - raid: args.raid, - } - } -} - -impl __sdk::InModule for DebugStageMeetingStoneGroupArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_meeting_stone_group`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_meeting_stone_group { - /// Request that the remote module invoke the reducer `debug_stage_meeting_stone_group` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_meeting_stone_group:debug_stage_meeting_stone_group_then`] to run a callback after the reducer completes. - fn debug_stage_meeting_stone_group( - &self, - leader_guid: u64, - member_guids: Vec, - raid: bool, - ) -> __sdk::Result<()> { - self.debug_stage_meeting_stone_group_then(leader_guid, member_guids, raid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_meeting_stone_group` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_meeting_stone_group_then( - &self, - leader_guid: u64, - member_guids: Vec, - raid: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_meeting_stone_group for super::RemoteReducers { - fn debug_stage_meeting_stone_group_then( - &self, - leader_guid: u64, - member_guids: Vec, - raid: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageMeetingStoneGroupArgs { - leader_guid, - member_guids, - raid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_meeting_stone_reducer.rs b/gateway/src/stdb/bindings/debug_stage_meeting_stone_reducer.rs deleted file mode 100644 index 31f8fdfda..000000000 --- a/gateway/src/stdb/bindings/debug_stage_meeting_stone_reducer.rs +++ /dev/null @@ -1,134 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageMeetingStoneArgs { - pub entry: u32, - pub go_guid: u64, - pub min_level: u32, - pub max_level: u32, - pub area_id: u32, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, -} - -impl From for super::Reducer { - fn from(args: DebugStageMeetingStoneArgs) -> Self { - Self::DebugStageMeetingStone { - entry: args.entry, - go_guid: args.go_guid, - min_level: args.min_level, - max_level: args.max_level, - area_id: args.area_id, - map_id: args.map_id, - x: args.x, - y: args.y, - z: args.z, - } - } -} - -impl __sdk::InModule for DebugStageMeetingStoneArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_meeting_stone`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_meeting_stone { - /// Request that the remote module invoke the reducer `debug_stage_meeting_stone` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_meeting_stone:debug_stage_meeting_stone_then`] to run a callback after the reducer completes. - fn debug_stage_meeting_stone( - &self, - entry: u32, - go_guid: u64, - min_level: u32, - max_level: u32, - area_id: u32, - map_id: u32, - x: f32, - y: f32, - z: f32, - ) -> __sdk::Result<()> { - self.debug_stage_meeting_stone_then( - entry, - go_guid, - min_level, - max_level, - area_id, - map_id, - x, - y, - z, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_stage_meeting_stone` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_meeting_stone_then( - &self, - entry: u32, - go_guid: u64, - min_level: u32, - max_level: u32, - area_id: u32, - map_id: u32, - x: f32, - y: f32, - z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_meeting_stone for super::RemoteReducers { - fn debug_stage_meeting_stone_then( - &self, - entry: u32, - go_guid: u64, - min_level: u32, - max_level: u32, - area_id: u32, - map_id: u32, - x: f32, - y: f32, - z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageMeetingStoneArgs { - entry, - go_guid, - min_level, - max_level, - area_id, - map_id, - x, - y, - z, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_ranged_lethal_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_ranged_lethal_damage_floor_fixture_reducer.rs deleted file mode 100644 index f84bc89de..000000000 --- a/gateway/src/stdb/bindings/debug_stage_ranged_lethal_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageRangedLethalDamageFloorFixtureArgs { - pub attacker_guid: u64, - pub target_guid: u64, - pub damage: u32, - pub delay_ms: u32, -} - -impl From for super::Reducer { - fn from(args: DebugStageRangedLethalDamageFloorFixtureArgs) -> Self { - Self::DebugStageRangedLethalDamageFloorFixture { - attacker_guid: args.attacker_guid, - target_guid: args.target_guid, - damage: args.damage, - delay_ms: args.delay_ms, - } - } -} - -impl __sdk::InModule for DebugStageRangedLethalDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_ranged_lethal_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_ranged_lethal_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_stage_ranged_lethal_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_ranged_lethal_damage_floor_fixture:debug_stage_ranged_lethal_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_ranged_lethal_damage_floor_fixture( - &self, - attacker_guid: u64, - target_guid: u64, - damage: u32, - delay_ms: u32, - ) -> __sdk::Result<()> { - self.debug_stage_ranged_lethal_damage_floor_fixture_then( - attacker_guid, - target_guid, - damage, - delay_ms, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_stage_ranged_lethal_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_ranged_lethal_damage_floor_fixture_then( - &self, - attacker_guid: u64, - target_guid: u64, - damage: u32, - delay_ms: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_ranged_lethal_damage_floor_fixture for super::RemoteReducers { - fn debug_stage_ranged_lethal_damage_floor_fixture_then( - &self, - attacker_guid: u64, - target_guid: u64, - damage: u32, - delay_ms: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStageRangedLethalDamageFloorFixtureArgs { - attacker_guid, - target_guid, - damage, - delay_ms, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stage_reward_letter_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_stage_reward_letter_fixture_reducer.rs deleted file mode 100644 index 0f7050bf2..000000000 --- a/gateway/src/stdb/bindings/debug_stage_reward_letter_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStageRewardLetterFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugStageRewardLetterFixtureArgs) -> Self { - Self::DebugStageRewardLetterFixture - } -} - -impl __sdk::InModule for DebugStageRewardLetterFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stage_reward_letter_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stage_reward_letter_fixture { - /// Request that the remote module invoke the reducer `debug_stage_reward_letter_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stage_reward_letter_fixture:debug_stage_reward_letter_fixture_then`] to run a callback after the reducer completes. - fn debug_stage_reward_letter_fixture(&self) -> __sdk::Result<()> { - self.debug_stage_reward_letter_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_stage_reward_letter_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stage_reward_letter_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stage_reward_letter_fixture for super::RemoteReducers { - fn debug_stage_reward_letter_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugStageRewardLetterFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_start_relay_move_reducer.rs b/gateway/src/stdb/bindings/debug_start_relay_move_reducer.rs deleted file mode 100644 index 0056af26c..000000000 --- a/gateway/src/stdb/bindings/debug_start_relay_move_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStartRelayMoveArgs { - pub source_guid: u64, - pub selected_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugStartRelayMoveArgs) -> Self { - Self::DebugStartRelayMove { - source_guid: args.source_guid, - selected_guid: args.selected_guid, - } - } -} - -impl __sdk::InModule for DebugStartRelayMoveArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_start_relay_move`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_start_relay_move { - /// Request that the remote module invoke the reducer `debug_start_relay_move` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_start_relay_move:debug_start_relay_move_then`] to run a callback after the reducer completes. - fn debug_start_relay_move(&self, source_guid: u64, selected_guid: u64) -> __sdk::Result<()> { - self.debug_start_relay_move_then(source_guid, selected_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_start_relay_move` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_start_relay_move_then( - &self, - source_guid: u64, - selected_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_start_relay_move for super::RemoteReducers { - fn debug_start_relay_move_then( - &self, - source_guid: u64, - selected_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStartRelayMoveArgs { - source_guid, - selected_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_stress_relay_reducer.rs b/gateway/src/stdb/bindings/debug_stress_relay_reducer.rs deleted file mode 100644 index 4cad6692b..000000000 --- a/gateway/src/stdb/bindings/debug_stress_relay_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugStressRelayArgs { - pub character_guid: u64, - pub victim_entry: u32, - pub item_entry: u32, - pub junk_rows: u32, -} - -impl From for super::Reducer { - fn from(args: DebugStressRelayArgs) -> Self { - Self::DebugStressRelay { - character_guid: args.character_guid, - victim_entry: args.victim_entry, - item_entry: args.item_entry, - junk_rows: args.junk_rows, - } - } -} - -impl __sdk::InModule for DebugStressRelayArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_stress_relay`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_stress_relay { - /// Request that the remote module invoke the reducer `debug_stress_relay` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_stress_relay:debug_stress_relay_then`] to run a callback after the reducer completes. - fn debug_stress_relay( - &self, - character_guid: u64, - victim_entry: u32, - item_entry: u32, - junk_rows: u32, - ) -> __sdk::Result<()> { - self.debug_stress_relay_then( - character_guid, - victim_entry, - item_entry, - junk_rows, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_stress_relay` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_stress_relay_then( - &self, - character_guid: u64, - victim_entry: u32, - item_entry: u32, - junk_rows: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_stress_relay for super::RemoteReducers { - fn debug_stress_relay_then( - &self, - character_guid: u64, - victim_entry: u32, - item_entry: u32, - junk_rows: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugStressRelayArgs { - character_guid, - victim_entry, - item_entry, - junk_rows, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_sweep_encounter_state_reducer.rs b/gateway/src/stdb/bindings/debug_sweep_encounter_state_reducer.rs deleted file mode 100644 index 31d5e1980..000000000 --- a/gateway/src/stdb/bindings/debug_sweep_encounter_state_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSweepEncounterStateArgs { - pub instance_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugSweepEncounterStateArgs) -> Self { - Self::DebugSweepEncounterState { - instance_id: args.instance_id, - } - } -} - -impl __sdk::InModule for DebugSweepEncounterStateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_sweep_encounter_state`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_sweep_encounter_state { - /// Request that the remote module invoke the reducer `debug_sweep_encounter_state` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_sweep_encounter_state:debug_sweep_encounter_state_then`] to run a callback after the reducer completes. - fn debug_sweep_encounter_state(&self, instance_id: u64) -> __sdk::Result<()> { - self.debug_sweep_encounter_state_then(instance_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_sweep_encounter_state` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_sweep_encounter_state_then( - &self, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_sweep_encounter_state for super::RemoteReducers { - fn debug_sweep_encounter_state_then( - &self, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSweepEncounterStateArgs { instance_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_sweep_slice_lens_reducer.rs b/gateway/src/stdb/bindings/debug_sweep_slice_lens_reducer.rs deleted file mode 100644 index 5899a9b20..000000000 --- a/gateway/src/stdb/bindings/debug_sweep_slice_lens_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugSweepSliceLensArgs {} - -impl From for super::Reducer { - fn from(args: DebugSweepSliceLensArgs) -> Self { - Self::DebugSweepSliceLens - } -} - -impl __sdk::InModule for DebugSweepSliceLensArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_sweep_slice_lens`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_sweep_slice_lens { - /// Request that the remote module invoke the reducer `debug_sweep_slice_lens` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_sweep_slice_lens:debug_sweep_slice_lens_then`] to run a callback after the reducer completes. - fn debug_sweep_slice_lens(&self) -> __sdk::Result<()> { - self.debug_sweep_slice_lens_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_sweep_slice_lens` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_sweep_slice_lens_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_sweep_slice_lens for super::RemoteReducers { - fn debug_sweep_slice_lens_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugSweepSliceLensArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_take_loot_reducer.rs b/gateway/src/stdb/bindings/debug_take_loot_reducer.rs deleted file mode 100644 index 3354b09f9..000000000 --- a/gateway/src/stdb/bindings/debug_take_loot_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugTakeLootArgs { - pub character_guid: u64, - pub corpse_guid: u64, - pub loot_slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugTakeLootArgs) -> Self { - Self::DebugTakeLoot { - character_guid: args.character_guid, - corpse_guid: args.corpse_guid, - loot_slot: args.loot_slot, - } - } -} - -impl __sdk::InModule for DebugTakeLootArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_take_loot`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_take_loot { - /// Request that the remote module invoke the reducer `debug_take_loot` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_take_loot:debug_take_loot_then`] to run a callback after the reducer completes. - fn debug_take_loot( - &self, - character_guid: u64, - corpse_guid: u64, - loot_slot: u8, - ) -> __sdk::Result<()> { - self.debug_take_loot_then(character_guid, corpse_guid, loot_slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_take_loot` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_take_loot_then( - &self, - character_guid: u64, - corpse_guid: u64, - loot_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_take_loot for super::RemoteReducers { - fn debug_take_loot_then( - &self, - character_guid: u64, - corpse_guid: u64, - loot_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugTakeLootArgs { - character_guid, - corpse_guid, - loot_slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_teleport_reducer.rs b/gateway/src/stdb/bindings/debug_teleport_reducer.rs deleted file mode 100644 index b18c87192..000000000 --- a/gateway/src/stdb/bindings/debug_teleport_reducer.rs +++ /dev/null @@ -1,105 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugTeleportArgs { - pub character_guid: u64, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub o: f32, -} - -impl From for super::Reducer { - fn from(args: DebugTeleportArgs) -> Self { - Self::DebugTeleport { - character_guid: args.character_guid, - map_id: args.map_id, - x: args.x, - y: args.y, - z: args.z, - o: args.o, - } - } -} - -impl __sdk::InModule for DebugTeleportArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_teleport`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_teleport { - /// Request that the remote module invoke the reducer `debug_teleport` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_teleport:debug_teleport_then`] to run a callback after the reducer completes. - fn debug_teleport( - &self, - character_guid: u64, - map_id: u32, - x: f32, - y: f32, - z: f32, - o: f32, - ) -> __sdk::Result<()> { - self.debug_teleport_then(character_guid, map_id, x, y, z, o, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_teleport` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_teleport_then( - &self, - character_guid: u64, - map_id: u32, - x: f32, - y: f32, - z: f32, - o: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_teleport for super::RemoteReducers { - fn debug_teleport_then( - &self, - character_guid: u64, - map_id: u32, - x: f32, - y: f32, - z: f32, - o: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugTeleportArgs { - character_guid, - map_id, - x, - y, - z, - o, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_turn_in_choice_reward_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_turn_in_choice_reward_fixture_reducer.rs deleted file mode 100644 index bb825250e..000000000 --- a/gateway/src/stdb/bindings/debug_turn_in_choice_reward_fixture_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugTurnInChoiceRewardFixtureArgs { - pub reward_index: u32, -} - -impl From for super::Reducer { - fn from(args: DebugTurnInChoiceRewardFixtureArgs) -> Self { - Self::DebugTurnInChoiceRewardFixture { - reward_index: args.reward_index, - } - } -} - -impl __sdk::InModule for DebugTurnInChoiceRewardFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_turn_in_choice_reward_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_turn_in_choice_reward_fixture { - /// Request that the remote module invoke the reducer `debug_turn_in_choice_reward_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_turn_in_choice_reward_fixture:debug_turn_in_choice_reward_fixture_then`] to run a callback after the reducer completes. - fn debug_turn_in_choice_reward_fixture(&self, reward_index: u32) -> __sdk::Result<()> { - self.debug_turn_in_choice_reward_fixture_then(reward_index, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_turn_in_choice_reward_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_turn_in_choice_reward_fixture_then( - &self, - reward_index: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_turn_in_choice_reward_fixture for super::RemoteReducers { - fn debug_turn_in_choice_reward_fixture_then( - &self, - reward_index: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugTurnInChoiceRewardFixtureArgs { reward_index }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_turn_in_quest_reducer.rs b/gateway/src/stdb/bindings/debug_turn_in_quest_reducer.rs deleted file mode 100644 index a2a61b036..000000000 --- a/gateway/src/stdb/bindings/debug_turn_in_quest_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugTurnInQuestArgs { - pub character_guid: u64, - pub giver_guid: u64, - pub quest_entry: u32, - pub reward_index: u32, -} - -impl From for super::Reducer { - fn from(args: DebugTurnInQuestArgs) -> Self { - Self::DebugTurnInQuest { - character_guid: args.character_guid, - giver_guid: args.giver_guid, - quest_entry: args.quest_entry, - reward_index: args.reward_index, - } - } -} - -impl __sdk::InModule for DebugTurnInQuestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_turn_in_quest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_turn_in_quest { - /// Request that the remote module invoke the reducer `debug_turn_in_quest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_turn_in_quest:debug_turn_in_quest_then`] to run a callback after the reducer completes. - fn debug_turn_in_quest( - &self, - character_guid: u64, - giver_guid: u64, - quest_entry: u32, - reward_index: u32, - ) -> __sdk::Result<()> { - self.debug_turn_in_quest_then( - character_guid, - giver_guid, - quest_entry, - reward_index, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_turn_in_quest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_turn_in_quest_then( - &self, - character_guid: u64, - giver_guid: u64, - quest_entry: u32, - reward_index: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_turn_in_quest for super::RemoteReducers { - fn debug_turn_in_quest_then( - &self, - character_guid: u64, - giver_guid: u64, - quest_entry: u32, - reward_index: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugTurnInQuestArgs { - character_guid, - giver_guid, - quest_entry, - reward_index, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_unequip_item_reducer.rs b/gateway/src/stdb/bindings/debug_unequip_item_reducer.rs deleted file mode 100644 index b9eb95097..000000000 --- a/gateway/src/stdb/bindings/debug_unequip_item_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugUnequipItemArgs { - pub character_guid: u64, - pub from_slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugUnequipItemArgs) -> Self { - Self::DebugUnequipItem { - character_guid: args.character_guid, - from_slot: args.from_slot, - } - } -} - -impl __sdk::InModule for DebugUnequipItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_unequip_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_unequip_item { - /// Request that the remote module invoke the reducer `debug_unequip_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_unequip_item:debug_unequip_item_then`] to run a callback after the reducer completes. - fn debug_unequip_item(&self, character_guid: u64, from_slot: u8) -> __sdk::Result<()> { - self.debug_unequip_item_then(character_guid, from_slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_unequip_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_unequip_item_then( - &self, - character_guid: u64, - from_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_unequip_item for super::RemoteReducers { - fn debug_unequip_item_then( - &self, - character_guid: u64, - from_slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugUnequipItemArgs { - character_guid, - from_slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_use_gameobject_entry_reducer.rs b/gateway/src/stdb/bindings/debug_use_gameobject_entry_reducer.rs deleted file mode 100644 index 5b9b9e894..000000000 --- a/gateway/src/stdb/bindings/debug_use_gameobject_entry_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugUseGameobjectEntryArgs { - pub character_guid: u64, - pub go_entry: u32, -} - -impl From for super::Reducer { - fn from(args: DebugUseGameobjectEntryArgs) -> Self { - Self::DebugUseGameobjectEntry { - character_guid: args.character_guid, - go_entry: args.go_entry, - } - } -} - -impl __sdk::InModule for DebugUseGameobjectEntryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_use_gameobject_entry`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_use_gameobject_entry { - /// Request that the remote module invoke the reducer `debug_use_gameobject_entry` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_use_gameobject_entry:debug_use_gameobject_entry_then`] to run a callback after the reducer completes. - fn debug_use_gameobject_entry(&self, character_guid: u64, go_entry: u32) -> __sdk::Result<()> { - self.debug_use_gameobject_entry_then(character_guid, go_entry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_use_gameobject_entry` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_use_gameobject_entry_then( - &self, - character_guid: u64, - go_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_use_gameobject_entry for super::RemoteReducers { - fn debug_use_gameobject_entry_then( - &self, - character_guid: u64, - go_entry: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugUseGameobjectEntryArgs { - character_guid, - go_entry, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_use_gameobject_reducer.rs b/gateway/src/stdb/bindings/debug_use_gameobject_reducer.rs deleted file mode 100644 index 43c1808f2..000000000 --- a/gateway/src/stdb/bindings/debug_use_gameobject_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugUseGameobjectArgs { - pub character_guid: u64, - pub go_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugUseGameobjectArgs) -> Self { - Self::DebugUseGameobject { - character_guid: args.character_guid, - go_guid: args.go_guid, - } - } -} - -impl __sdk::InModule for DebugUseGameobjectArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_use_gameobject`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_use_gameobject { - /// Request that the remote module invoke the reducer `debug_use_gameobject` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_use_gameobject:debug_use_gameobject_then`] to run a callback after the reducer completes. - fn debug_use_gameobject(&self, character_guid: u64, go_guid: u64) -> __sdk::Result<()> { - self.debug_use_gameobject_then(character_guid, go_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_use_gameobject` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_use_gameobject_then( - &self, - character_guid: u64, - go_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_use_gameobject for super::RemoteReducers { - fn debug_use_gameobject_then( - &self, - character_guid: u64, - go_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugUseGameobjectArgs { - character_guid, - go_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_use_hearthstone_reducer.rs b/gateway/src/stdb/bindings/debug_use_hearthstone_reducer.rs deleted file mode 100644 index 5a060ea9f..000000000 --- a/gateway/src/stdb/bindings/debug_use_hearthstone_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugUseHearthstoneArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugUseHearthstoneArgs) -> Self { - Self::DebugUseHearthstone { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugUseHearthstoneArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_use_hearthstone`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_use_hearthstone { - /// Request that the remote module invoke the reducer `debug_use_hearthstone` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_use_hearthstone:debug_use_hearthstone_then`] to run a callback after the reducer completes. - fn debug_use_hearthstone(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_use_hearthstone_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_use_hearthstone` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_use_hearthstone_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_use_hearthstone for super::RemoteReducers { - fn debug_use_hearthstone_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugUseHearthstoneArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_use_item_reducer.rs b/gateway/src/stdb/bindings/debug_use_item_reducer.rs deleted file mode 100644 index f5c72540c..000000000 --- a/gateway/src/stdb/bindings/debug_use_item_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugUseItemArgs { - pub character_guid: u64, - pub slot: u8, -} - -impl From for super::Reducer { - fn from(args: DebugUseItemArgs) -> Self { - Self::DebugUseItem { - character_guid: args.character_guid, - slot: args.slot, - } - } -} - -impl __sdk::InModule for DebugUseItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_use_item`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_use_item { - /// Request that the remote module invoke the reducer `debug_use_item` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_use_item:debug_use_item_then`] to run a callback after the reducer completes. - fn debug_use_item(&self, character_guid: u64, slot: u8) -> __sdk::Result<()> { - self.debug_use_item_then(character_guid, slot, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_use_item` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_use_item_then( - &self, - character_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_use_item for super::RemoteReducers { - fn debug_use_item_then( - &self, - character_guid: u64, - slot: u8, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugUseItemArgs { - character_guid, - slot, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_auction_buyout_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_auction_buyout_fixture_reducer.rs deleted file mode 100644 index 12891da0a..000000000 --- a/gateway/src/stdb/bindings/debug_verify_auction_buyout_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyAuctionBuyoutFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyAuctionBuyoutFixtureArgs) -> Self { - Self::DebugVerifyAuctionBuyoutFixture - } -} - -impl __sdk::InModule for DebugVerifyAuctionBuyoutFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_auction_buyout_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_auction_buyout_fixture { - /// Request that the remote module invoke the reducer `debug_verify_auction_buyout_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_auction_buyout_fixture:debug_verify_auction_buyout_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_auction_buyout_fixture(&self) -> __sdk::Result<()> { - self.debug_verify_auction_buyout_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_auction_buyout_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_auction_buyout_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_auction_buyout_fixture for super::RemoteReducers { - fn debug_verify_auction_buyout_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyAuctionBuyoutFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_auction_expiry_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_auction_expiry_fixture_reducer.rs deleted file mode 100644 index 8aa86ed76..000000000 --- a/gateway/src/stdb/bindings/debug_verify_auction_expiry_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyAuctionExpiryFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyAuctionExpiryFixtureArgs) -> Self { - Self::DebugVerifyAuctionExpiryFixture - } -} - -impl __sdk::InModule for DebugVerifyAuctionExpiryFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_auction_expiry_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_auction_expiry_fixture { - /// Request that the remote module invoke the reducer `debug_verify_auction_expiry_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_auction_expiry_fixture:debug_verify_auction_expiry_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_auction_expiry_fixture(&self) -> __sdk::Result<()> { - self.debug_verify_auction_expiry_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_auction_expiry_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_auction_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_auction_expiry_fixture for super::RemoteReducers { - fn debug_verify_auction_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyAuctionExpiryFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_choice_reward_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_choice_reward_fixture_reducer.rs deleted file mode 100644 index 7d8b76ac6..000000000 --- a/gateway/src/stdb/bindings/debug_verify_choice_reward_fixture_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyChoiceRewardFixtureArgs { - pub reward_index: u32, -} - -impl From for super::Reducer { - fn from(args: DebugVerifyChoiceRewardFixtureArgs) -> Self { - Self::DebugVerifyChoiceRewardFixture { - reward_index: args.reward_index, - } - } -} - -impl __sdk::InModule for DebugVerifyChoiceRewardFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_choice_reward_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_choice_reward_fixture { - /// Request that the remote module invoke the reducer `debug_verify_choice_reward_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_choice_reward_fixture:debug_verify_choice_reward_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_choice_reward_fixture(&self, reward_index: u32) -> __sdk::Result<()> { - self.debug_verify_choice_reward_fixture_then(reward_index, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_choice_reward_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_choice_reward_fixture_then( - &self, - reward_index: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_choice_reward_fixture for super::RemoteReducers { - fn debug_verify_choice_reward_fixture_then( - &self, - reward_index: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVerifyChoiceRewardFixtureArgs { reward_index }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_choice_reward_refusal_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_choice_reward_refusal_fixture_reducer.rs deleted file mode 100644 index d66e6f3da..000000000 --- a/gateway/src/stdb/bindings/debug_verify_choice_reward_refusal_fixture_reducer.rs +++ /dev/null @@ -1,73 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyChoiceRewardRefusalFixtureArgs { - pub expected_fillers: u32, -} - -impl From for super::Reducer { - fn from(args: DebugVerifyChoiceRewardRefusalFixtureArgs) -> Self { - Self::DebugVerifyChoiceRewardRefusalFixture { - expected_fillers: args.expected_fillers, - } - } -} - -impl __sdk::InModule for DebugVerifyChoiceRewardRefusalFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_choice_reward_refusal_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_choice_reward_refusal_fixture { - /// Request that the remote module invoke the reducer `debug_verify_choice_reward_refusal_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_choice_reward_refusal_fixture:debug_verify_choice_reward_refusal_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_choice_reward_refusal_fixture( - &self, - expected_fillers: u32, - ) -> __sdk::Result<()> { - self.debug_verify_choice_reward_refusal_fixture_then(expected_fillers, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_choice_reward_refusal_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_choice_reward_refusal_fixture_then( - &self, - expected_fillers: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_choice_reward_refusal_fixture for super::RemoteReducers { - fn debug_verify_choice_reward_refusal_fixture_then( - &self, - expected_fillers: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVerifyChoiceRewardRefusalFixtureArgs { expected_fillers }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_combat_regen_reducer.rs b/gateway/src/stdb/bindings/debug_verify_combat_regen_reducer.rs deleted file mode 100644 index 2aa183603..000000000 --- a/gateway/src/stdb/bindings/debug_verify_combat_regen_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyCombatRegenArgs { - pub character_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugVerifyCombatRegenArgs) -> Self { - Self::DebugVerifyCombatRegen { - character_guid: args.character_guid, - } - } -} - -impl __sdk::InModule for DebugVerifyCombatRegenArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_combat_regen`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_combat_regen { - /// Request that the remote module invoke the reducer `debug_verify_combat_regen` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_combat_regen:debug_verify_combat_regen_then`] to run a callback after the reducer completes. - fn debug_verify_combat_regen(&self, character_guid: u64) -> __sdk::Result<()> { - self.debug_verify_combat_regen_then(character_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_combat_regen` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_combat_regen_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_combat_regen for super::RemoteReducers { - fn debug_verify_combat_regen_then( - &self, - character_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyCombatRegenArgs { character_guid }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_eventai_quest_credit_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_eventai_quest_credit_fixture_reducer.rs deleted file mode 100644 index 993eaa783..000000000 --- a/gateway/src/stdb/bindings/debug_verify_eventai_quest_credit_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyEventaiQuestCreditFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyEventaiQuestCreditFixtureArgs) -> Self { - Self::DebugVerifyEventaiQuestCreditFixture - } -} - -impl __sdk::InModule for DebugVerifyEventaiQuestCreditFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_eventai_quest_credit_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_eventai_quest_credit_fixture { - /// Request that the remote module invoke the reducer `debug_verify_eventai_quest_credit_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_eventai_quest_credit_fixture:debug_verify_eventai_quest_credit_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_eventai_quest_credit_fixture(&self) -> __sdk::Result<()> { - self.debug_verify_eventai_quest_credit_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_eventai_quest_credit_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_eventai_quest_credit_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_eventai_quest_credit_fixture for super::RemoteReducers { - fn debug_verify_eventai_quest_credit_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyEventaiQuestCreditFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_eventai_revision_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_eventai_revision_fixture_reducer.rs deleted file mode 100644 index adbf68137..000000000 --- a/gateway/src/stdb/bindings/debug_verify_eventai_revision_fixture_reducer.rs +++ /dev/null @@ -1,92 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyEventaiRevisionFixtureArgs { - pub creature_guid: u64, - pub source_rule_id: u64, - pub expect_rule_state: bool, -} - -impl From for super::Reducer { - fn from(args: DebugVerifyEventaiRevisionFixtureArgs) -> Self { - Self::DebugVerifyEventaiRevisionFixture { - creature_guid: args.creature_guid, - source_rule_id: args.source_rule_id, - expect_rule_state: args.expect_rule_state, - } - } -} - -impl __sdk::InModule for DebugVerifyEventaiRevisionFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_eventai_revision_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_eventai_revision_fixture { - /// Request that the remote module invoke the reducer `debug_verify_eventai_revision_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_eventai_revision_fixture:debug_verify_eventai_revision_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_eventai_revision_fixture( - &self, - creature_guid: u64, - source_rule_id: u64, - expect_rule_state: bool, - ) -> __sdk::Result<()> { - self.debug_verify_eventai_revision_fixture_then( - creature_guid, - source_rule_id, - expect_rule_state, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_verify_eventai_revision_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_eventai_revision_fixture_then( - &self, - creature_guid: u64, - source_rule_id: u64, - expect_rule_state: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_eventai_revision_fixture for super::RemoteReducers { - fn debug_verify_eventai_revision_fixture_then( - &self, - creature_guid: u64, - source_rule_id: u64, - expect_rule_state: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVerifyEventaiRevisionFixtureArgs { - creature_guid, - source_rule_id, - expect_rule_state, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_eventai_spell_guardian_cleanup_reducer.rs b/gateway/src/stdb/bindings/debug_verify_eventai_spell_guardian_cleanup_reducer.rs deleted file mode 100644 index b1088c4fa..000000000 --- a/gateway/src/stdb/bindings/debug_verify_eventai_spell_guardian_cleanup_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyEventaiSpellGuardianCleanupArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyEventaiSpellGuardianCleanupArgs) -> Self { - Self::DebugVerifyEventaiSpellGuardianCleanup - } -} - -impl __sdk::InModule for DebugVerifyEventaiSpellGuardianCleanupArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_eventai_spell_guardian_cleanup`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_eventai_spell_guardian_cleanup { - /// Request that the remote module invoke the reducer `debug_verify_eventai_spell_guardian_cleanup` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_eventai_spell_guardian_cleanup:debug_verify_eventai_spell_guardian_cleanup_then`] to run a callback after the reducer completes. - fn debug_verify_eventai_spell_guardian_cleanup(&self) -> __sdk::Result<()> { - self.debug_verify_eventai_spell_guardian_cleanup_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_eventai_spell_guardian_cleanup` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_eventai_spell_guardian_cleanup_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_eventai_spell_guardian_cleanup for super::RemoteReducers { - fn debug_verify_eventai_spell_guardian_cleanup_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyEventaiSpellGuardianCleanupArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_eventai_summon_expiry_reducer.rs b/gateway/src/stdb/bindings/debug_verify_eventai_summon_expiry_reducer.rs deleted file mode 100644 index cb0a1e65b..000000000 --- a/gateway/src/stdb/bindings/debug_verify_eventai_summon_expiry_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyEventaiSummonExpiryArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyEventaiSummonExpiryArgs) -> Self { - Self::DebugVerifyEventaiSummonExpiry - } -} - -impl __sdk::InModule for DebugVerifyEventaiSummonExpiryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_eventai_summon_expiry`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_eventai_summon_expiry { - /// Request that the remote module invoke the reducer `debug_verify_eventai_summon_expiry` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_eventai_summon_expiry:debug_verify_eventai_summon_expiry_then`] to run a callback after the reducer completes. - fn debug_verify_eventai_summon_expiry(&self) -> __sdk::Result<()> { - self.debug_verify_eventai_summon_expiry_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_eventai_summon_expiry` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_eventai_summon_expiry_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_eventai_summon_expiry for super::RemoteReducers { - fn debug_verify_eventai_summon_expiry_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyEventaiSummonExpiryArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_legacy_auction_mail_repaired_reducer.rs b/gateway/src/stdb/bindings/debug_verify_legacy_auction_mail_repaired_reducer.rs deleted file mode 100644 index 7196478b7..000000000 --- a/gateway/src/stdb/bindings/debug_verify_legacy_auction_mail_repaired_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyLegacyAuctionMailRepairedArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyLegacyAuctionMailRepairedArgs) -> Self { - Self::DebugVerifyLegacyAuctionMailRepaired - } -} - -impl __sdk::InModule for DebugVerifyLegacyAuctionMailRepairedArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_legacy_auction_mail_repaired`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_legacy_auction_mail_repaired { - /// Request that the remote module invoke the reducer `debug_verify_legacy_auction_mail_repaired` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_legacy_auction_mail_repaired:debug_verify_legacy_auction_mail_repaired_then`] to run a callback after the reducer completes. - fn debug_verify_legacy_auction_mail_repaired(&self) -> __sdk::Result<()> { - self.debug_verify_legacy_auction_mail_repaired_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_legacy_auction_mail_repaired` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_legacy_auction_mail_repaired_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_legacy_auction_mail_repaired for super::RemoteReducers { - fn debug_verify_legacy_auction_mail_repaired_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyLegacyAuctionMailRepairedArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_lethal_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_lethal_damage_floor_fixture_reducer.rs deleted file mode 100644 index 21124be98..000000000 --- a/gateway/src/stdb/bindings/debug_verify_lethal_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,113 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyLethalDamageFloorFixtureArgs { - pub creature_guid: u64, - pub expected_health: u32, - pub expected_dead: bool, - pub expected_floor: bool, - pub expected_notification: bool, - pub expected_absorb: i32, -} - -impl From for super::Reducer { - fn from(args: DebugVerifyLethalDamageFloorFixtureArgs) -> Self { - Self::DebugVerifyLethalDamageFloorFixture { - creature_guid: args.creature_guid, - expected_health: args.expected_health, - expected_dead: args.expected_dead, - expected_floor: args.expected_floor, - expected_notification: args.expected_notification, - expected_absorb: args.expected_absorb, - } - } -} - -impl __sdk::InModule for DebugVerifyLethalDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_lethal_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_lethal_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_verify_lethal_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_lethal_damage_floor_fixture:debug_verify_lethal_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_lethal_damage_floor_fixture( - &self, - creature_guid: u64, - expected_health: u32, - expected_dead: bool, - expected_floor: bool, - expected_notification: bool, - expected_absorb: i32, - ) -> __sdk::Result<()> { - self.debug_verify_lethal_damage_floor_fixture_then( - creature_guid, - expected_health, - expected_dead, - expected_floor, - expected_notification, - expected_absorb, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_verify_lethal_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - expected_health: u32, - expected_dead: bool, - expected_floor: bool, - expected_notification: bool, - expected_absorb: i32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_lethal_damage_floor_fixture for super::RemoteReducers { - fn debug_verify_lethal_damage_floor_fixture_then( - &self, - creature_guid: u64, - expected_health: u32, - expected_dead: bool, - expected_floor: bool, - expected_notification: bool, - expected_absorb: i32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVerifyLethalDamageFloorFixtureArgs { - creature_guid, - expected_health, - expected_dead, - expected_floor, - expected_notification, - expected_absorb, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_loot_tag_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_loot_tag_fixture_reducer.rs deleted file mode 100644 index 5e50349b3..000000000 --- a/gateway/src/stdb/bindings/debug_verify_loot_tag_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyLootTagFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyLootTagFixtureArgs) -> Self { - Self::DebugVerifyLootTagFixture - } -} - -impl __sdk::InModule for DebugVerifyLootTagFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_loot_tag_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_loot_tag_fixture { - /// Request that the remote module invoke the reducer `debug_verify_loot_tag_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_loot_tag_fixture:debug_verify_loot_tag_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_loot_tag_fixture(&self) -> __sdk::Result<()> { - self.debug_verify_loot_tag_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_loot_tag_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_loot_tag_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_loot_tag_fixture for super::RemoteReducers { - fn debug_verify_loot_tag_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyLootTagFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_mail_expiry_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_mail_expiry_fixture_reducer.rs deleted file mode 100644 index 561debb6e..000000000 --- a/gateway/src/stdb/bindings/debug_verify_mail_expiry_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyMailExpiryFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyMailExpiryFixtureArgs) -> Self { - Self::DebugVerifyMailExpiryFixture - } -} - -impl __sdk::InModule for DebugVerifyMailExpiryFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_mail_expiry_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_mail_expiry_fixture { - /// Request that the remote module invoke the reducer `debug_verify_mail_expiry_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_mail_expiry_fixture:debug_verify_mail_expiry_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_mail_expiry_fixture(&self) -> __sdk::Result<()> { - self.debug_verify_mail_expiry_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_mail_expiry_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_mail_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_mail_expiry_fixture for super::RemoteReducers { - fn debug_verify_mail_expiry_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyMailExpiryFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_mail_fixture_held_reducer.rs b/gateway/src/stdb/bindings/debug_verify_mail_fixture_held_reducer.rs deleted file mode 100644 index daedc8516..000000000 --- a/gateway/src/stdb/bindings/debug_verify_mail_fixture_held_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyMailFixtureHeldArgs { - pub recipient_guid: u64, - pub subject: String, - pub held: bool, -} - -impl From for super::Reducer { - fn from(args: DebugVerifyMailFixtureHeldArgs) -> Self { - Self::DebugVerifyMailFixtureHeld { - recipient_guid: args.recipient_guid, - subject: args.subject, - held: args.held, - } - } -} - -impl __sdk::InModule for DebugVerifyMailFixtureHeldArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_mail_fixture_held`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_mail_fixture_held { - /// Request that the remote module invoke the reducer `debug_verify_mail_fixture_held` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_mail_fixture_held:debug_verify_mail_fixture_held_then`] to run a callback after the reducer completes. - fn debug_verify_mail_fixture_held( - &self, - recipient_guid: u64, - subject: String, - held: bool, - ) -> __sdk::Result<()> { - self.debug_verify_mail_fixture_held_then(recipient_guid, subject, held, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_mail_fixture_held` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_mail_fixture_held_then( - &self, - recipient_guid: u64, - subject: String, - held: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_mail_fixture_held for super::RemoteReducers { - fn debug_verify_mail_fixture_held_then( - &self, - recipient_guid: u64, - subject: String, - held: bool, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVerifyMailFixtureHeldArgs { - recipient_guid, - subject, - held, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_mail_legacy_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_mail_legacy_fixture_reducer.rs deleted file mode 100644 index d26ff54b7..000000000 --- a/gateway/src/stdb/bindings/debug_verify_mail_legacy_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyMailLegacyFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyMailLegacyFixtureArgs) -> Self { - Self::DebugVerifyMailLegacyFixture - } -} - -impl __sdk::InModule for DebugVerifyMailLegacyFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_mail_legacy_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_mail_legacy_fixture { - /// Request that the remote module invoke the reducer `debug_verify_mail_legacy_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_mail_legacy_fixture:debug_verify_mail_legacy_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_mail_legacy_fixture(&self) -> __sdk::Result<()> { - self.debug_verify_mail_legacy_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_mail_legacy_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_mail_legacy_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_mail_legacy_fixture for super::RemoteReducers { - fn debug_verify_mail_legacy_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyMailLegacyFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_raid_quest_credit_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_raid_quest_credit_fixture_reducer.rs deleted file mode 100644 index e0e1ccf8f..000000000 --- a/gateway/src/stdb/bindings/debug_verify_raid_quest_credit_fixture_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyRaidQuestCreditFixtureArgs {} - -impl From for super::Reducer { - fn from(args: DebugVerifyRaidQuestCreditFixtureArgs) -> Self { - Self::DebugVerifyRaidQuestCreditFixture - } -} - -impl __sdk::InModule for DebugVerifyRaidQuestCreditFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_raid_quest_credit_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_raid_quest_credit_fixture { - /// Request that the remote module invoke the reducer `debug_verify_raid_quest_credit_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_raid_quest_credit_fixture:debug_verify_raid_quest_credit_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_raid_quest_credit_fixture(&self) -> __sdk::Result<()> { - self.debug_verify_raid_quest_credit_fixture_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_raid_quest_credit_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_raid_quest_credit_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_raid_quest_credit_fixture for super::RemoteReducers { - fn debug_verify_raid_quest_credit_fixture_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVerifyRaidQuestCreditFixtureArgs {}, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_ranged_lethal_damage_floor_fixture_reducer.rs b/gateway/src/stdb/bindings/debug_verify_ranged_lethal_damage_floor_fixture_reducer.rs deleted file mode 100644 index b1076c5e9..000000000 --- a/gateway/src/stdb/bindings/debug_verify_ranged_lethal_damage_floor_fixture_reducer.rs +++ /dev/null @@ -1,99 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyRangedLethalDamageFloorFixtureArgs { - pub attacker_guid: u64, - pub creature_guid: u64, - pub expected_health: u32, - pub expected_damage_log: u32, -} - -impl From for super::Reducer { - fn from(args: DebugVerifyRangedLethalDamageFloorFixtureArgs) -> Self { - Self::DebugVerifyRangedLethalDamageFloorFixture { - attacker_guid: args.attacker_guid, - creature_guid: args.creature_guid, - expected_health: args.expected_health, - expected_damage_log: args.expected_damage_log, - } - } -} - -impl __sdk::InModule for DebugVerifyRangedLethalDamageFloorFixtureArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_ranged_lethal_damage_floor_fixture`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_ranged_lethal_damage_floor_fixture { - /// Request that the remote module invoke the reducer `debug_verify_ranged_lethal_damage_floor_fixture` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_ranged_lethal_damage_floor_fixture:debug_verify_ranged_lethal_damage_floor_fixture_then`] to run a callback after the reducer completes. - fn debug_verify_ranged_lethal_damage_floor_fixture( - &self, - attacker_guid: u64, - creature_guid: u64, - expected_health: u32, - expected_damage_log: u32, - ) -> __sdk::Result<()> { - self.debug_verify_ranged_lethal_damage_floor_fixture_then( - attacker_guid, - creature_guid, - expected_health, - expected_damage_log, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `debug_verify_ranged_lethal_damage_floor_fixture` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_ranged_lethal_damage_floor_fixture_then( - &self, - attacker_guid: u64, - creature_guid: u64, - expected_health: u32, - expected_damage_log: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_ranged_lethal_damage_floor_fixture for super::RemoteReducers { - fn debug_verify_ranged_lethal_damage_floor_fixture_then( - &self, - attacker_guid: u64, - creature_guid: u64, - expected_health: u32, - expected_damage_log: u32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVerifyRangedLethalDamageFloorFixtureArgs { - attacker_guid, - creature_guid, - expected_health, - expected_damage_log, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_verify_relay_arrival_placement_reducer.rs b/gateway/src/stdb/bindings/debug_verify_relay_arrival_placement_reducer.rs deleted file mode 100644 index b589cf1ca..000000000 --- a/gateway/src/stdb/bindings/debug_verify_relay_arrival_placement_reducer.rs +++ /dev/null @@ -1,81 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVerifyRelayArrivalPlacementArgs { - pub source_guid: u64, - pub selected_guid: u64, -} - -impl From for super::Reducer { - fn from(args: DebugVerifyRelayArrivalPlacementArgs) -> Self { - Self::DebugVerifyRelayArrivalPlacement { - source_guid: args.source_guid, - selected_guid: args.selected_guid, - } - } -} - -impl __sdk::InModule for DebugVerifyRelayArrivalPlacementArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_verify_relay_arrival_placement`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_verify_relay_arrival_placement { - /// Request that the remote module invoke the reducer `debug_verify_relay_arrival_placement` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_verify_relay_arrival_placement:debug_verify_relay_arrival_placement_then`] to run a callback after the reducer completes. - fn debug_verify_relay_arrival_placement( - &self, - source_guid: u64, - selected_guid: u64, - ) -> __sdk::Result<()> { - self.debug_verify_relay_arrival_placement_then(source_guid, selected_guid, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_verify_relay_arrival_placement` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_verify_relay_arrival_placement_then( - &self, - source_guid: u64, - selected_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_verify_relay_arrival_placement for super::RemoteReducers { - fn debug_verify_relay_arrival_placement_then( - &self, - source_guid: u64, - selected_guid: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVerifyRelayArrivalPlacementArgs { - source_guid, - selected_guid, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_vmap_area_info_reducer.rs b/gateway/src/stdb/bindings/debug_vmap_area_info_reducer.rs deleted file mode 100644 index 0c1b7fd36..000000000 --- a/gateway/src/stdb/bindings/debug_vmap_area_info_reducer.rs +++ /dev/null @@ -1,80 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVmapAreaInfoArgs { - pub map: u32, - pub x: f32, - pub y: f32, - pub z: f32, -} - -impl From for super::Reducer { - fn from(args: DebugVmapAreaInfoArgs) -> Self { - Self::DebugVmapAreaInfo { - map: args.map, - x: args.x, - y: args.y, - z: args.z, - } - } -} - -impl __sdk::InModule for DebugVmapAreaInfoArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_vmap_area_info`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_vmap_area_info { - /// Request that the remote module invoke the reducer `debug_vmap_area_info` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_vmap_area_info:debug_vmap_area_info_then`] to run a callback after the reducer completes. - fn debug_vmap_area_info(&self, map: u32, x: f32, y: f32, z: f32) -> __sdk::Result<()> { - self.debug_vmap_area_info_then(map, x, y, z, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_vmap_area_info` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_vmap_area_info_then( - &self, - map: u32, - x: f32, - y: f32, - z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_vmap_area_info for super::RemoteReducers { - fn debug_vmap_area_info_then( - &self, - map: u32, - x: f32, - y: f32, - z: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DebugVmapAreaInfoArgs { map, x, y, z }, callback) - } -} diff --git a/gateway/src/stdb/bindings/debug_vmap_ray_instance_reducer.rs b/gateway/src/stdb/bindings/debug_vmap_ray_instance_reducer.rs deleted file mode 100644 index eecfc60fd..000000000 --- a/gateway/src/stdb/bindings/debug_vmap_ray_instance_reducer.rs +++ /dev/null @@ -1,117 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVmapRayInstanceArgs { - pub map: u32, - pub x_0: f32, - pub y_0: f32, - pub z_0: f32, - pub x_1: f32, - pub y_1: f32, - pub z_1: f32, - pub instance_id: u64, -} - -impl From for super::Reducer { - fn from(args: DebugVmapRayInstanceArgs) -> Self { - Self::DebugVmapRayInstance { - map: args.map, - x_0: args.x_0, - y_0: args.y_0, - z_0: args.z_0, - x_1: args.x_1, - y_1: args.y_1, - z_1: args.z_1, - instance_id: args.instance_id, - } - } -} - -impl __sdk::InModule for DebugVmapRayInstanceArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_vmap_ray_instance`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_vmap_ray_instance { - /// Request that the remote module invoke the reducer `debug_vmap_ray_instance` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_vmap_ray_instance:debug_vmap_ray_instance_then`] to run a callback after the reducer completes. - fn debug_vmap_ray_instance( - &self, - map: u32, - x_0: f32, - y_0: f32, - z_0: f32, - x_1: f32, - y_1: f32, - z_1: f32, - instance_id: u64, - ) -> __sdk::Result<()> { - self.debug_vmap_ray_instance_then(map, x_0, y_0, z_0, x_1, y_1, z_1, instance_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_vmap_ray_instance` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_vmap_ray_instance_then( - &self, - map: u32, - x_0: f32, - y_0: f32, - z_0: f32, - x_1: f32, - y_1: f32, - z_1: f32, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_vmap_ray_instance for super::RemoteReducers { - fn debug_vmap_ray_instance_then( - &self, - map: u32, - x_0: f32, - y_0: f32, - z_0: f32, - x_1: f32, - y_1: f32, - z_1: f32, - instance_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVmapRayInstanceArgs { - map, - x_0, - y_0, - z_0, - x_1, - y_1, - z_1, - instance_id, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/debug_vmap_ray_reducer.rs b/gateway/src/stdb/bindings/debug_vmap_ray_reducer.rs deleted file mode 100644 index fdd7043fa..000000000 --- a/gateway/src/stdb/bindings/debug_vmap_ray_reducer.rs +++ /dev/null @@ -1,111 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DebugVmapRayArgs { - pub map: u32, - pub x_0: f32, - pub y_0: f32, - pub z_0: f32, - pub x_1: f32, - pub y_1: f32, - pub z_1: f32, -} - -impl From for super::Reducer { - fn from(args: DebugVmapRayArgs) -> Self { - Self::DebugVmapRay { - map: args.map, - x_0: args.x_0, - y_0: args.y_0, - z_0: args.z_0, - x_1: args.x_1, - y_1: args.y_1, - z_1: args.z_1, - } - } -} - -impl __sdk::InModule for DebugVmapRayArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `debug_vmap_ray`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait debug_vmap_ray { - /// Request that the remote module invoke the reducer `debug_vmap_ray` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`debug_vmap_ray:debug_vmap_ray_then`] to run a callback after the reducer completes. - fn debug_vmap_ray( - &self, - map: u32, - x_0: f32, - y_0: f32, - z_0: f32, - x_1: f32, - y_1: f32, - z_1: f32, - ) -> __sdk::Result<()> { - self.debug_vmap_ray_then(map, x_0, y_0, z_0, x_1, y_1, z_1, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `debug_vmap_ray` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn debug_vmap_ray_then( - &self, - map: u32, - x_0: f32, - y_0: f32, - z_0: f32, - x_1: f32, - y_1: f32, - z_1: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl debug_vmap_ray for super::RemoteReducers { - fn debug_vmap_ray_then( - &self, - map: u32, - x_0: f32, - y_0: f32, - z_0: f32, - x_1: f32, - y_1: f32, - z_1: f32, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DebugVmapRayArgs { - map, - x_0, - y_0, - z_0, - x_1, - y_1, - z_1, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/defer_party_command_intent_reducer.rs b/gateway/src/stdb/bindings/defer_party_command_intent_reducer.rs deleted file mode 100644 index 7833ee227..000000000 --- a/gateway/src/stdb/bindings/defer_party_command_intent_reducer.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DeferPartyCommandIntentArgs { - pub intent_id: u64, - pub claim_token: u64, -} - -impl From for super::Reducer { - fn from(args: DeferPartyCommandIntentArgs) -> Self { - Self::DeferPartyCommandIntent { - intent_id: args.intent_id, - claim_token: args.claim_token, - } - } -} - -impl __sdk::InModule for DeferPartyCommandIntentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `defer_party_command_intent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait defer_party_command_intent { - /// Request that the remote module invoke the reducer `defer_party_command_intent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`defer_party_command_intent:defer_party_command_intent_then`] to run a callback after the reducer completes. - fn defer_party_command_intent(&self, intent_id: u64, claim_token: u64) -> __sdk::Result<()> { - self.defer_party_command_intent_then(intent_id, claim_token, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `defer_party_command_intent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn defer_party_command_intent_then( - &self, - intent_id: u64, - claim_token: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl defer_party_command_intent for super::RemoteReducers { - fn defer_party_command_intent_then( - &self, - intent_id: u64, - claim_token: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DeferPartyCommandIntentArgs { - intent_id, - claim_token, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/delete_character_reducer.rs b/gateway/src/stdb/bindings/delete_character_reducer.rs deleted file mode 100644 index 75b47b87d..000000000 --- a/gateway/src/stdb/bindings/delete_character_reducer.rs +++ /dev/null @@ -1,79 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DeleteCharacterArgs { - pub account_id: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: DeleteCharacterArgs) -> Self { - Self::DeleteCharacter { - account_id: args.account_id, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for DeleteCharacterArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_character`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait delete_character { - /// Request that the remote module invoke the reducer `delete_character` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`delete_character:delete_character_then`] to run a callback after the reducer completes. - fn delete_character(&self, account_id: u64, request_actor: SessionActor) -> __sdk::Result<()> { - self.delete_character_then(account_id, request_actor, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `delete_character` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn delete_character_then( - &self, - account_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl delete_character for super::RemoteReducers { - fn delete_character_then( - &self, - account_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - DeleteCharacterArgs { - account_id, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/discard_vmap_generation_reducer.rs b/gateway/src/stdb/bindings/discard_vmap_generation_reducer.rs deleted file mode 100644 index 23a43f300..000000000 --- a/gateway/src/stdb/bindings/discard_vmap_generation_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct DiscardVmapGenerationArgs { - pub generation_id: u64, -} - -impl From for super::Reducer { - fn from(args: DiscardVmapGenerationArgs) -> Self { - Self::DiscardVmapGeneration { - generation_id: args.generation_id, - } - } -} - -impl __sdk::InModule for DiscardVmapGenerationArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `discard_vmap_generation`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait discard_vmap_generation { - /// Request that the remote module invoke the reducer `discard_vmap_generation` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`discard_vmap_generation:discard_vmap_generation_then`] to run a callback after the reducer completes. - fn discard_vmap_generation(&self, generation_id: u64) -> __sdk::Result<()> { - self.discard_vmap_generation_then(generation_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `discard_vmap_generation` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn discard_vmap_generation_then( - &self, - generation_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl discard_vmap_generation for super::RemoteReducers { - fn discard_vmap_generation_then( - &self, - generation_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(DiscardVmapGenerationArgs { generation_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/dr_state_type.rs b/gateway/src/stdb/bindings/dr_state_type.rs deleted file mode 100644 index f34b42991..000000000 --- a/gateway/src/stdb/bindings/dr_state_type.rs +++ /dev/null @@ -1,66 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct DrState { - pub id: u64, - pub target_guid: u64, - pub category: u8, - pub level: u8, - pub window_expires_micros: i64, -} - -impl __sdk::InModule for DrState { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `DrState`. -/// -/// Provides typed access to columns for query building. -pub struct DrStateCols { - pub id: __sdk::__query_builder::Col, - pub target_guid: __sdk::__query_builder::Col, - pub category: __sdk::__query_builder::Col, - pub level: __sdk::__query_builder::Col, - pub window_expires_micros: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for DrState { - type Cols = DrStateCols; - fn cols(table_name: &'static str) -> Self::Cols { - DrStateCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - target_guid: __sdk::__query_builder::Col::new(table_name, "target_guid"), - category: __sdk::__query_builder::Col::new(table_name, "category"), - level: __sdk::__query_builder::Col::new(table_name, "level"), - window_expires_micros: __sdk::__query_builder::Col::new( - table_name, - "window_expires_micros", - ), - } - } -} - -/// Indexed column accessor struct for the table `DrState`. -/// -/// Provides typed access to indexed columns for query building. -pub struct DrStateIxCols { - pub id: __sdk::__query_builder::IxCol, - pub target_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for DrState { - type IxCols = DrStateIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - DrStateIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - target_guid: __sdk::__query_builder::IxCol::new(table_name, "target_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for DrState {} diff --git a/gateway/src/stdb/bindings/duel_event_type.rs b/gateway/src/stdb/bindings/duel_event_type.rs deleted file mode 100644 index f751bf521..000000000 --- a/gateway/src/stdb/bindings/duel_event_type.rs +++ /dev/null @@ -1,114 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct DuelEvent { - pub id: u64, - pub recipient_identity: __sdk::Identity, - pub recipient_guid: u64, - pub kind: u8, - pub completion_kind: u8, - pub duel_id: u64, - pub flag_guid: u64, - pub flag_entry: u32, - pub initiator_guid: u64, - pub challenged_guid: u64, - pub winner_guid: u64, - pub loser_guid: u64, - pub map_id: u32, - pub instance_id: u64, - pub flag_x: f32, - pub flag_y: f32, - pub flag_z: f32, - pub flag_orientation: f32, - pub created_at: __sdk::Timestamp, - pub winner_name: String, - pub loser_name: String, -} - -impl __sdk::InModule for DuelEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `DuelEvent`. -/// -/// Provides typed access to columns for query building. -pub struct DuelEventCols { - pub id: __sdk::__query_builder::Col, - pub recipient_identity: __sdk::__query_builder::Col, - pub recipient_guid: __sdk::__query_builder::Col, - pub kind: __sdk::__query_builder::Col, - pub completion_kind: __sdk::__query_builder::Col, - pub duel_id: __sdk::__query_builder::Col, - pub flag_guid: __sdk::__query_builder::Col, - pub flag_entry: __sdk::__query_builder::Col, - pub initiator_guid: __sdk::__query_builder::Col, - pub challenged_guid: __sdk::__query_builder::Col, - pub winner_guid: __sdk::__query_builder::Col, - pub loser_guid: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub flag_x: __sdk::__query_builder::Col, - pub flag_y: __sdk::__query_builder::Col, - pub flag_z: __sdk::__query_builder::Col, - pub flag_orientation: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub winner_name: __sdk::__query_builder::Col, - pub loser_name: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for DuelEvent { - type Cols = DuelEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - DuelEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - recipient_identity: __sdk::__query_builder::Col::new(table_name, "recipient_identity"), - recipient_guid: __sdk::__query_builder::Col::new(table_name, "recipient_guid"), - kind: __sdk::__query_builder::Col::new(table_name, "kind"), - completion_kind: __sdk::__query_builder::Col::new(table_name, "completion_kind"), - duel_id: __sdk::__query_builder::Col::new(table_name, "duel_id"), - flag_guid: __sdk::__query_builder::Col::new(table_name, "flag_guid"), - flag_entry: __sdk::__query_builder::Col::new(table_name, "flag_entry"), - initiator_guid: __sdk::__query_builder::Col::new(table_name, "initiator_guid"), - challenged_guid: __sdk::__query_builder::Col::new(table_name, "challenged_guid"), - winner_guid: __sdk::__query_builder::Col::new(table_name, "winner_guid"), - loser_guid: __sdk::__query_builder::Col::new(table_name, "loser_guid"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - flag_x: __sdk::__query_builder::Col::new(table_name, "flag_x"), - flag_y: __sdk::__query_builder::Col::new(table_name, "flag_y"), - flag_z: __sdk::__query_builder::Col::new(table_name, "flag_z"), - flag_orientation: __sdk::__query_builder::Col::new(table_name, "flag_orientation"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - winner_name: __sdk::__query_builder::Col::new(table_name, "winner_name"), - loser_name: __sdk::__query_builder::Col::new(table_name, "loser_name"), - } - } -} - -/// Indexed column accessor struct for the table `DuelEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct DuelEventIxCols { - pub id: __sdk::__query_builder::IxCol, - pub recipient_identity: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for DuelEvent { - type IxCols = DuelEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - DuelEventIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - recipient_identity: __sdk::__query_builder::IxCol::new( - table_name, - "recipient_identity", - ), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for DuelEvent {} diff --git a/gateway/src/stdb/bindings/duel_schedule_type.rs b/gateway/src/stdb/bindings/duel_schedule_type.rs deleted file mode 100644 index f967418ce..000000000 --- a/gateway/src/stdb/bindings/duel_schedule_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct DuelSchedule { - pub scheduled_id: u64, - pub scheduled_at: __sdk::ScheduleAt, -} - -impl __sdk::InModule for DuelSchedule { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `DuelSchedule`. -/// -/// Provides typed access to columns for query building. -pub struct DuelScheduleCols { - pub scheduled_id: __sdk::__query_builder::Col, - pub scheduled_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for DuelSchedule { - type Cols = DuelScheduleCols; - fn cols(table_name: &'static str) -> Self::Cols { - DuelScheduleCols { - scheduled_id: __sdk::__query_builder::Col::new(table_name, "scheduled_id"), - scheduled_at: __sdk::__query_builder::Col::new(table_name, "scheduled_at"), - } - } -} - -/// Indexed column accessor struct for the table `DuelSchedule`. -/// -/// Provides typed access to indexed columns for query building. -pub struct DuelScheduleIxCols { - pub scheduled_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for DuelSchedule { - type IxCols = DuelScheduleIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - DuelScheduleIxCols { - scheduled_id: __sdk::__query_builder::IxCol::new(table_name, "scheduled_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for DuelSchedule {} diff --git a/gateway/src/stdb/bindings/duel_type.rs b/gateway/src/stdb/bindings/duel_type.rs deleted file mode 100644 index 4755d7f88..000000000 --- a/gateway/src/stdb/bindings/duel_type.rs +++ /dev/null @@ -1,109 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Duel { - pub id: u64, - pub flag_guid: u64, - pub flag_entry: u32, - pub initiator_guid: u64, - pub challenged_guid: u64, - pub map_id: u32, - pub instance_id: u64, - pub flag_x: f32, - pub flag_y: f32, - pub flag_z: f32, - pub flag_orientation: f32, - pub state: u8, - pub countdown_deadline_micros: i64, - pub initiator_out_of_bounds_deadline_micros: i64, - pub challenged_out_of_bounds_deadline_micros: i64, - pub created_at_micros: i64, -} - -impl __sdk::InModule for Duel { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `Duel`. -/// -/// Provides typed access to columns for query building. -pub struct DuelCols { - pub id: __sdk::__query_builder::Col, - pub flag_guid: __sdk::__query_builder::Col, - pub flag_entry: __sdk::__query_builder::Col, - pub initiator_guid: __sdk::__query_builder::Col, - pub challenged_guid: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub flag_x: __sdk::__query_builder::Col, - pub flag_y: __sdk::__query_builder::Col, - pub flag_z: __sdk::__query_builder::Col, - pub flag_orientation: __sdk::__query_builder::Col, - pub state: __sdk::__query_builder::Col, - pub countdown_deadline_micros: __sdk::__query_builder::Col, - pub initiator_out_of_bounds_deadline_micros: __sdk::__query_builder::Col, - pub challenged_out_of_bounds_deadline_micros: __sdk::__query_builder::Col, - pub created_at_micros: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for Duel { - type Cols = DuelCols; - fn cols(table_name: &'static str) -> Self::Cols { - DuelCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - flag_guid: __sdk::__query_builder::Col::new(table_name, "flag_guid"), - flag_entry: __sdk::__query_builder::Col::new(table_name, "flag_entry"), - initiator_guid: __sdk::__query_builder::Col::new(table_name, "initiator_guid"), - challenged_guid: __sdk::__query_builder::Col::new(table_name, "challenged_guid"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - flag_x: __sdk::__query_builder::Col::new(table_name, "flag_x"), - flag_y: __sdk::__query_builder::Col::new(table_name, "flag_y"), - flag_z: __sdk::__query_builder::Col::new(table_name, "flag_z"), - flag_orientation: __sdk::__query_builder::Col::new(table_name, "flag_orientation"), - state: __sdk::__query_builder::Col::new(table_name, "state"), - countdown_deadline_micros: __sdk::__query_builder::Col::new( - table_name, - "countdown_deadline_micros", - ), - initiator_out_of_bounds_deadline_micros: __sdk::__query_builder::Col::new( - table_name, - "initiator_out_of_bounds_deadline_micros", - ), - challenged_out_of_bounds_deadline_micros: __sdk::__query_builder::Col::new( - table_name, - "challenged_out_of_bounds_deadline_micros", - ), - created_at_micros: __sdk::__query_builder::Col::new(table_name, "created_at_micros"), - } - } -} - -/// Indexed column accessor struct for the table `Duel`. -/// -/// Provides typed access to indexed columns for query building. -pub struct DuelIxCols { - pub challenged_guid: __sdk::__query_builder::IxCol, - pub flag_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, - pub initiator_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for Duel { - type IxCols = DuelIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - DuelIxCols { - challenged_guid: __sdk::__query_builder::IxCol::new(table_name, "challenged_guid"), - flag_guid: __sdk::__query_builder::IxCol::new(table_name, "flag_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - initiator_guid: __sdk::__query_builder::IxCol::new(table_name, "initiator_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for Duel {} diff --git a/gateway/src/stdb/bindings/dynamic_object_type.rs b/gateway/src/stdb/bindings/dynamic_object_type.rs deleted file mode 100644 index fc55bf1ed..000000000 --- a/gateway/src/stdb/bindings/dynamic_object_type.rs +++ /dev/null @@ -1,73 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct DynamicObject { - pub guid: u64, - pub caster_guid: u64, - pub spell_id: u32, - pub map_id: u32, - pub instance_id: u64, - pub x: f32, - pub y: f32, - pub z: f32, - pub radius_yd: f32, -} - -impl __sdk::InModule for DynamicObject { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `DynamicObject`. -/// -/// Provides typed access to columns for query building. -pub struct DynamicObjectCols { - pub guid: __sdk::__query_builder::Col, - pub caster_guid: __sdk::__query_builder::Col, - pub spell_id: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub radius_yd: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for DynamicObject { - type Cols = DynamicObjectCols; - fn cols(table_name: &'static str) -> Self::Cols { - DynamicObjectCols { - guid: __sdk::__query_builder::Col::new(table_name, "guid"), - caster_guid: __sdk::__query_builder::Col::new(table_name, "caster_guid"), - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - radius_yd: __sdk::__query_builder::Col::new(table_name, "radius_yd"), - } - } -} - -/// Indexed column accessor struct for the table `DynamicObject`. -/// -/// Provides typed access to indexed columns for query building. -pub struct DynamicObjectIxCols { - pub guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for DynamicObject { - type IxCols = DynamicObjectIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - DynamicObjectIxCols { - guid: __sdk::__query_builder::IxCol::new(table_name, "guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for DynamicObject {} diff --git a/gateway/src/stdb/bindings/emote_event_type.rs b/gateway/src/stdb/bindings/emote_event_type.rs deleted file mode 100644 index 53b4971d0..000000000 --- a/gateway/src/stdb/bindings/emote_event_type.rs +++ /dev/null @@ -1,76 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EmoteEvent { - pub id: u64, - pub sender_guid: u64, - pub text_emote: u32, - pub emote_anim: u32, - pub created_at: __sdk::Timestamp, - pub target_guid: u64, - pub map_id: u32, - pub instance_id: u64, - pub grid_x: i32, - pub grid_y: i32, -} - -impl __sdk::InModule for EmoteEvent { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `EmoteEvent`. -/// -/// Provides typed access to columns for query building. -pub struct EmoteEventCols { - pub id: __sdk::__query_builder::Col, - pub sender_guid: __sdk::__query_builder::Col, - pub text_emote: __sdk::__query_builder::Col, - pub emote_anim: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub target_guid: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub grid_x: __sdk::__query_builder::Col, - pub grid_y: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for EmoteEvent { - type Cols = EmoteEventCols; - fn cols(table_name: &'static str) -> Self::Cols { - EmoteEventCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - sender_guid: __sdk::__query_builder::Col::new(table_name, "sender_guid"), - text_emote: __sdk::__query_builder::Col::new(table_name, "text_emote"), - emote_anim: __sdk::__query_builder::Col::new(table_name, "emote_anim"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - target_guid: __sdk::__query_builder::Col::new(table_name, "target_guid"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - grid_x: __sdk::__query_builder::Col::new(table_name, "grid_x"), - grid_y: __sdk::__query_builder::Col::new(table_name, "grid_y"), - } - } -} - -/// Indexed column accessor struct for the table `EmoteEvent`. -/// -/// Provides typed access to indexed columns for query building. -pub struct EmoteEventIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for EmoteEvent { - type IxCols = EmoteEventIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - EmoteEventIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for EmoteEvent {} diff --git a/gateway/src/stdb/bindings/emote_instruction_type.rs b/gateway/src/stdb/bindings/emote_instruction_type.rs deleted file mode 100644 index 217b09f4a..000000000 --- a/gateway/src/stdb/bindings/emote_instruction_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::instruction_target_type::InstructionTarget; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EmoteInstruction { - pub emote_id: u32, - pub target: InstructionTarget, -} - -impl __sdk::InModule for EmoteInstruction { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/encounter_binding_type.rs b/gateway/src/stdb/bindings/encounter_binding_type.rs deleted file mode 100644 index cf99ed4f6..000000000 --- a/gateway/src/stdb/bindings/encounter_binding_type.rs +++ /dev/null @@ -1,42 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum EncounterBinding { - BlackfathomDeepsKelris, - - BlackrockDepthsTombOfSeven, - - DireMaulAlzzin, - - RazorfenKraulWardKeepers, - - ShadowfangKeepRethilgore, - - ShadowfangKeepFenrus, - - ShadowfangKeepNandos, - - SunkenTempleAvatar, - - WailingCavernsAnacondra, - - WailingCavernsCobrahn, - - WailingCavernsPythas, - - WailingCavernsSerpentis, - - WailingCavernsMutanus, - - ZulGurubOhgan, -} - -impl __sdk::InModule for EncounterBinding { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/encounter_equip_type.rs b/gateway/src/stdb/bindings/encounter_equip_type.rs deleted file mode 100644 index b16ab5d63..000000000 --- a/gateway/src/stdb/bindings/encounter_equip_type.rs +++ /dev/null @@ -1,63 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EncounterEquip { - pub creature_guid: u64, - pub instance_id: u64, - pub main_hand: u32, - pub off_hand: u32, - pub ranged: u32, -} - -impl __sdk::InModule for EncounterEquip { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `EncounterEquip`. -/// -/// Provides typed access to columns for query building. -pub struct EncounterEquipCols { - pub creature_guid: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub main_hand: __sdk::__query_builder::Col, - pub off_hand: __sdk::__query_builder::Col, - pub ranged: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for EncounterEquip { - type Cols = EncounterEquipCols; - fn cols(table_name: &'static str) -> Self::Cols { - EncounterEquipCols { - creature_guid: __sdk::__query_builder::Col::new(table_name, "creature_guid"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - main_hand: __sdk::__query_builder::Col::new(table_name, "main_hand"), - off_hand: __sdk::__query_builder::Col::new(table_name, "off_hand"), - ranged: __sdk::__query_builder::Col::new(table_name, "ranged"), - } - } -} - -/// Indexed column accessor struct for the table `EncounterEquip`. -/// -/// Provides typed access to indexed columns for query building. -pub struct EncounterEquipIxCols { - pub creature_guid: __sdk::__query_builder::IxCol, - pub instance_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for EncounterEquip { - type IxCols = EncounterEquipIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - EncounterEquipIxCols { - creature_guid: __sdk::__query_builder::IxCol::new(table_name, "creature_guid"), - instance_id: __sdk::__query_builder::IxCol::new(table_name, "instance_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for EncounterEquip {} diff --git a/gateway/src/stdb/bindings/encounter_hp_watch_type.rs b/gateway/src/stdb/bindings/encounter_hp_watch_type.rs deleted file mode 100644 index 17e155988..000000000 --- a/gateway/src/stdb/bindings/encounter_hp_watch_type.rs +++ /dev/null @@ -1,57 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EncounterHpWatch { - pub id: u64, - pub entry: u32, - pub pct: u8, -} - -impl __sdk::InModule for EncounterHpWatch { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `EncounterHpWatch`. -/// -/// Provides typed access to columns for query building. -pub struct EncounterHpWatchCols { - pub id: __sdk::__query_builder::Col, - pub entry: __sdk::__query_builder::Col, - pub pct: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for EncounterHpWatch { - type Cols = EncounterHpWatchCols; - fn cols(table_name: &'static str) -> Self::Cols { - EncounterHpWatchCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - entry: __sdk::__query_builder::Col::new(table_name, "entry"), - pct: __sdk::__query_builder::Col::new(table_name, "pct"), - } - } -} - -/// Indexed column accessor struct for the table `EncounterHpWatch`. -/// -/// Provides typed access to indexed columns for query building. -pub struct EncounterHpWatchIxCols { - pub entry: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for EncounterHpWatch { - type IxCols = EncounterHpWatchIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - EncounterHpWatchIxCols { - entry: __sdk::__query_builder::IxCol::new(table_name, "entry"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for EncounterHpWatch {} diff --git a/gateway/src/stdb/bindings/encounter_signal_type.rs b/gateway/src/stdb/bindings/encounter_signal_type.rs deleted file mode 100644 index 0f4e1987d..000000000 --- a/gateway/src/stdb/bindings/encounter_signal_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum EncounterSignal { - Begin, - - Fail, - - Complete, - - BreakAlzzinCrumbleWall, - - InterruptAvatarSuppression, - - SendMandokirDownstairs, -} - -impl __sdk::InModule for EncounterSignal { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/encounter_spawn_type.rs b/gateway/src/stdb/bindings/encounter_spawn_type.rs deleted file mode 100644 index 0b34c54dd..000000000 --- a/gateway/src/stdb/bindings/encounter_spawn_type.rs +++ /dev/null @@ -1,60 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EncounterSpawn { - pub id: u64, - pub instance_id: u64, - pub encounter_id: u32, - pub guid: u64, -} - -impl __sdk::InModule for EncounterSpawn { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `EncounterSpawn`. -/// -/// Provides typed access to columns for query building. -pub struct EncounterSpawnCols { - pub id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub encounter_id: __sdk::__query_builder::Col, - pub guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for EncounterSpawn { - type Cols = EncounterSpawnCols; - fn cols(table_name: &'static str) -> Self::Cols { - EncounterSpawnCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - encounter_id: __sdk::__query_builder::Col::new(table_name, "encounter_id"), - guid: __sdk::__query_builder::Col::new(table_name, "guid"), - } - } -} - -/// Indexed column accessor struct for the table `EncounterSpawn`. -/// -/// Provides typed access to indexed columns for query building. -pub struct EncounterSpawnIxCols { - pub id: __sdk::__query_builder::IxCol, - pub instance_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for EncounterSpawn { - type IxCols = EncounterSpawnIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - EncounterSpawnIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - instance_id: __sdk::__query_builder::IxCol::new(table_name, "instance_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for EncounterSpawn {} diff --git a/gateway/src/stdb/bindings/encounter_state_type.rs b/gateway/src/stdb/bindings/encounter_state_type.rs deleted file mode 100644 index a386345c8..000000000 --- a/gateway/src/stdb/bindings/encounter_state_type.rs +++ /dev/null @@ -1,61 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EncounterState { - pub id: u64, - pub instance_id: u64, - pub encounter_id: u32, - pub state: u8, - pub payload: u32, -} - -impl __sdk::InModule for EncounterState { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `EncounterState`. -/// -/// Provides typed access to columns for query building. -pub struct EncounterStateCols { - pub id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub encounter_id: __sdk::__query_builder::Col, - pub state: __sdk::__query_builder::Col, - pub payload: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for EncounterState { - type Cols = EncounterStateCols; - fn cols(table_name: &'static str) -> Self::Cols { - EncounterStateCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - encounter_id: __sdk::__query_builder::Col::new(table_name, "encounter_id"), - state: __sdk::__query_builder::Col::new(table_name, "state"), - payload: __sdk::__query_builder::Col::new(table_name, "payload"), - } - } -} - -/// Indexed column accessor struct for the table `EncounterState`. -/// -/// Provides typed access to indexed columns for query building. -pub struct EncounterStateIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for EncounterState { - type IxCols = EncounterStateIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - EncounterStateIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for EncounterState {} diff --git a/gateway/src/stdb/bindings/ensure_instance_reducer.rs b/gateway/src/stdb/bindings/ensure_instance_reducer.rs deleted file mode 100644 index 63c34c6d7..000000000 --- a/gateway/src/stdb/bindings/ensure_instance_reducer.rs +++ /dev/null @@ -1,95 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct EnsureInstanceArgs { - pub instance_id: u64, - pub map_id: u32, - pub party_id: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: EnsureInstanceArgs) -> Self { - Self::EnsureInstance { - instance_id: args.instance_id, - map_id: args.map_id, - party_id: args.party_id, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for EnsureInstanceArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `ensure_instance`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait ensure_instance { - /// Request that the remote module invoke the reducer `ensure_instance` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`ensure_instance:ensure_instance_then`] to run a callback after the reducer completes. - fn ensure_instance( - &self, - instance_id: u64, - map_id: u32, - party_id: u64, - request_actor: SessionActor, - ) -> __sdk::Result<()> { - self.ensure_instance_then(instance_id, map_id, party_id, request_actor, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `ensure_instance` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn ensure_instance_then( - &self, - instance_id: u64, - map_id: u32, - party_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl ensure_instance for super::RemoteReducers { - fn ensure_instance_then( - &self, - instance_id: u64, - map_id: u32, - party_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - EnsureInstanceArgs { - instance_id, - map_id, - party_id, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/entity_motion_type.rs b/gateway/src/stdb/bindings/entity_motion_type.rs deleted file mode 100644 index 9862e2245..000000000 --- a/gateway/src/stdb/bindings/entity_motion_type.rs +++ /dev/null @@ -1,73 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EntityMotion { - pub guid: u64, - pub map_id: u32, - pub instance_id: u64, - pub grid_x: i32, - pub grid_y: i32, - pub opcode: u16, - pub movement_info: Vec, - pub seq: u32, - pub cell: i64, -} - -impl __sdk::InModule for EntityMotion { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `EntityMotion`. -/// -/// Provides typed access to columns for query building. -pub struct EntityMotionCols { - pub guid: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub grid_x: __sdk::__query_builder::Col, - pub grid_y: __sdk::__query_builder::Col, - pub opcode: __sdk::__query_builder::Col, - pub movement_info: __sdk::__query_builder::Col>, - pub seq: __sdk::__query_builder::Col, - pub cell: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for EntityMotion { - type Cols = EntityMotionCols; - fn cols(table_name: &'static str) -> Self::Cols { - EntityMotionCols { - guid: __sdk::__query_builder::Col::new(table_name, "guid"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - grid_x: __sdk::__query_builder::Col::new(table_name, "grid_x"), - grid_y: __sdk::__query_builder::Col::new(table_name, "grid_y"), - opcode: __sdk::__query_builder::Col::new(table_name, "opcode"), - movement_info: __sdk::__query_builder::Col::new(table_name, "movement_info"), - seq: __sdk::__query_builder::Col::new(table_name, "seq"), - cell: __sdk::__query_builder::Col::new(table_name, "cell"), - } - } -} - -/// Indexed column accessor struct for the table `EntityMotion`. -/// -/// Provides typed access to indexed columns for query building. -pub struct EntityMotionIxCols { - pub guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for EntityMotion { - type IxCols = EntityMotionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - EntityMotionIxCols { - guid: __sdk::__query_builder::IxCol::new(table_name, "guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for EntityMotion {} diff --git a/gateway/src/stdb/bindings/establish_session_reducer.rs b/gateway/src/stdb/bindings/establish_session_reducer.rs deleted file mode 100644 index e305d7fde..000000000 --- a/gateway/src/stdb/bindings/establish_session_reducer.rs +++ /dev/null @@ -1,87 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct EstablishSessionArgs { - pub account_id: u64, - pub session_key: Vec, - pub bound_identity: __sdk::Identity, -} - -impl From for super::Reducer { - fn from(args: EstablishSessionArgs) -> Self { - Self::EstablishSession { - account_id: args.account_id, - session_key: args.session_key, - bound_identity: args.bound_identity, - } - } -} - -impl __sdk::InModule for EstablishSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `establish_session`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait establish_session { - /// Request that the remote module invoke the reducer `establish_session` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`establish_session:establish_session_then`] to run a callback after the reducer completes. - fn establish_session( - &self, - account_id: u64, - session_key: Vec, - bound_identity: __sdk::Identity, - ) -> __sdk::Result<()> { - self.establish_session_then(account_id, session_key, bound_identity, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `establish_session` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn establish_session_then( - &self, - account_id: u64, - session_key: Vec, - bound_identity: __sdk::Identity, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl establish_session for super::RemoteReducers { - fn establish_session_then( - &self, - account_id: u64, - session_key: Vec, - bound_identity: __sdk::Identity, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - EstablishSessionArgs { - account_id, - session_key, - bound_identity, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/evade_instruction_type.rs b/gateway/src/stdb/bindings/evade_instruction_type.rs deleted file mode 100644 index fc136e29b..000000000 --- a/gateway/src/stdb/bindings/evade_instruction_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EvadeInstruction { - pub combat_only: bool, -} - -impl __sdk::InModule for EvadeInstruction { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/event_ai_quest_credit_type.rs b/gateway/src/stdb/bindings/event_ai_quest_credit_type.rs deleted file mode 100644 index b1abdd8ae..000000000 --- a/gateway/src/stdb/bindings/event_ai_quest_credit_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::cast_credit_type::CastCredit; -use super::kill_credit_type::KillCredit; -use super::quest_event_type::QuestEvent; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub enum EventAiQuestCredit { - QuestEvent(QuestEvent), - - CastCredit(CastCredit), - - KillCredit(KillCredit), -} - -impl __sdk::InModule for EventAiQuestCredit { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/event_ai_rule_type.rs b/gateway/src/stdb/bindings/event_ai_rule_type.rs deleted file mode 100644 index f005689e4..000000000 --- a/gateway/src/stdb/bindings/event_ai_rule_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creature_instruction_type::CreatureInstruction; -use super::event_condition_type::EventCondition; -use super::execution_policy_type::ExecutionPolicy; -use super::instruction_selection_type::InstructionSelection; -use super::phase_set_type::PhaseSet; -use super::posture_admission_type::PostureAdmission; -use super::recurrence_policy_type::RecurrencePolicy; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EventAiRule { - pub source_rule_id: u64, - pub event: EventCondition, - pub chance_pct: u8, - pub allowed_phases: PhaseSet, - pub recurrence: RecurrencePolicy, - pub selection: InstructionSelection, - pub execution: ExecutionPolicy, - pub posture: PostureAdmission, - pub instructions: Vec, -} - -impl __sdk::InModule for EventAiRule { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/event_condition_type.rs b/gateway/src/stdb/bindings/event_condition_type.rs deleted file mode 100644 index 397a61fca..000000000 --- a/gateway/src/stdb/bindings/event_condition_type.rs +++ /dev/null @@ -1,95 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::aura_stack_condition_type::AuraStackCondition; -use super::creature_entry_condition_type::CreatureEntryCondition; -use super::creature_health_condition_type::CreatureHealthCondition; -use super::death_condition_type::DeathCondition; -use super::facing_condition_type::FacingCondition; -use super::friendly_crowd_control_condition_type::FriendlyCrowdControlCondition; -use super::friendly_health_deficit_condition_type::FriendlyHealthDeficitCondition; -use super::friendly_missing_aura_condition_type::FriendlyMissingAuraCondition; -use super::kill_condition_type::KillCondition; -use super::out_of_combat_sight_condition_type::OutOfCombatSightCondition; -use super::percentage_condition_type::PercentageCondition; -use super::receive_ai_event_condition_type::ReceiveAiEventCondition; -use super::receive_emote_condition_type::ReceiveEmoteCondition; -use super::spawn_condition_type::SpawnCondition; -use super::spell_event_condition_type::SpellEventCondition; -use super::target_range_condition_type::TargetRangeCondition; -use super::time_window_type::TimeWindow; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub enum EventCondition { - TimedInCombat(TimeWindow), - - TimedOutOfCombat(TimeWindow), - - CreatureHealth(CreatureHealthCondition), - - CreaturePower(PercentageCondition), - - OnAggro, - - OnKill(KillCondition), - - OnDeath(DeathCondition), - - OnEvade, - - OnSpellHit(SpellEventCondition), - - TargetRange(TargetRangeCondition), - - OutOfCombatSight(OutOfCombatSightCondition), - - OnSpawn(SpawnCondition), - - TargetHealth(PercentageCondition), - - TargetCasting, - - FriendlyHealthDeficit(FriendlyHealthDeficitCondition), - - FriendlyCrowdControlled(FriendlyCrowdControlCondition), - - FriendlyMissingAura(FriendlyMissingAuraCondition), - - OnSummoned(CreatureEntryCondition), - - TargetPower(PercentageCondition), - - OnReachedHome, - - OnReceiveEmote(ReceiveEmoteCondition), - - CreatureAura(AuraStackCondition), - - TargetAura(AuraStackCondition), - - OnSummonedDeath(CreatureEntryCondition), - - CreatureMissingAura(AuraStackCondition), - - TargetMissingAura(AuraStackCondition), - - TimedGeneric(TimeWindow), - - OnReceiveAiEvent(ReceiveAiEventCondition), - - SelectAttackingTarget(TargetRangeCondition), - - FacingTarget(FacingCondition), - - OnSpellHitTarget(SpellEventCondition), - - TargetNotReachable, -} - -impl __sdk::InModule for EventCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/event_predicate_type.rs b/gateway/src/stdb/bindings/event_predicate_type.rs deleted file mode 100644 index 0cc6fb5d8..000000000 --- a/gateway/src/stdb/bindings/event_predicate_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::quest_taken_predicate_type::QuestTakenPredicate; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub enum EventPredicate { - Always, - - Alliance, - - Horde, - - QuestTaken(QuestTakenPredicate), -} - -impl __sdk::InModule for EventPredicate { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/event_reaper_schedule_type.rs b/gateway/src/stdb/bindings/event_reaper_schedule_type.rs deleted file mode 100644 index 4bbbee155..000000000 --- a/gateway/src/stdb/bindings/event_reaper_schedule_type.rs +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EventReaperSchedule { - pub scheduled_id: u64, - pub scheduled_at: __sdk::ScheduleAt, -} - -impl __sdk::InModule for EventReaperSchedule { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `EventReaperSchedule`. -/// -/// Provides typed access to columns for query building. -pub struct EventReaperScheduleCols { - pub scheduled_id: __sdk::__query_builder::Col, - pub scheduled_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for EventReaperSchedule { - type Cols = EventReaperScheduleCols; - fn cols(table_name: &'static str) -> Self::Cols { - EventReaperScheduleCols { - scheduled_id: __sdk::__query_builder::Col::new(table_name, "scheduled_id"), - scheduled_at: __sdk::__query_builder::Col::new(table_name, "scheduled_at"), - } - } -} - -/// Indexed column accessor struct for the table `EventReaperSchedule`. -/// -/// Provides typed access to indexed columns for query building. -pub struct EventReaperScheduleIxCols { - pub scheduled_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for EventReaperSchedule { - type IxCols = EventReaperScheduleIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - EventReaperScheduleIxCols { - scheduled_id: __sdk::__query_builder::IxCol::new(table_name, "scheduled_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for EventReaperSchedule {} diff --git a/gateway/src/stdb/bindings/evict_instance_population_reducer.rs b/gateway/src/stdb/bindings/evict_instance_population_reducer.rs deleted file mode 100644 index 44556a5c7..000000000 --- a/gateway/src/stdb/bindings/evict_instance_population_reducer.rs +++ /dev/null @@ -1,83 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct EvictInstancePopulationArgs { - pub instance_id: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: EvictInstancePopulationArgs) -> Self { - Self::EvictInstancePopulation { - instance_id: args.instance_id, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for EvictInstancePopulationArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `evict_instance_population`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait evict_instance_population { - /// Request that the remote module invoke the reducer `evict_instance_population` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`evict_instance_population:evict_instance_population_then`] to run a callback after the reducer completes. - fn evict_instance_population( - &self, - instance_id: u64, - request_actor: SessionActor, - ) -> __sdk::Result<()> { - self.evict_instance_population_then(instance_id, request_actor, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `evict_instance_population` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn evict_instance_population_then( - &self, - instance_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl evict_instance_population for super::RemoteReducers { - fn evict_instance_population_then( - &self, - instance_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - EvictInstancePopulationArgs { - instance_id, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/execution_policy_type.rs b/gateway/src/stdb/bindings/execution_policy_type.rs deleted file mode 100644 index 5bb2139c6..000000000 --- a/gateway/src/stdb/bindings/execution_policy_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum ExecutionPolicy { - Ordinary, - - CombatAction, -} - -impl __sdk::InModule for ExecutionPolicy { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/expire_auction_reducer.rs b/gateway/src/stdb/bindings/expire_auction_reducer.rs deleted file mode 100644 index 0402929fe..000000000 --- a/gateway/src/stdb/bindings/expire_auction_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::auction_expiry_type::AuctionExpiry; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ExpireAuctionArgs { - pub schedule: AuctionExpiry, -} - -impl From for super::Reducer { - fn from(args: ExpireAuctionArgs) -> Self { - Self::ExpireAuction { - schedule: args.schedule, - } - } -} - -impl __sdk::InModule for ExpireAuctionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `expire_auction`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait expire_auction { - /// Request that the remote module invoke the reducer `expire_auction` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`expire_auction:expire_auction_then`] to run a callback after the reducer completes. - fn expire_auction(&self, schedule: AuctionExpiry) -> __sdk::Result<()> { - self.expire_auction_then(schedule, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `expire_auction` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn expire_auction_then( - &self, - schedule: AuctionExpiry, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl expire_auction for super::RemoteReducers { - fn expire_auction_then( - &self, - schedule: AuctionExpiry, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ExpireAuctionArgs { schedule }, callback) - } -} diff --git a/gateway/src/stdb/bindings/expire_eventai_summon_reducer.rs b/gateway/src/stdb/bindings/expire_eventai_summon_reducer.rs deleted file mode 100644 index 780aeb45d..000000000 --- a/gateway/src/stdb/bindings/expire_eventai_summon_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creature_ai_summon_expiry_type::CreatureAiSummonExpiry; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ExpireEventaiSummonArgs { - pub expiry: CreatureAiSummonExpiry, -} - -impl From for super::Reducer { - fn from(args: ExpireEventaiSummonArgs) -> Self { - Self::ExpireEventaiSummon { - expiry: args.expiry, - } - } -} - -impl __sdk::InModule for ExpireEventaiSummonArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `expire_eventai_summon`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait expire_eventai_summon { - /// Request that the remote module invoke the reducer `expire_eventai_summon` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`expire_eventai_summon:expire_eventai_summon_then`] to run a callback after the reducer completes. - fn expire_eventai_summon(&self, expiry: CreatureAiSummonExpiry) -> __sdk::Result<()> { - self.expire_eventai_summon_then(expiry, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `expire_eventai_summon` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn expire_eventai_summon_then( - &self, - expiry: CreatureAiSummonExpiry, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl expire_eventai_summon for super::RemoteReducers { - fn expire_eventai_summon_then( - &self, - expiry: CreatureAiSummonExpiry, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ExpireEventaiSummonArgs { expiry }, callback) - } -} diff --git a/gateway/src/stdb/bindings/expire_instance_removal_reducer.rs b/gateway/src/stdb/bindings/expire_instance_removal_reducer.rs deleted file mode 100644 index bcda57c4f..000000000 --- a/gateway/src/stdb/bindings/expire_instance_removal_reducer.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::instance_removal_type::InstanceRemoval; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ExpireInstanceRemovalArgs { - pub removal: InstanceRemoval, -} - -impl From for super::Reducer { - fn from(args: ExpireInstanceRemovalArgs) -> Self { - Self::ExpireInstanceRemoval { - removal: args.removal, - } - } -} - -impl __sdk::InModule for ExpireInstanceRemovalArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `expire_instance_removal`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait expire_instance_removal { - /// Request that the remote module invoke the reducer `expire_instance_removal` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`expire_instance_removal:expire_instance_removal_then`] to run a callback after the reducer completes. - fn expire_instance_removal(&self, removal: InstanceRemoval) -> __sdk::Result<()> { - self.expire_instance_removal_then(removal, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `expire_instance_removal` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn expire_instance_removal_then( - &self, - removal: InstanceRemoval, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl expire_instance_removal for super::RemoteReducers { - fn expire_instance_removal_then( - &self, - removal: InstanceRemoval, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ExpireInstanceRemovalArgs { removal }, callback) - } -} diff --git a/gateway/src/stdb/bindings/facing_condition_type.rs b/gateway/src/stdb/bindings/facing_condition_type.rs deleted file mode 100644 index b8d210b07..000000000 --- a/gateway/src/stdb/bindings/facing_condition_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct FacingCondition { - pub behind: bool, -} - -impl __sdk::InModule for FacingCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/facing_instruction_type.rs b/gateway/src/stdb/bindings/facing_instruction_type.rs deleted file mode 100644 index 6a031a8e7..000000000 --- a/gateway/src/stdb/bindings/facing_instruction_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::instruction_target_type::InstructionTarget; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct FacingInstruction { - pub target: InstructionTarget, - pub reset: bool, -} - -impl __sdk::InModule for FacingInstruction { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/faction_template_type.rs b/gateway/src/stdb/bindings/faction_template_type.rs deleted file mode 100644 index 736041ec3..000000000 --- a/gateway/src/stdb/bindings/faction_template_type.rs +++ /dev/null @@ -1,85 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct FactionTemplate { - pub id: u32, - pub faction: u32, - pub faction_group: u32, - pub friend_group: u32, - pub enemy_group: u32, - pub enemy_0: u32, - pub enemy_1: u32, - pub enemy_2: u32, - pub enemy_3: u32, - pub friend_0: u32, - pub friend_1: u32, - pub friend_2: u32, - pub friend_3: u32, -} - -impl __sdk::InModule for FactionTemplate { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `FactionTemplate`. -/// -/// Provides typed access to columns for query building. -pub struct FactionTemplateCols { - pub id: __sdk::__query_builder::Col, - pub faction: __sdk::__query_builder::Col, - pub faction_group: __sdk::__query_builder::Col, - pub friend_group: __sdk::__query_builder::Col, - pub enemy_group: __sdk::__query_builder::Col, - pub enemy_0: __sdk::__query_builder::Col, - pub enemy_1: __sdk::__query_builder::Col, - pub enemy_2: __sdk::__query_builder::Col, - pub enemy_3: __sdk::__query_builder::Col, - pub friend_0: __sdk::__query_builder::Col, - pub friend_1: __sdk::__query_builder::Col, - pub friend_2: __sdk::__query_builder::Col, - pub friend_3: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for FactionTemplate { - type Cols = FactionTemplateCols; - fn cols(table_name: &'static str) -> Self::Cols { - FactionTemplateCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - faction: __sdk::__query_builder::Col::new(table_name, "faction"), - faction_group: __sdk::__query_builder::Col::new(table_name, "faction_group"), - friend_group: __sdk::__query_builder::Col::new(table_name, "friend_group"), - enemy_group: __sdk::__query_builder::Col::new(table_name, "enemy_group"), - enemy_0: __sdk::__query_builder::Col::new(table_name, "enemy_0"), - enemy_1: __sdk::__query_builder::Col::new(table_name, "enemy_1"), - enemy_2: __sdk::__query_builder::Col::new(table_name, "enemy_2"), - enemy_3: __sdk::__query_builder::Col::new(table_name, "enemy_3"), - friend_0: __sdk::__query_builder::Col::new(table_name, "friend_0"), - friend_1: __sdk::__query_builder::Col::new(table_name, "friend_1"), - friend_2: __sdk::__query_builder::Col::new(table_name, "friend_2"), - friend_3: __sdk::__query_builder::Col::new(table_name, "friend_3"), - } - } -} - -/// Indexed column accessor struct for the table `FactionTemplate`. -/// -/// Provides typed access to indexed columns for query building. -pub struct FactionTemplateIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for FactionTemplate { - type IxCols = FactionTemplateIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - FactionTemplateIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for FactionTemplate {} diff --git a/gateway/src/stdb/bindings/faction_type.rs b/gateway/src/stdb/bindings/faction_type.rs deleted file mode 100644 index dd1cb6e02..000000000 --- a/gateway/src/stdb/bindings/faction_type.rs +++ /dev/null @@ -1,55 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Faction { - pub faction_id: u32, - pub reputation_index: i32, - pub base_standing: i32, -} - -impl __sdk::InModule for Faction { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `Faction`. -/// -/// Provides typed access to columns for query building. -pub struct FactionCols { - pub faction_id: __sdk::__query_builder::Col, - pub reputation_index: __sdk::__query_builder::Col, - pub base_standing: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for Faction { - type Cols = FactionCols; - fn cols(table_name: &'static str) -> Self::Cols { - FactionCols { - faction_id: __sdk::__query_builder::Col::new(table_name, "faction_id"), - reputation_index: __sdk::__query_builder::Col::new(table_name, "reputation_index"), - base_standing: __sdk::__query_builder::Col::new(table_name, "base_standing"), - } - } -} - -/// Indexed column accessor struct for the table `Faction`. -/// -/// Provides typed access to indexed columns for query building. -pub struct FactionIxCols { - pub faction_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for Faction { - type IxCols = FactionIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - FactionIxCols { - faction_id: __sdk::__query_builder::IxCol::new(table_name, "faction_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for Faction {} diff --git a/gateway/src/stdb/bindings/fence_account_reducer.rs b/gateway/src/stdb/bindings/fence_account_reducer.rs deleted file mode 100644 index 1c1f078f1..000000000 --- a/gateway/src/stdb/bindings/fence_account_reducer.rs +++ /dev/null @@ -1,101 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::world_session_token_type::WorldSessionToken; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FenceAccountArgs { - pub token: WorldSessionToken, - pub account_name: String, - pub character_guid: u64, - pub expires_micros: i64, -} - -impl From for super::Reducer { - fn from(args: FenceAccountArgs) -> Self { - Self::FenceAccount { - token: args.token, - account_name: args.account_name, - character_guid: args.character_guid, - expires_micros: args.expires_micros, - } - } -} - -impl __sdk::InModule for FenceAccountArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `fence_account`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait fence_account { - /// Request that the remote module invoke the reducer `fence_account` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`fence_account:fence_account_then`] to run a callback after the reducer completes. - fn fence_account( - &self, - token: WorldSessionToken, - account_name: String, - character_guid: u64, - expires_micros: i64, - ) -> __sdk::Result<()> { - self.fence_account_then( - token, - account_name, - character_guid, - expires_micros, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `fence_account` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn fence_account_then( - &self, - token: WorldSessionToken, - account_name: String, - character_guid: u64, - expires_micros: i64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl fence_account for super::RemoteReducers { - fn fence_account_then( - &self, - token: WorldSessionToken, - account_name: String, - character_guid: u64, - expires_micros: i64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - FenceAccountArgs { - token, - account_name, - character_guid, - expires_micros, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/finalize_vmap_nav_coverage_reducer.rs b/gateway/src/stdb/bindings/finalize_vmap_nav_coverage_reducer.rs deleted file mode 100644 index 77241ecf8..000000000 --- a/gateway/src/stdb/bindings/finalize_vmap_nav_coverage_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FinalizeVmapNavCoverageArgs { - pub generation_id: u64, -} - -impl From for super::Reducer { - fn from(args: FinalizeVmapNavCoverageArgs) -> Self { - Self::FinalizeVmapNavCoverage { - generation_id: args.generation_id, - } - } -} - -impl __sdk::InModule for FinalizeVmapNavCoverageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `finalize_vmap_nav_coverage`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait finalize_vmap_nav_coverage { - /// Request that the remote module invoke the reducer `finalize_vmap_nav_coverage` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`finalize_vmap_nav_coverage:finalize_vmap_nav_coverage_then`] to run a callback after the reducer completes. - fn finalize_vmap_nav_coverage(&self, generation_id: u64) -> __sdk::Result<()> { - self.finalize_vmap_nav_coverage_then(generation_id, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `finalize_vmap_nav_coverage` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn finalize_vmap_nav_coverage_then( - &self, - generation_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl finalize_vmap_nav_coverage for super::RemoteReducers { - fn finalize_vmap_nav_coverage_then( - &self, - generation_id: u64, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(FinalizeVmapNavCoverageArgs { generation_id }, callback) - } -} diff --git a/gateway/src/stdb/bindings/finish_character_shard_transfer_reducer.rs b/gateway/src/stdb/bindings/finish_character_shard_transfer_reducer.rs deleted file mode 100644 index d1d6b2708..000000000 --- a/gateway/src/stdb/bindings/finish_character_shard_transfer_reducer.rs +++ /dev/null @@ -1,143 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FinishCharacterShardTransferArgs { - pub character_guid: u64, - pub source_map_id: u32, - pub source_instance_id: u64, - pub source_revision: u64, - pub destination_map_id: u32, - pub destination_instance_id: u64, - pub source_module_identity: __sdk::Identity, - pub transfer_intent_id: u64, - pub controller_generation: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: FinishCharacterShardTransferArgs) -> Self { - Self::FinishCharacterShardTransfer { - character_guid: args.character_guid, - source_map_id: args.source_map_id, - source_instance_id: args.source_instance_id, - source_revision: args.source_revision, - destination_map_id: args.destination_map_id, - destination_instance_id: args.destination_instance_id, - source_module_identity: args.source_module_identity, - transfer_intent_id: args.transfer_intent_id, - controller_generation: args.controller_generation, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for FinishCharacterShardTransferArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `finish_character_shard_transfer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait finish_character_shard_transfer { - /// Request that the remote module invoke the reducer `finish_character_shard_transfer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`finish_character_shard_transfer:finish_character_shard_transfer_then`] to run a callback after the reducer completes. - fn finish_character_shard_transfer( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - ) -> __sdk::Result<()> { - self.finish_character_shard_transfer_then( - character_guid, - source_map_id, - source_instance_id, - source_revision, - destination_map_id, - destination_instance_id, - source_module_identity, - transfer_intent_id, - controller_generation, - request_actor, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `finish_character_shard_transfer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn finish_character_shard_transfer_then( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl finish_character_shard_transfer for super::RemoteReducers { - fn finish_character_shard_transfer_then( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - FinishCharacterShardTransferArgs { - character_guid, - source_map_id, - source_instance_id, - source_revision, - destination_map_id, - destination_instance_id, - source_module_identity, - transfer_intent_id, - controller_generation, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/finish_party_command_intent_reducer.rs b/gateway/src/stdb/bindings/finish_party_command_intent_reducer.rs deleted file mode 100644 index ec669767b..000000000 --- a/gateway/src/stdb/bindings/finish_party_command_intent_reducer.rs +++ /dev/null @@ -1,89 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::command_outcome_type::CommandOutcome; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FinishPartyCommandIntentArgs { - pub intent_id: u64, - pub claim_token: u64, - pub outcome: CommandOutcome, -} - -impl From for super::Reducer { - fn from(args: FinishPartyCommandIntentArgs) -> Self { - Self::FinishPartyCommandIntent { - intent_id: args.intent_id, - claim_token: args.claim_token, - outcome: args.outcome, - } - } -} - -impl __sdk::InModule for FinishPartyCommandIntentArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `finish_party_command_intent`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait finish_party_command_intent { - /// Request that the remote module invoke the reducer `finish_party_command_intent` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`finish_party_command_intent:finish_party_command_intent_then`] to run a callback after the reducer completes. - fn finish_party_command_intent( - &self, - intent_id: u64, - claim_token: u64, - outcome: CommandOutcome, - ) -> __sdk::Result<()> { - self.finish_party_command_intent_then(intent_id, claim_token, outcome, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `finish_party_command_intent` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn finish_party_command_intent_then( - &self, - intent_id: u64, - claim_token: u64, - outcome: CommandOutcome, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl finish_party_command_intent for super::RemoteReducers { - fn finish_party_command_intent_then( - &self, - intent_id: u64, - claim_token: u64, - outcome: CommandOutcome, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - FinishPartyCommandIntentArgs { - intent_id, - claim_token, - outcome, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/finish_pending_character_shard_transfer_reducer.rs b/gateway/src/stdb/bindings/finish_pending_character_shard_transfer_reducer.rs deleted file mode 100644 index 8327b4378..000000000 --- a/gateway/src/stdb/bindings/finish_pending_character_shard_transfer_reducer.rs +++ /dev/null @@ -1,143 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FinishPendingCharacterShardTransferArgs { - pub character_guid: u64, - pub source_map_id: u32, - pub source_instance_id: u64, - pub source_revision: u64, - pub destination_map_id: u32, - pub destination_instance_id: u64, - pub source_module_identity: __sdk::Identity, - pub transfer_intent_id: u64, - pub controller_generation: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: FinishPendingCharacterShardTransferArgs) -> Self { - Self::FinishPendingCharacterShardTransfer { - character_guid: args.character_guid, - source_map_id: args.source_map_id, - source_instance_id: args.source_instance_id, - source_revision: args.source_revision, - destination_map_id: args.destination_map_id, - destination_instance_id: args.destination_instance_id, - source_module_identity: args.source_module_identity, - transfer_intent_id: args.transfer_intent_id, - controller_generation: args.controller_generation, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for FinishPendingCharacterShardTransferArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `finish_pending_character_shard_transfer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait finish_pending_character_shard_transfer { - /// Request that the remote module invoke the reducer `finish_pending_character_shard_transfer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`finish_pending_character_shard_transfer:finish_pending_character_shard_transfer_then`] to run a callback after the reducer completes. - fn finish_pending_character_shard_transfer( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - ) -> __sdk::Result<()> { - self.finish_pending_character_shard_transfer_then( - character_guid, - source_map_id, - source_instance_id, - source_revision, - destination_map_id, - destination_instance_id, - source_module_identity, - transfer_intent_id, - controller_generation, - request_actor, - |_, _| {}, - ) - } - - /// Request that the remote module invoke the reducer `finish_pending_character_shard_transfer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn finish_pending_character_shard_transfer_then( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl finish_pending_character_shard_transfer for super::RemoteReducers { - fn finish_pending_character_shard_transfer_then( - &self, - character_guid: u64, - source_map_id: u32, - source_instance_id: u64, - source_revision: u64, - destination_map_id: u32, - destination_instance_id: u64, - source_module_identity: __sdk::Identity, - transfer_intent_id: u64, - controller_generation: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - FinishPendingCharacterShardTransferArgs { - character_guid, - source_map_id, - source_instance_id, - source_revision, - destination_map_id, - destination_instance_id, - source_module_identity, - transfer_intent_id, - controller_generation, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/finish_transfer_reducer.rs b/gateway/src/stdb/bindings/finish_transfer_reducer.rs deleted file mode 100644 index 5617aa23e..000000000 --- a/gateway/src/stdb/bindings/finish_transfer_reducer.rs +++ /dev/null @@ -1,79 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::session_actor_type::SessionActor; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FinishTransferArgs { - pub transfer_id: u64, - pub request_actor: SessionActor, -} - -impl From for super::Reducer { - fn from(args: FinishTransferArgs) -> Self { - Self::FinishTransfer { - transfer_id: args.transfer_id, - request_actor: args.request_actor, - } - } -} - -impl __sdk::InModule for FinishTransferArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `finish_transfer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait finish_transfer { - /// Request that the remote module invoke the reducer `finish_transfer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`finish_transfer:finish_transfer_then`] to run a callback after the reducer completes. - fn finish_transfer(&self, transfer_id: u64, request_actor: SessionActor) -> __sdk::Result<()> { - self.finish_transfer_then(transfer_id, request_actor, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `finish_transfer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn finish_transfer_then( - &self, - transfer_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl finish_transfer for super::RemoteReducers { - fn finish_transfer_then( - &self, - transfer_id: u64, - request_actor: SessionActor, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - FinishTransferArgs { - transfer_id, - request_actor, - }, - callback, - ) - } -} diff --git a/gateway/src/stdb/bindings/fire_eventai_forced_despawn_reducer.rs b/gateway/src/stdb/bindings/fire_eventai_forced_despawn_reducer.rs deleted file mode 100644 index 6d56dde57..000000000 --- a/gateway/src/stdb/bindings/fire_eventai_forced_despawn_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creature_ai_forced_despawn_type::CreatureAiForcedDespawn; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FireEventaiForcedDespawnArgs { - pub row: CreatureAiForcedDespawn, -} - -impl From for super::Reducer { - fn from(args: FireEventaiForcedDespawnArgs) -> Self { - Self::FireEventaiForcedDespawn { row: args.row } - } -} - -impl __sdk::InModule for FireEventaiForcedDespawnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `fire_eventai_forced_despawn`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait fire_eventai_forced_despawn { - /// Request that the remote module invoke the reducer `fire_eventai_forced_despawn` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`fire_eventai_forced_despawn:fire_eventai_forced_despawn_then`] to run a callback after the reducer completes. - fn fire_eventai_forced_despawn(&self, row: CreatureAiForcedDespawn) -> __sdk::Result<()> { - self.fire_eventai_forced_despawn_then(row, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `fire_eventai_forced_despawn` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn fire_eventai_forced_despawn_then( - &self, - row: CreatureAiForcedDespawn, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl fire_eventai_forced_despawn for super::RemoteReducers { - fn fire_eventai_forced_despawn_then( - &self, - row: CreatureAiForcedDespawn, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(FireEventaiForcedDespawnArgs { row }, callback) - } -} diff --git a/gateway/src/stdb/bindings/fire_mail_timer_reducer.rs b/gateway/src/stdb/bindings/fire_mail_timer_reducer.rs deleted file mode 100644 index 6047c5530..000000000 --- a/gateway/src/stdb/bindings/fire_mail_timer_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::mail_timer_type::MailTimer; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FireMailTimerArgs { - pub timer: MailTimer, -} - -impl From for super::Reducer { - fn from(args: FireMailTimerArgs) -> Self { - Self::FireMailTimer { timer: args.timer } - } -} - -impl __sdk::InModule for FireMailTimerArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `fire_mail_timer`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait fire_mail_timer { - /// Request that the remote module invoke the reducer `fire_mail_timer` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`fire_mail_timer:fire_mail_timer_then`] to run a callback after the reducer completes. - fn fire_mail_timer(&self, timer: MailTimer) -> __sdk::Result<()> { - self.fire_mail_timer_then(timer, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `fire_mail_timer` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn fire_mail_timer_then( - &self, - timer: MailTimer, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl fire_mail_timer for super::RemoteReducers { - fn fire_mail_timer_then( - &self, - timer: MailTimer, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(FireMailTimerArgs { timer }, callback) - } -} diff --git a/gateway/src/stdb/bindings/fire_pending_cast_reducer.rs b/gateway/src/stdb/bindings/fire_pending_cast_reducer.rs deleted file mode 100644 index 8d4e5afc0..000000000 --- a/gateway/src/stdb/bindings/fire_pending_cast_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::pending_cast_type::PendingCast; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FirePendingCastArgs { - pub sched: PendingCast, -} - -impl From for super::Reducer { - fn from(args: FirePendingCastArgs) -> Self { - Self::FirePendingCast { sched: args.sched } - } -} - -impl __sdk::InModule for FirePendingCastArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `fire_pending_cast`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait fire_pending_cast { - /// Request that the remote module invoke the reducer `fire_pending_cast` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`fire_pending_cast:fire_pending_cast_then`] to run a callback after the reducer completes. - fn fire_pending_cast(&self, sched: PendingCast) -> __sdk::Result<()> { - self.fire_pending_cast_then(sched, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `fire_pending_cast` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn fire_pending_cast_then( - &self, - sched: PendingCast, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl fire_pending_cast for super::RemoteReducers { - fn fire_pending_cast_then( - &self, - sched: PendingCast, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(FirePendingCastArgs { sched }, callback) - } -} diff --git a/gateway/src/stdb/bindings/fire_spell_impact_reducer.rs b/gateway/src/stdb/bindings/fire_spell_impact_reducer.rs deleted file mode 100644 index e2763bddd..000000000 --- a/gateway/src/stdb/bindings/fire_spell_impact_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::pending_spell_impact_type::PendingSpellImpact; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct FireSpellImpactArgs { - pub sched: PendingSpellImpact, -} - -impl From for super::Reducer { - fn from(args: FireSpellImpactArgs) -> Self { - Self::FireSpellImpact { sched: args.sched } - } -} - -impl __sdk::InModule for FireSpellImpactArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `fire_spell_impact`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait fire_spell_impact { - /// Request that the remote module invoke the reducer `fire_spell_impact` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`fire_spell_impact:fire_spell_impact_then`] to run a callback after the reducer completes. - fn fire_spell_impact(&self, sched: PendingSpellImpact) -> __sdk::Result<()> { - self.fire_spell_impact_then(sched, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `fire_spell_impact` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn fire_spell_impact_then( - &self, - sched: PendingSpellImpact, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl fire_spell_impact for super::RemoteReducers { - fn fire_spell_impact_then( - &self, - sched: PendingSpellImpact, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(FireSpellImpactArgs { sched }, callback) - } -} diff --git a/gateway/src/stdb/bindings/flag_override_type.rs b/gateway/src/stdb/bindings/flag_override_type.rs deleted file mode 100644 index 8118c0578..000000000 --- a/gateway/src/stdb/bindings/flag_override_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum FlagOverride { - Base, - - Set, - - Clear, -} - -impl __sdk::InModule for FlagOverride { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/force_despawn_instruction_type.rs b/gateway/src/stdb/bindings/force_despawn_instruction_type.rs deleted file mode 100644 index b83eced1c..000000000 --- a/gateway/src/stdb/bindings/force_despawn_instruction_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ForceDespawnInstruction { - pub delay_ms: u32, -} - -impl __sdk::InModule for ForceDespawnInstruction { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/friendly_aura_selection_type.rs b/gateway/src/stdb/bindings/friendly_aura_selection_type.rs deleted file mode 100644 index f6fc36eea..000000000 --- a/gateway/src/stdb/bindings/friendly_aura_selection_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum FriendlyAuraSelection { - NearbyWhileEngaged, - - MatchActorCombatState, - - AnyWhileDisengaged, -} - -impl __sdk::InModule for FriendlyAuraSelection { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/friendly_crowd_control_condition_type.rs b/gateway/src/stdb/bindings/friendly_crowd_control_condition_type.rs deleted file mode 100644 index d99819f84..000000000 --- a/gateway/src/stdb/bindings/friendly_crowd_control_condition_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct FriendlyCrowdControlCondition { - pub radius_yd: u32, -} - -impl __sdk::InModule for FriendlyCrowdControlCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/friendly_health_deficit_condition_type.rs b/gateway/src/stdb/bindings/friendly_health_deficit_condition_type.rs deleted file mode 100644 index cec627cc0..000000000 --- a/gateway/src/stdb/bindings/friendly_health_deficit_condition_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct FriendlyHealthDeficitCondition { - pub missing_health: u32, - pub radius_yd: u32, - pub percent: bool, -} - -impl __sdk::InModule for FriendlyHealthDeficitCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/friendly_missing_aura_condition_type.rs b/gateway/src/stdb/bindings/friendly_missing_aura_condition_type.rs deleted file mode 100644 index 84f150d26..000000000 --- a/gateway/src/stdb/bindings/friendly_missing_aura_condition_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::friendly_aura_selection_type::FriendlyAuraSelection; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct FriendlyMissingAuraCondition { - pub spell_id: u32, - pub radius_yd: u32, - pub selection: FriendlyAuraSelection, -} - -impl __sdk::InModule for FriendlyMissingAuraCondition { - type Module = super::RemoteModule; -} diff --git a/gateway/src/stdb/bindings/game_account_character_owner_table.rs b/gateway/src/stdb/bindings/game_account_character_owner_table.rs deleted file mode 100644 index a0a548c39..000000000 --- a/gateway/src/stdb/bindings/game_account_character_owner_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::account_character_owner_type::AccountCharacterOwner; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_account_character_owner`. -/// -/// Obtain a handle from the [`GameAccountCharacterOwnerTableAccess::game_account_character_owner`] method on [`super::RemoteTables`], -/// like `ctx.db.game_account_character_owner()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account_character_owner().on_insert(...)`. -pub struct GameAccountCharacterOwnerTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_account_character_owner`. -pub struct GameAccountCharacterOwnerTableAccessor; - -impl __sdk::TableAccessor for GameAccountCharacterOwnerTableAccessor { - type Row = AccountCharacterOwner; - type Handle<'db> = GameAccountCharacterOwnerTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_account_character_owner() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_account_character_owner`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAccountCharacterOwnerTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAccountCharacterOwnerTableHandle`], which mediates access to the table `game_account_character_owner`. - fn game_account_character_owner(&self) -> GameAccountCharacterOwnerTableHandle<'_>; -} - -impl GameAccountCharacterOwnerTableAccess for super::RemoteTables { - fn game_account_character_owner(&self) -> GameAccountCharacterOwnerTableHandle<'_> { - GameAccountCharacterOwnerTableHandle { - imp: self - .imp - .get_table::("game_account_character_owner"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAccountCharacterOwnerInsertCallbackId(__sdk::CallbackId); -pub struct GameAccountCharacterOwnerDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAccountCharacterOwnerTableHandle<'ctx> { - type Row = AccountCharacterOwner; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAccountCharacterOwnerTableHandle<'ctx> { - type Row = AccountCharacterOwner; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAccountCharacterOwnerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountCharacterOwnerInsertCallbackId { - GameAccountCharacterOwnerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAccountCharacterOwnerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAccountCharacterOwnerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountCharacterOwnerDeleteCallbackId { - GameAccountCharacterOwnerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAccountCharacterOwnerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAccountCharacterOwnerTableHandle<'ctx> { - type InsertCallbackId = GameAccountCharacterOwnerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountCharacterOwnerInsertCallbackId { - GameAccountCharacterOwnerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAccountCharacterOwnerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAccountCharacterOwnerTableHandle<'ctx> { - type DeleteCallbackId = GameAccountCharacterOwnerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountCharacterOwnerDeleteCallbackId { - GameAccountCharacterOwnerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAccountCharacterOwnerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAccountCharacterOwnerUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAccountCharacterOwnerTableHandle<'ctx> { - type UpdateCallbackId = GameAccountCharacterOwnerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAccountCharacterOwnerUpdateCallbackId { - GameAccountCharacterOwnerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAccountCharacterOwnerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAccountCharacterOwnerTableHandle<'ctx> { - type UpdateCallbackId = GameAccountCharacterOwnerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAccountCharacterOwnerUpdateCallbackId { - GameAccountCharacterOwnerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAccountCharacterOwnerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `character_guid` unique index on the table `game_account_character_owner`, -/// which allows point queries on the field of the same name -/// via the [`GameAccountCharacterOwnerCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account_character_owner().character_guid().find(...)`. -pub struct GameAccountCharacterOwnerCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAccountCharacterOwnerTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_account_character_owner`. - pub fn character_guid(&self) -> GameAccountCharacterOwnerCharacterGuidUnique<'ctx> { - GameAccountCharacterOwnerCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAccountCharacterOwnerCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_account_character_owner"); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AccountCharacterOwner`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_account_character_ownerQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AccountCharacterOwner`. - fn game_account_character_owner(&self) -> __sdk::__query_builder::Table; -} - -impl game_account_character_ownerQueryTableAccess for __sdk::QueryTableAccessor { - fn game_account_character_owner(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_account_character_owner") - } -} diff --git a/gateway/src/stdb/bindings/game_account_claim_table.rs b/gateway/src/stdb/bindings/game_account_claim_table.rs deleted file mode 100644 index a213e17d8..000000000 --- a/gateway/src/stdb/bindings/game_account_claim_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::account_claim_type::AccountClaim; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_account_claim`. -/// -/// Obtain a handle from the [`GameAccountClaimTableAccess::game_account_claim`] method on [`super::RemoteTables`], -/// like `ctx.db.game_account_claim()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account_claim().on_insert(...)`. -pub struct GameAccountClaimTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_account_claim`. -pub struct GameAccountClaimTableAccessor; - -impl __sdk::TableAccessor for GameAccountClaimTableAccessor { - type Row = AccountClaim; - type Handle<'db> = GameAccountClaimTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_account_claim() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_account_claim`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAccountClaimTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAccountClaimTableHandle`], which mediates access to the table `game_account_claim`. - fn game_account_claim(&self) -> GameAccountClaimTableHandle<'_>; -} - -impl GameAccountClaimTableAccess for super::RemoteTables { - fn game_account_claim(&self) -> GameAccountClaimTableHandle<'_> { - GameAccountClaimTableHandle { - imp: self.imp.get_table::("game_account_claim"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAccountClaimInsertCallbackId(__sdk::CallbackId); -pub struct GameAccountClaimDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAccountClaimTableHandle<'ctx> { - type Row = AccountClaim; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAccountClaimTableHandle<'ctx> { - type Row = AccountClaim; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAccountClaimInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountClaimInsertCallbackId { - GameAccountClaimInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAccountClaimInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAccountClaimDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountClaimDeleteCallbackId { - GameAccountClaimDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAccountClaimDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAccountClaimTableHandle<'ctx> { - type InsertCallbackId = GameAccountClaimInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountClaimInsertCallbackId { - GameAccountClaimInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAccountClaimInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAccountClaimTableHandle<'ctx> { - type DeleteCallbackId = GameAccountClaimDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountClaimDeleteCallbackId { - GameAccountClaimDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAccountClaimDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAccountClaimUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAccountClaimTableHandle<'ctx> { - type UpdateCallbackId = GameAccountClaimUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAccountClaimUpdateCallbackId { - GameAccountClaimUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAccountClaimUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAccountClaimTableHandle<'ctx> { - type UpdateCallbackId = GameAccountClaimUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAccountClaimUpdateCallbackId { - GameAccountClaimUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAccountClaimUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `account_id` unique index on the table `game_account_claim`, -/// which allows point queries on the field of the same name -/// via the [`GameAccountClaimAccountIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account_claim().account_id().find(...)`. -pub struct GameAccountClaimAccountIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAccountClaimTableHandle<'ctx> { - /// Get a handle on the `account_id` unique index on the table `game_account_claim`. - pub fn account_id(&self) -> GameAccountClaimAccountIdUnique<'ctx> { - GameAccountClaimAccountIdUnique { - imp: self.imp.get_unique_constraint::("account_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAccountClaimAccountIdUnique<'ctx> { - /// Find the subscribed row whose `account_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_account_claim"); - _table.add_unique_constraint::("account_id", |row| &row.account_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AccountClaim`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_account_claimQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AccountClaim`. - fn game_account_claim(&self) -> __sdk::__query_builder::Table; -} - -impl game_account_claimQueryTableAccess for __sdk::QueryTableAccessor { - fn game_account_claim(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_account_claim") - } -} diff --git a/gateway/src/stdb/bindings/game_account_fence_table.rs b/gateway/src/stdb/bindings/game_account_fence_table.rs deleted file mode 100644 index 9de662aae..000000000 --- a/gateway/src/stdb/bindings/game_account_fence_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::account_fence_type::AccountFence; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_account_fence`. -/// -/// Obtain a handle from the [`GameAccountFenceTableAccess::game_account_fence`] method on [`super::RemoteTables`], -/// like `ctx.db.game_account_fence()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account_fence().on_insert(...)`. -pub struct GameAccountFenceTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_account_fence`. -pub struct GameAccountFenceTableAccessor; - -impl __sdk::TableAccessor for GameAccountFenceTableAccessor { - type Row = AccountFence; - type Handle<'db> = GameAccountFenceTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_account_fence() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_account_fence`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAccountFenceTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAccountFenceTableHandle`], which mediates access to the table `game_account_fence`. - fn game_account_fence(&self) -> GameAccountFenceTableHandle<'_>; -} - -impl GameAccountFenceTableAccess for super::RemoteTables { - fn game_account_fence(&self) -> GameAccountFenceTableHandle<'_> { - GameAccountFenceTableHandle { - imp: self.imp.get_table::("game_account_fence"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAccountFenceInsertCallbackId(__sdk::CallbackId); -pub struct GameAccountFenceDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAccountFenceTableHandle<'ctx> { - type Row = AccountFence; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAccountFenceTableHandle<'ctx> { - type Row = AccountFence; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAccountFenceInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountFenceInsertCallbackId { - GameAccountFenceInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAccountFenceInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAccountFenceDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountFenceDeleteCallbackId { - GameAccountFenceDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAccountFenceDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAccountFenceTableHandle<'ctx> { - type InsertCallbackId = GameAccountFenceInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountFenceInsertCallbackId { - GameAccountFenceInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAccountFenceInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAccountFenceTableHandle<'ctx> { - type DeleteCallbackId = GameAccountFenceDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountFenceDeleteCallbackId { - GameAccountFenceDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAccountFenceDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAccountFenceUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAccountFenceTableHandle<'ctx> { - type UpdateCallbackId = GameAccountFenceUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAccountFenceUpdateCallbackId { - GameAccountFenceUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAccountFenceUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAccountFenceTableHandle<'ctx> { - type UpdateCallbackId = GameAccountFenceUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAccountFenceUpdateCallbackId { - GameAccountFenceUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAccountFenceUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `account_id` unique index on the table `game_account_fence`, -/// which allows point queries on the field of the same name -/// via the [`GameAccountFenceAccountIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account_fence().account_id().find(...)`. -pub struct GameAccountFenceAccountIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAccountFenceTableHandle<'ctx> { - /// Get a handle on the `account_id` unique index on the table `game_account_fence`. - pub fn account_id(&self) -> GameAccountFenceAccountIdUnique<'ctx> { - GameAccountFenceAccountIdUnique { - imp: self.imp.get_unique_constraint::("account_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAccountFenceAccountIdUnique<'ctx> { - /// Find the subscribed row whose `account_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_account_fence"); - _table.add_unique_constraint::("account_id", |row| &row.account_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AccountFence`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_account_fenceQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AccountFence`. - fn game_account_fence(&self) -> __sdk::__query_builder::Table; -} - -impl game_account_fenceQueryTableAccess for __sdk::QueryTableAccessor { - fn game_account_fence(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_account_fence") - } -} diff --git a/gateway/src/stdb/bindings/game_account_table.rs b/gateway/src/stdb/bindings/game_account_table.rs deleted file mode 100644 index 26eea0a3f..000000000 --- a/gateway/src/stdb/bindings/game_account_table.rs +++ /dev/null @@ -1,259 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::account_type::Account; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_account`. -/// -/// Obtain a handle from the [`GameAccountTableAccess::game_account`] method on [`super::RemoteTables`], -/// like `ctx.db.game_account()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account().on_insert(...)`. -pub struct GameAccountTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_account`. -pub struct GameAccountTableAccessor; - -impl __sdk::TableAccessor for GameAccountTableAccessor { - type Row = Account; - type Handle<'db> = GameAccountTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_account() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_account`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAccountTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAccountTableHandle`], which mediates access to the table `game_account`. - fn game_account(&self) -> GameAccountTableHandle<'_>; -} - -impl GameAccountTableAccess for super::RemoteTables { - fn game_account(&self) -> GameAccountTableHandle<'_> { - GameAccountTableHandle { - imp: self.imp.get_table::("game_account"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAccountInsertCallbackId(__sdk::CallbackId); -pub struct GameAccountDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAccountTableHandle<'ctx> { - type Row = Account; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAccountTableHandle<'ctx> { - type Row = Account; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAccountInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountInsertCallbackId { - GameAccountInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAccountInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAccountDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountDeleteCallbackId { - GameAccountDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAccountDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAccountTableHandle<'ctx> { - type InsertCallbackId = GameAccountInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountInsertCallbackId { - GameAccountInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAccountInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAccountTableHandle<'ctx> { - type DeleteCallbackId = GameAccountDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAccountDeleteCallbackId { - GameAccountDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAccountDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAccountUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAccountTableHandle<'ctx> { - type UpdateCallbackId = GameAccountUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAccountUpdateCallbackId { - GameAccountUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAccountUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAccountTableHandle<'ctx> { - type UpdateCallbackId = GameAccountUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAccountUpdateCallbackId { - GameAccountUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAccountUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_account`, -/// which allows point queries on the field of the same name -/// via the [`GameAccountIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account().id().find(...)`. -pub struct GameAccountIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAccountTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_account`. - pub fn id(&self) -> GameAccountIdUnique<'ctx> { - GameAccountIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAccountIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `username` unique index on the table `game_account`, -/// which allows point queries on the field of the same name -/// via the [`GameAccountUsernameUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_account().username().find(...)`. -pub struct GameAccountUsernameUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAccountTableHandle<'ctx> { - /// Get a handle on the `username` unique index on the table `game_account`. - pub fn username(&self) -> GameAccountUsernameUnique<'ctx> { - GameAccountUsernameUnique { - imp: self.imp.get_unique_constraint::("username"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAccountUsernameUnique<'ctx> { - /// Find the subscribed row whose `username` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_account"); - _table.add_unique_constraint::("id", |row| &row.id); - _table.add_unique_constraint::("username", |row| &row.username); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Account`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_accountQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Account`. - fn game_account(&self) -> __sdk::__query_builder::Table; -} - -impl game_accountQueryTableAccess for __sdk::QueryTableAccessor { - fn game_account(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_account") - } -} diff --git a/gateway/src/stdb/bindings/game_active_taxi_flight_table.rs b/gateway/src/stdb/bindings/game_active_taxi_flight_table.rs deleted file mode 100644 index e2fd7a552..000000000 --- a/gateway/src/stdb/bindings/game_active_taxi_flight_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::active_taxi_flight_type::ActiveTaxiFlight; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_active_taxi_flight`. -/// -/// Obtain a handle from the [`GameActiveTaxiFlightTableAccess::game_active_taxi_flight`] method on [`super::RemoteTables`], -/// like `ctx.db.game_active_taxi_flight()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_active_taxi_flight().on_insert(...)`. -pub struct GameActiveTaxiFlightTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_active_taxi_flight`. -pub struct GameActiveTaxiFlightTableAccessor; - -impl __sdk::TableAccessor for GameActiveTaxiFlightTableAccessor { - type Row = ActiveTaxiFlight; - type Handle<'db> = GameActiveTaxiFlightTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_active_taxi_flight() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_active_taxi_flight`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameActiveTaxiFlightTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameActiveTaxiFlightTableHandle`], which mediates access to the table `game_active_taxi_flight`. - fn game_active_taxi_flight(&self) -> GameActiveTaxiFlightTableHandle<'_>; -} - -impl GameActiveTaxiFlightTableAccess for super::RemoteTables { - fn game_active_taxi_flight(&self) -> GameActiveTaxiFlightTableHandle<'_> { - GameActiveTaxiFlightTableHandle { - imp: self - .imp - .get_table::("game_active_taxi_flight"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameActiveTaxiFlightInsertCallbackId(__sdk::CallbackId); -pub struct GameActiveTaxiFlightDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameActiveTaxiFlightTableHandle<'ctx> { - type Row = ActiveTaxiFlight; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameActiveTaxiFlightTableHandle<'ctx> { - type Row = ActiveTaxiFlight; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameActiveTaxiFlightInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameActiveTaxiFlightInsertCallbackId { - GameActiveTaxiFlightInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameActiveTaxiFlightInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameActiveTaxiFlightDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameActiveTaxiFlightDeleteCallbackId { - GameActiveTaxiFlightDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameActiveTaxiFlightDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameActiveTaxiFlightTableHandle<'ctx> { - type InsertCallbackId = GameActiveTaxiFlightInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameActiveTaxiFlightInsertCallbackId { - GameActiveTaxiFlightInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameActiveTaxiFlightInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameActiveTaxiFlightTableHandle<'ctx> { - type DeleteCallbackId = GameActiveTaxiFlightDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameActiveTaxiFlightDeleteCallbackId { - GameActiveTaxiFlightDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameActiveTaxiFlightDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameActiveTaxiFlightUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameActiveTaxiFlightTableHandle<'ctx> { - type UpdateCallbackId = GameActiveTaxiFlightUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameActiveTaxiFlightUpdateCallbackId { - GameActiveTaxiFlightUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameActiveTaxiFlightUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameActiveTaxiFlightTableHandle<'ctx> { - type UpdateCallbackId = GameActiveTaxiFlightUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameActiveTaxiFlightUpdateCallbackId { - GameActiveTaxiFlightUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameActiveTaxiFlightUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `character_guid` unique index on the table `game_active_taxi_flight`, -/// which allows point queries on the field of the same name -/// via the [`GameActiveTaxiFlightCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_active_taxi_flight().character_guid().find(...)`. -pub struct GameActiveTaxiFlightCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameActiveTaxiFlightTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_active_taxi_flight`. - pub fn character_guid(&self) -> GameActiveTaxiFlightCharacterGuidUnique<'ctx> { - GameActiveTaxiFlightCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameActiveTaxiFlightCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_active_taxi_flight"); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ActiveTaxiFlight`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_active_taxi_flightQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ActiveTaxiFlight`. - fn game_active_taxi_flight(&self) -> __sdk::__query_builder::Table; -} - -impl game_active_taxi_flightQueryTableAccess for __sdk::QueryTableAccessor { - fn game_active_taxi_flight(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_active_taxi_flight") - } -} diff --git a/gateway/src/stdb/bindings/game_addon_message_table.rs b/gateway/src/stdb/bindings/game_addon_message_table.rs deleted file mode 100644 index 58549b431..000000000 --- a/gateway/src/stdb/bindings/game_addon_message_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::addon_message_type::AddonMessage; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_addon_message`. -/// -/// Obtain a handle from the [`GameAddonMessageTableAccess::game_addon_message`] method on [`super::RemoteTables`], -/// like `ctx.db.game_addon_message()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_addon_message().on_insert(...)`. -pub struct GameAddonMessageTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_addon_message`. -pub struct GameAddonMessageTableAccessor; - -impl __sdk::TableAccessor for GameAddonMessageTableAccessor { - type Row = AddonMessage; - type Handle<'db> = GameAddonMessageTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_addon_message() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_addon_message`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAddonMessageTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAddonMessageTableHandle`], which mediates access to the table `game_addon_message`. - fn game_addon_message(&self) -> GameAddonMessageTableHandle<'_>; -} - -impl GameAddonMessageTableAccess for super::RemoteTables { - fn game_addon_message(&self) -> GameAddonMessageTableHandle<'_> { - GameAddonMessageTableHandle { - imp: self.imp.get_table::("game_addon_message"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAddonMessageInsertCallbackId(__sdk::CallbackId); -pub struct GameAddonMessageDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAddonMessageTableHandle<'ctx> { - type Row = AddonMessage; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAddonMessageTableHandle<'ctx> { - type Row = AddonMessage; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAddonMessageInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAddonMessageInsertCallbackId { - GameAddonMessageInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAddonMessageInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAddonMessageDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAddonMessageDeleteCallbackId { - GameAddonMessageDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAddonMessageDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAddonMessageTableHandle<'ctx> { - type InsertCallbackId = GameAddonMessageInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAddonMessageInsertCallbackId { - GameAddonMessageInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAddonMessageInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAddonMessageTableHandle<'ctx> { - type DeleteCallbackId = GameAddonMessageDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAddonMessageDeleteCallbackId { - GameAddonMessageDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAddonMessageDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAddonMessageUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAddonMessageTableHandle<'ctx> { - type UpdateCallbackId = GameAddonMessageUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAddonMessageUpdateCallbackId { - GameAddonMessageUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAddonMessageUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAddonMessageTableHandle<'ctx> { - type UpdateCallbackId = GameAddonMessageUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAddonMessageUpdateCallbackId { - GameAddonMessageUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAddonMessageUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_addon_message`, -/// which allows point queries on the field of the same name -/// via the [`GameAddonMessageIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_addon_message().id().find(...)`. -pub struct GameAddonMessageIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAddonMessageTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_addon_message`. - pub fn id(&self) -> GameAddonMessageIdUnique<'ctx> { - GameAddonMessageIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAddonMessageIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_addon_message"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AddonMessage`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_addon_messageQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AddonMessage`. - fn game_addon_message(&self) -> __sdk::__query_builder::Table; -} - -impl game_addon_messageQueryTableAccess for __sdk::QueryTableAccessor { - fn game_addon_message(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_addon_message") - } -} diff --git a/gateway/src/stdb/bindings/game_alpha_test_tools_enrollment_table.rs b/gateway/src/stdb/bindings/game_alpha_test_tools_enrollment_table.rs deleted file mode 100644 index bdb838236..000000000 --- a/gateway/src/stdb/bindings/game_alpha_test_tools_enrollment_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::alpha_test_tools_enrollment_type::AlphaTestToolsEnrollment; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_alpha_test_tools_enrollment`. -/// -/// Obtain a handle from the [`GameAlphaTestToolsEnrollmentTableAccess::game_alpha_test_tools_enrollment`] method on [`super::RemoteTables`], -/// like `ctx.db.game_alpha_test_tools_enrollment()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_alpha_test_tools_enrollment().on_insert(...)`. -pub struct GameAlphaTestToolsEnrollmentTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_alpha_test_tools_enrollment`. -pub struct GameAlphaTestToolsEnrollmentTableAccessor; - -impl __sdk::TableAccessor for GameAlphaTestToolsEnrollmentTableAccessor { - type Row = AlphaTestToolsEnrollment; - type Handle<'db> = GameAlphaTestToolsEnrollmentTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_alpha_test_tools_enrollment() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_alpha_test_tools_enrollment`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAlphaTestToolsEnrollmentTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAlphaTestToolsEnrollmentTableHandle`], which mediates access to the table `game_alpha_test_tools_enrollment`. - fn game_alpha_test_tools_enrollment(&self) -> GameAlphaTestToolsEnrollmentTableHandle<'_>; -} - -impl GameAlphaTestToolsEnrollmentTableAccess for super::RemoteTables { - fn game_alpha_test_tools_enrollment(&self) -> GameAlphaTestToolsEnrollmentTableHandle<'_> { - GameAlphaTestToolsEnrollmentTableHandle { - imp: self - .imp - .get_table::("game_alpha_test_tools_enrollment"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAlphaTestToolsEnrollmentInsertCallbackId(__sdk::CallbackId); -pub struct GameAlphaTestToolsEnrollmentDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAlphaTestToolsEnrollmentTableHandle<'ctx> { - type Row = AlphaTestToolsEnrollment; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAlphaTestToolsEnrollmentTableHandle<'ctx> { - type Row = AlphaTestToolsEnrollment; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAlphaTestToolsEnrollmentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAlphaTestToolsEnrollmentInsertCallbackId { - GameAlphaTestToolsEnrollmentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAlphaTestToolsEnrollmentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAlphaTestToolsEnrollmentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAlphaTestToolsEnrollmentDeleteCallbackId { - GameAlphaTestToolsEnrollmentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAlphaTestToolsEnrollmentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAlphaTestToolsEnrollmentTableHandle<'ctx> { - type InsertCallbackId = GameAlphaTestToolsEnrollmentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAlphaTestToolsEnrollmentInsertCallbackId { - GameAlphaTestToolsEnrollmentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAlphaTestToolsEnrollmentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAlphaTestToolsEnrollmentTableHandle<'ctx> { - type DeleteCallbackId = GameAlphaTestToolsEnrollmentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAlphaTestToolsEnrollmentDeleteCallbackId { - GameAlphaTestToolsEnrollmentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAlphaTestToolsEnrollmentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAlphaTestToolsEnrollmentUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAlphaTestToolsEnrollmentTableHandle<'ctx> { - type UpdateCallbackId = GameAlphaTestToolsEnrollmentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAlphaTestToolsEnrollmentUpdateCallbackId { - GameAlphaTestToolsEnrollmentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAlphaTestToolsEnrollmentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAlphaTestToolsEnrollmentTableHandle<'ctx> { - type UpdateCallbackId = GameAlphaTestToolsEnrollmentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAlphaTestToolsEnrollmentUpdateCallbackId { - GameAlphaTestToolsEnrollmentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAlphaTestToolsEnrollmentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_alpha_test_tools_enrollment`, -/// which allows point queries on the field of the same name -/// via the [`GameAlphaTestToolsEnrollmentIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_alpha_test_tools_enrollment().id().find(...)`. -pub struct GameAlphaTestToolsEnrollmentIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAlphaTestToolsEnrollmentTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_alpha_test_tools_enrollment`. - pub fn id(&self) -> GameAlphaTestToolsEnrollmentIdUnique<'ctx> { - GameAlphaTestToolsEnrollmentIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAlphaTestToolsEnrollmentIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u8) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_alpha_test_tools_enrollment"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AlphaTestToolsEnrollment`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_alpha_test_tools_enrollmentQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AlphaTestToolsEnrollment`. - fn game_alpha_test_tools_enrollment( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_alpha_test_tools_enrollmentQueryTableAccess for __sdk::QueryTableAccessor { - fn game_alpha_test_tools_enrollment( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_alpha_test_tools_enrollment") - } -} diff --git a/gateway/src/stdb/bindings/game_area_table.rs b/gateway/src/stdb/bindings/game_area_table.rs deleted file mode 100644 index 77483d6f6..000000000 --- a/gateway/src/stdb/bindings/game_area_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_area_type::GameArea; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_area`. -/// -/// Obtain a handle from the [`GameAreaTableAccess::game_area`] method on [`super::RemoteTables`], -/// like `ctx.db.game_area()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_area().on_insert(...)`. -pub struct GameAreaTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_area`. -pub struct GameAreaTableAccessor; - -impl __sdk::TableAccessor for GameAreaTableAccessor { - type Row = GameArea; - type Handle<'db> = GameAreaTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_area() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_area`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAreaTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAreaTableHandle`], which mediates access to the table `game_area`. - fn game_area(&self) -> GameAreaTableHandle<'_>; -} - -impl GameAreaTableAccess for super::RemoteTables { - fn game_area(&self) -> GameAreaTableHandle<'_> { - GameAreaTableHandle { - imp: self.imp.get_table::("game_area"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAreaInsertCallbackId(__sdk::CallbackId); -pub struct GameAreaDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAreaTableHandle<'ctx> { - type Row = GameArea; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAreaTableHandle<'ctx> { - type Row = GameArea; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAreaInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreaInsertCallbackId { - GameAreaInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAreaInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAreaDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreaDeleteCallbackId { - GameAreaDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAreaDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAreaTableHandle<'ctx> { - type InsertCallbackId = GameAreaInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreaInsertCallbackId { - GameAreaInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAreaInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAreaTableHandle<'ctx> { - type DeleteCallbackId = GameAreaDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreaDeleteCallbackId { - GameAreaDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAreaDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAreaUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAreaTableHandle<'ctx> { - type UpdateCallbackId = GameAreaUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAreaUpdateCallbackId { - GameAreaUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAreaUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAreaTableHandle<'ctx> { - type UpdateCallbackId = GameAreaUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAreaUpdateCallbackId { - GameAreaUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAreaUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_area`, -/// which allows point queries on the field of the same name -/// via the [`GameAreaIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_area().id().find(...)`. -pub struct GameAreaIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAreaTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_area`. - pub fn id(&self) -> GameAreaIdUnique<'ctx> { - GameAreaIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAreaIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_area"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameArea`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_areaQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameArea`. - fn game_area(&self) -> __sdk::__query_builder::Table; -} - -impl game_areaQueryTableAccess for __sdk::QueryTableAccessor { - fn game_area(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_area") - } -} diff --git a/gateway/src/stdb/bindings/game_area_trigger_table.rs b/gateway/src/stdb/bindings/game_area_trigger_table.rs deleted file mode 100644 index dd87ea174..000000000 --- a/gateway/src/stdb/bindings/game_area_trigger_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_area_trigger_type::GameAreaTrigger; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_area_trigger`. -/// -/// Obtain a handle from the [`GameAreaTriggerTableAccess::game_area_trigger`] method on [`super::RemoteTables`], -/// like `ctx.db.game_area_trigger()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_area_trigger().on_insert(...)`. -pub struct GameAreaTriggerTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_area_trigger`. -pub struct GameAreaTriggerTableAccessor; - -impl __sdk::TableAccessor for GameAreaTriggerTableAccessor { - type Row = GameAreaTrigger; - type Handle<'db> = GameAreaTriggerTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_area_trigger() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_area_trigger`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAreaTriggerTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAreaTriggerTableHandle`], which mediates access to the table `game_area_trigger`. - fn game_area_trigger(&self) -> GameAreaTriggerTableHandle<'_>; -} - -impl GameAreaTriggerTableAccess for super::RemoteTables { - fn game_area_trigger(&self) -> GameAreaTriggerTableHandle<'_> { - GameAreaTriggerTableHandle { - imp: self.imp.get_table::("game_area_trigger"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAreaTriggerInsertCallbackId(__sdk::CallbackId); -pub struct GameAreaTriggerDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAreaTriggerTableHandle<'ctx> { - type Row = GameAreaTrigger; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAreaTriggerTableHandle<'ctx> { - type Row = GameAreaTrigger; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAreaTriggerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreaTriggerInsertCallbackId { - GameAreaTriggerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAreaTriggerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAreaTriggerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreaTriggerDeleteCallbackId { - GameAreaTriggerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAreaTriggerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAreaTriggerTableHandle<'ctx> { - type InsertCallbackId = GameAreaTriggerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreaTriggerInsertCallbackId { - GameAreaTriggerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAreaTriggerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAreaTriggerTableHandle<'ctx> { - type DeleteCallbackId = GameAreaTriggerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreaTriggerDeleteCallbackId { - GameAreaTriggerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAreaTriggerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAreaTriggerUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAreaTriggerTableHandle<'ctx> { - type UpdateCallbackId = GameAreaTriggerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAreaTriggerUpdateCallbackId { - GameAreaTriggerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAreaTriggerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAreaTriggerTableHandle<'ctx> { - type UpdateCallbackId = GameAreaTriggerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAreaTriggerUpdateCallbackId { - GameAreaTriggerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAreaTriggerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_area_trigger`, -/// which allows point queries on the field of the same name -/// via the [`GameAreaTriggerIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_area_trigger().id().find(...)`. -pub struct GameAreaTriggerIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAreaTriggerTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_area_trigger`. - pub fn id(&self) -> GameAreaTriggerIdUnique<'ctx> { - GameAreaTriggerIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAreaTriggerIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_area_trigger"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameAreaTrigger`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_area_triggerQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameAreaTrigger`. - fn game_area_trigger(&self) -> __sdk::__query_builder::Table; -} - -impl game_area_triggerQueryTableAccess for __sdk::QueryTableAccessor { - fn game_area_trigger(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_area_trigger") - } -} diff --git a/gateway/src/stdb/bindings/game_area_trigger_type.rs b/gateway/src/stdb/bindings/game_area_trigger_type.rs deleted file mode 100644 index 4aa512a3a..000000000 --- a/gateway/src/stdb/bindings/game_area_trigger_type.rs +++ /dev/null @@ -1,76 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameAreaTrigger { - pub id: u32, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub radius: f32, - pub box_length: f32, - pub box_width: f32, - pub box_height: f32, - pub box_yaw: f32, -} - -impl __sdk::InModule for GameAreaTrigger { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameAreaTrigger`. -/// -/// Provides typed access to columns for query building. -pub struct GameAreaTriggerCols { - pub id: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub radius: __sdk::__query_builder::Col, - pub box_length: __sdk::__query_builder::Col, - pub box_width: __sdk::__query_builder::Col, - pub box_height: __sdk::__query_builder::Col, - pub box_yaw: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameAreaTrigger { - type Cols = GameAreaTriggerCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameAreaTriggerCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - radius: __sdk::__query_builder::Col::new(table_name, "radius"), - box_length: __sdk::__query_builder::Col::new(table_name, "box_length"), - box_width: __sdk::__query_builder::Col::new(table_name, "box_width"), - box_height: __sdk::__query_builder::Col::new(table_name, "box_height"), - box_yaw: __sdk::__query_builder::Col::new(table_name, "box_yaw"), - } - } -} - -/// Indexed column accessor struct for the table `GameAreaTrigger`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameAreaTriggerIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameAreaTrigger { - type IxCols = GameAreaTriggerIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameAreaTriggerIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameAreaTrigger {} diff --git a/gateway/src/stdb/bindings/game_area_type.rs b/gateway/src/stdb/bindings/game_area_type.rs deleted file mode 100644 index 5431c619c..000000000 --- a/gateway/src/stdb/bindings/game_area_type.rs +++ /dev/null @@ -1,70 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameArea { - pub id: u32, - pub map_id: u32, - pub parent_area_id: u32, - pub area_bit: i32, - pub flags: u32, - pub exploration_level: i32, - pub faction_group: u32, - pub name: String, -} - -impl __sdk::InModule for GameArea { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameArea`. -/// -/// Provides typed access to columns for query building. -pub struct GameAreaCols { - pub id: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub parent_area_id: __sdk::__query_builder::Col, - pub area_bit: __sdk::__query_builder::Col, - pub flags: __sdk::__query_builder::Col, - pub exploration_level: __sdk::__query_builder::Col, - pub faction_group: __sdk::__query_builder::Col, - pub name: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameArea { - type Cols = GameAreaCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameAreaCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - parent_area_id: __sdk::__query_builder::Col::new(table_name, "parent_area_id"), - area_bit: __sdk::__query_builder::Col::new(table_name, "area_bit"), - flags: __sdk::__query_builder::Col::new(table_name, "flags"), - exploration_level: __sdk::__query_builder::Col::new(table_name, "exploration_level"), - faction_group: __sdk::__query_builder::Col::new(table_name, "faction_group"), - name: __sdk::__query_builder::Col::new(table_name, "name"), - } - } -} - -/// Indexed column accessor struct for the table `GameArea`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameAreaIxCols { - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameArea { - type IxCols = GameAreaIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameAreaIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameArea {} diff --git a/gateway/src/stdb/bindings/game_areatrigger_teleport_table.rs b/gateway/src/stdb/bindings/game_areatrigger_teleport_table.rs deleted file mode 100644 index 25abbf274..000000000 --- a/gateway/src/stdb/bindings/game_areatrigger_teleport_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::areatrigger_teleport_type::AreatriggerTeleport; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_areatrigger_teleport`. -/// -/// Obtain a handle from the [`GameAreatriggerTeleportTableAccess::game_areatrigger_teleport`] method on [`super::RemoteTables`], -/// like `ctx.db.game_areatrigger_teleport()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_areatrigger_teleport().on_insert(...)`. -pub struct GameAreatriggerTeleportTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_areatrigger_teleport`. -pub struct GameAreatriggerTeleportTableAccessor; - -impl __sdk::TableAccessor for GameAreatriggerTeleportTableAccessor { - type Row = AreatriggerTeleport; - type Handle<'db> = GameAreatriggerTeleportTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_areatrigger_teleport() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_areatrigger_teleport`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAreatriggerTeleportTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAreatriggerTeleportTableHandle`], which mediates access to the table `game_areatrigger_teleport`. - fn game_areatrigger_teleport(&self) -> GameAreatriggerTeleportTableHandle<'_>; -} - -impl GameAreatriggerTeleportTableAccess for super::RemoteTables { - fn game_areatrigger_teleport(&self) -> GameAreatriggerTeleportTableHandle<'_> { - GameAreatriggerTeleportTableHandle { - imp: self - .imp - .get_table::("game_areatrigger_teleport"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAreatriggerTeleportInsertCallbackId(__sdk::CallbackId); -pub struct GameAreatriggerTeleportDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAreatriggerTeleportTableHandle<'ctx> { - type Row = AreatriggerTeleport; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAreatriggerTeleportTableHandle<'ctx> { - type Row = AreatriggerTeleport; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAreatriggerTeleportInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreatriggerTeleportInsertCallbackId { - GameAreatriggerTeleportInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAreatriggerTeleportInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAreatriggerTeleportDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreatriggerTeleportDeleteCallbackId { - GameAreatriggerTeleportDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAreatriggerTeleportDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAreatriggerTeleportTableHandle<'ctx> { - type InsertCallbackId = GameAreatriggerTeleportInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreatriggerTeleportInsertCallbackId { - GameAreatriggerTeleportInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAreatriggerTeleportInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAreatriggerTeleportTableHandle<'ctx> { - type DeleteCallbackId = GameAreatriggerTeleportDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAreatriggerTeleportDeleteCallbackId { - GameAreatriggerTeleportDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAreatriggerTeleportDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAreatriggerTeleportUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAreatriggerTeleportTableHandle<'ctx> { - type UpdateCallbackId = GameAreatriggerTeleportUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAreatriggerTeleportUpdateCallbackId { - GameAreatriggerTeleportUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAreatriggerTeleportUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAreatriggerTeleportTableHandle<'ctx> { - type UpdateCallbackId = GameAreatriggerTeleportUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAreatriggerTeleportUpdateCallbackId { - GameAreatriggerTeleportUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAreatriggerTeleportUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `trigger_id` unique index on the table `game_areatrigger_teleport`, -/// which allows point queries on the field of the same name -/// via the [`GameAreatriggerTeleportTriggerIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_areatrigger_teleport().trigger_id().find(...)`. -pub struct GameAreatriggerTeleportTriggerIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAreatriggerTeleportTableHandle<'ctx> { - /// Get a handle on the `trigger_id` unique index on the table `game_areatrigger_teleport`. - pub fn trigger_id(&self) -> GameAreatriggerTeleportTriggerIdUnique<'ctx> { - GameAreatriggerTeleportTriggerIdUnique { - imp: self.imp.get_unique_constraint::("trigger_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAreatriggerTeleportTriggerIdUnique<'ctx> { - /// Find the subscribed row whose `trigger_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_areatrigger_teleport"); - _table.add_unique_constraint::("trigger_id", |row| &row.trigger_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AreatriggerTeleport`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_areatrigger_teleportQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AreatriggerTeleport`. - fn game_areatrigger_teleport(&self) -> __sdk::__query_builder::Table; -} - -impl game_areatrigger_teleportQueryTableAccess for __sdk::QueryTableAccessor { - fn game_areatrigger_teleport(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_areatrigger_teleport") - } -} diff --git a/gateway/src/stdb/bindings/game_auction_bid_decision_table.rs b/gateway/src/stdb/bindings/game_auction_bid_decision_table.rs deleted file mode 100644 index dccadbe05..000000000 --- a/gateway/src/stdb/bindings/game_auction_bid_decision_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::auction_bid_decision_type::AuctionBidDecision; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_auction_bid_decision`. -/// -/// Obtain a handle from the [`GameAuctionBidDecisionTableAccess::game_auction_bid_decision`] method on [`super::RemoteTables`], -/// like `ctx.db.game_auction_bid_decision()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_bid_decision().on_insert(...)`. -pub struct GameAuctionBidDecisionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_auction_bid_decision`. -pub struct GameAuctionBidDecisionTableAccessor; - -impl __sdk::TableAccessor for GameAuctionBidDecisionTableAccessor { - type Row = AuctionBidDecision; - type Handle<'db> = GameAuctionBidDecisionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_auction_bid_decision() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_auction_bid_decision`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuctionBidDecisionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuctionBidDecisionTableHandle`], which mediates access to the table `game_auction_bid_decision`. - fn game_auction_bid_decision(&self) -> GameAuctionBidDecisionTableHandle<'_>; -} - -impl GameAuctionBidDecisionTableAccess for super::RemoteTables { - fn game_auction_bid_decision(&self) -> GameAuctionBidDecisionTableHandle<'_> { - GameAuctionBidDecisionTableHandle { - imp: self - .imp - .get_table::("game_auction_bid_decision"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuctionBidDecisionInsertCallbackId(__sdk::CallbackId); -pub struct GameAuctionBidDecisionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuctionBidDecisionTableHandle<'ctx> { - type Row = AuctionBidDecision; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuctionBidDecisionTableHandle<'ctx> { - type Row = AuctionBidDecision; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuctionBidDecisionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionBidDecisionInsertCallbackId { - GameAuctionBidDecisionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionBidDecisionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuctionBidDecisionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionBidDecisionDeleteCallbackId { - GameAuctionBidDecisionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionBidDecisionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuctionBidDecisionTableHandle<'ctx> { - type InsertCallbackId = GameAuctionBidDecisionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionBidDecisionInsertCallbackId { - GameAuctionBidDecisionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionBidDecisionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuctionBidDecisionTableHandle<'ctx> { - type DeleteCallbackId = GameAuctionBidDecisionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionBidDecisionDeleteCallbackId { - GameAuctionBidDecisionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionBidDecisionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuctionBidDecisionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuctionBidDecisionTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionBidDecisionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionBidDecisionUpdateCallbackId { - GameAuctionBidDecisionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionBidDecisionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuctionBidDecisionTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionBidDecisionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionBidDecisionUpdateCallbackId { - GameAuctionBidDecisionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionBidDecisionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `operation_id` unique index on the table `game_auction_bid_decision`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionBidDecisionOperationIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_bid_decision().operation_id().find(...)`. -pub struct GameAuctionBidDecisionOperationIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionBidDecisionTableHandle<'ctx> { - /// Get a handle on the `operation_id` unique index on the table `game_auction_bid_decision`. - pub fn operation_id(&self) -> GameAuctionBidDecisionOperationIdUnique<'ctx> { - GameAuctionBidDecisionOperationIdUnique { - imp: self.imp.get_unique_constraint::("operation_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionBidDecisionOperationIdUnique<'ctx> { - /// Find the subscribed row whose `operation_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_auction_bid_decision"); - _table.add_unique_constraint::("operation_id", |row| &row.operation_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AuctionBidDecision`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auction_bid_decisionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AuctionBidDecision`. - fn game_auction_bid_decision(&self) -> __sdk::__query_builder::Table; -} - -impl game_auction_bid_decisionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_auction_bid_decision(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_auction_bid_decision") - } -} diff --git a/gateway/src/stdb/bindings/game_auction_bid_hold_table.rs b/gateway/src/stdb/bindings/game_auction_bid_hold_table.rs deleted file mode 100644 index 0d75ddcf8..000000000 --- a/gateway/src/stdb/bindings/game_auction_bid_hold_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::auction_bid_hold_type::AuctionBidHold; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_auction_bid_hold`. -/// -/// Obtain a handle from the [`GameAuctionBidHoldTableAccess::game_auction_bid_hold`] method on [`super::RemoteTables`], -/// like `ctx.db.game_auction_bid_hold()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_bid_hold().on_insert(...)`. -pub struct GameAuctionBidHoldTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_auction_bid_hold`. -pub struct GameAuctionBidHoldTableAccessor; - -impl __sdk::TableAccessor for GameAuctionBidHoldTableAccessor { - type Row = AuctionBidHold; - type Handle<'db> = GameAuctionBidHoldTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_auction_bid_hold() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_auction_bid_hold`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuctionBidHoldTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuctionBidHoldTableHandle`], which mediates access to the table `game_auction_bid_hold`. - fn game_auction_bid_hold(&self) -> GameAuctionBidHoldTableHandle<'_>; -} - -impl GameAuctionBidHoldTableAccess for super::RemoteTables { - fn game_auction_bid_hold(&self) -> GameAuctionBidHoldTableHandle<'_> { - GameAuctionBidHoldTableHandle { - imp: self - .imp - .get_table::("game_auction_bid_hold"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuctionBidHoldInsertCallbackId(__sdk::CallbackId); -pub struct GameAuctionBidHoldDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuctionBidHoldTableHandle<'ctx> { - type Row = AuctionBidHold; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuctionBidHoldTableHandle<'ctx> { - type Row = AuctionBidHold; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuctionBidHoldInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionBidHoldInsertCallbackId { - GameAuctionBidHoldInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionBidHoldInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuctionBidHoldDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionBidHoldDeleteCallbackId { - GameAuctionBidHoldDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionBidHoldDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuctionBidHoldTableHandle<'ctx> { - type InsertCallbackId = GameAuctionBidHoldInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionBidHoldInsertCallbackId { - GameAuctionBidHoldInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionBidHoldInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuctionBidHoldTableHandle<'ctx> { - type DeleteCallbackId = GameAuctionBidHoldDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionBidHoldDeleteCallbackId { - GameAuctionBidHoldDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionBidHoldDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuctionBidHoldUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuctionBidHoldTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionBidHoldUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionBidHoldUpdateCallbackId { - GameAuctionBidHoldUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionBidHoldUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuctionBidHoldTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionBidHoldUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionBidHoldUpdateCallbackId { - GameAuctionBidHoldUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionBidHoldUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `operation_id` unique index on the table `game_auction_bid_hold`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionBidHoldOperationIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_bid_hold().operation_id().find(...)`. -pub struct GameAuctionBidHoldOperationIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionBidHoldTableHandle<'ctx> { - /// Get a handle on the `operation_id` unique index on the table `game_auction_bid_hold`. - pub fn operation_id(&self) -> GameAuctionBidHoldOperationIdUnique<'ctx> { - GameAuctionBidHoldOperationIdUnique { - imp: self.imp.get_unique_constraint::("operation_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionBidHoldOperationIdUnique<'ctx> { - /// Find the subscribed row whose `operation_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_auction_bid_hold"); - _table.add_unique_constraint::("operation_id", |row| &row.operation_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AuctionBidHold`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auction_bid_holdQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AuctionBidHold`. - fn game_auction_bid_hold(&self) -> __sdk::__query_builder::Table; -} - -impl game_auction_bid_holdQueryTableAccess for __sdk::QueryTableAccessor { - fn game_auction_bid_hold(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_auction_bid_hold") - } -} diff --git a/gateway/src/stdb/bindings/game_auction_expiry_table.rs b/gateway/src/stdb/bindings/game_auction_expiry_table.rs deleted file mode 100644 index 8672173bc..000000000 --- a/gateway/src/stdb/bindings/game_auction_expiry_table.rs +++ /dev/null @@ -1,259 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::auction_expiry_type::AuctionExpiry; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_auction_expiry`. -/// -/// Obtain a handle from the [`GameAuctionExpiryTableAccess::game_auction_expiry`] method on [`super::RemoteTables`], -/// like `ctx.db.game_auction_expiry()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_expiry().on_insert(...)`. -pub struct GameAuctionExpiryTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_auction_expiry`. -pub struct GameAuctionExpiryTableAccessor; - -impl __sdk::TableAccessor for GameAuctionExpiryTableAccessor { - type Row = AuctionExpiry; - type Handle<'db> = GameAuctionExpiryTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_auction_expiry() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_auction_expiry`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuctionExpiryTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuctionExpiryTableHandle`], which mediates access to the table `game_auction_expiry`. - fn game_auction_expiry(&self) -> GameAuctionExpiryTableHandle<'_>; -} - -impl GameAuctionExpiryTableAccess for super::RemoteTables { - fn game_auction_expiry(&self) -> GameAuctionExpiryTableHandle<'_> { - GameAuctionExpiryTableHandle { - imp: self.imp.get_table::("game_auction_expiry"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuctionExpiryInsertCallbackId(__sdk::CallbackId); -pub struct GameAuctionExpiryDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuctionExpiryTableHandle<'ctx> { - type Row = AuctionExpiry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuctionExpiryTableHandle<'ctx> { - type Row = AuctionExpiry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuctionExpiryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionExpiryInsertCallbackId { - GameAuctionExpiryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionExpiryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuctionExpiryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionExpiryDeleteCallbackId { - GameAuctionExpiryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionExpiryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuctionExpiryTableHandle<'ctx> { - type InsertCallbackId = GameAuctionExpiryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionExpiryInsertCallbackId { - GameAuctionExpiryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionExpiryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuctionExpiryTableHandle<'ctx> { - type DeleteCallbackId = GameAuctionExpiryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionExpiryDeleteCallbackId { - GameAuctionExpiryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionExpiryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuctionExpiryUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuctionExpiryTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionExpiryUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionExpiryUpdateCallbackId { - GameAuctionExpiryUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionExpiryUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuctionExpiryTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionExpiryUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionExpiryUpdateCallbackId { - GameAuctionExpiryUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionExpiryUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_auction_expiry`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionExpiryScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_expiry().scheduled_id().find(...)`. -pub struct GameAuctionExpiryScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionExpiryTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_auction_expiry`. - pub fn scheduled_id(&self) -> GameAuctionExpiryScheduledIdUnique<'ctx> { - GameAuctionExpiryScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionExpiryScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `auction_id` unique index on the table `game_auction_expiry`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionExpiryAuctionIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_expiry().auction_id().find(...)`. -pub struct GameAuctionExpiryAuctionIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionExpiryTableHandle<'ctx> { - /// Get a handle on the `auction_id` unique index on the table `game_auction_expiry`. - pub fn auction_id(&self) -> GameAuctionExpiryAuctionIdUnique<'ctx> { - GameAuctionExpiryAuctionIdUnique { - imp: self.imp.get_unique_constraint::("auction_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionExpiryAuctionIdUnique<'ctx> { - /// Find the subscribed row whose `auction_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_auction_expiry"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); - _table.add_unique_constraint::("auction_id", |row| &row.auction_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AuctionExpiry`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auction_expiryQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AuctionExpiry`. - fn game_auction_expiry(&self) -> __sdk::__query_builder::Table; -} - -impl game_auction_expiryQueryTableAccess for __sdk::QueryTableAccessor { - fn game_auction_expiry(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_auction_expiry") - } -} diff --git a/gateway/src/stdb/bindings/game_auction_hold_table.rs b/gateway/src/stdb/bindings/game_auction_hold_table.rs deleted file mode 100644 index 6e7797db8..000000000 --- a/gateway/src/stdb/bindings/game_auction_hold_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::auction_hold_type::AuctionHold; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_auction_hold`. -/// -/// Obtain a handle from the [`GameAuctionHoldTableAccess::game_auction_hold`] method on [`super::RemoteTables`], -/// like `ctx.db.game_auction_hold()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_hold().on_insert(...)`. -pub struct GameAuctionHoldTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_auction_hold`. -pub struct GameAuctionHoldTableAccessor; - -impl __sdk::TableAccessor for GameAuctionHoldTableAccessor { - type Row = AuctionHold; - type Handle<'db> = GameAuctionHoldTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_auction_hold() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_auction_hold`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuctionHoldTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuctionHoldTableHandle`], which mediates access to the table `game_auction_hold`. - fn game_auction_hold(&self) -> GameAuctionHoldTableHandle<'_>; -} - -impl GameAuctionHoldTableAccess for super::RemoteTables { - fn game_auction_hold(&self) -> GameAuctionHoldTableHandle<'_> { - GameAuctionHoldTableHandle { - imp: self.imp.get_table::("game_auction_hold"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuctionHoldInsertCallbackId(__sdk::CallbackId); -pub struct GameAuctionHoldDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuctionHoldTableHandle<'ctx> { - type Row = AuctionHold; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuctionHoldTableHandle<'ctx> { - type Row = AuctionHold; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuctionHoldInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionHoldInsertCallbackId { - GameAuctionHoldInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionHoldInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuctionHoldDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionHoldDeleteCallbackId { - GameAuctionHoldDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionHoldDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuctionHoldTableHandle<'ctx> { - type InsertCallbackId = GameAuctionHoldInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionHoldInsertCallbackId { - GameAuctionHoldInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionHoldInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuctionHoldTableHandle<'ctx> { - type DeleteCallbackId = GameAuctionHoldDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionHoldDeleteCallbackId { - GameAuctionHoldDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionHoldDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuctionHoldUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuctionHoldTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionHoldUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionHoldUpdateCallbackId { - GameAuctionHoldUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionHoldUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuctionHoldTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionHoldUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionHoldUpdateCallbackId { - GameAuctionHoldUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionHoldUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `operation_id` unique index on the table `game_auction_hold`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionHoldOperationIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_hold().operation_id().find(...)`. -pub struct GameAuctionHoldOperationIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionHoldTableHandle<'ctx> { - /// Get a handle on the `operation_id` unique index on the table `game_auction_hold`. - pub fn operation_id(&self) -> GameAuctionHoldOperationIdUnique<'ctx> { - GameAuctionHoldOperationIdUnique { - imp: self.imp.get_unique_constraint::("operation_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionHoldOperationIdUnique<'ctx> { - /// Find the subscribed row whose `operation_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_auction_hold"); - _table.add_unique_constraint::("operation_id", |row| &row.operation_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AuctionHold`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auction_holdQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AuctionHold`. - fn game_auction_hold(&self) -> __sdk::__query_builder::Table; -} - -impl game_auction_holdQueryTableAccess for __sdk::QueryTableAccessor { - fn game_auction_hold(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_auction_hold") - } -} diff --git a/gateway/src/stdb/bindings/game_auction_house_table.rs b/gateway/src/stdb/bindings/game_auction_house_table.rs deleted file mode 100644 index 7b74633bd..000000000 --- a/gateway/src/stdb/bindings/game_auction_house_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::auction_house_definition_type::AuctionHouseDefinition; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_auction_house`. -/// -/// Obtain a handle from the [`GameAuctionHouseTableAccess::game_auction_house`] method on [`super::RemoteTables`], -/// like `ctx.db.game_auction_house()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_house().on_insert(...)`. -pub struct GameAuctionHouseTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_auction_house`. -pub struct GameAuctionHouseTableAccessor; - -impl __sdk::TableAccessor for GameAuctionHouseTableAccessor { - type Row = AuctionHouseDefinition; - type Handle<'db> = GameAuctionHouseTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_auction_house() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_auction_house`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuctionHouseTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuctionHouseTableHandle`], which mediates access to the table `game_auction_house`. - fn game_auction_house(&self) -> GameAuctionHouseTableHandle<'_>; -} - -impl GameAuctionHouseTableAccess for super::RemoteTables { - fn game_auction_house(&self) -> GameAuctionHouseTableHandle<'_> { - GameAuctionHouseTableHandle { - imp: self - .imp - .get_table::("game_auction_house"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuctionHouseInsertCallbackId(__sdk::CallbackId); -pub struct GameAuctionHouseDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuctionHouseTableHandle<'ctx> { - type Row = AuctionHouseDefinition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuctionHouseTableHandle<'ctx> { - type Row = AuctionHouseDefinition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuctionHouseInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionHouseInsertCallbackId { - GameAuctionHouseInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionHouseInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuctionHouseDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionHouseDeleteCallbackId { - GameAuctionHouseDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionHouseDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuctionHouseTableHandle<'ctx> { - type InsertCallbackId = GameAuctionHouseInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionHouseInsertCallbackId { - GameAuctionHouseInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionHouseInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuctionHouseTableHandle<'ctx> { - type DeleteCallbackId = GameAuctionHouseDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionHouseDeleteCallbackId { - GameAuctionHouseDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionHouseDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuctionHouseUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuctionHouseTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionHouseUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionHouseUpdateCallbackId { - GameAuctionHouseUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionHouseUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuctionHouseTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionHouseUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionHouseUpdateCallbackId { - GameAuctionHouseUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionHouseUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_auction_house`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionHouseIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_house().id().find(...)`. -pub struct GameAuctionHouseIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionHouseTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_auction_house`. - pub fn id(&self) -> GameAuctionHouseIdUnique<'ctx> { - GameAuctionHouseIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionHouseIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_auction_house"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AuctionHouseDefinition`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auction_houseQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AuctionHouseDefinition`. - fn game_auction_house(&self) -> __sdk::__query_builder::Table; -} - -impl game_auction_houseQueryTableAccess for __sdk::QueryTableAccessor { - fn game_auction_house(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_auction_house") - } -} diff --git a/gateway/src/stdb/bindings/game_auction_notice_table.rs b/gateway/src/stdb/bindings/game_auction_notice_table.rs deleted file mode 100644 index bfaf346e7..000000000 --- a/gateway/src/stdb/bindings/game_auction_notice_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::auction_notice_type::AuctionNotice; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_auction_notice`. -/// -/// Obtain a handle from the [`GameAuctionNoticeTableAccess::game_auction_notice`] method on [`super::RemoteTables`], -/// like `ctx.db.game_auction_notice()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_notice().on_insert(...)`. -pub struct GameAuctionNoticeTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_auction_notice`. -pub struct GameAuctionNoticeTableAccessor; - -impl __sdk::TableAccessor for GameAuctionNoticeTableAccessor { - type Row = AuctionNotice; - type Handle<'db> = GameAuctionNoticeTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_auction_notice() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_auction_notice`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuctionNoticeTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuctionNoticeTableHandle`], which mediates access to the table `game_auction_notice`. - fn game_auction_notice(&self) -> GameAuctionNoticeTableHandle<'_>; -} - -impl GameAuctionNoticeTableAccess for super::RemoteTables { - fn game_auction_notice(&self) -> GameAuctionNoticeTableHandle<'_> { - GameAuctionNoticeTableHandle { - imp: self.imp.get_table::("game_auction_notice"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuctionNoticeInsertCallbackId(__sdk::CallbackId); -pub struct GameAuctionNoticeDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuctionNoticeTableHandle<'ctx> { - type Row = AuctionNotice; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuctionNoticeTableHandle<'ctx> { - type Row = AuctionNotice; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuctionNoticeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionNoticeInsertCallbackId { - GameAuctionNoticeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionNoticeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuctionNoticeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionNoticeDeleteCallbackId { - GameAuctionNoticeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionNoticeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuctionNoticeTableHandle<'ctx> { - type InsertCallbackId = GameAuctionNoticeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionNoticeInsertCallbackId { - GameAuctionNoticeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionNoticeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuctionNoticeTableHandle<'ctx> { - type DeleteCallbackId = GameAuctionNoticeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionNoticeDeleteCallbackId { - GameAuctionNoticeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionNoticeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuctionNoticeUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuctionNoticeTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionNoticeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionNoticeUpdateCallbackId { - GameAuctionNoticeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionNoticeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuctionNoticeTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionNoticeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionNoticeUpdateCallbackId { - GameAuctionNoticeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionNoticeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_auction_notice`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionNoticeIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_notice().id().find(...)`. -pub struct GameAuctionNoticeIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionNoticeTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_auction_notice`. - pub fn id(&self) -> GameAuctionNoticeIdUnique<'ctx> { - GameAuctionNoticeIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionNoticeIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_auction_notice"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AuctionNotice`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auction_noticeQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AuctionNotice`. - fn game_auction_notice(&self) -> __sdk::__query_builder::Table; -} - -impl game_auction_noticeQueryTableAccess for __sdk::QueryTableAccessor { - fn game_auction_notice(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_auction_notice") - } -} diff --git a/gateway/src/stdb/bindings/game_auction_operation_receipt_table.rs b/gateway/src/stdb/bindings/game_auction_operation_receipt_table.rs deleted file mode 100644 index c583f0631..000000000 --- a/gateway/src/stdb/bindings/game_auction_operation_receipt_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::auction_operation_receipt_type::AuctionOperationReceipt; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_auction_operation_receipt`. -/// -/// Obtain a handle from the [`GameAuctionOperationReceiptTableAccess::game_auction_operation_receipt`] method on [`super::RemoteTables`], -/// like `ctx.db.game_auction_operation_receipt()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_operation_receipt().on_insert(...)`. -pub struct GameAuctionOperationReceiptTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_auction_operation_receipt`. -pub struct GameAuctionOperationReceiptTableAccessor; - -impl __sdk::TableAccessor for GameAuctionOperationReceiptTableAccessor { - type Row = AuctionOperationReceipt; - type Handle<'db> = GameAuctionOperationReceiptTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_auction_operation_receipt() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_auction_operation_receipt`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuctionOperationReceiptTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuctionOperationReceiptTableHandle`], which mediates access to the table `game_auction_operation_receipt`. - fn game_auction_operation_receipt(&self) -> GameAuctionOperationReceiptTableHandle<'_>; -} - -impl GameAuctionOperationReceiptTableAccess for super::RemoteTables { - fn game_auction_operation_receipt(&self) -> GameAuctionOperationReceiptTableHandle<'_> { - GameAuctionOperationReceiptTableHandle { - imp: self - .imp - .get_table::("game_auction_operation_receipt"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuctionOperationReceiptInsertCallbackId(__sdk::CallbackId); -pub struct GameAuctionOperationReceiptDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuctionOperationReceiptTableHandle<'ctx> { - type Row = AuctionOperationReceipt; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuctionOperationReceiptTableHandle<'ctx> { - type Row = AuctionOperationReceipt; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuctionOperationReceiptInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionOperationReceiptInsertCallbackId { - GameAuctionOperationReceiptInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionOperationReceiptInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuctionOperationReceiptDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionOperationReceiptDeleteCallbackId { - GameAuctionOperationReceiptDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionOperationReceiptDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuctionOperationReceiptTableHandle<'ctx> { - type InsertCallbackId = GameAuctionOperationReceiptInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionOperationReceiptInsertCallbackId { - GameAuctionOperationReceiptInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionOperationReceiptInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuctionOperationReceiptTableHandle<'ctx> { - type DeleteCallbackId = GameAuctionOperationReceiptDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionOperationReceiptDeleteCallbackId { - GameAuctionOperationReceiptDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionOperationReceiptDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuctionOperationReceiptUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuctionOperationReceiptTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionOperationReceiptUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionOperationReceiptUpdateCallbackId { - GameAuctionOperationReceiptUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionOperationReceiptUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuctionOperationReceiptTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionOperationReceiptUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionOperationReceiptUpdateCallbackId { - GameAuctionOperationReceiptUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionOperationReceiptUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `operation_id` unique index on the table `game_auction_operation_receipt`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionOperationReceiptOperationIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction_operation_receipt().operation_id().find(...)`. -pub struct GameAuctionOperationReceiptOperationIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionOperationReceiptTableHandle<'ctx> { - /// Get a handle on the `operation_id` unique index on the table `game_auction_operation_receipt`. - pub fn operation_id(&self) -> GameAuctionOperationReceiptOperationIdUnique<'ctx> { - GameAuctionOperationReceiptOperationIdUnique { - imp: self.imp.get_unique_constraint::("operation_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionOperationReceiptOperationIdUnique<'ctx> { - /// Find the subscribed row whose `operation_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_auction_operation_receipt"); - _table.add_unique_constraint::("operation_id", |row| &row.operation_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AuctionOperationReceipt`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auction_operation_receiptQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AuctionOperationReceipt`. - fn game_auction_operation_receipt( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_auction_operation_receiptQueryTableAccess for __sdk::QueryTableAccessor { - fn game_auction_operation_receipt( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_auction_operation_receipt") - } -} diff --git a/gateway/src/stdb/bindings/game_auction_table.rs b/gateway/src/stdb/bindings/game_auction_table.rs deleted file mode 100644 index f85061358..000000000 --- a/gateway/src/stdb/bindings/game_auction_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::auction_type::Auction; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_auction`. -/// -/// Obtain a handle from the [`GameAuctionTableAccess::game_auction`] method on [`super::RemoteTables`], -/// like `ctx.db.game_auction()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction().on_insert(...)`. -pub struct GameAuctionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_auction`. -pub struct GameAuctionTableAccessor; - -impl __sdk::TableAccessor for GameAuctionTableAccessor { - type Row = Auction; - type Handle<'db> = GameAuctionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_auction() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_auction`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuctionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuctionTableHandle`], which mediates access to the table `game_auction`. - fn game_auction(&self) -> GameAuctionTableHandle<'_>; -} - -impl GameAuctionTableAccess for super::RemoteTables { - fn game_auction(&self) -> GameAuctionTableHandle<'_> { - GameAuctionTableHandle { - imp: self.imp.get_table::("game_auction"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuctionInsertCallbackId(__sdk::CallbackId); -pub struct GameAuctionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuctionTableHandle<'ctx> { - type Row = Auction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuctionTableHandle<'ctx> { - type Row = Auction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuctionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionInsertCallbackId { - GameAuctionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuctionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionDeleteCallbackId { - GameAuctionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuctionTableHandle<'ctx> { - type InsertCallbackId = GameAuctionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionInsertCallbackId { - GameAuctionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuctionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuctionTableHandle<'ctx> { - type DeleteCallbackId = GameAuctionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuctionDeleteCallbackId { - GameAuctionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuctionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuctionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuctionTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionUpdateCallbackId { - GameAuctionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuctionTableHandle<'ctx> { - type UpdateCallbackId = GameAuctionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuctionUpdateCallbackId { - GameAuctionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuctionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_auction`, -/// which allows point queries on the field of the same name -/// via the [`GameAuctionIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_auction().id().find(...)`. -pub struct GameAuctionIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuctionTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_auction`. - pub fn id(&self) -> GameAuctionIdUnique<'ctx> { - GameAuctionIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuctionIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_auction"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Auction`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auctionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Auction`. - fn game_auction(&self) -> __sdk::__query_builder::Table; -} - -impl game_auctionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_auction(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_auction") - } -} diff --git a/gateway/src/stdb/bindings/game_aura_schedule_table.rs b/gateway/src/stdb/bindings/game_aura_schedule_table.rs deleted file mode 100644 index ebe522764..000000000 --- a/gateway/src/stdb/bindings/game_aura_schedule_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::aura_schedule_type::AuraSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_aura_schedule`. -/// -/// Obtain a handle from the [`GameAuraScheduleTableAccess::game_aura_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_aura_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_aura_schedule().on_insert(...)`. -pub struct GameAuraScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_aura_schedule`. -pub struct GameAuraScheduleTableAccessor; - -impl __sdk::TableAccessor for GameAuraScheduleTableAccessor { - type Row = AuraSchedule; - type Handle<'db> = GameAuraScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_aura_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_aura_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuraScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuraScheduleTableHandle`], which mediates access to the table `game_aura_schedule`. - fn game_aura_schedule(&self) -> GameAuraScheduleTableHandle<'_>; -} - -impl GameAuraScheduleTableAccess for super::RemoteTables { - fn game_aura_schedule(&self) -> GameAuraScheduleTableHandle<'_> { - GameAuraScheduleTableHandle { - imp: self.imp.get_table::("game_aura_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuraScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameAuraScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuraScheduleTableHandle<'ctx> { - type Row = AuraSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuraScheduleTableHandle<'ctx> { - type Row = AuraSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuraScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuraScheduleInsertCallbackId { - GameAuraScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuraScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuraScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuraScheduleDeleteCallbackId { - GameAuraScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuraScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuraScheduleTableHandle<'ctx> { - type InsertCallbackId = GameAuraScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuraScheduleInsertCallbackId { - GameAuraScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuraScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuraScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameAuraScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuraScheduleDeleteCallbackId { - GameAuraScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuraScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuraScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuraScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameAuraScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuraScheduleUpdateCallbackId { - GameAuraScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuraScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuraScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameAuraScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuraScheduleUpdateCallbackId { - GameAuraScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuraScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_aura_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameAuraScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_aura_schedule().scheduled_id().find(...)`. -pub struct GameAuraScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuraScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_aura_schedule`. - pub fn scheduled_id(&self) -> GameAuraScheduleScheduledIdUnique<'ctx> { - GameAuraScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuraScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_aura_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `AuraSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_aura_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `AuraSchedule`. - fn game_aura_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_aura_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_aura_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_aura_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_aura_table.rs b/gateway/src/stdb/bindings/game_aura_table.rs deleted file mode 100644 index 730581015..000000000 --- a/gateway/src/stdb/bindings/game_aura_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::aura_type::Aura; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_aura`. -/// -/// Obtain a handle from the [`GameAuraTableAccess::game_aura`] method on [`super::RemoteTables`], -/// like `ctx.db.game_aura()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_aura().on_insert(...)`. -pub struct GameAuraTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_aura`. -pub struct GameAuraTableAccessor; - -impl __sdk::TableAccessor for GameAuraTableAccessor { - type Row = Aura; - type Handle<'db> = GameAuraTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_aura() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_aura`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameAuraTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameAuraTableHandle`], which mediates access to the table `game_aura`. - fn game_aura(&self) -> GameAuraTableHandle<'_>; -} - -impl GameAuraTableAccess for super::RemoteTables { - fn game_aura(&self) -> GameAuraTableHandle<'_> { - GameAuraTableHandle { - imp: self.imp.get_table::("game_aura"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameAuraInsertCallbackId(__sdk::CallbackId); -pub struct GameAuraDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameAuraTableHandle<'ctx> { - type Row = Aura; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameAuraTableHandle<'ctx> { - type Row = Aura; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameAuraInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuraInsertCallbackId { - GameAuraInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuraInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameAuraDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuraDeleteCallbackId { - GameAuraDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuraDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameAuraTableHandle<'ctx> { - type InsertCallbackId = GameAuraInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuraInsertCallbackId { - GameAuraInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameAuraInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameAuraTableHandle<'ctx> { - type DeleteCallbackId = GameAuraDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameAuraDeleteCallbackId { - GameAuraDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameAuraDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameAuraUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameAuraTableHandle<'ctx> { - type UpdateCallbackId = GameAuraUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuraUpdateCallbackId { - GameAuraUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuraUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameAuraTableHandle<'ctx> { - type UpdateCallbackId = GameAuraUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameAuraUpdateCallbackId { - GameAuraUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameAuraUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_aura`, -/// which allows point queries on the field of the same name -/// via the [`GameAuraIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_aura().id().find(...)`. -pub struct GameAuraIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameAuraTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_aura`. - pub fn id(&self) -> GameAuraIdUnique<'ctx> { - GameAuraIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameAuraIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_aura"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Aura`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_auraQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Aura`. - fn game_aura(&self) -> __sdk::__query_builder::Table; -} - -impl game_auraQueryTableAccess for __sdk::QueryTableAccessor { - fn game_aura(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_aura") - } -} diff --git a/gateway/src/stdb/bindings/game_bot_invite_intent_table.rs b/gateway/src/stdb/bindings/game_bot_invite_intent_table.rs deleted file mode 100644 index 6c7e4ac3f..000000000 --- a/gateway/src/stdb/bindings/game_bot_invite_intent_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::bot_invite_intent_type::BotInviteIntent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_bot_invite_intent`. -/// -/// Obtain a handle from the [`GameBotInviteIntentTableAccess::game_bot_invite_intent`] method on [`super::RemoteTables`], -/// like `ctx.db.game_bot_invite_intent()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_bot_invite_intent().on_insert(...)`. -pub struct GameBotInviteIntentTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_bot_invite_intent`. -pub struct GameBotInviteIntentTableAccessor; - -impl __sdk::TableAccessor for GameBotInviteIntentTableAccessor { - type Row = BotInviteIntent; - type Handle<'db> = GameBotInviteIntentTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_bot_invite_intent() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_bot_invite_intent`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameBotInviteIntentTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameBotInviteIntentTableHandle`], which mediates access to the table `game_bot_invite_intent`. - fn game_bot_invite_intent(&self) -> GameBotInviteIntentTableHandle<'_>; -} - -impl GameBotInviteIntentTableAccess for super::RemoteTables { - fn game_bot_invite_intent(&self) -> GameBotInviteIntentTableHandle<'_> { - GameBotInviteIntentTableHandle { - imp: self - .imp - .get_table::("game_bot_invite_intent"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameBotInviteIntentInsertCallbackId(__sdk::CallbackId); -pub struct GameBotInviteIntentDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameBotInviteIntentTableHandle<'ctx> { - type Row = BotInviteIntent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameBotInviteIntentTableHandle<'ctx> { - type Row = BotInviteIntent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameBotInviteIntentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBotInviteIntentInsertCallbackId { - GameBotInviteIntentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBotInviteIntentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameBotInviteIntentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBotInviteIntentDeleteCallbackId { - GameBotInviteIntentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBotInviteIntentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameBotInviteIntentTableHandle<'ctx> { - type InsertCallbackId = GameBotInviteIntentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBotInviteIntentInsertCallbackId { - GameBotInviteIntentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBotInviteIntentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameBotInviteIntentTableHandle<'ctx> { - type DeleteCallbackId = GameBotInviteIntentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBotInviteIntentDeleteCallbackId { - GameBotInviteIntentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBotInviteIntentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameBotInviteIntentUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameBotInviteIntentTableHandle<'ctx> { - type UpdateCallbackId = GameBotInviteIntentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBotInviteIntentUpdateCallbackId { - GameBotInviteIntentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBotInviteIntentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameBotInviteIntentTableHandle<'ctx> { - type UpdateCallbackId = GameBotInviteIntentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBotInviteIntentUpdateCallbackId { - GameBotInviteIntentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBotInviteIntentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_bot_invite_intent`, -/// which allows point queries on the field of the same name -/// via the [`GameBotInviteIntentIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_bot_invite_intent().id().find(...)`. -pub struct GameBotInviteIntentIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameBotInviteIntentTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_bot_invite_intent`. - pub fn id(&self) -> GameBotInviteIntentIdUnique<'ctx> { - GameBotInviteIntentIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameBotInviteIntentIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_bot_invite_intent"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `BotInviteIntent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_bot_invite_intentQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `BotInviteIntent`. - fn game_bot_invite_intent(&self) -> __sdk::__query_builder::Table; -} - -impl game_bot_invite_intentQueryTableAccess for __sdk::QueryTableAccessor { - fn game_bot_invite_intent(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_bot_invite_intent") - } -} diff --git a/gateway/src/stdb/bindings/game_bot_transfer_intent_table.rs b/gateway/src/stdb/bindings/game_bot_transfer_intent_table.rs deleted file mode 100644 index d542ed39a..000000000 --- a/gateway/src/stdb/bindings/game_bot_transfer_intent_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::bot_transfer_intent_type::BotTransferIntent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_bot_transfer_intent`. -/// -/// Obtain a handle from the [`GameBotTransferIntentTableAccess::game_bot_transfer_intent`] method on [`super::RemoteTables`], -/// like `ctx.db.game_bot_transfer_intent()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_bot_transfer_intent().on_insert(...)`. -pub struct GameBotTransferIntentTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_bot_transfer_intent`. -pub struct GameBotTransferIntentTableAccessor; - -impl __sdk::TableAccessor for GameBotTransferIntentTableAccessor { - type Row = BotTransferIntent; - type Handle<'db> = GameBotTransferIntentTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_bot_transfer_intent() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_bot_transfer_intent`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameBotTransferIntentTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameBotTransferIntentTableHandle`], which mediates access to the table `game_bot_transfer_intent`. - fn game_bot_transfer_intent(&self) -> GameBotTransferIntentTableHandle<'_>; -} - -impl GameBotTransferIntentTableAccess for super::RemoteTables { - fn game_bot_transfer_intent(&self) -> GameBotTransferIntentTableHandle<'_> { - GameBotTransferIntentTableHandle { - imp: self - .imp - .get_table::("game_bot_transfer_intent"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameBotTransferIntentInsertCallbackId(__sdk::CallbackId); -pub struct GameBotTransferIntentDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameBotTransferIntentTableHandle<'ctx> { - type Row = BotTransferIntent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameBotTransferIntentTableHandle<'ctx> { - type Row = BotTransferIntent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameBotTransferIntentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBotTransferIntentInsertCallbackId { - GameBotTransferIntentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBotTransferIntentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameBotTransferIntentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBotTransferIntentDeleteCallbackId { - GameBotTransferIntentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBotTransferIntentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameBotTransferIntentTableHandle<'ctx> { - type InsertCallbackId = GameBotTransferIntentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBotTransferIntentInsertCallbackId { - GameBotTransferIntentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBotTransferIntentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameBotTransferIntentTableHandle<'ctx> { - type DeleteCallbackId = GameBotTransferIntentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBotTransferIntentDeleteCallbackId { - GameBotTransferIntentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBotTransferIntentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameBotTransferIntentUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameBotTransferIntentTableHandle<'ctx> { - type UpdateCallbackId = GameBotTransferIntentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBotTransferIntentUpdateCallbackId { - GameBotTransferIntentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBotTransferIntentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameBotTransferIntentTableHandle<'ctx> { - type UpdateCallbackId = GameBotTransferIntentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBotTransferIntentUpdateCallbackId { - GameBotTransferIntentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBotTransferIntentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_bot_transfer_intent`, -/// which allows point queries on the field of the same name -/// via the [`GameBotTransferIntentIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_bot_transfer_intent().id().find(...)`. -pub struct GameBotTransferIntentIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameBotTransferIntentTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_bot_transfer_intent`. - pub fn id(&self) -> GameBotTransferIntentIdUnique<'ctx> { - GameBotTransferIntentIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameBotTransferIntentIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_bot_transfer_intent"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `BotTransferIntent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_bot_transfer_intentQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `BotTransferIntent`. - fn game_bot_transfer_intent(&self) -> __sdk::__query_builder::Table; -} - -impl game_bot_transfer_intentQueryTableAccess for __sdk::QueryTableAccessor { - fn game_bot_transfer_intent(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_bot_transfer_intent") - } -} diff --git a/gateway/src/stdb/bindings/game_breath_relay_event_table.rs b/gateway/src/stdb/bindings/game_breath_relay_event_table.rs deleted file mode 100644 index 3601a7f12..000000000 --- a/gateway/src/stdb/bindings/game_breath_relay_event_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::breath_relay_event_type::BreathRelayEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_breath_relay_event`. -/// -/// Obtain a handle from the [`GameBreathRelayEventTableAccess::game_breath_relay_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_breath_relay_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_breath_relay_event().on_insert(...)`. -pub struct GameBreathRelayEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_breath_relay_event`. -pub struct GameBreathRelayEventTableAccessor; - -impl __sdk::TableAccessor for GameBreathRelayEventTableAccessor { - type Row = BreathRelayEvent; - type Handle<'db> = GameBreathRelayEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_breath_relay_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_breath_relay_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameBreathRelayEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameBreathRelayEventTableHandle`], which mediates access to the table `game_breath_relay_event`. - fn game_breath_relay_event(&self) -> GameBreathRelayEventTableHandle<'_>; -} - -impl GameBreathRelayEventTableAccess for super::RemoteTables { - fn game_breath_relay_event(&self) -> GameBreathRelayEventTableHandle<'_> { - GameBreathRelayEventTableHandle { - imp: self - .imp - .get_table::("game_breath_relay_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameBreathRelayEventInsertCallbackId(__sdk::CallbackId); -pub struct GameBreathRelayEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameBreathRelayEventTableHandle<'ctx> { - type Row = BreathRelayEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameBreathRelayEventTableHandle<'ctx> { - type Row = BreathRelayEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameBreathRelayEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathRelayEventInsertCallbackId { - GameBreathRelayEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBreathRelayEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameBreathRelayEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathRelayEventDeleteCallbackId { - GameBreathRelayEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBreathRelayEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameBreathRelayEventTableHandle<'ctx> { - type InsertCallbackId = GameBreathRelayEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathRelayEventInsertCallbackId { - GameBreathRelayEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBreathRelayEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameBreathRelayEventTableHandle<'ctx> { - type DeleteCallbackId = GameBreathRelayEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathRelayEventDeleteCallbackId { - GameBreathRelayEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBreathRelayEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameBreathRelayEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameBreathRelayEventTableHandle<'ctx> { - type UpdateCallbackId = GameBreathRelayEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBreathRelayEventUpdateCallbackId { - GameBreathRelayEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBreathRelayEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameBreathRelayEventTableHandle<'ctx> { - type UpdateCallbackId = GameBreathRelayEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBreathRelayEventUpdateCallbackId { - GameBreathRelayEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBreathRelayEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_breath_relay_event`, -/// which allows point queries on the field of the same name -/// via the [`GameBreathRelayEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_breath_relay_event().id().find(...)`. -pub struct GameBreathRelayEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameBreathRelayEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_breath_relay_event`. - pub fn id(&self) -> GameBreathRelayEventIdUnique<'ctx> { - GameBreathRelayEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameBreathRelayEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_breath_relay_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `BreathRelayEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_breath_relay_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `BreathRelayEvent`. - fn game_breath_relay_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_breath_relay_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_breath_relay_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_breath_relay_event") - } -} diff --git a/gateway/src/stdb/bindings/game_breath_schedule_table.rs b/gateway/src/stdb/bindings/game_breath_schedule_table.rs deleted file mode 100644 index 5562b73c2..000000000 --- a/gateway/src/stdb/bindings/game_breath_schedule_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::breath_schedule_type::BreathSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_breath_schedule`. -/// -/// Obtain a handle from the [`GameBreathScheduleTableAccess::game_breath_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_breath_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_breath_schedule().on_insert(...)`. -pub struct GameBreathScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_breath_schedule`. -pub struct GameBreathScheduleTableAccessor; - -impl __sdk::TableAccessor for GameBreathScheduleTableAccessor { - type Row = BreathSchedule; - type Handle<'db> = GameBreathScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_breath_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_breath_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameBreathScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameBreathScheduleTableHandle`], which mediates access to the table `game_breath_schedule`. - fn game_breath_schedule(&self) -> GameBreathScheduleTableHandle<'_>; -} - -impl GameBreathScheduleTableAccess for super::RemoteTables { - fn game_breath_schedule(&self) -> GameBreathScheduleTableHandle<'_> { - GameBreathScheduleTableHandle { - imp: self.imp.get_table::("game_breath_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameBreathScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameBreathScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameBreathScheduleTableHandle<'ctx> { - type Row = BreathSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameBreathScheduleTableHandle<'ctx> { - type Row = BreathSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameBreathScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathScheduleInsertCallbackId { - GameBreathScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBreathScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameBreathScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathScheduleDeleteCallbackId { - GameBreathScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBreathScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameBreathScheduleTableHandle<'ctx> { - type InsertCallbackId = GameBreathScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathScheduleInsertCallbackId { - GameBreathScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBreathScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameBreathScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameBreathScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathScheduleDeleteCallbackId { - GameBreathScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBreathScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameBreathScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameBreathScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameBreathScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBreathScheduleUpdateCallbackId { - GameBreathScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBreathScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameBreathScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameBreathScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBreathScheduleUpdateCallbackId { - GameBreathScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBreathScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_breath_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameBreathScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_breath_schedule().scheduled_id().find(...)`. -pub struct GameBreathScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameBreathScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_breath_schedule`. - pub fn scheduled_id(&self) -> GameBreathScheduleScheduledIdUnique<'ctx> { - GameBreathScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameBreathScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_breath_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `BreathSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_breath_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `BreathSchedule`. - fn game_breath_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_breath_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_breath_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_breath_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_breath_state_table.rs b/gateway/src/stdb/bindings/game_breath_state_table.rs deleted file mode 100644 index d0d5298ba..000000000 --- a/gateway/src/stdb/bindings/game_breath_state_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::breath_state_type::BreathState; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_breath_state`. -/// -/// Obtain a handle from the [`GameBreathStateTableAccess::game_breath_state`] method on [`super::RemoteTables`], -/// like `ctx.db.game_breath_state()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_breath_state().on_insert(...)`. -pub struct GameBreathStateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_breath_state`. -pub struct GameBreathStateTableAccessor; - -impl __sdk::TableAccessor for GameBreathStateTableAccessor { - type Row = BreathState; - type Handle<'db> = GameBreathStateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_breath_state() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_breath_state`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameBreathStateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameBreathStateTableHandle`], which mediates access to the table `game_breath_state`. - fn game_breath_state(&self) -> GameBreathStateTableHandle<'_>; -} - -impl GameBreathStateTableAccess for super::RemoteTables { - fn game_breath_state(&self) -> GameBreathStateTableHandle<'_> { - GameBreathStateTableHandle { - imp: self.imp.get_table::("game_breath_state"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameBreathStateInsertCallbackId(__sdk::CallbackId); -pub struct GameBreathStateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameBreathStateTableHandle<'ctx> { - type Row = BreathState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameBreathStateTableHandle<'ctx> { - type Row = BreathState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameBreathStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathStateInsertCallbackId { - GameBreathStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBreathStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameBreathStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathStateDeleteCallbackId { - GameBreathStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBreathStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameBreathStateTableHandle<'ctx> { - type InsertCallbackId = GameBreathStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathStateInsertCallbackId { - GameBreathStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameBreathStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameBreathStateTableHandle<'ctx> { - type DeleteCallbackId = GameBreathStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameBreathStateDeleteCallbackId { - GameBreathStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameBreathStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameBreathStateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameBreathStateTableHandle<'ctx> { - type UpdateCallbackId = GameBreathStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBreathStateUpdateCallbackId { - GameBreathStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBreathStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameBreathStateTableHandle<'ctx> { - type UpdateCallbackId = GameBreathStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameBreathStateUpdateCallbackId { - GameBreathStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameBreathStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entity_guid` unique index on the table `game_breath_state`, -/// which allows point queries on the field of the same name -/// via the [`GameBreathStateEntityGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_breath_state().entity_guid().find(...)`. -pub struct GameBreathStateEntityGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameBreathStateTableHandle<'ctx> { - /// Get a handle on the `entity_guid` unique index on the table `game_breath_state`. - pub fn entity_guid(&self) -> GameBreathStateEntityGuidUnique<'ctx> { - GameBreathStateEntityGuidUnique { - imp: self.imp.get_unique_constraint::("entity_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameBreathStateEntityGuidUnique<'ctx> { - /// Find the subscribed row whose `entity_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_breath_state"); - _table.add_unique_constraint::("entity_guid", |row| &row.entity_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `BreathState`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_breath_stateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `BreathState`. - fn game_breath_state(&self) -> __sdk::__query_builder::Table; -} - -impl game_breath_stateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_breath_state(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_breath_state") - } -} diff --git a/gateway/src/stdb/bindings/game_catalogue_fingerprint_table.rs b/gateway/src/stdb/bindings/game_catalogue_fingerprint_table.rs deleted file mode 100644 index 3bfaead60..000000000 --- a/gateway/src/stdb/bindings/game_catalogue_fingerprint_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::catalogue_fingerprint_type::CatalogueFingerprint; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_catalogue_fingerprint`. -/// -/// Obtain a handle from the [`GameCatalogueFingerprintTableAccess::game_catalogue_fingerprint`] method on [`super::RemoteTables`], -/// like `ctx.db.game_catalogue_fingerprint()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_catalogue_fingerprint().on_insert(...)`. -pub struct GameCatalogueFingerprintTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_catalogue_fingerprint`. -pub struct GameCatalogueFingerprintTableAccessor; - -impl __sdk::TableAccessor for GameCatalogueFingerprintTableAccessor { - type Row = CatalogueFingerprint; - type Handle<'db> = GameCatalogueFingerprintTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_catalogue_fingerprint() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_catalogue_fingerprint`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCatalogueFingerprintTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCatalogueFingerprintTableHandle`], which mediates access to the table `game_catalogue_fingerprint`. - fn game_catalogue_fingerprint(&self) -> GameCatalogueFingerprintTableHandle<'_>; -} - -impl GameCatalogueFingerprintTableAccess for super::RemoteTables { - fn game_catalogue_fingerprint(&self) -> GameCatalogueFingerprintTableHandle<'_> { - GameCatalogueFingerprintTableHandle { - imp: self - .imp - .get_table::("game_catalogue_fingerprint"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCatalogueFingerprintInsertCallbackId(__sdk::CallbackId); -pub struct GameCatalogueFingerprintDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCatalogueFingerprintTableHandle<'ctx> { - type Row = CatalogueFingerprint; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCatalogueFingerprintTableHandle<'ctx> { - type Row = CatalogueFingerprint; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCatalogueFingerprintInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCatalogueFingerprintInsertCallbackId { - GameCatalogueFingerprintInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCatalogueFingerprintInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCatalogueFingerprintDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCatalogueFingerprintDeleteCallbackId { - GameCatalogueFingerprintDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCatalogueFingerprintDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCatalogueFingerprintTableHandle<'ctx> { - type InsertCallbackId = GameCatalogueFingerprintInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCatalogueFingerprintInsertCallbackId { - GameCatalogueFingerprintInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCatalogueFingerprintInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCatalogueFingerprintTableHandle<'ctx> { - type DeleteCallbackId = GameCatalogueFingerprintDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCatalogueFingerprintDeleteCallbackId { - GameCatalogueFingerprintDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCatalogueFingerprintDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCatalogueFingerprintUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCatalogueFingerprintTableHandle<'ctx> { - type UpdateCallbackId = GameCatalogueFingerprintUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCatalogueFingerprintUpdateCallbackId { - GameCatalogueFingerprintUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCatalogueFingerprintUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCatalogueFingerprintTableHandle<'ctx> { - type UpdateCallbackId = GameCatalogueFingerprintUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCatalogueFingerprintUpdateCallbackId { - GameCatalogueFingerprintUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCatalogueFingerprintUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `family` unique index on the table `game_catalogue_fingerprint`, -/// which allows point queries on the field of the same name -/// via the [`GameCatalogueFingerprintFamilyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_catalogue_fingerprint().family().find(...)`. -pub struct GameCatalogueFingerprintFamilyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCatalogueFingerprintTableHandle<'ctx> { - /// Get a handle on the `family` unique index on the table `game_catalogue_fingerprint`. - pub fn family(&self) -> GameCatalogueFingerprintFamilyUnique<'ctx> { - GameCatalogueFingerprintFamilyUnique { - imp: self.imp.get_unique_constraint::("family"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCatalogueFingerprintFamilyUnique<'ctx> { - /// Find the subscribed row whose `family` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_catalogue_fingerprint"); - _table.add_unique_constraint::("family", |row| &row.family); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CatalogueFingerprint`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_catalogue_fingerprintQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CatalogueFingerprint`. - fn game_catalogue_fingerprint(&self) -> __sdk::__query_builder::Table; -} - -impl game_catalogue_fingerprintQueryTableAccess for __sdk::QueryTableAccessor { - fn game_catalogue_fingerprint(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_catalogue_fingerprint") - } -} diff --git a/gateway/src/stdb/bindings/game_channel_event_table.rs b/gateway/src/stdb/bindings/game_channel_event_table.rs deleted file mode 100644 index 41696ae78..000000000 --- a/gateway/src/stdb/bindings/game_channel_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::channel_event_type::ChannelEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_channel_event`. -/// -/// Obtain a handle from the [`GameChannelEventTableAccess::game_channel_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_channel_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_channel_event().on_insert(...)`. -pub struct GameChannelEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_channel_event`. -pub struct GameChannelEventTableAccessor; - -impl __sdk::TableAccessor for GameChannelEventTableAccessor { - type Row = ChannelEvent; - type Handle<'db> = GameChannelEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_channel_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_channel_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameChannelEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameChannelEventTableHandle`], which mediates access to the table `game_channel_event`. - fn game_channel_event(&self) -> GameChannelEventTableHandle<'_>; -} - -impl GameChannelEventTableAccess for super::RemoteTables { - fn game_channel_event(&self) -> GameChannelEventTableHandle<'_> { - GameChannelEventTableHandle { - imp: self.imp.get_table::("game_channel_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameChannelEventInsertCallbackId(__sdk::CallbackId); -pub struct GameChannelEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameChannelEventTableHandle<'ctx> { - type Row = ChannelEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameChannelEventTableHandle<'ctx> { - type Row = ChannelEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameChannelEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChannelEventInsertCallbackId { - GameChannelEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChannelEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameChannelEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChannelEventDeleteCallbackId { - GameChannelEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChannelEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameChannelEventTableHandle<'ctx> { - type InsertCallbackId = GameChannelEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChannelEventInsertCallbackId { - GameChannelEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChannelEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameChannelEventTableHandle<'ctx> { - type DeleteCallbackId = GameChannelEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChannelEventDeleteCallbackId { - GameChannelEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChannelEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameChannelEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameChannelEventTableHandle<'ctx> { - type UpdateCallbackId = GameChannelEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChannelEventUpdateCallbackId { - GameChannelEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChannelEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameChannelEventTableHandle<'ctx> { - type UpdateCallbackId = GameChannelEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChannelEventUpdateCallbackId { - GameChannelEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChannelEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_channel_event`, -/// which allows point queries on the field of the same name -/// via the [`GameChannelEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_channel_event().id().find(...)`. -pub struct GameChannelEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameChannelEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_channel_event`. - pub fn id(&self) -> GameChannelEventIdUnique<'ctx> { - GameChannelEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameChannelEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_channel_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ChannelEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_channel_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ChannelEvent`. - fn game_channel_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_channel_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_channel_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_channel_event") - } -} diff --git a/gateway/src/stdb/bindings/game_channel_member_table.rs b/gateway/src/stdb/bindings/game_channel_member_table.rs deleted file mode 100644 index 3f3b7799b..000000000 --- a/gateway/src/stdb/bindings/game_channel_member_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::channel_member_type::ChannelMember; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_channel_member`. -/// -/// Obtain a handle from the [`GameChannelMemberTableAccess::game_channel_member`] method on [`super::RemoteTables`], -/// like `ctx.db.game_channel_member()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_channel_member().on_insert(...)`. -pub struct GameChannelMemberTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_channel_member`. -pub struct GameChannelMemberTableAccessor; - -impl __sdk::TableAccessor for GameChannelMemberTableAccessor { - type Row = ChannelMember; - type Handle<'db> = GameChannelMemberTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_channel_member() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_channel_member`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameChannelMemberTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameChannelMemberTableHandle`], which mediates access to the table `game_channel_member`. - fn game_channel_member(&self) -> GameChannelMemberTableHandle<'_>; -} - -impl GameChannelMemberTableAccess for super::RemoteTables { - fn game_channel_member(&self) -> GameChannelMemberTableHandle<'_> { - GameChannelMemberTableHandle { - imp: self.imp.get_table::("game_channel_member"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameChannelMemberInsertCallbackId(__sdk::CallbackId); -pub struct GameChannelMemberDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameChannelMemberTableHandle<'ctx> { - type Row = ChannelMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameChannelMemberTableHandle<'ctx> { - type Row = ChannelMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameChannelMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChannelMemberInsertCallbackId { - GameChannelMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChannelMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameChannelMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChannelMemberDeleteCallbackId { - GameChannelMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChannelMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameChannelMemberTableHandle<'ctx> { - type InsertCallbackId = GameChannelMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChannelMemberInsertCallbackId { - GameChannelMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChannelMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameChannelMemberTableHandle<'ctx> { - type DeleteCallbackId = GameChannelMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChannelMemberDeleteCallbackId { - GameChannelMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChannelMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameChannelMemberUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameChannelMemberTableHandle<'ctx> { - type UpdateCallbackId = GameChannelMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChannelMemberUpdateCallbackId { - GameChannelMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChannelMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameChannelMemberTableHandle<'ctx> { - type UpdateCallbackId = GameChannelMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChannelMemberUpdateCallbackId { - GameChannelMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChannelMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_channel_member`, -/// which allows point queries on the field of the same name -/// via the [`GameChannelMemberIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_channel_member().id().find(...)`. -pub struct GameChannelMemberIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameChannelMemberTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_channel_member`. - pub fn id(&self) -> GameChannelMemberIdUnique<'ctx> { - GameChannelMemberIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameChannelMemberIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_channel_member"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ChannelMember`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_channel_memberQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ChannelMember`. - fn game_channel_member(&self) -> __sdk::__query_builder::Table; -} - -impl game_channel_memberQueryTableAccess for __sdk::QueryTableAccessor { - fn game_channel_member(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_channel_member") - } -} diff --git a/gateway/src/stdb/bindings/game_char_base_info_table.rs b/gateway/src/stdb/bindings/game_char_base_info_table.rs deleted file mode 100644 index 8a3c90a97..000000000 --- a/gateway/src/stdb/bindings/game_char_base_info_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::char_base_info_type::CharBaseInfo; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_char_base_info`. -/// -/// Obtain a handle from the [`GameCharBaseInfoTableAccess::game_char_base_info`] method on [`super::RemoteTables`], -/// like `ctx.db.game_char_base_info()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_char_base_info().on_insert(...)`. -pub struct GameCharBaseInfoTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_char_base_info`. -pub struct GameCharBaseInfoTableAccessor; - -impl __sdk::TableAccessor for GameCharBaseInfoTableAccessor { - type Row = CharBaseInfo; - type Handle<'db> = GameCharBaseInfoTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_char_base_info() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_char_base_info`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharBaseInfoTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharBaseInfoTableHandle`], which mediates access to the table `game_char_base_info`. - fn game_char_base_info(&self) -> GameCharBaseInfoTableHandle<'_>; -} - -impl GameCharBaseInfoTableAccess for super::RemoteTables { - fn game_char_base_info(&self) -> GameCharBaseInfoTableHandle<'_> { - GameCharBaseInfoTableHandle { - imp: self.imp.get_table::("game_char_base_info"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharBaseInfoInsertCallbackId(__sdk::CallbackId); -pub struct GameCharBaseInfoDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharBaseInfoTableHandle<'ctx> { - type Row = CharBaseInfo; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharBaseInfoTableHandle<'ctx> { - type Row = CharBaseInfo; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharBaseInfoInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharBaseInfoInsertCallbackId { - GameCharBaseInfoInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharBaseInfoInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharBaseInfoDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharBaseInfoDeleteCallbackId { - GameCharBaseInfoDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharBaseInfoDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharBaseInfoTableHandle<'ctx> { - type InsertCallbackId = GameCharBaseInfoInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharBaseInfoInsertCallbackId { - GameCharBaseInfoInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharBaseInfoInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharBaseInfoTableHandle<'ctx> { - type DeleteCallbackId = GameCharBaseInfoDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharBaseInfoDeleteCallbackId { - GameCharBaseInfoDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharBaseInfoDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharBaseInfoUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharBaseInfoTableHandle<'ctx> { - type UpdateCallbackId = GameCharBaseInfoUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharBaseInfoUpdateCallbackId { - GameCharBaseInfoUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharBaseInfoUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharBaseInfoTableHandle<'ctx> { - type UpdateCallbackId = GameCharBaseInfoUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharBaseInfoUpdateCallbackId { - GameCharBaseInfoUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharBaseInfoUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `race_class` unique index on the table `game_char_base_info`, -/// which allows point queries on the field of the same name -/// via the [`GameCharBaseInfoRaceClassUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_char_base_info().race_class().find(...)`. -pub struct GameCharBaseInfoRaceClassUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharBaseInfoTableHandle<'ctx> { - /// Get a handle on the `race_class` unique index on the table `game_char_base_info`. - pub fn race_class(&self) -> GameCharBaseInfoRaceClassUnique<'ctx> { - GameCharBaseInfoRaceClassUnique { - imp: self.imp.get_unique_constraint::("race_class"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharBaseInfoRaceClassUnique<'ctx> { - /// Find the subscribed row whose `race_class` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u16) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_char_base_info"); - _table.add_unique_constraint::("race_class", |row| &row.race_class); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CharBaseInfo`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_char_base_infoQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CharBaseInfo`. - fn game_char_base_info(&self) -> __sdk::__query_builder::Table; -} - -impl game_char_base_infoQueryTableAccess for __sdk::QueryTableAccessor { - fn game_char_base_info(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_char_base_info") - } -} diff --git a/gateway/src/stdb/bindings/game_character_away_table.rs b/gateway/src/stdb/bindings/game_character_away_table.rs deleted file mode 100644 index 450c9b9af..000000000 --- a/gateway/src/stdb/bindings/game_character_away_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::character_away_type::CharacterAway; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_away`. -/// -/// Obtain a handle from the [`GameCharacterAwayTableAccess::game_character_away`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_away()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_away().on_insert(...)`. -pub struct GameCharacterAwayTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_away`. -pub struct GameCharacterAwayTableAccessor; - -impl __sdk::TableAccessor for GameCharacterAwayTableAccessor { - type Row = CharacterAway; - type Handle<'db> = GameCharacterAwayTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_away() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_away`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterAwayTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterAwayTableHandle`], which mediates access to the table `game_character_away`. - fn game_character_away(&self) -> GameCharacterAwayTableHandle<'_>; -} - -impl GameCharacterAwayTableAccess for super::RemoteTables { - fn game_character_away(&self) -> GameCharacterAwayTableHandle<'_> { - GameCharacterAwayTableHandle { - imp: self.imp.get_table::("game_character_away"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterAwayInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterAwayDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterAwayTableHandle<'ctx> { - type Row = CharacterAway; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterAwayTableHandle<'ctx> { - type Row = CharacterAway; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterAwayInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterAwayInsertCallbackId { - GameCharacterAwayInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterAwayInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterAwayDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterAwayDeleteCallbackId { - GameCharacterAwayDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterAwayDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterAwayTableHandle<'ctx> { - type InsertCallbackId = GameCharacterAwayInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterAwayInsertCallbackId { - GameCharacterAwayInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterAwayInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterAwayTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterAwayDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterAwayDeleteCallbackId { - GameCharacterAwayDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterAwayDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterAwayUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterAwayTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterAwayUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterAwayUpdateCallbackId { - GameCharacterAwayUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterAwayUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterAwayTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterAwayUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterAwayUpdateCallbackId { - GameCharacterAwayUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterAwayUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `character_guid` unique index on the table `game_character_away`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterAwayCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_away().character_guid().find(...)`. -pub struct GameCharacterAwayCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterAwayTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_character_away`. - pub fn character_guid(&self) -> GameCharacterAwayCharacterGuidUnique<'ctx> { - GameCharacterAwayCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterAwayCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character_away"); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CharacterAway`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_awayQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CharacterAway`. - fn game_character_away(&self) -> __sdk::__query_builder::Table; -} - -impl game_character_awayQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_away(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_away") - } -} diff --git a/gateway/src/stdb/bindings/game_character_buyback_table.rs b/gateway/src/stdb/bindings/game_character_buyback_table.rs deleted file mode 100644 index 3a0978bba..000000000 --- a/gateway/src/stdb/bindings/game_character_buyback_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::buyback_entry_type::BuybackEntry; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_buyback`. -/// -/// Obtain a handle from the [`GameCharacterBuybackTableAccess::game_character_buyback`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_buyback()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_buyback().on_insert(...)`. -pub struct GameCharacterBuybackTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_buyback`. -pub struct GameCharacterBuybackTableAccessor; - -impl __sdk::TableAccessor for GameCharacterBuybackTableAccessor { - type Row = BuybackEntry; - type Handle<'db> = GameCharacterBuybackTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_buyback() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_buyback`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterBuybackTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterBuybackTableHandle`], which mediates access to the table `game_character_buyback`. - fn game_character_buyback(&self) -> GameCharacterBuybackTableHandle<'_>; -} - -impl GameCharacterBuybackTableAccess for super::RemoteTables { - fn game_character_buyback(&self) -> GameCharacterBuybackTableHandle<'_> { - GameCharacterBuybackTableHandle { - imp: self.imp.get_table::("game_character_buyback"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterBuybackInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterBuybackDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterBuybackTableHandle<'ctx> { - type Row = BuybackEntry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterBuybackTableHandle<'ctx> { - type Row = BuybackEntry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterBuybackInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterBuybackInsertCallbackId { - GameCharacterBuybackInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterBuybackInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterBuybackDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterBuybackDeleteCallbackId { - GameCharacterBuybackDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterBuybackDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterBuybackTableHandle<'ctx> { - type InsertCallbackId = GameCharacterBuybackInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterBuybackInsertCallbackId { - GameCharacterBuybackInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterBuybackInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterBuybackTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterBuybackDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterBuybackDeleteCallbackId { - GameCharacterBuybackDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterBuybackDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterBuybackUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterBuybackTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterBuybackUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterBuybackUpdateCallbackId { - GameCharacterBuybackUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterBuybackUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterBuybackTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterBuybackUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterBuybackUpdateCallbackId { - GameCharacterBuybackUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterBuybackUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_character_buyback`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterBuybackIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_buyback().id().find(...)`. -pub struct GameCharacterBuybackIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterBuybackTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_character_buyback`. - pub fn id(&self) -> GameCharacterBuybackIdUnique<'ctx> { - GameCharacterBuybackIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterBuybackIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character_buyback"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `BuybackEntry`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_buybackQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `BuybackEntry`. - fn game_character_buyback(&self) -> __sdk::__query_builder::Table; -} - -impl game_character_buybackQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_buyback(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_buyback") - } -} diff --git a/gateway/src/stdb/bindings/game_character_contact_table.rs b/gateway/src/stdb/bindings/game_character_contact_table.rs deleted file mode 100644 index 1b1dc2ed0..000000000 --- a/gateway/src/stdb/bindings/game_character_contact_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::contact_entry_type::ContactEntry; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_contact`. -/// -/// Obtain a handle from the [`GameCharacterContactTableAccess::game_character_contact`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_contact()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_contact().on_insert(...)`. -pub struct GameCharacterContactTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_contact`. -pub struct GameCharacterContactTableAccessor; - -impl __sdk::TableAccessor for GameCharacterContactTableAccessor { - type Row = ContactEntry; - type Handle<'db> = GameCharacterContactTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_contact() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_contact`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterContactTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterContactTableHandle`], which mediates access to the table `game_character_contact`. - fn game_character_contact(&self) -> GameCharacterContactTableHandle<'_>; -} - -impl GameCharacterContactTableAccess for super::RemoteTables { - fn game_character_contact(&self) -> GameCharacterContactTableHandle<'_> { - GameCharacterContactTableHandle { - imp: self.imp.get_table::("game_character_contact"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterContactInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterContactDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterContactTableHandle<'ctx> { - type Row = ContactEntry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterContactTableHandle<'ctx> { - type Row = ContactEntry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterContactInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterContactInsertCallbackId { - GameCharacterContactInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterContactInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterContactDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterContactDeleteCallbackId { - GameCharacterContactDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterContactDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterContactTableHandle<'ctx> { - type InsertCallbackId = GameCharacterContactInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterContactInsertCallbackId { - GameCharacterContactInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterContactInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterContactTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterContactDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterContactDeleteCallbackId { - GameCharacterContactDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterContactDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterContactUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterContactTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterContactUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterContactUpdateCallbackId { - GameCharacterContactUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterContactUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterContactTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterContactUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterContactUpdateCallbackId { - GameCharacterContactUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterContactUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_character_contact`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterContactIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_contact().id().find(...)`. -pub struct GameCharacterContactIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterContactTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_character_contact`. - pub fn id(&self) -> GameCharacterContactIdUnique<'ctx> { - GameCharacterContactIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterContactIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character_contact"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ContactEntry`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_contactQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ContactEntry`. - fn game_character_contact(&self) -> __sdk::__query_builder::Table; -} - -impl game_character_contactQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_contact(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_contact") - } -} diff --git a/gateway/src/stdb/bindings/game_character_explored_table.rs b/gateway/src/stdb/bindings/game_character_explored_table.rs deleted file mode 100644 index 05de651cf..000000000 --- a/gateway/src/stdb/bindings/game_character_explored_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::character_explored_type::CharacterExplored; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_explored`. -/// -/// Obtain a handle from the [`GameCharacterExploredTableAccess::game_character_explored`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_explored()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_explored().on_insert(...)`. -pub struct GameCharacterExploredTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_explored`. -pub struct GameCharacterExploredTableAccessor; - -impl __sdk::TableAccessor for GameCharacterExploredTableAccessor { - type Row = CharacterExplored; - type Handle<'db> = GameCharacterExploredTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_explored() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_explored`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterExploredTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterExploredTableHandle`], which mediates access to the table `game_character_explored`. - fn game_character_explored(&self) -> GameCharacterExploredTableHandle<'_>; -} - -impl GameCharacterExploredTableAccess for super::RemoteTables { - fn game_character_explored(&self) -> GameCharacterExploredTableHandle<'_> { - GameCharacterExploredTableHandle { - imp: self - .imp - .get_table::("game_character_explored"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterExploredInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterExploredDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterExploredTableHandle<'ctx> { - type Row = CharacterExplored; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterExploredTableHandle<'ctx> { - type Row = CharacterExplored; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterExploredInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterExploredInsertCallbackId { - GameCharacterExploredInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterExploredInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterExploredDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterExploredDeleteCallbackId { - GameCharacterExploredDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterExploredDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterExploredTableHandle<'ctx> { - type InsertCallbackId = GameCharacterExploredInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterExploredInsertCallbackId { - GameCharacterExploredInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterExploredInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterExploredTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterExploredDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterExploredDeleteCallbackId { - GameCharacterExploredDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterExploredDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterExploredUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterExploredTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterExploredUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterExploredUpdateCallbackId { - GameCharacterExploredUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterExploredUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterExploredTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterExploredUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterExploredUpdateCallbackId { - GameCharacterExploredUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterExploredUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_character_explored`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterExploredIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_explored().id().find(...)`. -pub struct GameCharacterExploredIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterExploredTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_character_explored`. - pub fn id(&self) -> GameCharacterExploredIdUnique<'ctx> { - GameCharacterExploredIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterExploredIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character_explored"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CharacterExplored`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_exploredQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CharacterExplored`. - fn game_character_explored(&self) -> __sdk::__query_builder::Table; -} - -impl game_character_exploredQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_explored(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_explored") - } -} diff --git a/gateway/src/stdb/bindings/game_character_quest_event_credit_table.rs b/gateway/src/stdb/bindings/game_character_quest_event_credit_table.rs deleted file mode 100644 index cd821482d..000000000 --- a/gateway/src/stdb/bindings/game_character_quest_event_credit_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::character_quest_event_credit_type::CharacterQuestEventCredit; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_quest_event_credit`. -/// -/// Obtain a handle from the [`GameCharacterQuestEventCreditTableAccess::game_character_quest_event_credit`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_quest_event_credit()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_quest_event_credit().on_insert(...)`. -pub struct GameCharacterQuestEventCreditTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_quest_event_credit`. -pub struct GameCharacterQuestEventCreditTableAccessor; - -impl __sdk::TableAccessor for GameCharacterQuestEventCreditTableAccessor { - type Row = CharacterQuestEventCredit; - type Handle<'db> = GameCharacterQuestEventCreditTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_quest_event_credit() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_quest_event_credit`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterQuestEventCreditTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterQuestEventCreditTableHandle`], which mediates access to the table `game_character_quest_event_credit`. - fn game_character_quest_event_credit(&self) -> GameCharacterQuestEventCreditTableHandle<'_>; -} - -impl GameCharacterQuestEventCreditTableAccess for super::RemoteTables { - fn game_character_quest_event_credit(&self) -> GameCharacterQuestEventCreditTableHandle<'_> { - GameCharacterQuestEventCreditTableHandle { - imp: self - .imp - .get_table::("game_character_quest_event_credit"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterQuestEventCreditInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterQuestEventCreditDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterQuestEventCreditTableHandle<'ctx> { - type Row = CharacterQuestEventCredit; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterQuestEventCreditTableHandle<'ctx> { - type Row = CharacterQuestEventCredit; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterQuestEventCreditInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestEventCreditInsertCallbackId { - GameCharacterQuestEventCreditInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterQuestEventCreditInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterQuestEventCreditDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestEventCreditDeleteCallbackId { - GameCharacterQuestEventCreditDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterQuestEventCreditDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterQuestEventCreditTableHandle<'ctx> { - type InsertCallbackId = GameCharacterQuestEventCreditInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestEventCreditInsertCallbackId { - GameCharacterQuestEventCreditInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterQuestEventCreditInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterQuestEventCreditTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterQuestEventCreditDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestEventCreditDeleteCallbackId { - GameCharacterQuestEventCreditDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterQuestEventCreditDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterQuestEventCreditUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterQuestEventCreditTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterQuestEventCreditUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestEventCreditUpdateCallbackId { - GameCharacterQuestEventCreditUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterQuestEventCreditUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterQuestEventCreditTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterQuestEventCreditUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestEventCreditUpdateCallbackId { - GameCharacterQuestEventCreditUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterQuestEventCreditUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_character_quest_event_credit`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterQuestEventCreditIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_quest_event_credit().id().find(...)`. -pub struct GameCharacterQuestEventCreditIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterQuestEventCreditTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_character_quest_event_credit`. - pub fn id(&self) -> GameCharacterQuestEventCreditIdUnique<'ctx> { - GameCharacterQuestEventCreditIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterQuestEventCreditIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_character_quest_event_credit"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CharacterQuestEventCredit`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_quest_event_creditQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CharacterQuestEventCredit`. - fn game_character_quest_event_credit( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_character_quest_event_creditQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_quest_event_credit( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_quest_event_credit") - } -} diff --git a/gateway/src/stdb/bindings/game_character_quest_table.rs b/gateway/src/stdb/bindings/game_character_quest_table.rs deleted file mode 100644 index 93e78e9ce..000000000 --- a/gateway/src/stdb/bindings/game_character_quest_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::character_quest_type::CharacterQuest; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_quest`. -/// -/// Obtain a handle from the [`GameCharacterQuestTableAccess::game_character_quest`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_quest()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_quest().on_insert(...)`. -pub struct GameCharacterQuestTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_quest`. -pub struct GameCharacterQuestTableAccessor; - -impl __sdk::TableAccessor for GameCharacterQuestTableAccessor { - type Row = CharacterQuest; - type Handle<'db> = GameCharacterQuestTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_quest() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_quest`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterQuestTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterQuestTableHandle`], which mediates access to the table `game_character_quest`. - fn game_character_quest(&self) -> GameCharacterQuestTableHandle<'_>; -} - -impl GameCharacterQuestTableAccess for super::RemoteTables { - fn game_character_quest(&self) -> GameCharacterQuestTableHandle<'_> { - GameCharacterQuestTableHandle { - imp: self.imp.get_table::("game_character_quest"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterQuestInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterQuestDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterQuestTableHandle<'ctx> { - type Row = CharacterQuest; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterQuestTableHandle<'ctx> { - type Row = CharacterQuest; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterQuestInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestInsertCallbackId { - GameCharacterQuestInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterQuestInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterQuestDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestDeleteCallbackId { - GameCharacterQuestDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterQuestDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterQuestTableHandle<'ctx> { - type InsertCallbackId = GameCharacterQuestInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestInsertCallbackId { - GameCharacterQuestInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterQuestInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterQuestTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterQuestDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestDeleteCallbackId { - GameCharacterQuestDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterQuestDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterQuestUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterQuestTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterQuestUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestUpdateCallbackId { - GameCharacterQuestUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterQuestUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterQuestTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterQuestUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterQuestUpdateCallbackId { - GameCharacterQuestUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterQuestUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_character_quest`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterQuestIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_quest().id().find(...)`. -pub struct GameCharacterQuestIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterQuestTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_character_quest`. - pub fn id(&self) -> GameCharacterQuestIdUnique<'ctx> { - GameCharacterQuestIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterQuestIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character_quest"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CharacterQuest`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_questQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CharacterQuest`. - fn game_character_quest(&self) -> __sdk::__query_builder::Table; -} - -impl game_character_questQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_quest(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_quest") - } -} diff --git a/gateway/src/stdb/bindings/game_character_shard_table.rs b/gateway/src/stdb/bindings/game_character_shard_table.rs deleted file mode 100644 index f6dc030ca..000000000 --- a/gateway/src/stdb/bindings/game_character_shard_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::character_shard_type::CharacterShard; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_shard`. -/// -/// Obtain a handle from the [`GameCharacterShardTableAccess::game_character_shard`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_shard()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_shard().on_insert(...)`. -pub struct GameCharacterShardTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_shard`. -pub struct GameCharacterShardTableAccessor; - -impl __sdk::TableAccessor for GameCharacterShardTableAccessor { - type Row = CharacterShard; - type Handle<'db> = GameCharacterShardTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_shard() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_shard`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterShardTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterShardTableHandle`], which mediates access to the table `game_character_shard`. - fn game_character_shard(&self) -> GameCharacterShardTableHandle<'_>; -} - -impl GameCharacterShardTableAccess for super::RemoteTables { - fn game_character_shard(&self) -> GameCharacterShardTableHandle<'_> { - GameCharacterShardTableHandle { - imp: self.imp.get_table::("game_character_shard"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterShardInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterShardDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterShardTableHandle<'ctx> { - type Row = CharacterShard; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterShardTableHandle<'ctx> { - type Row = CharacterShard; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterShardInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterShardInsertCallbackId { - GameCharacterShardInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterShardInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterShardDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterShardDeleteCallbackId { - GameCharacterShardDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterShardDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterShardTableHandle<'ctx> { - type InsertCallbackId = GameCharacterShardInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterShardInsertCallbackId { - GameCharacterShardInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterShardInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterShardTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterShardDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterShardDeleteCallbackId { - GameCharacterShardDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterShardDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterShardUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterShardTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterShardUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterShardUpdateCallbackId { - GameCharacterShardUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterShardUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterShardTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterShardUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterShardUpdateCallbackId { - GameCharacterShardUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterShardUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `character_guid` unique index on the table `game_character_shard`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterShardCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_shard().character_guid().find(...)`. -pub struct GameCharacterShardCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterShardTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_character_shard`. - pub fn character_guid(&self) -> GameCharacterShardCharacterGuidUnique<'ctx> { - GameCharacterShardCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterShardCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character_shard"); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CharacterShard`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_shardQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CharacterShard`. - fn game_character_shard(&self) -> __sdk::__query_builder::Table; -} - -impl game_character_shardQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_shard(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_shard") - } -} diff --git a/gateway/src/stdb/bindings/game_character_table.rs b/gateway/src/stdb/bindings/game_character_table.rs deleted file mode 100644 index 002c2a917..000000000 --- a/gateway/src/stdb/bindings/game_character_table.rs +++ /dev/null @@ -1,259 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::character_type::Character; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character`. -/// -/// Obtain a handle from the [`GameCharacterTableAccess::game_character`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character().on_insert(...)`. -pub struct GameCharacterTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character`. -pub struct GameCharacterTableAccessor; - -impl __sdk::TableAccessor for GameCharacterTableAccessor { - type Row = Character; - type Handle<'db> = GameCharacterTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterTableHandle`], which mediates access to the table `game_character`. - fn game_character(&self) -> GameCharacterTableHandle<'_>; -} - -impl GameCharacterTableAccess for super::RemoteTables { - fn game_character(&self) -> GameCharacterTableHandle<'_> { - GameCharacterTableHandle { - imp: self.imp.get_table::("game_character"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterTableHandle<'ctx> { - type Row = Character; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterTableHandle<'ctx> { - type Row = Character; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterInsertCallbackId { - GameCharacterInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterDeleteCallbackId { - GameCharacterDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterTableHandle<'ctx> { - type InsertCallbackId = GameCharacterInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterInsertCallbackId { - GameCharacterInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterDeleteCallbackId { - GameCharacterDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterUpdateCallbackId { - GameCharacterUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterUpdateCallbackId { - GameCharacterUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_character`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character().guid().find(...)`. -pub struct GameCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_character`. - pub fn guid(&self) -> GameCharacterGuidUnique<'ctx> { - GameCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `name` unique index on the table `game_character`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterNameUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character().name().find(...)`. -pub struct GameCharacterNameUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterTableHandle<'ctx> { - /// Get a handle on the `name` unique index on the table `game_character`. - pub fn name(&self) -> GameCharacterNameUnique<'ctx> { - GameCharacterNameUnique { - imp: self.imp.get_unique_constraint::("name"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterNameUnique<'ctx> { - /// Find the subscribed row whose `name` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character"); - _table.add_unique_constraint::("guid", |row| &row.guid); - _table.add_unique_constraint::("name", |row| &row.name); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Character`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_characterQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Character`. - fn game_character(&self) -> __sdk::__query_builder::Table; -} - -impl game_characterQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character") - } -} diff --git a/gateway/src/stdb/bindings/game_character_talent_table.rs b/gateway/src/stdb/bindings/game_character_talent_table.rs deleted file mode 100644 index b266bcc30..000000000 --- a/gateway/src/stdb/bindings/game_character_talent_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::character_talent_type::CharacterTalent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_talent`. -/// -/// Obtain a handle from the [`GameCharacterTalentTableAccess::game_character_talent`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_talent()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_talent().on_insert(...)`. -pub struct GameCharacterTalentTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_talent`. -pub struct GameCharacterTalentTableAccessor; - -impl __sdk::TableAccessor for GameCharacterTalentTableAccessor { - type Row = CharacterTalent; - type Handle<'db> = GameCharacterTalentTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_talent() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_talent`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterTalentTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterTalentTableHandle`], which mediates access to the table `game_character_talent`. - fn game_character_talent(&self) -> GameCharacterTalentTableHandle<'_>; -} - -impl GameCharacterTalentTableAccess for super::RemoteTables { - fn game_character_talent(&self) -> GameCharacterTalentTableHandle<'_> { - GameCharacterTalentTableHandle { - imp: self - .imp - .get_table::("game_character_talent"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterTalentInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterTalentDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterTalentTableHandle<'ctx> { - type Row = CharacterTalent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterTalentTableHandle<'ctx> { - type Row = CharacterTalent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterTalentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterTalentInsertCallbackId { - GameCharacterTalentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterTalentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterTalentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterTalentDeleteCallbackId { - GameCharacterTalentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterTalentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterTalentTableHandle<'ctx> { - type InsertCallbackId = GameCharacterTalentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterTalentInsertCallbackId { - GameCharacterTalentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterTalentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterTalentTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterTalentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterTalentDeleteCallbackId { - GameCharacterTalentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterTalentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterTalentUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterTalentTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterTalentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterTalentUpdateCallbackId { - GameCharacterTalentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterTalentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterTalentTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterTalentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterTalentUpdateCallbackId { - GameCharacterTalentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterTalentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_character_talent`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterTalentIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_talent().id().find(...)`. -pub struct GameCharacterTalentIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterTalentTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_character_talent`. - pub fn id(&self) -> GameCharacterTalentIdUnique<'ctx> { - GameCharacterTalentIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterTalentIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character_talent"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CharacterTalent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_talentQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CharacterTalent`. - fn game_character_talent(&self) -> __sdk::__query_builder::Table; -} - -impl game_character_talentQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_talent(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_talent") - } -} diff --git a/gateway/src/stdb/bindings/game_character_taxi_node_table.rs b/gateway/src/stdb/bindings/game_character_taxi_node_table.rs deleted file mode 100644 index 870d62322..000000000 --- a/gateway/src/stdb/bindings/game_character_taxi_node_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::character_taxi_node_type::CharacterTaxiNode; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_character_taxi_node`. -/// -/// Obtain a handle from the [`GameCharacterTaxiNodeTableAccess::game_character_taxi_node`] method on [`super::RemoteTables`], -/// like `ctx.db.game_character_taxi_node()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_taxi_node().on_insert(...)`. -pub struct GameCharacterTaxiNodeTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_character_taxi_node`. -pub struct GameCharacterTaxiNodeTableAccessor; - -impl __sdk::TableAccessor for GameCharacterTaxiNodeTableAccessor { - type Row = CharacterTaxiNode; - type Handle<'db> = GameCharacterTaxiNodeTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_character_taxi_node() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_character_taxi_node`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCharacterTaxiNodeTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCharacterTaxiNodeTableHandle`], which mediates access to the table `game_character_taxi_node`. - fn game_character_taxi_node(&self) -> GameCharacterTaxiNodeTableHandle<'_>; -} - -impl GameCharacterTaxiNodeTableAccess for super::RemoteTables { - fn game_character_taxi_node(&self) -> GameCharacterTaxiNodeTableHandle<'_> { - GameCharacterTaxiNodeTableHandle { - imp: self - .imp - .get_table::("game_character_taxi_node"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCharacterTaxiNodeInsertCallbackId(__sdk::CallbackId); -pub struct GameCharacterTaxiNodeDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCharacterTaxiNodeTableHandle<'ctx> { - type Row = CharacterTaxiNode; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCharacterTaxiNodeTableHandle<'ctx> { - type Row = CharacterTaxiNode; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCharacterTaxiNodeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterTaxiNodeInsertCallbackId { - GameCharacterTaxiNodeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterTaxiNodeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCharacterTaxiNodeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterTaxiNodeDeleteCallbackId { - GameCharacterTaxiNodeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterTaxiNodeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCharacterTaxiNodeTableHandle<'ctx> { - type InsertCallbackId = GameCharacterTaxiNodeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterTaxiNodeInsertCallbackId { - GameCharacterTaxiNodeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCharacterTaxiNodeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCharacterTaxiNodeTableHandle<'ctx> { - type DeleteCallbackId = GameCharacterTaxiNodeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCharacterTaxiNodeDeleteCallbackId { - GameCharacterTaxiNodeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCharacterTaxiNodeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCharacterTaxiNodeUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCharacterTaxiNodeTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterTaxiNodeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterTaxiNodeUpdateCallbackId { - GameCharacterTaxiNodeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterTaxiNodeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCharacterTaxiNodeTableHandle<'ctx> { - type UpdateCallbackId = GameCharacterTaxiNodeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCharacterTaxiNodeUpdateCallbackId { - GameCharacterTaxiNodeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCharacterTaxiNodeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_character_taxi_node`, -/// which allows point queries on the field of the same name -/// via the [`GameCharacterTaxiNodeIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_character_taxi_node().id().find(...)`. -pub struct GameCharacterTaxiNodeIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCharacterTaxiNodeTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_character_taxi_node`. - pub fn id(&self) -> GameCharacterTaxiNodeIdUnique<'ctx> { - GameCharacterTaxiNodeIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCharacterTaxiNodeIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_character_taxi_node"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CharacterTaxiNode`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_character_taxi_nodeQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CharacterTaxiNode`. - fn game_character_taxi_node(&self) -> __sdk::__query_builder::Table; -} - -impl game_character_taxi_nodeQueryTableAccess for __sdk::QueryTableAccessor { - fn game_character_taxi_node(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_character_taxi_node") - } -} diff --git a/gateway/src/stdb/bindings/game_chat_channel_ban_table.rs b/gateway/src/stdb/bindings/game_chat_channel_ban_table.rs deleted file mode 100644 index 46e562175..000000000 --- a/gateway/src/stdb/bindings/game_chat_channel_ban_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::chat_channel_ban_type::ChatChannelBan; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_chat_channel_ban`. -/// -/// Obtain a handle from the [`GameChatChannelBanTableAccess::game_chat_channel_ban`] method on [`super::RemoteTables`], -/// like `ctx.db.game_chat_channel_ban()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_channel_ban().on_insert(...)`. -pub struct GameChatChannelBanTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_chat_channel_ban`. -pub struct GameChatChannelBanTableAccessor; - -impl __sdk::TableAccessor for GameChatChannelBanTableAccessor { - type Row = ChatChannelBan; - type Handle<'db> = GameChatChannelBanTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_chat_channel_ban() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_chat_channel_ban`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameChatChannelBanTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameChatChannelBanTableHandle`], which mediates access to the table `game_chat_channel_ban`. - fn game_chat_channel_ban(&self) -> GameChatChannelBanTableHandle<'_>; -} - -impl GameChatChannelBanTableAccess for super::RemoteTables { - fn game_chat_channel_ban(&self) -> GameChatChannelBanTableHandle<'_> { - GameChatChannelBanTableHandle { - imp: self - .imp - .get_table::("game_chat_channel_ban"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameChatChannelBanInsertCallbackId(__sdk::CallbackId); -pub struct GameChatChannelBanDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameChatChannelBanTableHandle<'ctx> { - type Row = ChatChannelBan; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameChatChannelBanTableHandle<'ctx> { - type Row = ChatChannelBan; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameChatChannelBanInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelBanInsertCallbackId { - GameChatChannelBanInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatChannelBanInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameChatChannelBanDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelBanDeleteCallbackId { - GameChatChannelBanDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatChannelBanDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameChatChannelBanTableHandle<'ctx> { - type InsertCallbackId = GameChatChannelBanInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelBanInsertCallbackId { - GameChatChannelBanInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatChannelBanInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameChatChannelBanTableHandle<'ctx> { - type DeleteCallbackId = GameChatChannelBanDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelBanDeleteCallbackId { - GameChatChannelBanDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatChannelBanDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameChatChannelBanUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameChatChannelBanTableHandle<'ctx> { - type UpdateCallbackId = GameChatChannelBanUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatChannelBanUpdateCallbackId { - GameChatChannelBanUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatChannelBanUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameChatChannelBanTableHandle<'ctx> { - type UpdateCallbackId = GameChatChannelBanUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatChannelBanUpdateCallbackId { - GameChatChannelBanUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatChannelBanUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_chat_channel_ban`, -/// which allows point queries on the field of the same name -/// via the [`GameChatChannelBanIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_channel_ban().id().find(...)`. -pub struct GameChatChannelBanIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameChatChannelBanTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_chat_channel_ban`. - pub fn id(&self) -> GameChatChannelBanIdUnique<'ctx> { - GameChatChannelBanIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameChatChannelBanIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_chat_channel_ban"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ChatChannelBan`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_chat_channel_banQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ChatChannelBan`. - fn game_chat_channel_ban(&self) -> __sdk::__query_builder::Table; -} - -impl game_chat_channel_banQueryTableAccess for __sdk::QueryTableAccessor { - fn game_chat_channel_ban(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_chat_channel_ban") - } -} diff --git a/gateway/src/stdb/bindings/game_chat_channel_member_table.rs b/gateway/src/stdb/bindings/game_chat_channel_member_table.rs deleted file mode 100644 index 933083587..000000000 --- a/gateway/src/stdb/bindings/game_chat_channel_member_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::chat_channel_member_type::ChatChannelMember; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_chat_channel_member`. -/// -/// Obtain a handle from the [`GameChatChannelMemberTableAccess::game_chat_channel_member`] method on [`super::RemoteTables`], -/// like `ctx.db.game_chat_channel_member()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_channel_member().on_insert(...)`. -pub struct GameChatChannelMemberTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_chat_channel_member`. -pub struct GameChatChannelMemberTableAccessor; - -impl __sdk::TableAccessor for GameChatChannelMemberTableAccessor { - type Row = ChatChannelMember; - type Handle<'db> = GameChatChannelMemberTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_chat_channel_member() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_chat_channel_member`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameChatChannelMemberTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameChatChannelMemberTableHandle`], which mediates access to the table `game_chat_channel_member`. - fn game_chat_channel_member(&self) -> GameChatChannelMemberTableHandle<'_>; -} - -impl GameChatChannelMemberTableAccess for super::RemoteTables { - fn game_chat_channel_member(&self) -> GameChatChannelMemberTableHandle<'_> { - GameChatChannelMemberTableHandle { - imp: self - .imp - .get_table::("game_chat_channel_member"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameChatChannelMemberInsertCallbackId(__sdk::CallbackId); -pub struct GameChatChannelMemberDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameChatChannelMemberTableHandle<'ctx> { - type Row = ChatChannelMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameChatChannelMemberTableHandle<'ctx> { - type Row = ChatChannelMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameChatChannelMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelMemberInsertCallbackId { - GameChatChannelMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatChannelMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameChatChannelMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelMemberDeleteCallbackId { - GameChatChannelMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatChannelMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameChatChannelMemberTableHandle<'ctx> { - type InsertCallbackId = GameChatChannelMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelMemberInsertCallbackId { - GameChatChannelMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatChannelMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameChatChannelMemberTableHandle<'ctx> { - type DeleteCallbackId = GameChatChannelMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelMemberDeleteCallbackId { - GameChatChannelMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatChannelMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameChatChannelMemberUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameChatChannelMemberTableHandle<'ctx> { - type UpdateCallbackId = GameChatChannelMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatChannelMemberUpdateCallbackId { - GameChatChannelMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatChannelMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameChatChannelMemberTableHandle<'ctx> { - type UpdateCallbackId = GameChatChannelMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatChannelMemberUpdateCallbackId { - GameChatChannelMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatChannelMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_chat_channel_member`, -/// which allows point queries on the field of the same name -/// via the [`GameChatChannelMemberIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_channel_member().id().find(...)`. -pub struct GameChatChannelMemberIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameChatChannelMemberTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_chat_channel_member`. - pub fn id(&self) -> GameChatChannelMemberIdUnique<'ctx> { - GameChatChannelMemberIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameChatChannelMemberIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_chat_channel_member"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ChatChannelMember`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_chat_channel_memberQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ChatChannelMember`. - fn game_chat_channel_member(&self) -> __sdk::__query_builder::Table; -} - -impl game_chat_channel_memberQueryTableAccess for __sdk::QueryTableAccessor { - fn game_chat_channel_member(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_chat_channel_member") - } -} diff --git a/gateway/src/stdb/bindings/game_chat_channel_notice_event_table.rs b/gateway/src/stdb/bindings/game_chat_channel_notice_event_table.rs deleted file mode 100644 index 7a2f0dffe..000000000 --- a/gateway/src/stdb/bindings/game_chat_channel_notice_event_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::chat_channel_notice_event_type::ChatChannelNoticeEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_chat_channel_notice_event`. -/// -/// Obtain a handle from the [`GameChatChannelNoticeEventTableAccess::game_chat_channel_notice_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_chat_channel_notice_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_channel_notice_event().on_insert(...)`. -pub struct GameChatChannelNoticeEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_chat_channel_notice_event`. -pub struct GameChatChannelNoticeEventTableAccessor; - -impl __sdk::TableAccessor for GameChatChannelNoticeEventTableAccessor { - type Row = ChatChannelNoticeEvent; - type Handle<'db> = GameChatChannelNoticeEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_chat_channel_notice_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_chat_channel_notice_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameChatChannelNoticeEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameChatChannelNoticeEventTableHandle`], which mediates access to the table `game_chat_channel_notice_event`. - fn game_chat_channel_notice_event(&self) -> GameChatChannelNoticeEventTableHandle<'_>; -} - -impl GameChatChannelNoticeEventTableAccess for super::RemoteTables { - fn game_chat_channel_notice_event(&self) -> GameChatChannelNoticeEventTableHandle<'_> { - GameChatChannelNoticeEventTableHandle { - imp: self - .imp - .get_table::("game_chat_channel_notice_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameChatChannelNoticeEventInsertCallbackId(__sdk::CallbackId); -pub struct GameChatChannelNoticeEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameChatChannelNoticeEventTableHandle<'ctx> { - type Row = ChatChannelNoticeEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameChatChannelNoticeEventTableHandle<'ctx> { - type Row = ChatChannelNoticeEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameChatChannelNoticeEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelNoticeEventInsertCallbackId { - GameChatChannelNoticeEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatChannelNoticeEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameChatChannelNoticeEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelNoticeEventDeleteCallbackId { - GameChatChannelNoticeEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatChannelNoticeEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameChatChannelNoticeEventTableHandle<'ctx> { - type InsertCallbackId = GameChatChannelNoticeEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelNoticeEventInsertCallbackId { - GameChatChannelNoticeEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatChannelNoticeEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameChatChannelNoticeEventTableHandle<'ctx> { - type DeleteCallbackId = GameChatChannelNoticeEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelNoticeEventDeleteCallbackId { - GameChatChannelNoticeEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatChannelNoticeEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameChatChannelNoticeEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameChatChannelNoticeEventTableHandle<'ctx> { - type UpdateCallbackId = GameChatChannelNoticeEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatChannelNoticeEventUpdateCallbackId { - GameChatChannelNoticeEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatChannelNoticeEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameChatChannelNoticeEventTableHandle<'ctx> { - type UpdateCallbackId = GameChatChannelNoticeEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatChannelNoticeEventUpdateCallbackId { - GameChatChannelNoticeEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatChannelNoticeEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_chat_channel_notice_event`, -/// which allows point queries on the field of the same name -/// via the [`GameChatChannelNoticeEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_channel_notice_event().id().find(...)`. -pub struct GameChatChannelNoticeEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameChatChannelNoticeEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_chat_channel_notice_event`. - pub fn id(&self) -> GameChatChannelNoticeEventIdUnique<'ctx> { - GameChatChannelNoticeEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameChatChannelNoticeEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_chat_channel_notice_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ChatChannelNoticeEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_chat_channel_notice_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ChatChannelNoticeEvent`. - fn game_chat_channel_notice_event( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_chat_channel_notice_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_chat_channel_notice_event( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_chat_channel_notice_event") - } -} diff --git a/gateway/src/stdb/bindings/game_chat_channel_table.rs b/gateway/src/stdb/bindings/game_chat_channel_table.rs deleted file mode 100644 index 6bee10665..000000000 --- a/gateway/src/stdb/bindings/game_chat_channel_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::chat_channel_type::ChatChannel; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_chat_channel`. -/// -/// Obtain a handle from the [`GameChatChannelTableAccess::game_chat_channel`] method on [`super::RemoteTables`], -/// like `ctx.db.game_chat_channel()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_channel().on_insert(...)`. -pub struct GameChatChannelTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_chat_channel`. -pub struct GameChatChannelTableAccessor; - -impl __sdk::TableAccessor for GameChatChannelTableAccessor { - type Row = ChatChannel; - type Handle<'db> = GameChatChannelTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_chat_channel() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_chat_channel`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameChatChannelTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameChatChannelTableHandle`], which mediates access to the table `game_chat_channel`. - fn game_chat_channel(&self) -> GameChatChannelTableHandle<'_>; -} - -impl GameChatChannelTableAccess for super::RemoteTables { - fn game_chat_channel(&self) -> GameChatChannelTableHandle<'_> { - GameChatChannelTableHandle { - imp: self.imp.get_table::("game_chat_channel"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameChatChannelInsertCallbackId(__sdk::CallbackId); -pub struct GameChatChannelDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameChatChannelTableHandle<'ctx> { - type Row = ChatChannel; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameChatChannelTableHandle<'ctx> { - type Row = ChatChannel; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameChatChannelInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelInsertCallbackId { - GameChatChannelInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatChannelInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameChatChannelDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelDeleteCallbackId { - GameChatChannelDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatChannelDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameChatChannelTableHandle<'ctx> { - type InsertCallbackId = GameChatChannelInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelInsertCallbackId { - GameChatChannelInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatChannelInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameChatChannelTableHandle<'ctx> { - type DeleteCallbackId = GameChatChannelDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatChannelDeleteCallbackId { - GameChatChannelDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatChannelDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameChatChannelUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameChatChannelTableHandle<'ctx> { - type UpdateCallbackId = GameChatChannelUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatChannelUpdateCallbackId { - GameChatChannelUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatChannelUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameChatChannelTableHandle<'ctx> { - type UpdateCallbackId = GameChatChannelUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatChannelUpdateCallbackId { - GameChatChannelUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatChannelUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `channel_id` unique index on the table `game_chat_channel`, -/// which allows point queries on the field of the same name -/// via the [`GameChatChannelChannelIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_channel().channel_id().find(...)`. -pub struct GameChatChannelChannelIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameChatChannelTableHandle<'ctx> { - /// Get a handle on the `channel_id` unique index on the table `game_chat_channel`. - pub fn channel_id(&self) -> GameChatChannelChannelIdUnique<'ctx> { - GameChatChannelChannelIdUnique { - imp: self.imp.get_unique_constraint::("channel_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameChatChannelChannelIdUnique<'ctx> { - /// Find the subscribed row whose `channel_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_chat_channel"); - _table.add_unique_constraint::("channel_id", |row| &row.channel_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ChatChannel`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_chat_channelQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ChatChannel`. - fn game_chat_channel(&self) -> __sdk::__query_builder::Table; -} - -impl game_chat_channelQueryTableAccess for __sdk::QueryTableAccessor { - fn game_chat_channel(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_chat_channel") - } -} diff --git a/gateway/src/stdb/bindings/game_chat_event_table.rs b/gateway/src/stdb/bindings/game_chat_event_table.rs deleted file mode 100644 index 5bb5e396c..000000000 --- a/gateway/src/stdb/bindings/game_chat_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::chat_event_type::ChatEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_chat_event`. -/// -/// Obtain a handle from the [`GameChatEventTableAccess::game_chat_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_chat_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_event().on_insert(...)`. -pub struct GameChatEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_chat_event`. -pub struct GameChatEventTableAccessor; - -impl __sdk::TableAccessor for GameChatEventTableAccessor { - type Row = ChatEvent; - type Handle<'db> = GameChatEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_chat_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_chat_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameChatEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameChatEventTableHandle`], which mediates access to the table `game_chat_event`. - fn game_chat_event(&self) -> GameChatEventTableHandle<'_>; -} - -impl GameChatEventTableAccess for super::RemoteTables { - fn game_chat_event(&self) -> GameChatEventTableHandle<'_> { - GameChatEventTableHandle { - imp: self.imp.get_table::("game_chat_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameChatEventInsertCallbackId(__sdk::CallbackId); -pub struct GameChatEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameChatEventTableHandle<'ctx> { - type Row = ChatEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameChatEventTableHandle<'ctx> { - type Row = ChatEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameChatEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatEventInsertCallbackId { - GameChatEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameChatEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatEventDeleteCallbackId { - GameChatEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameChatEventTableHandle<'ctx> { - type InsertCallbackId = GameChatEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatEventInsertCallbackId { - GameChatEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameChatEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameChatEventTableHandle<'ctx> { - type DeleteCallbackId = GameChatEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameChatEventDeleteCallbackId { - GameChatEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameChatEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameChatEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameChatEventTableHandle<'ctx> { - type UpdateCallbackId = GameChatEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatEventUpdateCallbackId { - GameChatEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameChatEventTableHandle<'ctx> { - type UpdateCallbackId = GameChatEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameChatEventUpdateCallbackId { - GameChatEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameChatEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_chat_event`, -/// which allows point queries on the field of the same name -/// via the [`GameChatEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_chat_event().id().find(...)`. -pub struct GameChatEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameChatEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_chat_event`. - pub fn id(&self) -> GameChatEventIdUnique<'ctx> { - GameChatEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameChatEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_chat_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ChatEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_chat_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ChatEvent`. - fn game_chat_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_chat_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_chat_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_chat_event") - } -} diff --git a/gateway/src/stdb/bindings/game_class_level_stats_table.rs b/gateway/src/stdb/bindings/game_class_level_stats_table.rs deleted file mode 100644 index 6f2457f25..000000000 --- a/gateway/src/stdb/bindings/game_class_level_stats_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::class_level_stats_type::ClassLevelStats; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_class_level_stats`. -/// -/// Obtain a handle from the [`GameClassLevelStatsTableAccess::game_class_level_stats`] method on [`super::RemoteTables`], -/// like `ctx.db.game_class_level_stats()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_class_level_stats().on_insert(...)`. -pub struct GameClassLevelStatsTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_class_level_stats`. -pub struct GameClassLevelStatsTableAccessor; - -impl __sdk::TableAccessor for GameClassLevelStatsTableAccessor { - type Row = ClassLevelStats; - type Handle<'db> = GameClassLevelStatsTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_class_level_stats() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_class_level_stats`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameClassLevelStatsTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameClassLevelStatsTableHandle`], which mediates access to the table `game_class_level_stats`. - fn game_class_level_stats(&self) -> GameClassLevelStatsTableHandle<'_>; -} - -impl GameClassLevelStatsTableAccess for super::RemoteTables { - fn game_class_level_stats(&self) -> GameClassLevelStatsTableHandle<'_> { - GameClassLevelStatsTableHandle { - imp: self - .imp - .get_table::("game_class_level_stats"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameClassLevelStatsInsertCallbackId(__sdk::CallbackId); -pub struct GameClassLevelStatsDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameClassLevelStatsTableHandle<'ctx> { - type Row = ClassLevelStats; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameClassLevelStatsTableHandle<'ctx> { - type Row = ClassLevelStats; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameClassLevelStatsInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameClassLevelStatsInsertCallbackId { - GameClassLevelStatsInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameClassLevelStatsInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameClassLevelStatsDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameClassLevelStatsDeleteCallbackId { - GameClassLevelStatsDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameClassLevelStatsDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameClassLevelStatsTableHandle<'ctx> { - type InsertCallbackId = GameClassLevelStatsInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameClassLevelStatsInsertCallbackId { - GameClassLevelStatsInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameClassLevelStatsInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameClassLevelStatsTableHandle<'ctx> { - type DeleteCallbackId = GameClassLevelStatsDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameClassLevelStatsDeleteCallbackId { - GameClassLevelStatsDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameClassLevelStatsDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameClassLevelStatsUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameClassLevelStatsTableHandle<'ctx> { - type UpdateCallbackId = GameClassLevelStatsUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameClassLevelStatsUpdateCallbackId { - GameClassLevelStatsUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameClassLevelStatsUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameClassLevelStatsTableHandle<'ctx> { - type UpdateCallbackId = GameClassLevelStatsUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameClassLevelStatsUpdateCallbackId { - GameClassLevelStatsUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameClassLevelStatsUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `class_level` unique index on the table `game_class_level_stats`, -/// which allows point queries on the field of the same name -/// via the [`GameClassLevelStatsClassLevelUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_class_level_stats().class_level().find(...)`. -pub struct GameClassLevelStatsClassLevelUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameClassLevelStatsTableHandle<'ctx> { - /// Get a handle on the `class_level` unique index on the table `game_class_level_stats`. - pub fn class_level(&self) -> GameClassLevelStatsClassLevelUnique<'ctx> { - GameClassLevelStatsClassLevelUnique { - imp: self.imp.get_unique_constraint::("class_level"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameClassLevelStatsClassLevelUnique<'ctx> { - /// Find the subscribed row whose `class_level` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_class_level_stats"); - _table.add_unique_constraint::("class_level", |row| &row.class_level); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ClassLevelStats`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_class_level_statsQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ClassLevelStats`. - fn game_class_level_stats(&self) -> __sdk::__query_builder::Table; -} - -impl game_class_level_statsQueryTableAccess for __sdk::QueryTableAccessor { - fn game_class_level_stats(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_class_level_stats") - } -} diff --git a/gateway/src/stdb/bindings/game_combat_event_table.rs b/gateway/src/stdb/bindings/game_combat_event_table.rs deleted file mode 100644 index b847d0aa0..000000000 --- a/gateway/src/stdb/bindings/game_combat_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::combat_event_type::CombatEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_combat_event`. -/// -/// Obtain a handle from the [`GameCombatEventTableAccess::game_combat_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_combat_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_combat_event().on_insert(...)`. -pub struct GameCombatEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_combat_event`. -pub struct GameCombatEventTableAccessor; - -impl __sdk::TableAccessor for GameCombatEventTableAccessor { - type Row = CombatEvent; - type Handle<'db> = GameCombatEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_combat_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_combat_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCombatEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCombatEventTableHandle`], which mediates access to the table `game_combat_event`. - fn game_combat_event(&self) -> GameCombatEventTableHandle<'_>; -} - -impl GameCombatEventTableAccess for super::RemoteTables { - fn game_combat_event(&self) -> GameCombatEventTableHandle<'_> { - GameCombatEventTableHandle { - imp: self.imp.get_table::("game_combat_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCombatEventInsertCallbackId(__sdk::CallbackId); -pub struct GameCombatEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCombatEventTableHandle<'ctx> { - type Row = CombatEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCombatEventTableHandle<'ctx> { - type Row = CombatEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCombatEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCombatEventInsertCallbackId { - GameCombatEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCombatEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCombatEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCombatEventDeleteCallbackId { - GameCombatEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCombatEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCombatEventTableHandle<'ctx> { - type InsertCallbackId = GameCombatEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCombatEventInsertCallbackId { - GameCombatEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCombatEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCombatEventTableHandle<'ctx> { - type DeleteCallbackId = GameCombatEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCombatEventDeleteCallbackId { - GameCombatEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCombatEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCombatEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCombatEventTableHandle<'ctx> { - type UpdateCallbackId = GameCombatEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCombatEventUpdateCallbackId { - GameCombatEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCombatEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCombatEventTableHandle<'ctx> { - type UpdateCallbackId = GameCombatEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCombatEventUpdateCallbackId { - GameCombatEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCombatEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_combat_event`, -/// which allows point queries on the field of the same name -/// via the [`GameCombatEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_combat_event().id().find(...)`. -pub struct GameCombatEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCombatEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_combat_event`. - pub fn id(&self) -> GameCombatEventIdUnique<'ctx> { - GameCombatEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCombatEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_combat_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CombatEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_combat_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CombatEvent`. - fn game_combat_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_combat_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_combat_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_combat_event") - } -} diff --git a/gateway/src/stdb/bindings/game_combo_point_table.rs b/gateway/src/stdb/bindings/game_combo_point_table.rs deleted file mode 100644 index f18a90e51..000000000 --- a/gateway/src/stdb/bindings/game_combo_point_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::combo_point_type::ComboPoint; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_combo_point`. -/// -/// Obtain a handle from the [`GameComboPointTableAccess::game_combo_point`] method on [`super::RemoteTables`], -/// like `ctx.db.game_combo_point()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_combo_point().on_insert(...)`. -pub struct GameComboPointTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_combo_point`. -pub struct GameComboPointTableAccessor; - -impl __sdk::TableAccessor for GameComboPointTableAccessor { - type Row = ComboPoint; - type Handle<'db> = GameComboPointTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_combo_point() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_combo_point`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameComboPointTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameComboPointTableHandle`], which mediates access to the table `game_combo_point`. - fn game_combo_point(&self) -> GameComboPointTableHandle<'_>; -} - -impl GameComboPointTableAccess for super::RemoteTables { - fn game_combo_point(&self) -> GameComboPointTableHandle<'_> { - GameComboPointTableHandle { - imp: self.imp.get_table::("game_combo_point"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameComboPointInsertCallbackId(__sdk::CallbackId); -pub struct GameComboPointDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameComboPointTableHandle<'ctx> { - type Row = ComboPoint; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameComboPointTableHandle<'ctx> { - type Row = ComboPoint; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameComboPointInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameComboPointInsertCallbackId { - GameComboPointInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameComboPointInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameComboPointDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameComboPointDeleteCallbackId { - GameComboPointDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameComboPointDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameComboPointTableHandle<'ctx> { - type InsertCallbackId = GameComboPointInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameComboPointInsertCallbackId { - GameComboPointInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameComboPointInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameComboPointTableHandle<'ctx> { - type DeleteCallbackId = GameComboPointDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameComboPointDeleteCallbackId { - GameComboPointDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameComboPointDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameComboPointUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameComboPointTableHandle<'ctx> { - type UpdateCallbackId = GameComboPointUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameComboPointUpdateCallbackId { - GameComboPointUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameComboPointUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameComboPointTableHandle<'ctx> { - type UpdateCallbackId = GameComboPointUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameComboPointUpdateCallbackId { - GameComboPointUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameComboPointUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_combo_point`, -/// which allows point queries on the field of the same name -/// via the [`GameComboPointIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_combo_point().id().find(...)`. -pub struct GameComboPointIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameComboPointTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_combo_point`. - pub fn id(&self) -> GameComboPointIdUnique<'ctx> { - GameComboPointIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameComboPointIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_combo_point"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ComboPoint`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_combo_pointQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ComboPoint`. - fn game_combo_point(&self) -> __sdk::__query_builder::Table; -} - -impl game_combo_pointQueryTableAccess for __sdk::QueryTableAccessor { - fn game_combo_point(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_combo_point") - } -} diff --git a/gateway/src/stdb/bindings/game_config_table.rs b/gateway/src/stdb/bindings/game_config_table.rs deleted file mode 100644 index 42585e513..000000000 --- a/gateway/src/stdb/bindings/game_config_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::server_config_type::ServerConfig; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_config`. -/// -/// Obtain a handle from the [`GameConfigTableAccess::game_config`] method on [`super::RemoteTables`], -/// like `ctx.db.game_config()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_config().on_insert(...)`. -pub struct GameConfigTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_config`. -pub struct GameConfigTableAccessor; - -impl __sdk::TableAccessor for GameConfigTableAccessor { - type Row = ServerConfig; - type Handle<'db> = GameConfigTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_config() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_config`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameConfigTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameConfigTableHandle`], which mediates access to the table `game_config`. - fn game_config(&self) -> GameConfigTableHandle<'_>; -} - -impl GameConfigTableAccess for super::RemoteTables { - fn game_config(&self) -> GameConfigTableHandle<'_> { - GameConfigTableHandle { - imp: self.imp.get_table::("game_config"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameConfigInsertCallbackId(__sdk::CallbackId); -pub struct GameConfigDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameConfigTableHandle<'ctx> { - type Row = ServerConfig; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameConfigTableHandle<'ctx> { - type Row = ServerConfig; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameConfigInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameConfigInsertCallbackId { - GameConfigInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameConfigInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameConfigDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameConfigDeleteCallbackId { - GameConfigDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameConfigDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameConfigTableHandle<'ctx> { - type InsertCallbackId = GameConfigInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameConfigInsertCallbackId { - GameConfigInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameConfigInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameConfigTableHandle<'ctx> { - type DeleteCallbackId = GameConfigDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameConfigDeleteCallbackId { - GameConfigDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameConfigDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameConfigUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameConfigTableHandle<'ctx> { - type UpdateCallbackId = GameConfigUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameConfigUpdateCallbackId { - GameConfigUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameConfigUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameConfigTableHandle<'ctx> { - type UpdateCallbackId = GameConfigUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameConfigUpdateCallbackId { - GameConfigUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameConfigUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_config`, -/// which allows point queries on the field of the same name -/// via the [`GameConfigIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_config().id().find(...)`. -pub struct GameConfigIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameConfigTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_config`. - pub fn id(&self) -> GameConfigIdUnique<'ctx> { - GameConfigIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameConfigIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_config"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ServerConfig`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_configQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ServerConfig`. - fn game_config(&self) -> __sdk::__query_builder::Table; -} - -impl game_configQueryTableAccess for __sdk::QueryTableAccessor { - fn game_config(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_config") - } -} diff --git a/gateway/src/stdb/bindings/game_corpse_loot_eligible_table.rs b/gateway/src/stdb/bindings/game_corpse_loot_eligible_table.rs deleted file mode 100644 index 64c993903..000000000 --- a/gateway/src/stdb/bindings/game_corpse_loot_eligible_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::corpse_loot_eligible_type::CorpseLootEligible; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_corpse_loot_eligible`. -/// -/// Obtain a handle from the [`GameCorpseLootEligibleTableAccess::game_corpse_loot_eligible`] method on [`super::RemoteTables`], -/// like `ctx.db.game_corpse_loot_eligible()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_corpse_loot_eligible().on_insert(...)`. -pub struct GameCorpseLootEligibleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_corpse_loot_eligible`. -pub struct GameCorpseLootEligibleTableAccessor; - -impl __sdk::TableAccessor for GameCorpseLootEligibleTableAccessor { - type Row = CorpseLootEligible; - type Handle<'db> = GameCorpseLootEligibleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_corpse_loot_eligible() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_corpse_loot_eligible`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCorpseLootEligibleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCorpseLootEligibleTableHandle`], which mediates access to the table `game_corpse_loot_eligible`. - fn game_corpse_loot_eligible(&self) -> GameCorpseLootEligibleTableHandle<'_>; -} - -impl GameCorpseLootEligibleTableAccess for super::RemoteTables { - fn game_corpse_loot_eligible(&self) -> GameCorpseLootEligibleTableHandle<'_> { - GameCorpseLootEligibleTableHandle { - imp: self - .imp - .get_table::("game_corpse_loot_eligible"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCorpseLootEligibleInsertCallbackId(__sdk::CallbackId); -pub struct GameCorpseLootEligibleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCorpseLootEligibleTableHandle<'ctx> { - type Row = CorpseLootEligible; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCorpseLootEligibleTableHandle<'ctx> { - type Row = CorpseLootEligible; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCorpseLootEligibleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseLootEligibleInsertCallbackId { - GameCorpseLootEligibleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCorpseLootEligibleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCorpseLootEligibleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseLootEligibleDeleteCallbackId { - GameCorpseLootEligibleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCorpseLootEligibleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCorpseLootEligibleTableHandle<'ctx> { - type InsertCallbackId = GameCorpseLootEligibleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseLootEligibleInsertCallbackId { - GameCorpseLootEligibleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCorpseLootEligibleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCorpseLootEligibleTableHandle<'ctx> { - type DeleteCallbackId = GameCorpseLootEligibleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseLootEligibleDeleteCallbackId { - GameCorpseLootEligibleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCorpseLootEligibleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCorpseLootEligibleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCorpseLootEligibleTableHandle<'ctx> { - type UpdateCallbackId = GameCorpseLootEligibleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCorpseLootEligibleUpdateCallbackId { - GameCorpseLootEligibleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCorpseLootEligibleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCorpseLootEligibleTableHandle<'ctx> { - type UpdateCallbackId = GameCorpseLootEligibleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCorpseLootEligibleUpdateCallbackId { - GameCorpseLootEligibleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCorpseLootEligibleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_corpse_loot_eligible`, -/// which allows point queries on the field of the same name -/// via the [`GameCorpseLootEligibleIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_corpse_loot_eligible().id().find(...)`. -pub struct GameCorpseLootEligibleIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCorpseLootEligibleTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_corpse_loot_eligible`. - pub fn id(&self) -> GameCorpseLootEligibleIdUnique<'ctx> { - GameCorpseLootEligibleIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCorpseLootEligibleIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_corpse_loot_eligible"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CorpseLootEligible`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_corpse_loot_eligibleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CorpseLootEligible`. - fn game_corpse_loot_eligible(&self) -> __sdk::__query_builder::Table; -} - -impl game_corpse_loot_eligibleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_corpse_loot_eligible(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_corpse_loot_eligible") - } -} diff --git a/gateway/src/stdb/bindings/game_corpse_loot_table.rs b/gateway/src/stdb/bindings/game_corpse_loot_table.rs deleted file mode 100644 index f5e961734..000000000 --- a/gateway/src/stdb/bindings/game_corpse_loot_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::corpse_loot_type::CorpseLoot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_corpse_loot`. -/// -/// Obtain a handle from the [`GameCorpseLootTableAccess::game_corpse_loot`] method on [`super::RemoteTables`], -/// like `ctx.db.game_corpse_loot()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_corpse_loot().on_insert(...)`. -pub struct GameCorpseLootTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_corpse_loot`. -pub struct GameCorpseLootTableAccessor; - -impl __sdk::TableAccessor for GameCorpseLootTableAccessor { - type Row = CorpseLoot; - type Handle<'db> = GameCorpseLootTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_corpse_loot() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_corpse_loot`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCorpseLootTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCorpseLootTableHandle`], which mediates access to the table `game_corpse_loot`. - fn game_corpse_loot(&self) -> GameCorpseLootTableHandle<'_>; -} - -impl GameCorpseLootTableAccess for super::RemoteTables { - fn game_corpse_loot(&self) -> GameCorpseLootTableHandle<'_> { - GameCorpseLootTableHandle { - imp: self.imp.get_table::("game_corpse_loot"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCorpseLootInsertCallbackId(__sdk::CallbackId); -pub struct GameCorpseLootDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCorpseLootTableHandle<'ctx> { - type Row = CorpseLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCorpseLootTableHandle<'ctx> { - type Row = CorpseLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCorpseLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseLootInsertCallbackId { - GameCorpseLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCorpseLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCorpseLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseLootDeleteCallbackId { - GameCorpseLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCorpseLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCorpseLootTableHandle<'ctx> { - type InsertCallbackId = GameCorpseLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseLootInsertCallbackId { - GameCorpseLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCorpseLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCorpseLootTableHandle<'ctx> { - type DeleteCallbackId = GameCorpseLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseLootDeleteCallbackId { - GameCorpseLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCorpseLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCorpseLootUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCorpseLootTableHandle<'ctx> { - type UpdateCallbackId = GameCorpseLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCorpseLootUpdateCallbackId { - GameCorpseLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCorpseLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCorpseLootTableHandle<'ctx> { - type UpdateCallbackId = GameCorpseLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCorpseLootUpdateCallbackId { - GameCorpseLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCorpseLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_corpse_loot`, -/// which allows point queries on the field of the same name -/// via the [`GameCorpseLootIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_corpse_loot().id().find(...)`. -pub struct GameCorpseLootIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCorpseLootTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_corpse_loot`. - pub fn id(&self) -> GameCorpseLootIdUnique<'ctx> { - GameCorpseLootIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCorpseLootIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_corpse_loot"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CorpseLoot`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_corpse_lootQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CorpseLoot`. - fn game_corpse_loot(&self) -> __sdk::__query_builder::Table; -} - -impl game_corpse_lootQueryTableAccess for __sdk::QueryTableAccessor { - fn game_corpse_loot(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_corpse_loot") - } -} diff --git a/gateway/src/stdb/bindings/game_corpse_table.rs b/gateway/src/stdb/bindings/game_corpse_table.rs deleted file mode 100644 index ef38f3d53..000000000 --- a/gateway/src/stdb/bindings/game_corpse_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::corpse_type::Corpse; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_corpse`. -/// -/// Obtain a handle from the [`GameCorpseTableAccess::game_corpse`] method on [`super::RemoteTables`], -/// like `ctx.db.game_corpse()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_corpse().on_insert(...)`. -pub struct GameCorpseTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_corpse`. -pub struct GameCorpseTableAccessor; - -impl __sdk::TableAccessor for GameCorpseTableAccessor { - type Row = Corpse; - type Handle<'db> = GameCorpseTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_corpse() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_corpse`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCorpseTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCorpseTableHandle`], which mediates access to the table `game_corpse`. - fn game_corpse(&self) -> GameCorpseTableHandle<'_>; -} - -impl GameCorpseTableAccess for super::RemoteTables { - fn game_corpse(&self) -> GameCorpseTableHandle<'_> { - GameCorpseTableHandle { - imp: self.imp.get_table::("game_corpse"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCorpseInsertCallbackId(__sdk::CallbackId); -pub struct GameCorpseDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCorpseTableHandle<'ctx> { - type Row = Corpse; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCorpseTableHandle<'ctx> { - type Row = Corpse; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCorpseInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseInsertCallbackId { - GameCorpseInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCorpseInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCorpseDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseDeleteCallbackId { - GameCorpseDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCorpseDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCorpseTableHandle<'ctx> { - type InsertCallbackId = GameCorpseInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseInsertCallbackId { - GameCorpseInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCorpseInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCorpseTableHandle<'ctx> { - type DeleteCallbackId = GameCorpseDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCorpseDeleteCallbackId { - GameCorpseDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCorpseDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCorpseUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCorpseTableHandle<'ctx> { - type UpdateCallbackId = GameCorpseUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCorpseUpdateCallbackId { - GameCorpseUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCorpseUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCorpseTableHandle<'ctx> { - type UpdateCallbackId = GameCorpseUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCorpseUpdateCallbackId { - GameCorpseUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCorpseUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_corpse`, -/// which allows point queries on the field of the same name -/// via the [`GameCorpseGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_corpse().guid().find(...)`. -pub struct GameCorpseGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCorpseTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_corpse`. - pub fn guid(&self) -> GameCorpseGuidUnique<'ctx> { - GameCorpseGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCorpseGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_corpse"); - _table.add_unique_constraint::("guid", |row| &row.guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Corpse`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_corpseQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Corpse`. - fn game_corpse(&self) -> __sdk::__query_builder::Table; -} - -impl game_corpseQueryTableAccess for __sdk::QueryTableAccessor { - fn game_corpse(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_corpse") - } -} diff --git a/gateway/src/stdb/bindings/game_createinfo_action_table.rs b/gateway/src/stdb/bindings/game_createinfo_action_table.rs deleted file mode 100644 index 936309449..000000000 --- a/gateway/src/stdb/bindings/game_createinfo_action_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::createinfo_action_type::CreateinfoAction; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_createinfo_action`. -/// -/// Obtain a handle from the [`GameCreateinfoActionTableAccess::game_createinfo_action`] method on [`super::RemoteTables`], -/// like `ctx.db.game_createinfo_action()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_createinfo_action().on_insert(...)`. -pub struct GameCreateinfoActionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_createinfo_action`. -pub struct GameCreateinfoActionTableAccessor; - -impl __sdk::TableAccessor for GameCreateinfoActionTableAccessor { - type Row = CreateinfoAction; - type Handle<'db> = GameCreateinfoActionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_createinfo_action() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_createinfo_action`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreateinfoActionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreateinfoActionTableHandle`], which mediates access to the table `game_createinfo_action`. - fn game_createinfo_action(&self) -> GameCreateinfoActionTableHandle<'_>; -} - -impl GameCreateinfoActionTableAccess for super::RemoteTables { - fn game_createinfo_action(&self) -> GameCreateinfoActionTableHandle<'_> { - GameCreateinfoActionTableHandle { - imp: self - .imp - .get_table::("game_createinfo_action"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreateinfoActionInsertCallbackId(__sdk::CallbackId); -pub struct GameCreateinfoActionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreateinfoActionTableHandle<'ctx> { - type Row = CreateinfoAction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreateinfoActionTableHandle<'ctx> { - type Row = CreateinfoAction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreateinfoActionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreateinfoActionInsertCallbackId { - GameCreateinfoActionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreateinfoActionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreateinfoActionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreateinfoActionDeleteCallbackId { - GameCreateinfoActionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreateinfoActionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreateinfoActionTableHandle<'ctx> { - type InsertCallbackId = GameCreateinfoActionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreateinfoActionInsertCallbackId { - GameCreateinfoActionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreateinfoActionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreateinfoActionTableHandle<'ctx> { - type DeleteCallbackId = GameCreateinfoActionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreateinfoActionDeleteCallbackId { - GameCreateinfoActionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreateinfoActionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreateinfoActionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreateinfoActionTableHandle<'ctx> { - type UpdateCallbackId = GameCreateinfoActionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreateinfoActionUpdateCallbackId { - GameCreateinfoActionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreateinfoActionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreateinfoActionTableHandle<'ctx> { - type UpdateCallbackId = GameCreateinfoActionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreateinfoActionUpdateCallbackId { - GameCreateinfoActionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreateinfoActionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `row_id` unique index on the table `game_createinfo_action`, -/// which allows point queries on the field of the same name -/// via the [`GameCreateinfoActionRowIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_createinfo_action().row_id().find(...)`. -pub struct GameCreateinfoActionRowIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreateinfoActionTableHandle<'ctx> { - /// Get a handle on the `row_id` unique index on the table `game_createinfo_action`. - pub fn row_id(&self) -> GameCreateinfoActionRowIdUnique<'ctx> { - GameCreateinfoActionRowIdUnique { - imp: self.imp.get_unique_constraint::("row_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreateinfoActionRowIdUnique<'ctx> { - /// Find the subscribed row whose `row_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_createinfo_action"); - _table.add_unique_constraint::("row_id", |row| &row.row_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreateinfoAction`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_createinfo_actionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreateinfoAction`. - fn game_createinfo_action(&self) -> __sdk::__query_builder::Table; -} - -impl game_createinfo_actionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_createinfo_action(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_createinfo_action") - } -} diff --git a/gateway/src/stdb/bindings/game_createinfo_spell_table.rs b/gateway/src/stdb/bindings/game_createinfo_spell_table.rs deleted file mode 100644 index 413f00daa..000000000 --- a/gateway/src/stdb/bindings/game_createinfo_spell_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::createinfo_spell_type::CreateinfoSpell; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_createinfo_spell`. -/// -/// Obtain a handle from the [`GameCreateinfoSpellTableAccess::game_createinfo_spell`] method on [`super::RemoteTables`], -/// like `ctx.db.game_createinfo_spell()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_createinfo_spell().on_insert(...)`. -pub struct GameCreateinfoSpellTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_createinfo_spell`. -pub struct GameCreateinfoSpellTableAccessor; - -impl __sdk::TableAccessor for GameCreateinfoSpellTableAccessor { - type Row = CreateinfoSpell; - type Handle<'db> = GameCreateinfoSpellTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_createinfo_spell() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_createinfo_spell`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreateinfoSpellTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreateinfoSpellTableHandle`], which mediates access to the table `game_createinfo_spell`. - fn game_createinfo_spell(&self) -> GameCreateinfoSpellTableHandle<'_>; -} - -impl GameCreateinfoSpellTableAccess for super::RemoteTables { - fn game_createinfo_spell(&self) -> GameCreateinfoSpellTableHandle<'_> { - GameCreateinfoSpellTableHandle { - imp: self - .imp - .get_table::("game_createinfo_spell"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreateinfoSpellInsertCallbackId(__sdk::CallbackId); -pub struct GameCreateinfoSpellDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreateinfoSpellTableHandle<'ctx> { - type Row = CreateinfoSpell; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreateinfoSpellTableHandle<'ctx> { - type Row = CreateinfoSpell; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreateinfoSpellInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreateinfoSpellInsertCallbackId { - GameCreateinfoSpellInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreateinfoSpellInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreateinfoSpellDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreateinfoSpellDeleteCallbackId { - GameCreateinfoSpellDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreateinfoSpellDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreateinfoSpellTableHandle<'ctx> { - type InsertCallbackId = GameCreateinfoSpellInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreateinfoSpellInsertCallbackId { - GameCreateinfoSpellInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreateinfoSpellInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreateinfoSpellTableHandle<'ctx> { - type DeleteCallbackId = GameCreateinfoSpellDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreateinfoSpellDeleteCallbackId { - GameCreateinfoSpellDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreateinfoSpellDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreateinfoSpellUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreateinfoSpellTableHandle<'ctx> { - type UpdateCallbackId = GameCreateinfoSpellUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreateinfoSpellUpdateCallbackId { - GameCreateinfoSpellUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreateinfoSpellUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreateinfoSpellTableHandle<'ctx> { - type UpdateCallbackId = GameCreateinfoSpellUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreateinfoSpellUpdateCallbackId { - GameCreateinfoSpellUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreateinfoSpellUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_createinfo_spell`, -/// which allows point queries on the field of the same name -/// via the [`GameCreateinfoSpellIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_createinfo_spell().id().find(...)`. -pub struct GameCreateinfoSpellIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreateinfoSpellTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_createinfo_spell`. - pub fn id(&self) -> GameCreateinfoSpellIdUnique<'ctx> { - GameCreateinfoSpellIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreateinfoSpellIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_createinfo_spell"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreateinfoSpell`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_createinfo_spellQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreateinfoSpell`. - fn game_createinfo_spell(&self) -> __sdk::__query_builder::Table; -} - -impl game_createinfo_spellQueryTableAccess for __sdk::QueryTableAccessor { - fn game_createinfo_spell(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_createinfo_spell") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_broadcast_text_table.rs b/gateway/src/stdb/bindings/game_creature_ai_broadcast_text_table.rs deleted file mode 100644 index 102d365d5..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_broadcast_text_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_broadcast_text_type::CreatureAiBroadcastText; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_broadcast_text`. -/// -/// Obtain a handle from the [`GameCreatureAiBroadcastTextTableAccess::game_creature_ai_broadcast_text`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_broadcast_text()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_broadcast_text().on_insert(...)`. -pub struct GameCreatureAiBroadcastTextTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_broadcast_text`. -pub struct GameCreatureAiBroadcastTextTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiBroadcastTextTableAccessor { - type Row = CreatureAiBroadcastText; - type Handle<'db> = GameCreatureAiBroadcastTextTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_broadcast_text() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_broadcast_text`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiBroadcastTextTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiBroadcastTextTableHandle`], which mediates access to the table `game_creature_ai_broadcast_text`. - fn game_creature_ai_broadcast_text(&self) -> GameCreatureAiBroadcastTextTableHandle<'_>; -} - -impl GameCreatureAiBroadcastTextTableAccess for super::RemoteTables { - fn game_creature_ai_broadcast_text(&self) -> GameCreatureAiBroadcastTextTableHandle<'_> { - GameCreatureAiBroadcastTextTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_broadcast_text"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiBroadcastTextInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiBroadcastTextDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiBroadcastTextTableHandle<'ctx> { - type Row = CreatureAiBroadcastText; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiBroadcastTextTableHandle<'ctx> { - type Row = CreatureAiBroadcastText; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiBroadcastTextInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiBroadcastTextInsertCallbackId { - GameCreatureAiBroadcastTextInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiBroadcastTextInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiBroadcastTextDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiBroadcastTextDeleteCallbackId { - GameCreatureAiBroadcastTextDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiBroadcastTextDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiBroadcastTextTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiBroadcastTextInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiBroadcastTextInsertCallbackId { - GameCreatureAiBroadcastTextInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiBroadcastTextInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiBroadcastTextTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiBroadcastTextDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiBroadcastTextDeleteCallbackId { - GameCreatureAiBroadcastTextDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiBroadcastTextDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiBroadcastTextUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiBroadcastTextTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiBroadcastTextUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiBroadcastTextUpdateCallbackId { - GameCreatureAiBroadcastTextUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiBroadcastTextUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiBroadcastTextTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiBroadcastTextUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiBroadcastTextUpdateCallbackId { - GameCreatureAiBroadcastTextUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiBroadcastTextUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_ai_broadcast_text`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiBroadcastTextIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_broadcast_text().id().find(...)`. -pub struct GameCreatureAiBroadcastTextIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiBroadcastTextTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_ai_broadcast_text`. - pub fn id(&self) -> GameCreatureAiBroadcastTextIdUnique<'ctx> { - GameCreatureAiBroadcastTextIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiBroadcastTextIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_creature_ai_broadcast_text"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiBroadcastText`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_broadcast_textQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiBroadcastText`. - fn game_creature_ai_broadcast_text( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_broadcast_textQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_broadcast_text( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_broadcast_text") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_definition_table.rs b/gateway/src/stdb/bindings/game_creature_ai_definition_table.rs deleted file mode 100644 index a829539ca..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_definition_table.rs +++ /dev/null @@ -1,232 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_definition_type::CreatureAiDefinition; -use super::event_ai_rule_type::EventAiRule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_definition`. -/// -/// Obtain a handle from the [`GameCreatureAiDefinitionTableAccess::game_creature_ai_definition`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_definition()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_definition().on_insert(...)`. -pub struct GameCreatureAiDefinitionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_definition`. -pub struct GameCreatureAiDefinitionTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiDefinitionTableAccessor { - type Row = CreatureAiDefinition; - type Handle<'db> = GameCreatureAiDefinitionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_definition() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_definition`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiDefinitionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiDefinitionTableHandle`], which mediates access to the table `game_creature_ai_definition`. - fn game_creature_ai_definition(&self) -> GameCreatureAiDefinitionTableHandle<'_>; -} - -impl GameCreatureAiDefinitionTableAccess for super::RemoteTables { - fn game_creature_ai_definition(&self) -> GameCreatureAiDefinitionTableHandle<'_> { - GameCreatureAiDefinitionTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_definition"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiDefinitionInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiDefinitionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiDefinitionTableHandle<'ctx> { - type Row = CreatureAiDefinition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiDefinitionTableHandle<'ctx> { - type Row = CreatureAiDefinition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiDefinitionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiDefinitionInsertCallbackId { - GameCreatureAiDefinitionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiDefinitionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiDefinitionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiDefinitionDeleteCallbackId { - GameCreatureAiDefinitionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiDefinitionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiDefinitionTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiDefinitionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiDefinitionInsertCallbackId { - GameCreatureAiDefinitionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiDefinitionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiDefinitionTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiDefinitionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiDefinitionDeleteCallbackId { - GameCreatureAiDefinitionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiDefinitionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiDefinitionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiDefinitionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiDefinitionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiDefinitionUpdateCallbackId { - GameCreatureAiDefinitionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiDefinitionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiDefinitionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiDefinitionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiDefinitionUpdateCallbackId { - GameCreatureAiDefinitionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiDefinitionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_ai_definition`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiDefinitionIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_definition().id().find(...)`. -pub struct GameCreatureAiDefinitionIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiDefinitionTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_ai_definition`. - pub fn id(&self) -> GameCreatureAiDefinitionIdUnique<'ctx> { - GameCreatureAiDefinitionIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiDefinitionIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_ai_definition"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiDefinition`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_definitionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiDefinition`. - fn game_creature_ai_definition(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_definitionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_definition(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_definition") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_event_table.rs b/gateway/src/stdb/bindings/game_creature_ai_event_table.rs deleted file mode 100644 index f6f012a14..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_event_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_event_type::CreatureAiEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_event`. -/// -/// Obtain a handle from the [`GameCreatureAiEventTableAccess::game_creature_ai_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_event().on_insert(...)`. -pub struct GameCreatureAiEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_event`. -pub struct GameCreatureAiEventTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiEventTableAccessor { - type Row = CreatureAiEvent; - type Handle<'db> = GameCreatureAiEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiEventTableHandle`], which mediates access to the table `game_creature_ai_event`. - fn game_creature_ai_event(&self) -> GameCreatureAiEventTableHandle<'_>; -} - -impl GameCreatureAiEventTableAccess for super::RemoteTables { - fn game_creature_ai_event(&self) -> GameCreatureAiEventTableHandle<'_> { - GameCreatureAiEventTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiEventInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiEventTableHandle<'ctx> { - type Row = CreatureAiEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiEventTableHandle<'ctx> { - type Row = CreatureAiEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiEventInsertCallbackId { - GameCreatureAiEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiEventDeleteCallbackId { - GameCreatureAiEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiEventTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiEventInsertCallbackId { - GameCreatureAiEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiEventTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiEventDeleteCallbackId { - GameCreatureAiEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiEventTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiEventUpdateCallbackId { - GameCreatureAiEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiEventTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiEventUpdateCallbackId { - GameCreatureAiEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_ai_event`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_event().id().find(...)`. -pub struct GameCreatureAiEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_ai_event`. - pub fn id(&self) -> GameCreatureAiEventIdUnique<'ctx> { - GameCreatureAiEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_ai_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiEvent`. - fn game_creature_ai_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_event") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_forced_despawn_table.rs b/gateway/src/stdb/bindings/game_creature_ai_forced_despawn_table.rs deleted file mode 100644 index 9b669e3fc..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_forced_despawn_table.rs +++ /dev/null @@ -1,266 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_forced_despawn_type::CreatureAiForcedDespawn; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_forced_despawn`. -/// -/// Obtain a handle from the [`GameCreatureAiForcedDespawnTableAccess::game_creature_ai_forced_despawn`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_forced_despawn()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_forced_despawn().on_insert(...)`. -pub struct GameCreatureAiForcedDespawnTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_forced_despawn`. -pub struct GameCreatureAiForcedDespawnTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiForcedDespawnTableAccessor { - type Row = CreatureAiForcedDespawn; - type Handle<'db> = GameCreatureAiForcedDespawnTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_forced_despawn() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_forced_despawn`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiForcedDespawnTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiForcedDespawnTableHandle`], which mediates access to the table `game_creature_ai_forced_despawn`. - fn game_creature_ai_forced_despawn(&self) -> GameCreatureAiForcedDespawnTableHandle<'_>; -} - -impl GameCreatureAiForcedDespawnTableAccess for super::RemoteTables { - fn game_creature_ai_forced_despawn(&self) -> GameCreatureAiForcedDespawnTableHandle<'_> { - GameCreatureAiForcedDespawnTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_forced_despawn"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiForcedDespawnInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiForcedDespawnDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiForcedDespawnTableHandle<'ctx> { - type Row = CreatureAiForcedDespawn; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiForcedDespawnTableHandle<'ctx> { - type Row = CreatureAiForcedDespawn; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiForcedDespawnInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiForcedDespawnInsertCallbackId { - GameCreatureAiForcedDespawnInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiForcedDespawnInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiForcedDespawnDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiForcedDespawnDeleteCallbackId { - GameCreatureAiForcedDespawnDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiForcedDespawnDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiForcedDespawnTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiForcedDespawnInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiForcedDespawnInsertCallbackId { - GameCreatureAiForcedDespawnInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiForcedDespawnInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiForcedDespawnTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiForcedDespawnDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiForcedDespawnDeleteCallbackId { - GameCreatureAiForcedDespawnDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiForcedDespawnDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiForcedDespawnUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiForcedDespawnTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiForcedDespawnUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiForcedDespawnUpdateCallbackId { - GameCreatureAiForcedDespawnUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiForcedDespawnUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiForcedDespawnTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiForcedDespawnUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiForcedDespawnUpdateCallbackId { - GameCreatureAiForcedDespawnUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiForcedDespawnUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_creature_ai_forced_despawn`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiForcedDespawnScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_forced_despawn().scheduled_id().find(...)`. -pub struct GameCreatureAiForcedDespawnScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiForcedDespawnTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_creature_ai_forced_despawn`. - pub fn scheduled_id(&self) -> GameCreatureAiForcedDespawnScheduledIdUnique<'ctx> { - GameCreatureAiForcedDespawnScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiForcedDespawnScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_ai_forced_despawn`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiForcedDespawnCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_forced_despawn().creature_guid().find(...)`. -pub struct GameCreatureAiForcedDespawnCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiForcedDespawnTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_ai_forced_despawn`. - pub fn creature_guid(&self) -> GameCreatureAiForcedDespawnCreatureGuidUnique<'ctx> { - GameCreatureAiForcedDespawnCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiForcedDespawnCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_creature_ai_forced_despawn"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiForcedDespawn`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_forced_despawnQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiForcedDespawn`. - fn game_creature_ai_forced_despawn( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_forced_despawnQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_forced_despawn( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_forced_despawn") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_movement_intent_table.rs b/gateway/src/stdb/bindings/game_creature_ai_movement_intent_table.rs deleted file mode 100644 index e859cdb99..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_movement_intent_table.rs +++ /dev/null @@ -1,237 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::authored_idle_movement_type::AuthoredIdleMovement; -use super::authored_walking_mode_type::AuthoredWalkingMode; -use super::creature_ai_movement_intent_type::CreatureAiMovementIntent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_movement_intent`. -/// -/// Obtain a handle from the [`GameCreatureAiMovementIntentTableAccess::game_creature_ai_movement_intent`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_movement_intent()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_movement_intent().on_insert(...)`. -pub struct GameCreatureAiMovementIntentTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_movement_intent`. -pub struct GameCreatureAiMovementIntentTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiMovementIntentTableAccessor { - type Row = CreatureAiMovementIntent; - type Handle<'db> = GameCreatureAiMovementIntentTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_movement_intent() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_movement_intent`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiMovementIntentTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiMovementIntentTableHandle`], which mediates access to the table `game_creature_ai_movement_intent`. - fn game_creature_ai_movement_intent(&self) -> GameCreatureAiMovementIntentTableHandle<'_>; -} - -impl GameCreatureAiMovementIntentTableAccess for super::RemoteTables { - fn game_creature_ai_movement_intent(&self) -> GameCreatureAiMovementIntentTableHandle<'_> { - GameCreatureAiMovementIntentTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_movement_intent"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiMovementIntentInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiMovementIntentDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiMovementIntentTableHandle<'ctx> { - type Row = CreatureAiMovementIntent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiMovementIntentTableHandle<'ctx> { - type Row = CreatureAiMovementIntent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiMovementIntentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementIntentInsertCallbackId { - GameCreatureAiMovementIntentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiMovementIntentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiMovementIntentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementIntentDeleteCallbackId { - GameCreatureAiMovementIntentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiMovementIntentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiMovementIntentTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiMovementIntentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementIntentInsertCallbackId { - GameCreatureAiMovementIntentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiMovementIntentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiMovementIntentTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiMovementIntentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementIntentDeleteCallbackId { - GameCreatureAiMovementIntentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiMovementIntentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiMovementIntentUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiMovementIntentTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiMovementIntentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementIntentUpdateCallbackId { - GameCreatureAiMovementIntentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiMovementIntentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiMovementIntentTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiMovementIntentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementIntentUpdateCallbackId { - GameCreatureAiMovementIntentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiMovementIntentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_ai_movement_intent`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiMovementIntentCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_movement_intent().creature_guid().find(...)`. -pub struct GameCreatureAiMovementIntentCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiMovementIntentTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_ai_movement_intent`. - pub fn creature_guid(&self) -> GameCreatureAiMovementIntentCreatureGuidUnique<'ctx> { - GameCreatureAiMovementIntentCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiMovementIntentCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_creature_ai_movement_intent"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiMovementIntent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_movement_intentQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiMovementIntent`. - fn game_creature_ai_movement_intent( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_movement_intentQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_movement_intent( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_movement_intent") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_movement_path_waypoint_table.rs b/gateway/src/stdb/bindings/game_creature_ai_movement_path_waypoint_table.rs deleted file mode 100644 index 6aecb1b29..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_movement_path_waypoint_table.rs +++ /dev/null @@ -1,243 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_movement_path_waypoint_type::CreatureAiMovementPathWaypoint; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_movement_path_waypoint`. -/// -/// Obtain a handle from the [`GameCreatureAiMovementPathWaypointTableAccess::game_creature_ai_movement_path_waypoint`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_movement_path_waypoint()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_movement_path_waypoint().on_insert(...)`. -pub struct GameCreatureAiMovementPathWaypointTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_movement_path_waypoint`. -pub struct GameCreatureAiMovementPathWaypointTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiMovementPathWaypointTableAccessor { - type Row = CreatureAiMovementPathWaypoint; - type Handle<'db> = GameCreatureAiMovementPathWaypointTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_movement_path_waypoint() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_movement_path_waypoint`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiMovementPathWaypointTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiMovementPathWaypointTableHandle`], which mediates access to the table `game_creature_ai_movement_path_waypoint`. - fn game_creature_ai_movement_path_waypoint( - &self, - ) -> GameCreatureAiMovementPathWaypointTableHandle<'_>; -} - -impl GameCreatureAiMovementPathWaypointTableAccess for super::RemoteTables { - fn game_creature_ai_movement_path_waypoint( - &self, - ) -> GameCreatureAiMovementPathWaypointTableHandle<'_> { - GameCreatureAiMovementPathWaypointTableHandle { - imp: self.imp.get_table::( - "game_creature_ai_movement_path_waypoint", - ), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiMovementPathWaypointInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiMovementPathWaypointDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiMovementPathWaypointTableHandle<'ctx> { - type Row = CreatureAiMovementPathWaypoint; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiMovementPathWaypointTableHandle<'ctx> { - type Row = CreatureAiMovementPathWaypoint; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiMovementPathWaypointInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementPathWaypointInsertCallbackId { - GameCreatureAiMovementPathWaypointInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiMovementPathWaypointInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiMovementPathWaypointDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementPathWaypointDeleteCallbackId { - GameCreatureAiMovementPathWaypointDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiMovementPathWaypointDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiMovementPathWaypointTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiMovementPathWaypointInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementPathWaypointInsertCallbackId { - GameCreatureAiMovementPathWaypointInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiMovementPathWaypointInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiMovementPathWaypointTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiMovementPathWaypointDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementPathWaypointDeleteCallbackId { - GameCreatureAiMovementPathWaypointDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiMovementPathWaypointDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiMovementPathWaypointUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiMovementPathWaypointTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiMovementPathWaypointUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementPathWaypointUpdateCallbackId { - GameCreatureAiMovementPathWaypointUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiMovementPathWaypointUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiMovementPathWaypointTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiMovementPathWaypointUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiMovementPathWaypointUpdateCallbackId { - GameCreatureAiMovementPathWaypointUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiMovementPathWaypointUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_ai_movement_path_waypoint`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiMovementPathWaypointIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_movement_path_waypoint().id().find(...)`. -pub struct GameCreatureAiMovementPathWaypointIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiMovementPathWaypointTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_ai_movement_path_waypoint`. - pub fn id(&self) -> GameCreatureAiMovementPathWaypointIdUnique<'ctx> { - GameCreatureAiMovementPathWaypointIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiMovementPathWaypointIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::( - "game_creature_ai_movement_path_waypoint", - ); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse( - "TableUpdate", - "TableUpdate", - ) - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiMovementPathWaypoint`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_movement_path_waypointQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiMovementPathWaypoint`. - fn game_creature_ai_movement_path_waypoint( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_movement_path_waypointQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_movement_path_waypoint( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_movement_path_waypoint") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_relay_arrival_table.rs b/gateway/src/stdb/bindings/game_creature_ai_relay_arrival_table.rs deleted file mode 100644 index 71c086e6c..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_relay_arrival_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::relay_arrival_type::RelayArrival; -use super::relay_lifetime_type::RelayLifetime; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_relay_arrival`. -/// -/// Obtain a handle from the [`GameCreatureAiRelayArrivalTableAccess::game_creature_ai_relay_arrival`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_relay_arrival()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_relay_arrival().on_insert(...)`. -pub struct GameCreatureAiRelayArrivalTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_relay_arrival`. -pub struct GameCreatureAiRelayArrivalTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiRelayArrivalTableAccessor { - type Row = RelayArrival; - type Handle<'db> = GameCreatureAiRelayArrivalTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_relay_arrival() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_relay_arrival`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiRelayArrivalTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiRelayArrivalTableHandle`], which mediates access to the table `game_creature_ai_relay_arrival`. - fn game_creature_ai_relay_arrival(&self) -> GameCreatureAiRelayArrivalTableHandle<'_>; -} - -impl GameCreatureAiRelayArrivalTableAccess for super::RemoteTables { - fn game_creature_ai_relay_arrival(&self) -> GameCreatureAiRelayArrivalTableHandle<'_> { - GameCreatureAiRelayArrivalTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_relay_arrival"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiRelayArrivalInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiRelayArrivalDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiRelayArrivalTableHandle<'ctx> { - type Row = RelayArrival; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiRelayArrivalTableHandle<'ctx> { - type Row = RelayArrival; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiRelayArrivalInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayArrivalInsertCallbackId { - GameCreatureAiRelayArrivalInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRelayArrivalInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiRelayArrivalDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayArrivalDeleteCallbackId { - GameCreatureAiRelayArrivalDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRelayArrivalDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiRelayArrivalTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiRelayArrivalInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayArrivalInsertCallbackId { - GameCreatureAiRelayArrivalInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRelayArrivalInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiRelayArrivalTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiRelayArrivalDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayArrivalDeleteCallbackId { - GameCreatureAiRelayArrivalDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRelayArrivalDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiRelayArrivalUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiRelayArrivalTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRelayArrivalUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayArrivalUpdateCallbackId { - GameCreatureAiRelayArrivalUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRelayArrivalUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiRelayArrivalTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRelayArrivalUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayArrivalUpdateCallbackId { - GameCreatureAiRelayArrivalUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRelayArrivalUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_creature_ai_relay_arrival`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiRelayArrivalScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_relay_arrival().scheduled_id().find(...)`. -pub struct GameCreatureAiRelayArrivalScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiRelayArrivalTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_creature_ai_relay_arrival`. - pub fn scheduled_id(&self) -> GameCreatureAiRelayArrivalScheduledIdUnique<'ctx> { - GameCreatureAiRelayArrivalScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiRelayArrivalScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_ai_relay_arrival"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RelayArrival`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_relay_arrivalQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RelayArrival`. - fn game_creature_ai_relay_arrival(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_relay_arrivalQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_relay_arrival(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_relay_arrival") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_relay_continuation_table.rs b/gateway/src/stdb/bindings/game_creature_ai_relay_continuation_table.rs deleted file mode 100644 index fef12c0d1..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_relay_continuation_table.rs +++ /dev/null @@ -1,238 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::relay_continuation_type::RelayContinuation; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_relay_continuation`. -/// -/// Obtain a handle from the [`GameCreatureAiRelayContinuationTableAccess::game_creature_ai_relay_continuation`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_relay_continuation()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_relay_continuation().on_insert(...)`. -pub struct GameCreatureAiRelayContinuationTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_relay_continuation`. -pub struct GameCreatureAiRelayContinuationTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiRelayContinuationTableAccessor { - type Row = RelayContinuation; - type Handle<'db> = GameCreatureAiRelayContinuationTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_relay_continuation() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_relay_continuation`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiRelayContinuationTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiRelayContinuationTableHandle`], which mediates access to the table `game_creature_ai_relay_continuation`. - fn game_creature_ai_relay_continuation(&self) - -> GameCreatureAiRelayContinuationTableHandle<'_>; -} - -impl GameCreatureAiRelayContinuationTableAccess for super::RemoteTables { - fn game_creature_ai_relay_continuation( - &self, - ) -> GameCreatureAiRelayContinuationTableHandle<'_> { - GameCreatureAiRelayContinuationTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_relay_continuation"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiRelayContinuationInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiRelayContinuationDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiRelayContinuationTableHandle<'ctx> { - type Row = RelayContinuation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiRelayContinuationTableHandle<'ctx> { - type Row = RelayContinuation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiRelayContinuationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayContinuationInsertCallbackId { - GameCreatureAiRelayContinuationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRelayContinuationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiRelayContinuationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayContinuationDeleteCallbackId { - GameCreatureAiRelayContinuationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRelayContinuationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiRelayContinuationTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiRelayContinuationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayContinuationInsertCallbackId { - GameCreatureAiRelayContinuationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRelayContinuationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiRelayContinuationTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiRelayContinuationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayContinuationDeleteCallbackId { - GameCreatureAiRelayContinuationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRelayContinuationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiRelayContinuationUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiRelayContinuationTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRelayContinuationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayContinuationUpdateCallbackId { - GameCreatureAiRelayContinuationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRelayContinuationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiRelayContinuationTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRelayContinuationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayContinuationUpdateCallbackId { - GameCreatureAiRelayContinuationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRelayContinuationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_creature_ai_relay_continuation`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiRelayContinuationScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_relay_continuation().scheduled_id().find(...)`. -pub struct GameCreatureAiRelayContinuationScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiRelayContinuationTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_creature_ai_relay_continuation`. - pub fn scheduled_id(&self) -> GameCreatureAiRelayContinuationScheduledIdUnique<'ctx> { - GameCreatureAiRelayContinuationScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiRelayContinuationScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_ai_relay_continuation"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RelayContinuation`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_relay_continuationQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RelayContinuation`. - fn game_creature_ai_relay_continuation( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_relay_continuationQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_relay_continuation( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_relay_continuation") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_relay_definition_table.rs b/gateway/src/stdb/bindings/game_creature_ai_relay_definition_table.rs deleted file mode 100644 index 66c5a68c7..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_relay_definition_table.rs +++ /dev/null @@ -1,234 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::relay_concurrency_type::RelayConcurrency; -use super::relay_definition_type::RelayDefinition; -use super::relay_lifetime_type::RelayLifetime; -use super::relay_step_type::RelayStep; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_relay_definition`. -/// -/// Obtain a handle from the [`GameCreatureAiRelayDefinitionTableAccess::game_creature_ai_relay_definition`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_relay_definition()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_relay_definition().on_insert(...)`. -pub struct GameCreatureAiRelayDefinitionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_relay_definition`. -pub struct GameCreatureAiRelayDefinitionTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiRelayDefinitionTableAccessor { - type Row = RelayDefinition; - type Handle<'db> = GameCreatureAiRelayDefinitionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_relay_definition() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_relay_definition`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiRelayDefinitionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiRelayDefinitionTableHandle`], which mediates access to the table `game_creature_ai_relay_definition`. - fn game_creature_ai_relay_definition(&self) -> GameCreatureAiRelayDefinitionTableHandle<'_>; -} - -impl GameCreatureAiRelayDefinitionTableAccess for super::RemoteTables { - fn game_creature_ai_relay_definition(&self) -> GameCreatureAiRelayDefinitionTableHandle<'_> { - GameCreatureAiRelayDefinitionTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_relay_definition"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiRelayDefinitionInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiRelayDefinitionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiRelayDefinitionTableHandle<'ctx> { - type Row = RelayDefinition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiRelayDefinitionTableHandle<'ctx> { - type Row = RelayDefinition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiRelayDefinitionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayDefinitionInsertCallbackId { - GameCreatureAiRelayDefinitionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRelayDefinitionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiRelayDefinitionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayDefinitionDeleteCallbackId { - GameCreatureAiRelayDefinitionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRelayDefinitionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiRelayDefinitionTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiRelayDefinitionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayDefinitionInsertCallbackId { - GameCreatureAiRelayDefinitionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRelayDefinitionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiRelayDefinitionTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiRelayDefinitionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayDefinitionDeleteCallbackId { - GameCreatureAiRelayDefinitionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRelayDefinitionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiRelayDefinitionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiRelayDefinitionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRelayDefinitionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayDefinitionUpdateCallbackId { - GameCreatureAiRelayDefinitionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRelayDefinitionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiRelayDefinitionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRelayDefinitionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayDefinitionUpdateCallbackId { - GameCreatureAiRelayDefinitionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRelayDefinitionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_ai_relay_definition`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiRelayDefinitionIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_relay_definition().id().find(...)`. -pub struct GameCreatureAiRelayDefinitionIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiRelayDefinitionTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_ai_relay_definition`. - pub fn id(&self) -> GameCreatureAiRelayDefinitionIdUnique<'ctx> { - GameCreatureAiRelayDefinitionIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiRelayDefinitionIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_ai_relay_definition"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RelayDefinition`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_relay_definitionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RelayDefinition`. - fn game_creature_ai_relay_definition(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_relay_definitionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_relay_definition(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_relay_definition") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_relay_run_table.rs b/gateway/src/stdb/bindings/game_creature_ai_relay_run_table.rs deleted file mode 100644 index f39792424..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_relay_run_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::relay_concurrency_type::RelayConcurrency; -use super::relay_lifetime_type::RelayLifetime; -use super::relay_run_type::RelayRun; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_relay_run`. -/// -/// Obtain a handle from the [`GameCreatureAiRelayRunTableAccess::game_creature_ai_relay_run`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_relay_run()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_relay_run().on_insert(...)`. -pub struct GameCreatureAiRelayRunTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_relay_run`. -pub struct GameCreatureAiRelayRunTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiRelayRunTableAccessor { - type Row = RelayRun; - type Handle<'db> = GameCreatureAiRelayRunTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_relay_run() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_relay_run`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiRelayRunTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiRelayRunTableHandle`], which mediates access to the table `game_creature_ai_relay_run`. - fn game_creature_ai_relay_run(&self) -> GameCreatureAiRelayRunTableHandle<'_>; -} - -impl GameCreatureAiRelayRunTableAccess for super::RemoteTables { - fn game_creature_ai_relay_run(&self) -> GameCreatureAiRelayRunTableHandle<'_> { - GameCreatureAiRelayRunTableHandle { - imp: self.imp.get_table::("game_creature_ai_relay_run"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiRelayRunInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiRelayRunDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiRelayRunTableHandle<'ctx> { - type Row = RelayRun; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiRelayRunTableHandle<'ctx> { - type Row = RelayRun; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiRelayRunInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayRunInsertCallbackId { - GameCreatureAiRelayRunInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRelayRunInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiRelayRunDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayRunDeleteCallbackId { - GameCreatureAiRelayRunDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRelayRunDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiRelayRunTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiRelayRunInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayRunInsertCallbackId { - GameCreatureAiRelayRunInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRelayRunInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiRelayRunTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiRelayRunDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayRunDeleteCallbackId { - GameCreatureAiRelayRunDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRelayRunDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiRelayRunUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiRelayRunTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRelayRunUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayRunUpdateCallbackId { - GameCreatureAiRelayRunUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRelayRunUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiRelayRunTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRelayRunUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRelayRunUpdateCallbackId { - GameCreatureAiRelayRunUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRelayRunUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_ai_relay_run`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiRelayRunIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_relay_run().id().find(...)`. -pub struct GameCreatureAiRelayRunIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiRelayRunTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_ai_relay_run`. - pub fn id(&self) -> GameCreatureAiRelayRunIdUnique<'ctx> { - GameCreatureAiRelayRunIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiRelayRunIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_ai_relay_run"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RelayRun`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_relay_runQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RelayRun`. - fn game_creature_ai_relay_run(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_relay_runQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_relay_run(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_relay_run") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_reset_deferral_table.rs b/gateway/src/stdb/bindings/game_creature_ai_reset_deferral_table.rs deleted file mode 100644 index 96ff7556f..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_reset_deferral_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_reset_deferral_type::CreatureAiResetDeferral; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_reset_deferral`. -/// -/// Obtain a handle from the [`GameCreatureAiResetDeferralTableAccess::game_creature_ai_reset_deferral`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_reset_deferral()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_reset_deferral().on_insert(...)`. -pub struct GameCreatureAiResetDeferralTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_reset_deferral`. -pub struct GameCreatureAiResetDeferralTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiResetDeferralTableAccessor { - type Row = CreatureAiResetDeferral; - type Handle<'db> = GameCreatureAiResetDeferralTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_reset_deferral() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_reset_deferral`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiResetDeferralTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiResetDeferralTableHandle`], which mediates access to the table `game_creature_ai_reset_deferral`. - fn game_creature_ai_reset_deferral(&self) -> GameCreatureAiResetDeferralTableHandle<'_>; -} - -impl GameCreatureAiResetDeferralTableAccess for super::RemoteTables { - fn game_creature_ai_reset_deferral(&self) -> GameCreatureAiResetDeferralTableHandle<'_> { - GameCreatureAiResetDeferralTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_reset_deferral"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiResetDeferralInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiResetDeferralDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiResetDeferralTableHandle<'ctx> { - type Row = CreatureAiResetDeferral; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiResetDeferralTableHandle<'ctx> { - type Row = CreatureAiResetDeferral; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiResetDeferralInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiResetDeferralInsertCallbackId { - GameCreatureAiResetDeferralInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiResetDeferralInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiResetDeferralDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiResetDeferralDeleteCallbackId { - GameCreatureAiResetDeferralDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiResetDeferralDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiResetDeferralTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiResetDeferralInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiResetDeferralInsertCallbackId { - GameCreatureAiResetDeferralInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiResetDeferralInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiResetDeferralTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiResetDeferralDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiResetDeferralDeleteCallbackId { - GameCreatureAiResetDeferralDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiResetDeferralDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiResetDeferralUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiResetDeferralTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiResetDeferralUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiResetDeferralUpdateCallbackId { - GameCreatureAiResetDeferralUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiResetDeferralUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiResetDeferralTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiResetDeferralUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiResetDeferralUpdateCallbackId { - GameCreatureAiResetDeferralUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiResetDeferralUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_ai_reset_deferral`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiResetDeferralCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_reset_deferral().creature_guid().find(...)`. -pub struct GameCreatureAiResetDeferralCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiResetDeferralTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_ai_reset_deferral`. - pub fn creature_guid(&self) -> GameCreatureAiResetDeferralCreatureGuidUnique<'ctx> { - GameCreatureAiResetDeferralCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiResetDeferralCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_creature_ai_reset_deferral"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiResetDeferral`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_reset_deferralQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiResetDeferral`. - fn game_creature_ai_reset_deferral( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_reset_deferralQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_reset_deferral( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_reset_deferral") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_returning_home_table.rs b/gateway/src/stdb/bindings/game_creature_ai_returning_home_table.rs deleted file mode 100644 index 3edf0d37a..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_returning_home_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_returning_home_type::CreatureAiReturningHome; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_returning_home`. -/// -/// Obtain a handle from the [`GameCreatureAiReturningHomeTableAccess::game_creature_ai_returning_home`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_returning_home()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_returning_home().on_insert(...)`. -pub struct GameCreatureAiReturningHomeTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_returning_home`. -pub struct GameCreatureAiReturningHomeTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiReturningHomeTableAccessor { - type Row = CreatureAiReturningHome; - type Handle<'db> = GameCreatureAiReturningHomeTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_returning_home() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_returning_home`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiReturningHomeTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiReturningHomeTableHandle`], which mediates access to the table `game_creature_ai_returning_home`. - fn game_creature_ai_returning_home(&self) -> GameCreatureAiReturningHomeTableHandle<'_>; -} - -impl GameCreatureAiReturningHomeTableAccess for super::RemoteTables { - fn game_creature_ai_returning_home(&self) -> GameCreatureAiReturningHomeTableHandle<'_> { - GameCreatureAiReturningHomeTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_returning_home"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiReturningHomeInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiReturningHomeDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiReturningHomeTableHandle<'ctx> { - type Row = CreatureAiReturningHome; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiReturningHomeTableHandle<'ctx> { - type Row = CreatureAiReturningHome; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiReturningHomeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiReturningHomeInsertCallbackId { - GameCreatureAiReturningHomeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiReturningHomeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiReturningHomeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiReturningHomeDeleteCallbackId { - GameCreatureAiReturningHomeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiReturningHomeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiReturningHomeTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiReturningHomeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiReturningHomeInsertCallbackId { - GameCreatureAiReturningHomeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiReturningHomeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiReturningHomeTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiReturningHomeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiReturningHomeDeleteCallbackId { - GameCreatureAiReturningHomeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiReturningHomeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiReturningHomeUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiReturningHomeTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiReturningHomeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiReturningHomeUpdateCallbackId { - GameCreatureAiReturningHomeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiReturningHomeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiReturningHomeTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiReturningHomeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiReturningHomeUpdateCallbackId { - GameCreatureAiReturningHomeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiReturningHomeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_ai_returning_home`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiReturningHomeCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_returning_home().creature_guid().find(...)`. -pub struct GameCreatureAiReturningHomeCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiReturningHomeTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_ai_returning_home`. - pub fn creature_guid(&self) -> GameCreatureAiReturningHomeCreatureGuidUnique<'ctx> { - GameCreatureAiReturningHomeCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiReturningHomeCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_creature_ai_returning_home"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiReturningHome`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_returning_homeQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiReturningHome`. - fn game_creature_ai_returning_home( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_returning_homeQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_returning_home( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_returning_home") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_rule_state_table.rs b/gateway/src/stdb/bindings/game_creature_ai_rule_state_table.rs deleted file mode 100644 index f7f596927..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_rule_state_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_rule_state_type::CreatureAiRuleState; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_rule_state`. -/// -/// Obtain a handle from the [`GameCreatureAiRuleStateTableAccess::game_creature_ai_rule_state`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_rule_state()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_rule_state().on_insert(...)`. -pub struct GameCreatureAiRuleStateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_rule_state`. -pub struct GameCreatureAiRuleStateTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiRuleStateTableAccessor { - type Row = CreatureAiRuleState; - type Handle<'db> = GameCreatureAiRuleStateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_rule_state() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_rule_state`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiRuleStateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiRuleStateTableHandle`], which mediates access to the table `game_creature_ai_rule_state`. - fn game_creature_ai_rule_state(&self) -> GameCreatureAiRuleStateTableHandle<'_>; -} - -impl GameCreatureAiRuleStateTableAccess for super::RemoteTables { - fn game_creature_ai_rule_state(&self) -> GameCreatureAiRuleStateTableHandle<'_> { - GameCreatureAiRuleStateTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_rule_state"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiRuleStateInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiRuleStateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiRuleStateTableHandle<'ctx> { - type Row = CreatureAiRuleState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiRuleStateTableHandle<'ctx> { - type Row = CreatureAiRuleState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiRuleStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRuleStateInsertCallbackId { - GameCreatureAiRuleStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRuleStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiRuleStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRuleStateDeleteCallbackId { - GameCreatureAiRuleStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRuleStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiRuleStateTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiRuleStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRuleStateInsertCallbackId { - GameCreatureAiRuleStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiRuleStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiRuleStateTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiRuleStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRuleStateDeleteCallbackId { - GameCreatureAiRuleStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiRuleStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiRuleStateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiRuleStateTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRuleStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRuleStateUpdateCallbackId { - GameCreatureAiRuleStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRuleStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiRuleStateTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiRuleStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiRuleStateUpdateCallbackId { - GameCreatureAiRuleStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiRuleStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_ai_rule_state`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiRuleStateIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_rule_state().id().find(...)`. -pub struct GameCreatureAiRuleStateIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiRuleStateTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_ai_rule_state`. - pub fn id(&self) -> GameCreatureAiRuleStateIdUnique<'ctx> { - GameCreatureAiRuleStateIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiRuleStateIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_ai_rule_state"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiRuleState`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_rule_stateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiRuleState`. - fn game_creature_ai_rule_state(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_rule_stateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_rule_state(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_rule_state") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_spell_metadata_table.rs b/gateway/src/stdb/bindings/game_creature_ai_spell_metadata_table.rs deleted file mode 100644 index 65ed2ed0d..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_spell_metadata_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_spell_metadata_type::CreatureAiSpellMetadata; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_spell_metadata`. -/// -/// Obtain a handle from the [`GameCreatureAiSpellMetadataTableAccess::game_creature_ai_spell_metadata`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_spell_metadata()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_spell_metadata().on_insert(...)`. -pub struct GameCreatureAiSpellMetadataTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_spell_metadata`. -pub struct GameCreatureAiSpellMetadataTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiSpellMetadataTableAccessor { - type Row = CreatureAiSpellMetadata; - type Handle<'db> = GameCreatureAiSpellMetadataTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_spell_metadata() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_spell_metadata`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiSpellMetadataTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiSpellMetadataTableHandle`], which mediates access to the table `game_creature_ai_spell_metadata`. - fn game_creature_ai_spell_metadata(&self) -> GameCreatureAiSpellMetadataTableHandle<'_>; -} - -impl GameCreatureAiSpellMetadataTableAccess for super::RemoteTables { - fn game_creature_ai_spell_metadata(&self) -> GameCreatureAiSpellMetadataTableHandle<'_> { - GameCreatureAiSpellMetadataTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_spell_metadata"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiSpellMetadataInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiSpellMetadataDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiSpellMetadataTableHandle<'ctx> { - type Row = CreatureAiSpellMetadata; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiSpellMetadataTableHandle<'ctx> { - type Row = CreatureAiSpellMetadata; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiSpellMetadataInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSpellMetadataInsertCallbackId { - GameCreatureAiSpellMetadataInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiSpellMetadataInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiSpellMetadataDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSpellMetadataDeleteCallbackId { - GameCreatureAiSpellMetadataDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiSpellMetadataDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiSpellMetadataTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiSpellMetadataInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSpellMetadataInsertCallbackId { - GameCreatureAiSpellMetadataInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiSpellMetadataInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiSpellMetadataTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiSpellMetadataDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSpellMetadataDeleteCallbackId { - GameCreatureAiSpellMetadataDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiSpellMetadataDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiSpellMetadataUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiSpellMetadataTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiSpellMetadataUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSpellMetadataUpdateCallbackId { - GameCreatureAiSpellMetadataUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiSpellMetadataUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiSpellMetadataTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiSpellMetadataUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSpellMetadataUpdateCallbackId { - GameCreatureAiSpellMetadataUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiSpellMetadataUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `spell_id` unique index on the table `game_creature_ai_spell_metadata`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiSpellMetadataSpellIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_spell_metadata().spell_id().find(...)`. -pub struct GameCreatureAiSpellMetadataSpellIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiSpellMetadataTableHandle<'ctx> { - /// Get a handle on the `spell_id` unique index on the table `game_creature_ai_spell_metadata`. - pub fn spell_id(&self) -> GameCreatureAiSpellMetadataSpellIdUnique<'ctx> { - GameCreatureAiSpellMetadataSpellIdUnique { - imp: self.imp.get_unique_constraint::("spell_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiSpellMetadataSpellIdUnique<'ctx> { - /// Find the subscribed row whose `spell_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_creature_ai_spell_metadata"); - _table.add_unique_constraint::("spell_id", |row| &row.spell_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiSpellMetadata`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_spell_metadataQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiSpellMetadata`. - fn game_creature_ai_spell_metadata( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_spell_metadataQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_spell_metadata( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_spell_metadata") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_state_table.rs b/gateway/src/stdb/bindings/game_creature_ai_state_table.rs deleted file mode 100644 index 91d2004ef..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_state_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_state_type::CreatureAiState; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_state`. -/// -/// Obtain a handle from the [`GameCreatureAiStateTableAccess::game_creature_ai_state`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_state()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_state().on_insert(...)`. -pub struct GameCreatureAiStateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_state`. -pub struct GameCreatureAiStateTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiStateTableAccessor { - type Row = CreatureAiState; - type Handle<'db> = GameCreatureAiStateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_state() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_state`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiStateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiStateTableHandle`], which mediates access to the table `game_creature_ai_state`. - fn game_creature_ai_state(&self) -> GameCreatureAiStateTableHandle<'_>; -} - -impl GameCreatureAiStateTableAccess for super::RemoteTables { - fn game_creature_ai_state(&self) -> GameCreatureAiStateTableHandle<'_> { - GameCreatureAiStateTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_state"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiStateInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiStateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiStateTableHandle<'ctx> { - type Row = CreatureAiState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiStateTableHandle<'ctx> { - type Row = CreatureAiState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiStateInsertCallbackId { - GameCreatureAiStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiStateDeleteCallbackId { - GameCreatureAiStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiStateTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiStateInsertCallbackId { - GameCreatureAiStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiStateTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiStateDeleteCallbackId { - GameCreatureAiStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiStateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiStateTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiStateUpdateCallbackId { - GameCreatureAiStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiStateTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiStateUpdateCallbackId { - GameCreatureAiStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_ai_state`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiStateCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_state().creature_guid().find(...)`. -pub struct GameCreatureAiStateCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiStateTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_ai_state`. - pub fn creature_guid(&self) -> GameCreatureAiStateCreatureGuidUnique<'ctx> { - GameCreatureAiStateCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiStateCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_ai_state"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiState`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_stateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiState`. - fn game_creature_ai_state(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_stateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_state(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_state") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_summon_expiry_table.rs b/gateway/src/stdb/bindings/game_creature_ai_summon_expiry_table.rs deleted file mode 100644 index 73a5e41fe..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_summon_expiry_table.rs +++ /dev/null @@ -1,266 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_summon_expiry_type::CreatureAiSummonExpiry; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_summon_expiry`. -/// -/// Obtain a handle from the [`GameCreatureAiSummonExpiryTableAccess::game_creature_ai_summon_expiry`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_summon_expiry()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_summon_expiry().on_insert(...)`. -pub struct GameCreatureAiSummonExpiryTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_summon_expiry`. -pub struct GameCreatureAiSummonExpiryTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiSummonExpiryTableAccessor { - type Row = CreatureAiSummonExpiry; - type Handle<'db> = GameCreatureAiSummonExpiryTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_summon_expiry() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_summon_expiry`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiSummonExpiryTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiSummonExpiryTableHandle`], which mediates access to the table `game_creature_ai_summon_expiry`. - fn game_creature_ai_summon_expiry(&self) -> GameCreatureAiSummonExpiryTableHandle<'_>; -} - -impl GameCreatureAiSummonExpiryTableAccess for super::RemoteTables { - fn game_creature_ai_summon_expiry(&self) -> GameCreatureAiSummonExpiryTableHandle<'_> { - GameCreatureAiSummonExpiryTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_summon_expiry"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiSummonExpiryInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiSummonExpiryDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiSummonExpiryTableHandle<'ctx> { - type Row = CreatureAiSummonExpiry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiSummonExpiryTableHandle<'ctx> { - type Row = CreatureAiSummonExpiry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiSummonExpiryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonExpiryInsertCallbackId { - GameCreatureAiSummonExpiryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiSummonExpiryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiSummonExpiryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonExpiryDeleteCallbackId { - GameCreatureAiSummonExpiryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiSummonExpiryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiSummonExpiryTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiSummonExpiryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonExpiryInsertCallbackId { - GameCreatureAiSummonExpiryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiSummonExpiryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiSummonExpiryTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiSummonExpiryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonExpiryDeleteCallbackId { - GameCreatureAiSummonExpiryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiSummonExpiryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiSummonExpiryUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiSummonExpiryTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiSummonExpiryUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonExpiryUpdateCallbackId { - GameCreatureAiSummonExpiryUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiSummonExpiryUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiSummonExpiryTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiSummonExpiryUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonExpiryUpdateCallbackId { - GameCreatureAiSummonExpiryUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiSummonExpiryUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_creature_ai_summon_expiry`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiSummonExpiryScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_summon_expiry().scheduled_id().find(...)`. -pub struct GameCreatureAiSummonExpiryScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiSummonExpiryTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_creature_ai_summon_expiry`. - pub fn scheduled_id(&self) -> GameCreatureAiSummonExpiryScheduledIdUnique<'ctx> { - GameCreatureAiSummonExpiryScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiSummonExpiryScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_ai_summon_expiry`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiSummonExpiryCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_summon_expiry().creature_guid().find(...)`. -pub struct GameCreatureAiSummonExpiryCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiSummonExpiryTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_ai_summon_expiry`. - pub fn creature_guid(&self) -> GameCreatureAiSummonExpiryCreatureGuidUnique<'ctx> { - GameCreatureAiSummonExpiryCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiSummonExpiryCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_ai_summon_expiry"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiSummonExpiry`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_summon_expiryQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiSummonExpiry`. - fn game_creature_ai_summon_expiry( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_summon_expiryQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_summon_expiry( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_summon_expiry") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_summon_origin_table.rs b/gateway/src/stdb/bindings/game_creature_ai_summon_origin_table.rs deleted file mode 100644 index 2cc1493cd..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_summon_origin_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_summon_origin_type::CreatureAiSummonOrigin; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_summon_origin`. -/// -/// Obtain a handle from the [`GameCreatureAiSummonOriginTableAccess::game_creature_ai_summon_origin`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_summon_origin()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_summon_origin().on_insert(...)`. -pub struct GameCreatureAiSummonOriginTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_summon_origin`. -pub struct GameCreatureAiSummonOriginTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiSummonOriginTableAccessor { - type Row = CreatureAiSummonOrigin; - type Handle<'db> = GameCreatureAiSummonOriginTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_summon_origin() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_summon_origin`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiSummonOriginTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiSummonOriginTableHandle`], which mediates access to the table `game_creature_ai_summon_origin`. - fn game_creature_ai_summon_origin(&self) -> GameCreatureAiSummonOriginTableHandle<'_>; -} - -impl GameCreatureAiSummonOriginTableAccess for super::RemoteTables { - fn game_creature_ai_summon_origin(&self) -> GameCreatureAiSummonOriginTableHandle<'_> { - GameCreatureAiSummonOriginTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_summon_origin"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiSummonOriginInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiSummonOriginDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiSummonOriginTableHandle<'ctx> { - type Row = CreatureAiSummonOrigin; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiSummonOriginTableHandle<'ctx> { - type Row = CreatureAiSummonOrigin; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiSummonOriginInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonOriginInsertCallbackId { - GameCreatureAiSummonOriginInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiSummonOriginInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiSummonOriginDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonOriginDeleteCallbackId { - GameCreatureAiSummonOriginDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiSummonOriginDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiSummonOriginTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiSummonOriginInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonOriginInsertCallbackId { - GameCreatureAiSummonOriginInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiSummonOriginInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiSummonOriginTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiSummonOriginDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonOriginDeleteCallbackId { - GameCreatureAiSummonOriginDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiSummonOriginDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiSummonOriginUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiSummonOriginTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiSummonOriginUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonOriginUpdateCallbackId { - GameCreatureAiSummonOriginUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiSummonOriginUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiSummonOriginTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiSummonOriginUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonOriginUpdateCallbackId { - GameCreatureAiSummonOriginUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiSummonOriginUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_ai_summon_origin`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiSummonOriginCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_summon_origin().creature_guid().find(...)`. -pub struct GameCreatureAiSummonOriginCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiSummonOriginTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_ai_summon_origin`. - pub fn creature_guid(&self) -> GameCreatureAiSummonOriginCreatureGuidUnique<'ctx> { - GameCreatureAiSummonOriginCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiSummonOriginCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_ai_summon_origin"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiSummonOrigin`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_summon_originQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiSummonOrigin`. - fn game_creature_ai_summon_origin( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_summon_originQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_summon_origin( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_summon_origin") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_ai_summon_table.rs b/gateway/src/stdb/bindings/game_creature_ai_summon_table.rs deleted file mode 100644 index 542a3ea59..000000000 --- a/gateway/src/stdb/bindings/game_creature_ai_summon_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_ai_summon_type::CreatureAiSummon; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_ai_summon`. -/// -/// Obtain a handle from the [`GameCreatureAiSummonTableAccess::game_creature_ai_summon`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_ai_summon()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_summon().on_insert(...)`. -pub struct GameCreatureAiSummonTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_ai_summon`. -pub struct GameCreatureAiSummonTableAccessor; - -impl __sdk::TableAccessor for GameCreatureAiSummonTableAccessor { - type Row = CreatureAiSummon; - type Handle<'db> = GameCreatureAiSummonTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_ai_summon() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_ai_summon`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureAiSummonTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureAiSummonTableHandle`], which mediates access to the table `game_creature_ai_summon`. - fn game_creature_ai_summon(&self) -> GameCreatureAiSummonTableHandle<'_>; -} - -impl GameCreatureAiSummonTableAccess for super::RemoteTables { - fn game_creature_ai_summon(&self) -> GameCreatureAiSummonTableHandle<'_> { - GameCreatureAiSummonTableHandle { - imp: self - .imp - .get_table::("game_creature_ai_summon"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureAiSummonInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureAiSummonDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureAiSummonTableHandle<'ctx> { - type Row = CreatureAiSummon; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureAiSummonTableHandle<'ctx> { - type Row = CreatureAiSummon; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureAiSummonInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonInsertCallbackId { - GameCreatureAiSummonInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiSummonInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureAiSummonDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonDeleteCallbackId { - GameCreatureAiSummonDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiSummonDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureAiSummonTableHandle<'ctx> { - type InsertCallbackId = GameCreatureAiSummonInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonInsertCallbackId { - GameCreatureAiSummonInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureAiSummonInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureAiSummonTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureAiSummonDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonDeleteCallbackId { - GameCreatureAiSummonDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureAiSummonDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureAiSummonUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureAiSummonTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiSummonUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonUpdateCallbackId { - GameCreatureAiSummonUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiSummonUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureAiSummonTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureAiSummonUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureAiSummonUpdateCallbackId { - GameCreatureAiSummonUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureAiSummonUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_ai_summon`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureAiSummonIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_ai_summon().id().find(...)`. -pub struct GameCreatureAiSummonIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureAiSummonTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_ai_summon`. - pub fn id(&self) -> GameCreatureAiSummonIdUnique<'ctx> { - GameCreatureAiSummonIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureAiSummonIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_ai_summon"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureAiSummon`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_ai_summonQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureAiSummon`. - fn game_creature_ai_summon(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_ai_summonQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_ai_summon(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_ai_summon") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_cast_table.rs b/gateway/src/stdb/bindings/game_creature_cast_table.rs deleted file mode 100644 index d3203f18d..000000000 --- a/gateway/src/stdb/bindings/game_creature_cast_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_cast_type::CreatureCast; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_cast`. -/// -/// Obtain a handle from the [`GameCreatureCastTableAccess::game_creature_cast`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_cast()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_cast().on_insert(...)`. -pub struct GameCreatureCastTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_cast`. -pub struct GameCreatureCastTableAccessor; - -impl __sdk::TableAccessor for GameCreatureCastTableAccessor { - type Row = CreatureCast; - type Handle<'db> = GameCreatureCastTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_cast() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_cast`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureCastTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureCastTableHandle`], which mediates access to the table `game_creature_cast`. - fn game_creature_cast(&self) -> GameCreatureCastTableHandle<'_>; -} - -impl GameCreatureCastTableAccess for super::RemoteTables { - fn game_creature_cast(&self) -> GameCreatureCastTableHandle<'_> { - GameCreatureCastTableHandle { - imp: self.imp.get_table::("game_creature_cast"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureCastInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureCastDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureCastTableHandle<'ctx> { - type Row = CreatureCast; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureCastTableHandle<'ctx> { - type Row = CreatureCast; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureCastInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureCastInsertCallbackId { - GameCreatureCastInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureCastInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureCastDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureCastDeleteCallbackId { - GameCreatureCastDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureCastDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureCastTableHandle<'ctx> { - type InsertCallbackId = GameCreatureCastInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureCastInsertCallbackId { - GameCreatureCastInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureCastInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureCastTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureCastDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureCastDeleteCallbackId { - GameCreatureCastDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureCastDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureCastUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureCastTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureCastUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureCastUpdateCallbackId { - GameCreatureCastUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureCastUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureCastTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureCastUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureCastUpdateCallbackId { - GameCreatureCastUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureCastUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_entry` unique index on the table `game_creature_cast`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureCastCreatureEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_cast().creature_entry().find(...)`. -pub struct GameCreatureCastCreatureEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureCastTableHandle<'ctx> { - /// Get a handle on the `creature_entry` unique index on the table `game_creature_cast`. - pub fn creature_entry(&self) -> GameCreatureCastCreatureEntryUnique<'ctx> { - GameCreatureCastCreatureEntryUnique { - imp: self.imp.get_unique_constraint::("creature_entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureCastCreatureEntryUnique<'ctx> { - /// Find the subscribed row whose `creature_entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_cast"); - _table.add_unique_constraint::("creature_entry", |row| &row.creature_entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureCast`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_castQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureCast`. - fn game_creature_cast(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_castQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_cast(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_cast") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_dead_callback_cast_admission_table.rs b/gateway/src/stdb/bindings/game_creature_dead_callback_cast_admission_table.rs deleted file mode 100644 index 6f8a87e92..000000000 --- a/gateway/src/stdb/bindings/game_creature_dead_callback_cast_admission_table.rs +++ /dev/null @@ -1,257 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_dead_callback_cast_admission_type::CreatureDeadCallbackCastAdmission; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_dead_callback_cast_admission`. -/// -/// Obtain a handle from the [`GameCreatureDeadCallbackCastAdmissionTableAccess::game_creature_dead_callback_cast_admission`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_dead_callback_cast_admission()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_dead_callback_cast_admission().on_insert(...)`. -pub struct GameCreatureDeadCallbackCastAdmissionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_dead_callback_cast_admission`. -pub struct GameCreatureDeadCallbackCastAdmissionTableAccessor; - -impl __sdk::TableAccessor - for GameCreatureDeadCallbackCastAdmissionTableAccessor -{ - type Row = CreatureDeadCallbackCastAdmission; - type Handle<'db> = GameCreatureDeadCallbackCastAdmissionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_dead_callback_cast_admission() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_dead_callback_cast_admission`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureDeadCallbackCastAdmissionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureDeadCallbackCastAdmissionTableHandle`], which mediates access to the table `game_creature_dead_callback_cast_admission`. - fn game_creature_dead_callback_cast_admission( - &self, - ) -> GameCreatureDeadCallbackCastAdmissionTableHandle<'_>; -} - -impl GameCreatureDeadCallbackCastAdmissionTableAccess for super::RemoteTables { - fn game_creature_dead_callback_cast_admission( - &self, - ) -> GameCreatureDeadCallbackCastAdmissionTableHandle<'_> { - GameCreatureDeadCallbackCastAdmissionTableHandle { - imp: self.imp.get_table::( - "game_creature_dead_callback_cast_admission", - ), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureDeadCallbackCastAdmissionInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureDeadCallbackCastAdmissionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureDeadCallbackCastAdmissionTableHandle<'ctx> { - type Row = CreatureDeadCallbackCastAdmission; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureDeadCallbackCastAdmissionTableHandle<'ctx> { - type Row = CreatureDeadCallbackCastAdmission; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureDeadCallbackCastAdmissionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureDeadCallbackCastAdmissionInsertCallbackId { - GameCreatureDeadCallbackCastAdmissionInsertCallbackId( - self.imp.on_insert(Box::new(callback)), - ) - } - - fn remove_on_insert(&self, callback: GameCreatureDeadCallbackCastAdmissionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureDeadCallbackCastAdmissionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureDeadCallbackCastAdmissionDeleteCallbackId { - GameCreatureDeadCallbackCastAdmissionDeleteCallbackId( - self.imp.on_delete(Box::new(callback)), - ) - } - - fn remove_on_delete(&self, callback: GameCreatureDeadCallbackCastAdmissionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureDeadCallbackCastAdmissionTableHandle<'ctx> { - type InsertCallbackId = GameCreatureDeadCallbackCastAdmissionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureDeadCallbackCastAdmissionInsertCallbackId { - GameCreatureDeadCallbackCastAdmissionInsertCallbackId( - self.imp.on_insert(Box::new(callback)), - ) - } - - fn remove_on_insert(&self, callback: GameCreatureDeadCallbackCastAdmissionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureDeadCallbackCastAdmissionTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureDeadCallbackCastAdmissionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureDeadCallbackCastAdmissionDeleteCallbackId { - GameCreatureDeadCallbackCastAdmissionDeleteCallbackId( - self.imp.on_delete(Box::new(callback)), - ) - } - - fn remove_on_delete(&self, callback: GameCreatureDeadCallbackCastAdmissionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureDeadCallbackCastAdmissionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureDeadCallbackCastAdmissionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureDeadCallbackCastAdmissionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureDeadCallbackCastAdmissionUpdateCallbackId { - GameCreatureDeadCallbackCastAdmissionUpdateCallbackId( - self.imp.on_update(Box::new(callback)), - ) - } - - fn remove_on_update(&self, callback: GameCreatureDeadCallbackCastAdmissionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureDeadCallbackCastAdmissionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureDeadCallbackCastAdmissionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureDeadCallbackCastAdmissionUpdateCallbackId { - GameCreatureDeadCallbackCastAdmissionUpdateCallbackId( - self.imp.on_update(Box::new(callback)), - ) - } - - fn remove_on_update(&self, callback: GameCreatureDeadCallbackCastAdmissionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `caster_guid` unique index on the table `game_creature_dead_callback_cast_admission`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureDeadCallbackCastAdmissionCasterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_dead_callback_cast_admission().caster_guid().find(...)`. -pub struct GameCreatureDeadCallbackCastAdmissionCasterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureDeadCallbackCastAdmissionTableHandle<'ctx> { - /// Get a handle on the `caster_guid` unique index on the table `game_creature_dead_callback_cast_admission`. - pub fn caster_guid(&self) -> GameCreatureDeadCallbackCastAdmissionCasterGuidUnique<'ctx> { - GameCreatureDeadCallbackCastAdmissionCasterGuidUnique { - imp: self.imp.get_unique_constraint::("caster_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureDeadCallbackCastAdmissionCasterGuidUnique<'ctx> { - /// Find the subscribed row whose `caster_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::( - "game_creature_dead_callback_cast_admission", - ); - _table.add_unique_constraint::("caster_guid", |row| &row.caster_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse( - "TableUpdate", - "TableUpdate", - ) - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureDeadCallbackCastAdmission`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_dead_callback_cast_admissionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureDeadCallbackCastAdmission`. - fn game_creature_dead_callback_cast_admission( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_dead_callback_cast_admissionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_dead_callback_cast_admission( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_dead_callback_cast_admission") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_distraction_table.rs b/gateway/src/stdb/bindings/game_creature_distraction_table.rs deleted file mode 100644 index f7d602277..000000000 --- a/gateway/src/stdb/bindings/game_creature_distraction_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_distraction_type::CreatureDistraction; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_distraction`. -/// -/// Obtain a handle from the [`GameCreatureDistractionTableAccess::game_creature_distraction`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_distraction()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_distraction().on_insert(...)`. -pub struct GameCreatureDistractionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_distraction`. -pub struct GameCreatureDistractionTableAccessor; - -impl __sdk::TableAccessor for GameCreatureDistractionTableAccessor { - type Row = CreatureDistraction; - type Handle<'db> = GameCreatureDistractionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_distraction() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_distraction`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureDistractionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureDistractionTableHandle`], which mediates access to the table `game_creature_distraction`. - fn game_creature_distraction(&self) -> GameCreatureDistractionTableHandle<'_>; -} - -impl GameCreatureDistractionTableAccess for super::RemoteTables { - fn game_creature_distraction(&self) -> GameCreatureDistractionTableHandle<'_> { - GameCreatureDistractionTableHandle { - imp: self - .imp - .get_table::("game_creature_distraction"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureDistractionInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureDistractionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureDistractionTableHandle<'ctx> { - type Row = CreatureDistraction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureDistractionTableHandle<'ctx> { - type Row = CreatureDistraction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureDistractionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureDistractionInsertCallbackId { - GameCreatureDistractionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureDistractionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureDistractionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureDistractionDeleteCallbackId { - GameCreatureDistractionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureDistractionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureDistractionTableHandle<'ctx> { - type InsertCallbackId = GameCreatureDistractionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureDistractionInsertCallbackId { - GameCreatureDistractionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureDistractionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureDistractionTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureDistractionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureDistractionDeleteCallbackId { - GameCreatureDistractionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureDistractionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureDistractionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureDistractionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureDistractionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureDistractionUpdateCallbackId { - GameCreatureDistractionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureDistractionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureDistractionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureDistractionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureDistractionUpdateCallbackId { - GameCreatureDistractionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureDistractionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_distraction`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureDistractionCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_distraction().creature_guid().find(...)`. -pub struct GameCreatureDistractionCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureDistractionTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_distraction`. - pub fn creature_guid(&self) -> GameCreatureDistractionCreatureGuidUnique<'ctx> { - GameCreatureDistractionCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureDistractionCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_distraction"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureDistraction`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_distractionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureDistraction`. - fn game_creature_distraction(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_distractionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_distraction(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_distraction") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_family_table.rs b/gateway/src/stdb/bindings/game_creature_family_table.rs deleted file mode 100644 index 7294bf36c..000000000 --- a/gateway/src/stdb/bindings/game_creature_family_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_family_type::CreatureFamily; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_family`. -/// -/// Obtain a handle from the [`GameCreatureFamilyTableAccess::game_creature_family`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_family()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_family().on_insert(...)`. -pub struct GameCreatureFamilyTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_family`. -pub struct GameCreatureFamilyTableAccessor; - -impl __sdk::TableAccessor for GameCreatureFamilyTableAccessor { - type Row = CreatureFamily; - type Handle<'db> = GameCreatureFamilyTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_family() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_family`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureFamilyTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureFamilyTableHandle`], which mediates access to the table `game_creature_family`. - fn game_creature_family(&self) -> GameCreatureFamilyTableHandle<'_>; -} - -impl GameCreatureFamilyTableAccess for super::RemoteTables { - fn game_creature_family(&self) -> GameCreatureFamilyTableHandle<'_> { - GameCreatureFamilyTableHandle { - imp: self.imp.get_table::("game_creature_family"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureFamilyInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureFamilyDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureFamilyTableHandle<'ctx> { - type Row = CreatureFamily; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureFamilyTableHandle<'ctx> { - type Row = CreatureFamily; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureFamilyInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureFamilyInsertCallbackId { - GameCreatureFamilyInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureFamilyInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureFamilyDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureFamilyDeleteCallbackId { - GameCreatureFamilyDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureFamilyDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureFamilyTableHandle<'ctx> { - type InsertCallbackId = GameCreatureFamilyInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureFamilyInsertCallbackId { - GameCreatureFamilyInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureFamilyInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureFamilyTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureFamilyDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureFamilyDeleteCallbackId { - GameCreatureFamilyDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureFamilyDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureFamilyUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureFamilyTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureFamilyUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureFamilyUpdateCallbackId { - GameCreatureFamilyUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureFamilyUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureFamilyTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureFamilyUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureFamilyUpdateCallbackId { - GameCreatureFamilyUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureFamilyUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `family_id` unique index on the table `game_creature_family`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureFamilyFamilyIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_family().family_id().find(...)`. -pub struct GameCreatureFamilyFamilyIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureFamilyTableHandle<'ctx> { - /// Get a handle on the `family_id` unique index on the table `game_creature_family`. - pub fn family_id(&self) -> GameCreatureFamilyFamilyIdUnique<'ctx> { - GameCreatureFamilyFamilyIdUnique { - imp: self.imp.get_unique_constraint::("family_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureFamilyFamilyIdUnique<'ctx> { - /// Find the subscribed row whose `family_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_family"); - _table.add_unique_constraint::("family_id", |row| &row.family_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureFamily`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_familyQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureFamily`. - fn game_creature_family(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_familyQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_family(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_family") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_gossip_menu_override_table.rs b/gateway/src/stdb/bindings/game_creature_gossip_menu_override_table.rs deleted file mode 100644 index 36838013c..000000000 --- a/gateway/src/stdb/bindings/game_creature_gossip_menu_override_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_gossip_menu_override_type::CreatureGossipMenuOverride; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_gossip_menu_override`. -/// -/// Obtain a handle from the [`GameCreatureGossipMenuOverrideTableAccess::game_creature_gossip_menu_override`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_gossip_menu_override()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_gossip_menu_override().on_insert(...)`. -pub struct GameCreatureGossipMenuOverrideTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_gossip_menu_override`. -pub struct GameCreatureGossipMenuOverrideTableAccessor; - -impl __sdk::TableAccessor for GameCreatureGossipMenuOverrideTableAccessor { - type Row = CreatureGossipMenuOverride; - type Handle<'db> = GameCreatureGossipMenuOverrideTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_gossip_menu_override() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_gossip_menu_override`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureGossipMenuOverrideTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureGossipMenuOverrideTableHandle`], which mediates access to the table `game_creature_gossip_menu_override`. - fn game_creature_gossip_menu_override(&self) -> GameCreatureGossipMenuOverrideTableHandle<'_>; -} - -impl GameCreatureGossipMenuOverrideTableAccess for super::RemoteTables { - fn game_creature_gossip_menu_override(&self) -> GameCreatureGossipMenuOverrideTableHandle<'_> { - GameCreatureGossipMenuOverrideTableHandle { - imp: self - .imp - .get_table::("game_creature_gossip_menu_override"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureGossipMenuOverrideInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureGossipMenuOverrideDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureGossipMenuOverrideTableHandle<'ctx> { - type Row = CreatureGossipMenuOverride; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureGossipMenuOverrideTableHandle<'ctx> { - type Row = CreatureGossipMenuOverride; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureGossipMenuOverrideInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureGossipMenuOverrideInsertCallbackId { - GameCreatureGossipMenuOverrideInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureGossipMenuOverrideInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureGossipMenuOverrideDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureGossipMenuOverrideDeleteCallbackId { - GameCreatureGossipMenuOverrideDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureGossipMenuOverrideDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureGossipMenuOverrideTableHandle<'ctx> { - type InsertCallbackId = GameCreatureGossipMenuOverrideInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureGossipMenuOverrideInsertCallbackId { - GameCreatureGossipMenuOverrideInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureGossipMenuOverrideInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureGossipMenuOverrideTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureGossipMenuOverrideDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureGossipMenuOverrideDeleteCallbackId { - GameCreatureGossipMenuOverrideDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureGossipMenuOverrideDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureGossipMenuOverrideUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureGossipMenuOverrideTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureGossipMenuOverrideUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureGossipMenuOverrideUpdateCallbackId { - GameCreatureGossipMenuOverrideUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureGossipMenuOverrideUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureGossipMenuOverrideTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureGossipMenuOverrideUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureGossipMenuOverrideUpdateCallbackId { - GameCreatureGossipMenuOverrideUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureGossipMenuOverrideUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_gossip_menu_override`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureGossipMenuOverrideCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_gossip_menu_override().creature_guid().find(...)`. -pub struct GameCreatureGossipMenuOverrideCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureGossipMenuOverrideTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_gossip_menu_override`. - pub fn creature_guid(&self) -> GameCreatureGossipMenuOverrideCreatureGuidUnique<'ctx> { - GameCreatureGossipMenuOverrideCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureGossipMenuOverrideCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_creature_gossip_menu_override"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureGossipMenuOverride`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_gossip_menu_overrideQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureGossipMenuOverride`. - fn game_creature_gossip_menu_override( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_gossip_menu_overrideQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_gossip_menu_override( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_gossip_menu_override") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_lethal_damage_floor_table.rs b/gateway/src/stdb/bindings/game_creature_lethal_damage_floor_table.rs deleted file mode 100644 index 0f3ca7a74..000000000 --- a/gateway/src/stdb/bindings/game_creature_lethal_damage_floor_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_lethal_damage_floor_type::CreatureLethalDamageFloor; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_lethal_damage_floor`. -/// -/// Obtain a handle from the [`GameCreatureLethalDamageFloorTableAccess::game_creature_lethal_damage_floor`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_lethal_damage_floor()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_lethal_damage_floor().on_insert(...)`. -pub struct GameCreatureLethalDamageFloorTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_lethal_damage_floor`. -pub struct GameCreatureLethalDamageFloorTableAccessor; - -impl __sdk::TableAccessor for GameCreatureLethalDamageFloorTableAccessor { - type Row = CreatureLethalDamageFloor; - type Handle<'db> = GameCreatureLethalDamageFloorTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_lethal_damage_floor() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_lethal_damage_floor`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureLethalDamageFloorTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureLethalDamageFloorTableHandle`], which mediates access to the table `game_creature_lethal_damage_floor`. - fn game_creature_lethal_damage_floor(&self) -> GameCreatureLethalDamageFloorTableHandle<'_>; -} - -impl GameCreatureLethalDamageFloorTableAccess for super::RemoteTables { - fn game_creature_lethal_damage_floor(&self) -> GameCreatureLethalDamageFloorTableHandle<'_> { - GameCreatureLethalDamageFloorTableHandle { - imp: self - .imp - .get_table::("game_creature_lethal_damage_floor"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureLethalDamageFloorInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureLethalDamageFloorDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureLethalDamageFloorTableHandle<'ctx> { - type Row = CreatureLethalDamageFloor; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureLethalDamageFloorTableHandle<'ctx> { - type Row = CreatureLethalDamageFloor; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureLethalDamageFloorInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLethalDamageFloorInsertCallbackId { - GameCreatureLethalDamageFloorInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureLethalDamageFloorInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureLethalDamageFloorDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLethalDamageFloorDeleteCallbackId { - GameCreatureLethalDamageFloorDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureLethalDamageFloorDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureLethalDamageFloorTableHandle<'ctx> { - type InsertCallbackId = GameCreatureLethalDamageFloorInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLethalDamageFloorInsertCallbackId { - GameCreatureLethalDamageFloorInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureLethalDamageFloorInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureLethalDamageFloorTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureLethalDamageFloorDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLethalDamageFloorDeleteCallbackId { - GameCreatureLethalDamageFloorDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureLethalDamageFloorDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureLethalDamageFloorUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureLethalDamageFloorTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureLethalDamageFloorUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureLethalDamageFloorUpdateCallbackId { - GameCreatureLethalDamageFloorUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureLethalDamageFloorUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureLethalDamageFloorTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureLethalDamageFloorUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureLethalDamageFloorUpdateCallbackId { - GameCreatureLethalDamageFloorUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureLethalDamageFloorUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_lethal_damage_floor`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureLethalDamageFloorCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_lethal_damage_floor().creature_guid().find(...)`. -pub struct GameCreatureLethalDamageFloorCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureLethalDamageFloorTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_lethal_damage_floor`. - pub fn creature_guid(&self) -> GameCreatureLethalDamageFloorCreatureGuidUnique<'ctx> { - GameCreatureLethalDamageFloorCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureLethalDamageFloorCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_creature_lethal_damage_floor"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureLethalDamageFloor`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_lethal_damage_floorQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureLethalDamageFloor`. - fn game_creature_lethal_damage_floor( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_lethal_damage_floorQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_lethal_damage_floor( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_lethal_damage_floor") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_loot_table.rs b/gateway/src/stdb/bindings/game_creature_loot_table.rs deleted file mode 100644 index 4a764dc2c..000000000 --- a/gateway/src/stdb/bindings/game_creature_loot_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_loot_type::CreatureLoot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_loot`. -/// -/// Obtain a handle from the [`GameCreatureLootTableAccess::game_creature_loot`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_loot()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_loot().on_insert(...)`. -pub struct GameCreatureLootTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_loot`. -pub struct GameCreatureLootTableAccessor; - -impl __sdk::TableAccessor for GameCreatureLootTableAccessor { - type Row = CreatureLoot; - type Handle<'db> = GameCreatureLootTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_loot() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_loot`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureLootTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureLootTableHandle`], which mediates access to the table `game_creature_loot`. - fn game_creature_loot(&self) -> GameCreatureLootTableHandle<'_>; -} - -impl GameCreatureLootTableAccess for super::RemoteTables { - fn game_creature_loot(&self) -> GameCreatureLootTableHandle<'_> { - GameCreatureLootTableHandle { - imp: self.imp.get_table::("game_creature_loot"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureLootInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureLootDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureLootTableHandle<'ctx> { - type Row = CreatureLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureLootTableHandle<'ctx> { - type Row = CreatureLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLootInsertCallbackId { - GameCreatureLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLootDeleteCallbackId { - GameCreatureLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureLootTableHandle<'ctx> { - type InsertCallbackId = GameCreatureLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLootInsertCallbackId { - GameCreatureLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureLootTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLootDeleteCallbackId { - GameCreatureLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureLootUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureLootTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureLootUpdateCallbackId { - GameCreatureLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureLootTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureLootUpdateCallbackId { - GameCreatureLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_loot`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureLootIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_loot().id().find(...)`. -pub struct GameCreatureLootIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureLootTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_loot`. - pub fn id(&self) -> GameCreatureLootIdUnique<'ctx> { - GameCreatureLootIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureLootIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_loot"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureLoot`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_lootQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureLoot`. - fn game_creature_loot(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_lootQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_loot(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_loot") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_loot_tag_group_table.rs b/gateway/src/stdb/bindings/game_creature_loot_tag_group_table.rs deleted file mode 100644 index f8257dbbb..000000000 --- a/gateway/src/stdb/bindings/game_creature_loot_tag_group_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_loot_tag_group_type::CreatureLootTagGroup; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_loot_tag_group`. -/// -/// Obtain a handle from the [`GameCreatureLootTagGroupTableAccess::game_creature_loot_tag_group`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_loot_tag_group()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_loot_tag_group().on_insert(...)`. -pub struct GameCreatureLootTagGroupTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_loot_tag_group`. -pub struct GameCreatureLootTagGroupTableAccessor; - -impl __sdk::TableAccessor for GameCreatureLootTagGroupTableAccessor { - type Row = CreatureLootTagGroup; - type Handle<'db> = GameCreatureLootTagGroupTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_loot_tag_group() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_loot_tag_group`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureLootTagGroupTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureLootTagGroupTableHandle`], which mediates access to the table `game_creature_loot_tag_group`. - fn game_creature_loot_tag_group(&self) -> GameCreatureLootTagGroupTableHandle<'_>; -} - -impl GameCreatureLootTagGroupTableAccess for super::RemoteTables { - fn game_creature_loot_tag_group(&self) -> GameCreatureLootTagGroupTableHandle<'_> { - GameCreatureLootTagGroupTableHandle { - imp: self - .imp - .get_table::("game_creature_loot_tag_group"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureLootTagGroupInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureLootTagGroupDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureLootTagGroupTableHandle<'ctx> { - type Row = CreatureLootTagGroup; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureLootTagGroupTableHandle<'ctx> { - type Row = CreatureLootTagGroup; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureLootTagGroupInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLootTagGroupInsertCallbackId { - GameCreatureLootTagGroupInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureLootTagGroupInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureLootTagGroupDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLootTagGroupDeleteCallbackId { - GameCreatureLootTagGroupDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureLootTagGroupDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureLootTagGroupTableHandle<'ctx> { - type InsertCallbackId = GameCreatureLootTagGroupInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLootTagGroupInsertCallbackId { - GameCreatureLootTagGroupInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureLootTagGroupInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureLootTagGroupTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureLootTagGroupDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureLootTagGroupDeleteCallbackId { - GameCreatureLootTagGroupDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureLootTagGroupDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureLootTagGroupUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureLootTagGroupTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureLootTagGroupUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureLootTagGroupUpdateCallbackId { - GameCreatureLootTagGroupUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureLootTagGroupUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureLootTagGroupTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureLootTagGroupUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureLootTagGroupUpdateCallbackId { - GameCreatureLootTagGroupUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureLootTagGroupUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_loot_tag_group`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureLootTagGroupCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_loot_tag_group().creature_guid().find(...)`. -pub struct GameCreatureLootTagGroupCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureLootTagGroupTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_loot_tag_group`. - pub fn creature_guid(&self) -> GameCreatureLootTagGroupCreatureGuidUnique<'ctx> { - GameCreatureLootTagGroupCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureLootTagGroupCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_loot_tag_group"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureLootTagGroup`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_loot_tag_groupQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureLootTagGroup`. - fn game_creature_loot_tag_group(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_loot_tag_groupQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_loot_tag_group(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_loot_tag_group") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_move_event_table.rs b/gateway/src/stdb/bindings/game_creature_move_event_table.rs deleted file mode 100644 index a6d2b7184..000000000 --- a/gateway/src/stdb/bindings/game_creature_move_event_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_move_event_type::CreatureMoveEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_move_event`. -/// -/// Obtain a handle from the [`GameCreatureMoveEventTableAccess::game_creature_move_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_move_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_move_event().on_insert(...)`. -pub struct GameCreatureMoveEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_move_event`. -pub struct GameCreatureMoveEventTableAccessor; - -impl __sdk::TableAccessor for GameCreatureMoveEventTableAccessor { - type Row = CreatureMoveEvent; - type Handle<'db> = GameCreatureMoveEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_move_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_move_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureMoveEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureMoveEventTableHandle`], which mediates access to the table `game_creature_move_event`. - fn game_creature_move_event(&self) -> GameCreatureMoveEventTableHandle<'_>; -} - -impl GameCreatureMoveEventTableAccess for super::RemoteTables { - fn game_creature_move_event(&self) -> GameCreatureMoveEventTableHandle<'_> { - GameCreatureMoveEventTableHandle { - imp: self - .imp - .get_table::("game_creature_move_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureMoveEventInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureMoveEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureMoveEventTableHandle<'ctx> { - type Row = CreatureMoveEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureMoveEventTableHandle<'ctx> { - type Row = CreatureMoveEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureMoveEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveEventInsertCallbackId { - GameCreatureMoveEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureMoveEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureMoveEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveEventDeleteCallbackId { - GameCreatureMoveEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureMoveEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureMoveEventTableHandle<'ctx> { - type InsertCallbackId = GameCreatureMoveEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveEventInsertCallbackId { - GameCreatureMoveEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureMoveEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureMoveEventTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureMoveEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveEventDeleteCallbackId { - GameCreatureMoveEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureMoveEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureMoveEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureMoveEventTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureMoveEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveEventUpdateCallbackId { - GameCreatureMoveEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureMoveEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureMoveEventTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureMoveEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveEventUpdateCallbackId { - GameCreatureMoveEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureMoveEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_move_event`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureMoveEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_move_event().id().find(...)`. -pub struct GameCreatureMoveEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureMoveEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_move_event`. - pub fn id(&self) -> GameCreatureMoveEventIdUnique<'ctx> { - GameCreatureMoveEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureMoveEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_move_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureMoveEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_move_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureMoveEvent`. - fn game_creature_move_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_move_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_move_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_move_event") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_move_schedule_table.rs b/gateway/src/stdb/bindings/game_creature_move_schedule_table.rs deleted file mode 100644 index 11186f6b1..000000000 --- a/gateway/src/stdb/bindings/game_creature_move_schedule_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_move_schedule_type::CreatureMoveSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_move_schedule`. -/// -/// Obtain a handle from the [`GameCreatureMoveScheduleTableAccess::game_creature_move_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_move_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_move_schedule().on_insert(...)`. -pub struct GameCreatureMoveScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_move_schedule`. -pub struct GameCreatureMoveScheduleTableAccessor; - -impl __sdk::TableAccessor for GameCreatureMoveScheduleTableAccessor { - type Row = CreatureMoveSchedule; - type Handle<'db> = GameCreatureMoveScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_move_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_move_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureMoveScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureMoveScheduleTableHandle`], which mediates access to the table `game_creature_move_schedule`. - fn game_creature_move_schedule(&self) -> GameCreatureMoveScheduleTableHandle<'_>; -} - -impl GameCreatureMoveScheduleTableAccess for super::RemoteTables { - fn game_creature_move_schedule(&self) -> GameCreatureMoveScheduleTableHandle<'_> { - GameCreatureMoveScheduleTableHandle { - imp: self - .imp - .get_table::("game_creature_move_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureMoveScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureMoveScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureMoveScheduleTableHandle<'ctx> { - type Row = CreatureMoveSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureMoveScheduleTableHandle<'ctx> { - type Row = CreatureMoveSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureMoveScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveScheduleInsertCallbackId { - GameCreatureMoveScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureMoveScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureMoveScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveScheduleDeleteCallbackId { - GameCreatureMoveScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureMoveScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureMoveScheduleTableHandle<'ctx> { - type InsertCallbackId = GameCreatureMoveScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveScheduleInsertCallbackId { - GameCreatureMoveScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureMoveScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureMoveScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureMoveScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveScheduleDeleteCallbackId { - GameCreatureMoveScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureMoveScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureMoveScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureMoveScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureMoveScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveScheduleUpdateCallbackId { - GameCreatureMoveScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureMoveScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureMoveScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureMoveScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureMoveScheduleUpdateCallbackId { - GameCreatureMoveScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureMoveScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_creature_move_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureMoveScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_move_schedule().scheduled_id().find(...)`. -pub struct GameCreatureMoveScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureMoveScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_creature_move_schedule`. - pub fn scheduled_id(&self) -> GameCreatureMoveScheduleScheduledIdUnique<'ctx> { - GameCreatureMoveScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureMoveScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_move_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureMoveSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_move_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureMoveSchedule`. - fn game_creature_move_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_move_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_move_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_move_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_presentation_table.rs b/gateway/src/stdb/bindings/game_creature_presentation_table.rs deleted file mode 100644 index 335be213d..000000000 --- a/gateway/src/stdb/bindings/game_creature_presentation_table.rs +++ /dev/null @@ -1,234 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_presentation_mount_type::CreaturePresentationMount; -use super::creature_presentation_type::CreaturePresentation; -use super::flag_override_type::FlagOverride; -use super::npc_flags_projection_type::NpcFlagsProjection; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_presentation`. -/// -/// Obtain a handle from the [`GameCreaturePresentationTableAccess::game_creature_presentation`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_presentation()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_presentation().on_insert(...)`. -pub struct GameCreaturePresentationTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_presentation`. -pub struct GameCreaturePresentationTableAccessor; - -impl __sdk::TableAccessor for GameCreaturePresentationTableAccessor { - type Row = CreaturePresentation; - type Handle<'db> = GameCreaturePresentationTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_presentation() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_presentation`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreaturePresentationTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreaturePresentationTableHandle`], which mediates access to the table `game_creature_presentation`. - fn game_creature_presentation(&self) -> GameCreaturePresentationTableHandle<'_>; -} - -impl GameCreaturePresentationTableAccess for super::RemoteTables { - fn game_creature_presentation(&self) -> GameCreaturePresentationTableHandle<'_> { - GameCreaturePresentationTableHandle { - imp: self - .imp - .get_table::("game_creature_presentation"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreaturePresentationInsertCallbackId(__sdk::CallbackId); -pub struct GameCreaturePresentationDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreaturePresentationTableHandle<'ctx> { - type Row = CreaturePresentation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreaturePresentationTableHandle<'ctx> { - type Row = CreaturePresentation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreaturePresentationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreaturePresentationInsertCallbackId { - GameCreaturePresentationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreaturePresentationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreaturePresentationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreaturePresentationDeleteCallbackId { - GameCreaturePresentationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreaturePresentationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreaturePresentationTableHandle<'ctx> { - type InsertCallbackId = GameCreaturePresentationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreaturePresentationInsertCallbackId { - GameCreaturePresentationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreaturePresentationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreaturePresentationTableHandle<'ctx> { - type DeleteCallbackId = GameCreaturePresentationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreaturePresentationDeleteCallbackId { - GameCreaturePresentationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreaturePresentationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreaturePresentationUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreaturePresentationTableHandle<'ctx> { - type UpdateCallbackId = GameCreaturePresentationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreaturePresentationUpdateCallbackId { - GameCreaturePresentationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreaturePresentationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreaturePresentationTableHandle<'ctx> { - type UpdateCallbackId = GameCreaturePresentationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreaturePresentationUpdateCallbackId { - GameCreaturePresentationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreaturePresentationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_presentation`, -/// which allows point queries on the field of the same name -/// via the [`GameCreaturePresentationCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_presentation().creature_guid().find(...)`. -pub struct GameCreaturePresentationCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreaturePresentationTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_presentation`. - pub fn creature_guid(&self) -> GameCreaturePresentationCreatureGuidUnique<'ctx> { - GameCreaturePresentationCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreaturePresentationCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_presentation"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreaturePresentation`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_presentationQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreaturePresentation`. - fn game_creature_presentation(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_presentationQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_presentation(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_presentation") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_quest_table.rs b/gateway/src/stdb/bindings/game_creature_quest_table.rs deleted file mode 100644 index 91be0bec9..000000000 --- a/gateway/src/stdb/bindings/game_creature_quest_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_quest_type::CreatureQuest; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_quest`. -/// -/// Obtain a handle from the [`GameCreatureQuestTableAccess::game_creature_quest`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_quest()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_quest().on_insert(...)`. -pub struct GameCreatureQuestTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_quest`. -pub struct GameCreatureQuestTableAccessor; - -impl __sdk::TableAccessor for GameCreatureQuestTableAccessor { - type Row = CreatureQuest; - type Handle<'db> = GameCreatureQuestTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_quest() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_quest`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureQuestTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureQuestTableHandle`], which mediates access to the table `game_creature_quest`. - fn game_creature_quest(&self) -> GameCreatureQuestTableHandle<'_>; -} - -impl GameCreatureQuestTableAccess for super::RemoteTables { - fn game_creature_quest(&self) -> GameCreatureQuestTableHandle<'_> { - GameCreatureQuestTableHandle { - imp: self.imp.get_table::("game_creature_quest"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureQuestInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureQuestDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureQuestTableHandle<'ctx> { - type Row = CreatureQuest; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureQuestTableHandle<'ctx> { - type Row = CreatureQuest; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureQuestInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestInsertCallbackId { - GameCreatureQuestInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureQuestInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureQuestDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestDeleteCallbackId { - GameCreatureQuestDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureQuestDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureQuestTableHandle<'ctx> { - type InsertCallbackId = GameCreatureQuestInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestInsertCallbackId { - GameCreatureQuestInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureQuestInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureQuestTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureQuestDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestDeleteCallbackId { - GameCreatureQuestDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureQuestDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureQuestUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureQuestTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureQuestUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestUpdateCallbackId { - GameCreatureQuestUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureQuestUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureQuestTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureQuestUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestUpdateCallbackId { - GameCreatureQuestUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureQuestUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_quest`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureQuestIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_quest().id().find(...)`. -pub struct GameCreatureQuestIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureQuestTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_quest`. - pub fn id(&self) -> GameCreatureQuestIdUnique<'ctx> { - GameCreatureQuestIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureQuestIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_quest"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureQuest`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_questQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureQuest`. - fn game_creature_quest(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_questQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_quest(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_quest") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_quest_tap_member_table.rs b/gateway/src/stdb/bindings/game_creature_quest_tap_member_table.rs deleted file mode 100644 index 9e6fa8bf9..000000000 --- a/gateway/src/stdb/bindings/game_creature_quest_tap_member_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_quest_tap_member_type::CreatureQuestTapMember; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_quest_tap_member`. -/// -/// Obtain a handle from the [`GameCreatureQuestTapMemberTableAccess::game_creature_quest_tap_member`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_quest_tap_member()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_quest_tap_member().on_insert(...)`. -pub struct GameCreatureQuestTapMemberTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_quest_tap_member`. -pub struct GameCreatureQuestTapMemberTableAccessor; - -impl __sdk::TableAccessor for GameCreatureQuestTapMemberTableAccessor { - type Row = CreatureQuestTapMember; - type Handle<'db> = GameCreatureQuestTapMemberTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_quest_tap_member() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_quest_tap_member`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureQuestTapMemberTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureQuestTapMemberTableHandle`], which mediates access to the table `game_creature_quest_tap_member`. - fn game_creature_quest_tap_member(&self) -> GameCreatureQuestTapMemberTableHandle<'_>; -} - -impl GameCreatureQuestTapMemberTableAccess for super::RemoteTables { - fn game_creature_quest_tap_member(&self) -> GameCreatureQuestTapMemberTableHandle<'_> { - GameCreatureQuestTapMemberTableHandle { - imp: self - .imp - .get_table::("game_creature_quest_tap_member"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureQuestTapMemberInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureQuestTapMemberDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureQuestTapMemberTableHandle<'ctx> { - type Row = CreatureQuestTapMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureQuestTapMemberTableHandle<'ctx> { - type Row = CreatureQuestTapMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureQuestTapMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapMemberInsertCallbackId { - GameCreatureQuestTapMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureQuestTapMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureQuestTapMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapMemberDeleteCallbackId { - GameCreatureQuestTapMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureQuestTapMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureQuestTapMemberTableHandle<'ctx> { - type InsertCallbackId = GameCreatureQuestTapMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapMemberInsertCallbackId { - GameCreatureQuestTapMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureQuestTapMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureQuestTapMemberTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureQuestTapMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapMemberDeleteCallbackId { - GameCreatureQuestTapMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureQuestTapMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureQuestTapMemberUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureQuestTapMemberTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureQuestTapMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapMemberUpdateCallbackId { - GameCreatureQuestTapMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureQuestTapMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureQuestTapMemberTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureQuestTapMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapMemberUpdateCallbackId { - GameCreatureQuestTapMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureQuestTapMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_quest_tap_member`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureQuestTapMemberIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_quest_tap_member().id().find(...)`. -pub struct GameCreatureQuestTapMemberIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureQuestTapMemberTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_quest_tap_member`. - pub fn id(&self) -> GameCreatureQuestTapMemberIdUnique<'ctx> { - GameCreatureQuestTapMemberIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureQuestTapMemberIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_creature_quest_tap_member"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureQuestTapMember`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_quest_tap_memberQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureQuestTapMember`. - fn game_creature_quest_tap_member( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_quest_tap_memberQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_quest_tap_member( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_quest_tap_member") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_quest_tap_table.rs b/gateway/src/stdb/bindings/game_creature_quest_tap_table.rs deleted file mode 100644 index fbf001432..000000000 --- a/gateway/src/stdb/bindings/game_creature_quest_tap_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_quest_tap_type::CreatureQuestTap; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_quest_tap`. -/// -/// Obtain a handle from the [`GameCreatureQuestTapTableAccess::game_creature_quest_tap`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_quest_tap()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_quest_tap().on_insert(...)`. -pub struct GameCreatureQuestTapTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_quest_tap`. -pub struct GameCreatureQuestTapTableAccessor; - -impl __sdk::TableAccessor for GameCreatureQuestTapTableAccessor { - type Row = CreatureQuestTap; - type Handle<'db> = GameCreatureQuestTapTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_quest_tap() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_quest_tap`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureQuestTapTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureQuestTapTableHandle`], which mediates access to the table `game_creature_quest_tap`. - fn game_creature_quest_tap(&self) -> GameCreatureQuestTapTableHandle<'_>; -} - -impl GameCreatureQuestTapTableAccess for super::RemoteTables { - fn game_creature_quest_tap(&self) -> GameCreatureQuestTapTableHandle<'_> { - GameCreatureQuestTapTableHandle { - imp: self - .imp - .get_table::("game_creature_quest_tap"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureQuestTapInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureQuestTapDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureQuestTapTableHandle<'ctx> { - type Row = CreatureQuestTap; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureQuestTapTableHandle<'ctx> { - type Row = CreatureQuestTap; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureQuestTapInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapInsertCallbackId { - GameCreatureQuestTapInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureQuestTapInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureQuestTapDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapDeleteCallbackId { - GameCreatureQuestTapDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureQuestTapDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureQuestTapTableHandle<'ctx> { - type InsertCallbackId = GameCreatureQuestTapInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapInsertCallbackId { - GameCreatureQuestTapInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureQuestTapInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureQuestTapTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureQuestTapDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapDeleteCallbackId { - GameCreatureQuestTapDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureQuestTapDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureQuestTapUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureQuestTapTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureQuestTapUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapUpdateCallbackId { - GameCreatureQuestTapUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureQuestTapUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureQuestTapTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureQuestTapUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureQuestTapUpdateCallbackId { - GameCreatureQuestTapUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureQuestTapUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_quest_tap`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureQuestTapCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_quest_tap().creature_guid().find(...)`. -pub struct GameCreatureQuestTapCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureQuestTapTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_quest_tap`. - pub fn creature_guid(&self) -> GameCreatureQuestTapCreatureGuidUnique<'ctx> { - GameCreatureQuestTapCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureQuestTapCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_quest_tap"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureQuestTap`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_quest_tapQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureQuestTap`. - fn game_creature_quest_tap(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_quest_tapQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_quest_tap(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_quest_tap") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_relay_temporary_faction_table.rs b/gateway/src/stdb/bindings/game_creature_relay_temporary_faction_table.rs deleted file mode 100644 index 2a1b9ca74..000000000 --- a/gateway/src/stdb/bindings/game_creature_relay_temporary_faction_table.rs +++ /dev/null @@ -1,243 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_relay_temporary_faction_type::CreatureRelayTemporaryFaction; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_relay_temporary_faction`. -/// -/// Obtain a handle from the [`GameCreatureRelayTemporaryFactionTableAccess::game_creature_relay_temporary_faction`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_relay_temporary_faction()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_relay_temporary_faction().on_insert(...)`. -pub struct GameCreatureRelayTemporaryFactionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_relay_temporary_faction`. -pub struct GameCreatureRelayTemporaryFactionTableAccessor; - -impl __sdk::TableAccessor for GameCreatureRelayTemporaryFactionTableAccessor { - type Row = CreatureRelayTemporaryFaction; - type Handle<'db> = GameCreatureRelayTemporaryFactionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_relay_temporary_faction() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_relay_temporary_faction`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureRelayTemporaryFactionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureRelayTemporaryFactionTableHandle`], which mediates access to the table `game_creature_relay_temporary_faction`. - fn game_creature_relay_temporary_faction( - &self, - ) -> GameCreatureRelayTemporaryFactionTableHandle<'_>; -} - -impl GameCreatureRelayTemporaryFactionTableAccess for super::RemoteTables { - fn game_creature_relay_temporary_faction( - &self, - ) -> GameCreatureRelayTemporaryFactionTableHandle<'_> { - GameCreatureRelayTemporaryFactionTableHandle { - imp: self.imp.get_table::( - "game_creature_relay_temporary_faction", - ), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureRelayTemporaryFactionInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureRelayTemporaryFactionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureRelayTemporaryFactionTableHandle<'ctx> { - type Row = CreatureRelayTemporaryFaction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureRelayTemporaryFactionTableHandle<'ctx> { - type Row = CreatureRelayTemporaryFaction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureRelayTemporaryFactionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureRelayTemporaryFactionInsertCallbackId { - GameCreatureRelayTemporaryFactionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureRelayTemporaryFactionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureRelayTemporaryFactionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureRelayTemporaryFactionDeleteCallbackId { - GameCreatureRelayTemporaryFactionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureRelayTemporaryFactionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureRelayTemporaryFactionTableHandle<'ctx> { - type InsertCallbackId = GameCreatureRelayTemporaryFactionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureRelayTemporaryFactionInsertCallbackId { - GameCreatureRelayTemporaryFactionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureRelayTemporaryFactionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureRelayTemporaryFactionTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureRelayTemporaryFactionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureRelayTemporaryFactionDeleteCallbackId { - GameCreatureRelayTemporaryFactionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureRelayTemporaryFactionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureRelayTemporaryFactionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureRelayTemporaryFactionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureRelayTemporaryFactionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureRelayTemporaryFactionUpdateCallbackId { - GameCreatureRelayTemporaryFactionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureRelayTemporaryFactionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureRelayTemporaryFactionTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureRelayTemporaryFactionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureRelayTemporaryFactionUpdateCallbackId { - GameCreatureRelayTemporaryFactionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureRelayTemporaryFactionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_creature_relay_temporary_faction`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureRelayTemporaryFactionCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_relay_temporary_faction().creature_guid().find(...)`. -pub struct GameCreatureRelayTemporaryFactionCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureRelayTemporaryFactionTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_creature_relay_temporary_faction`. - pub fn creature_guid(&self) -> GameCreatureRelayTemporaryFactionCreatureGuidUnique<'ctx> { - GameCreatureRelayTemporaryFactionCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureRelayTemporaryFactionCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::( - "game_creature_relay_temporary_faction", - ); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse( - "TableUpdate", - "TableUpdate", - ) - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureRelayTemporaryFaction`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_relay_temporary_factionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureRelayTemporaryFaction`. - fn game_creature_relay_temporary_faction( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_creature_relay_temporary_factionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_relay_temporary_faction( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_relay_temporary_faction") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_spawn_table.rs b/gateway/src/stdb/bindings/game_creature_spawn_table.rs deleted file mode 100644 index 75fa9dfc0..000000000 --- a/gateway/src/stdb/bindings/game_creature_spawn_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_spawn_type::CreatureSpawn; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_spawn`. -/// -/// Obtain a handle from the [`GameCreatureSpawnTableAccess::game_creature_spawn`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_spawn()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_spawn().on_insert(...)`. -pub struct GameCreatureSpawnTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_spawn`. -pub struct GameCreatureSpawnTableAccessor; - -impl __sdk::TableAccessor for GameCreatureSpawnTableAccessor { - type Row = CreatureSpawn; - type Handle<'db> = GameCreatureSpawnTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_spawn() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_spawn`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureSpawnTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureSpawnTableHandle`], which mediates access to the table `game_creature_spawn`. - fn game_creature_spawn(&self) -> GameCreatureSpawnTableHandle<'_>; -} - -impl GameCreatureSpawnTableAccess for super::RemoteTables { - fn game_creature_spawn(&self) -> GameCreatureSpawnTableHandle<'_> { - GameCreatureSpawnTableHandle { - imp: self.imp.get_table::("game_creature_spawn"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureSpawnInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureSpawnDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureSpawnTableHandle<'ctx> { - type Row = CreatureSpawn; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureSpawnTableHandle<'ctx> { - type Row = CreatureSpawn; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureSpawnInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSpawnInsertCallbackId { - GameCreatureSpawnInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureSpawnInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureSpawnDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSpawnDeleteCallbackId { - GameCreatureSpawnDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureSpawnDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureSpawnTableHandle<'ctx> { - type InsertCallbackId = GameCreatureSpawnInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSpawnInsertCallbackId { - GameCreatureSpawnInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureSpawnInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureSpawnTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureSpawnDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSpawnDeleteCallbackId { - GameCreatureSpawnDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureSpawnDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureSpawnUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureSpawnTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureSpawnUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureSpawnUpdateCallbackId { - GameCreatureSpawnUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureSpawnUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureSpawnTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureSpawnUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureSpawnUpdateCallbackId { - GameCreatureSpawnUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureSpawnUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_creature_spawn`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureSpawnGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_spawn().guid().find(...)`. -pub struct GameCreatureSpawnGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureSpawnTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_creature_spawn`. - pub fn guid(&self) -> GameCreatureSpawnGuidUnique<'ctx> { - GameCreatureSpawnGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureSpawnGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_spawn"); - _table.add_unique_constraint::("guid", |row| &row.guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureSpawn`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_spawnQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureSpawn`. - fn game_creature_spawn(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_spawnQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_spawn(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_spawn") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_spell_table.rs b/gateway/src/stdb/bindings/game_creature_spell_table.rs deleted file mode 100644 index 8b9de12ee..000000000 --- a/gateway/src/stdb/bindings/game_creature_spell_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_spell_type::CreatureSpell; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_spell`. -/// -/// Obtain a handle from the [`GameCreatureSpellTableAccess::game_creature_spell`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_spell()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_spell().on_insert(...)`. -pub struct GameCreatureSpellTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_spell`. -pub struct GameCreatureSpellTableAccessor; - -impl __sdk::TableAccessor for GameCreatureSpellTableAccessor { - type Row = CreatureSpell; - type Handle<'db> = GameCreatureSpellTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_spell() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_spell`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureSpellTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureSpellTableHandle`], which mediates access to the table `game_creature_spell`. - fn game_creature_spell(&self) -> GameCreatureSpellTableHandle<'_>; -} - -impl GameCreatureSpellTableAccess for super::RemoteTables { - fn game_creature_spell(&self) -> GameCreatureSpellTableHandle<'_> { - GameCreatureSpellTableHandle { - imp: self.imp.get_table::("game_creature_spell"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureSpellInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureSpellDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureSpellTableHandle<'ctx> { - type Row = CreatureSpell; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureSpellTableHandle<'ctx> { - type Row = CreatureSpell; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureSpellInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSpellInsertCallbackId { - GameCreatureSpellInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureSpellInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureSpellDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSpellDeleteCallbackId { - GameCreatureSpellDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureSpellDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureSpellTableHandle<'ctx> { - type InsertCallbackId = GameCreatureSpellInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSpellInsertCallbackId { - GameCreatureSpellInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureSpellInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureSpellTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureSpellDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSpellDeleteCallbackId { - GameCreatureSpellDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureSpellDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureSpellUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureSpellTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureSpellUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureSpellUpdateCallbackId { - GameCreatureSpellUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureSpellUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureSpellTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureSpellUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureSpellUpdateCallbackId { - GameCreatureSpellUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureSpellUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_spell`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureSpellIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_spell().id().find(...)`. -pub struct GameCreatureSpellIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureSpellTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_spell`. - pub fn id(&self) -> GameCreatureSpellIdUnique<'ctx> { - GameCreatureSpellIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureSpellIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_spell"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureSpell`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_spellQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureSpell`. - fn game_creature_spell(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_spellQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_spell(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_spell") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_spline_table.rs b/gateway/src/stdb/bindings/game_creature_spline_table.rs deleted file mode 100644 index 9a3934320..000000000 --- a/gateway/src/stdb/bindings/game_creature_spline_table.rs +++ /dev/null @@ -1,229 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_path_type::CreaturePath; -use super::creature_spline_type::CreatureSpline; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_spline`. -/// -/// Obtain a handle from the [`GameCreatureSplineTableAccess::game_creature_spline`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_spline()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_spline().on_insert(...)`. -pub struct GameCreatureSplineTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_spline`. -pub struct GameCreatureSplineTableAccessor; - -impl __sdk::TableAccessor for GameCreatureSplineTableAccessor { - type Row = CreatureSpline; - type Handle<'db> = GameCreatureSplineTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_spline() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_spline`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureSplineTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureSplineTableHandle`], which mediates access to the table `game_creature_spline`. - fn game_creature_spline(&self) -> GameCreatureSplineTableHandle<'_>; -} - -impl GameCreatureSplineTableAccess for super::RemoteTables { - fn game_creature_spline(&self) -> GameCreatureSplineTableHandle<'_> { - GameCreatureSplineTableHandle { - imp: self.imp.get_table::("game_creature_spline"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureSplineInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureSplineDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureSplineTableHandle<'ctx> { - type Row = CreatureSpline; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureSplineTableHandle<'ctx> { - type Row = CreatureSpline; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureSplineInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSplineInsertCallbackId { - GameCreatureSplineInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureSplineInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureSplineDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSplineDeleteCallbackId { - GameCreatureSplineDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureSplineDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureSplineTableHandle<'ctx> { - type InsertCallbackId = GameCreatureSplineInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSplineInsertCallbackId { - GameCreatureSplineInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureSplineInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureSplineTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureSplineDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureSplineDeleteCallbackId { - GameCreatureSplineDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureSplineDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureSplineUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureSplineTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureSplineUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureSplineUpdateCallbackId { - GameCreatureSplineUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureSplineUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureSplineTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureSplineUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureSplineUpdateCallbackId { - GameCreatureSplineUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureSplineUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_creature_spline`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureSplineGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_spline().guid().find(...)`. -pub struct GameCreatureSplineGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureSplineTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_creature_spline`. - pub fn guid(&self) -> GameCreatureSplineGuidUnique<'ctx> { - GameCreatureSplineGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureSplineGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_spline"); - _table.add_unique_constraint::("guid", |row| &row.guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureSpline`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_splineQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureSpline`. - fn game_creature_spline(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_splineQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_spline(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_spline") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_template_table.rs b/gateway/src/stdb/bindings/game_creature_template_table.rs deleted file mode 100644 index d200d18d9..000000000 --- a/gateway/src/stdb/bindings/game_creature_template_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_template_type::CreatureTemplate; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_template`. -/// -/// Obtain a handle from the [`GameCreatureTemplateTableAccess::game_creature_template`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_template()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_template().on_insert(...)`. -pub struct GameCreatureTemplateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_template`. -pub struct GameCreatureTemplateTableAccessor; - -impl __sdk::TableAccessor for GameCreatureTemplateTableAccessor { - type Row = CreatureTemplate; - type Handle<'db> = GameCreatureTemplateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_template() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_template`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureTemplateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureTemplateTableHandle`], which mediates access to the table `game_creature_template`. - fn game_creature_template(&self) -> GameCreatureTemplateTableHandle<'_>; -} - -impl GameCreatureTemplateTableAccess for super::RemoteTables { - fn game_creature_template(&self) -> GameCreatureTemplateTableHandle<'_> { - GameCreatureTemplateTableHandle { - imp: self - .imp - .get_table::("game_creature_template"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureTemplateInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureTemplateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureTemplateTableHandle<'ctx> { - type Row = CreatureTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureTemplateTableHandle<'ctx> { - type Row = CreatureTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureTemplateInsertCallbackId { - GameCreatureTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureTemplateDeleteCallbackId { - GameCreatureTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureTemplateTableHandle<'ctx> { - type InsertCallbackId = GameCreatureTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureTemplateInsertCallbackId { - GameCreatureTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureTemplateTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureTemplateDeleteCallbackId { - GameCreatureTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureTemplateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureTemplateUpdateCallbackId { - GameCreatureTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureTemplateUpdateCallbackId { - GameCreatureTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entry` unique index on the table `game_creature_template`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureTemplateEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_template().entry().find(...)`. -pub struct GameCreatureTemplateEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureTemplateTableHandle<'ctx> { - /// Get a handle on the `entry` unique index on the table `game_creature_template`. - pub fn entry(&self) -> GameCreatureTemplateEntryUnique<'ctx> { - GameCreatureTemplateEntryUnique { - imp: self.imp.get_unique_constraint::("entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureTemplateEntryUnique<'ctx> { - /// Find the subscribed row whose `entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_template"); - _table.add_unique_constraint::("entry", |row| &row.entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureTemplate`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_templateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureTemplate`. - fn game_creature_template(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_templateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_template(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_template") - } -} diff --git a/gateway/src/stdb/bindings/game_creature_waypoint_table.rs b/gateway/src/stdb/bindings/game_creature_waypoint_table.rs deleted file mode 100644 index 16fae8068..000000000 --- a/gateway/src/stdb/bindings/game_creature_waypoint_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::creature_waypoint_type::CreatureWaypoint; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_creature_waypoint`. -/// -/// Obtain a handle from the [`GameCreatureWaypointTableAccess::game_creature_waypoint`] method on [`super::RemoteTables`], -/// like `ctx.db.game_creature_waypoint()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_waypoint().on_insert(...)`. -pub struct GameCreatureWaypointTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_creature_waypoint`. -pub struct GameCreatureWaypointTableAccessor; - -impl __sdk::TableAccessor for GameCreatureWaypointTableAccessor { - type Row = CreatureWaypoint; - type Handle<'db> = GameCreatureWaypointTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_creature_waypoint() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_creature_waypoint`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameCreatureWaypointTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameCreatureWaypointTableHandle`], which mediates access to the table `game_creature_waypoint`. - fn game_creature_waypoint(&self) -> GameCreatureWaypointTableHandle<'_>; -} - -impl GameCreatureWaypointTableAccess for super::RemoteTables { - fn game_creature_waypoint(&self) -> GameCreatureWaypointTableHandle<'_> { - GameCreatureWaypointTableHandle { - imp: self - .imp - .get_table::("game_creature_waypoint"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameCreatureWaypointInsertCallbackId(__sdk::CallbackId); -pub struct GameCreatureWaypointDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameCreatureWaypointTableHandle<'ctx> { - type Row = CreatureWaypoint; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameCreatureWaypointTableHandle<'ctx> { - type Row = CreatureWaypoint; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameCreatureWaypointInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureWaypointInsertCallbackId { - GameCreatureWaypointInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureWaypointInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameCreatureWaypointDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureWaypointDeleteCallbackId { - GameCreatureWaypointDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureWaypointDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameCreatureWaypointTableHandle<'ctx> { - type InsertCallbackId = GameCreatureWaypointInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureWaypointInsertCallbackId { - GameCreatureWaypointInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameCreatureWaypointInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameCreatureWaypointTableHandle<'ctx> { - type DeleteCallbackId = GameCreatureWaypointDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameCreatureWaypointDeleteCallbackId { - GameCreatureWaypointDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameCreatureWaypointDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameCreatureWaypointUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameCreatureWaypointTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureWaypointUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureWaypointUpdateCallbackId { - GameCreatureWaypointUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureWaypointUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameCreatureWaypointTableHandle<'ctx> { - type UpdateCallbackId = GameCreatureWaypointUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameCreatureWaypointUpdateCallbackId { - GameCreatureWaypointUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameCreatureWaypointUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_creature_waypoint`, -/// which allows point queries on the field of the same name -/// via the [`GameCreatureWaypointIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_creature_waypoint().id().find(...)`. -pub struct GameCreatureWaypointIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameCreatureWaypointTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_creature_waypoint`. - pub fn id(&self) -> GameCreatureWaypointIdUnique<'ctx> { - GameCreatureWaypointIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameCreatureWaypointIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_creature_waypoint"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `CreatureWaypoint`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_creature_waypointQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CreatureWaypoint`. - fn game_creature_waypoint(&self) -> __sdk::__query_builder::Table; -} - -impl game_creature_waypointQueryTableAccess for __sdk::QueryTableAccessor { - fn game_creature_waypoint(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_creature_waypoint") - } -} diff --git a/gateway/src/stdb/bindings/game_debug_readout_table.rs b/gateway/src/stdb/bindings/game_debug_readout_table.rs deleted file mode 100644 index a2514b01d..000000000 --- a/gateway/src/stdb/bindings/game_debug_readout_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::debug_readout_type::DebugReadout; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_debug_readout`. -/// -/// Obtain a handle from the [`GameDebugReadoutTableAccess::game_debug_readout`] method on [`super::RemoteTables`], -/// like `ctx.db.game_debug_readout()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_debug_readout().on_insert(...)`. -pub struct GameDebugReadoutTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_debug_readout`. -pub struct GameDebugReadoutTableAccessor; - -impl __sdk::TableAccessor for GameDebugReadoutTableAccessor { - type Row = DebugReadout; - type Handle<'db> = GameDebugReadoutTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_debug_readout() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_debug_readout`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameDebugReadoutTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameDebugReadoutTableHandle`], which mediates access to the table `game_debug_readout`. - fn game_debug_readout(&self) -> GameDebugReadoutTableHandle<'_>; -} - -impl GameDebugReadoutTableAccess for super::RemoteTables { - fn game_debug_readout(&self) -> GameDebugReadoutTableHandle<'_> { - GameDebugReadoutTableHandle { - imp: self.imp.get_table::("game_debug_readout"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameDebugReadoutInsertCallbackId(__sdk::CallbackId); -pub struct GameDebugReadoutDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameDebugReadoutTableHandle<'ctx> { - type Row = DebugReadout; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameDebugReadoutTableHandle<'ctx> { - type Row = DebugReadout; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameDebugReadoutInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDebugReadoutInsertCallbackId { - GameDebugReadoutInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDebugReadoutInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameDebugReadoutDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDebugReadoutDeleteCallbackId { - GameDebugReadoutDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDebugReadoutDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameDebugReadoutTableHandle<'ctx> { - type InsertCallbackId = GameDebugReadoutInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDebugReadoutInsertCallbackId { - GameDebugReadoutInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDebugReadoutInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameDebugReadoutTableHandle<'ctx> { - type DeleteCallbackId = GameDebugReadoutDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDebugReadoutDeleteCallbackId { - GameDebugReadoutDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDebugReadoutDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameDebugReadoutUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameDebugReadoutTableHandle<'ctx> { - type UpdateCallbackId = GameDebugReadoutUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDebugReadoutUpdateCallbackId { - GameDebugReadoutUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDebugReadoutUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameDebugReadoutTableHandle<'ctx> { - type UpdateCallbackId = GameDebugReadoutUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDebugReadoutUpdateCallbackId { - GameDebugReadoutUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDebugReadoutUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `key` unique index on the table `game_debug_readout`, -/// which allows point queries on the field of the same name -/// via the [`GameDebugReadoutKeyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_debug_readout().key().find(...)`. -pub struct GameDebugReadoutKeyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameDebugReadoutTableHandle<'ctx> { - /// Get a handle on the `key` unique index on the table `game_debug_readout`. - pub fn key(&self) -> GameDebugReadoutKeyUnique<'ctx> { - GameDebugReadoutKeyUnique { - imp: self.imp.get_unique_constraint::("key"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameDebugReadoutKeyUnique<'ctx> { - /// Find the subscribed row whose `key` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_debug_readout"); - _table.add_unique_constraint::("key", |row| &row.key); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `DebugReadout`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_debug_readoutQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `DebugReadout`. - fn game_debug_readout(&self) -> __sdk::__query_builder::Table; -} - -impl game_debug_readoutQueryTableAccess for __sdk::QueryTableAccessor { - fn game_debug_readout(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_debug_readout") - } -} diff --git a/gateway/src/stdb/bindings/game_dr_state_table.rs b/gateway/src/stdb/bindings/game_dr_state_table.rs deleted file mode 100644 index 1c351c672..000000000 --- a/gateway/src/stdb/bindings/game_dr_state_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::dr_state_type::DrState; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_dr_state`. -/// -/// Obtain a handle from the [`GameDrStateTableAccess::game_dr_state`] method on [`super::RemoteTables`], -/// like `ctx.db.game_dr_state()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_dr_state().on_insert(...)`. -pub struct GameDrStateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_dr_state`. -pub struct GameDrStateTableAccessor; - -impl __sdk::TableAccessor for GameDrStateTableAccessor { - type Row = DrState; - type Handle<'db> = GameDrStateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_dr_state() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_dr_state`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameDrStateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameDrStateTableHandle`], which mediates access to the table `game_dr_state`. - fn game_dr_state(&self) -> GameDrStateTableHandle<'_>; -} - -impl GameDrStateTableAccess for super::RemoteTables { - fn game_dr_state(&self) -> GameDrStateTableHandle<'_> { - GameDrStateTableHandle { - imp: self.imp.get_table::("game_dr_state"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameDrStateInsertCallbackId(__sdk::CallbackId); -pub struct GameDrStateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameDrStateTableHandle<'ctx> { - type Row = DrState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameDrStateTableHandle<'ctx> { - type Row = DrState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameDrStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDrStateInsertCallbackId { - GameDrStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDrStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameDrStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDrStateDeleteCallbackId { - GameDrStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDrStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameDrStateTableHandle<'ctx> { - type InsertCallbackId = GameDrStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDrStateInsertCallbackId { - GameDrStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDrStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameDrStateTableHandle<'ctx> { - type DeleteCallbackId = GameDrStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDrStateDeleteCallbackId { - GameDrStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDrStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameDrStateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameDrStateTableHandle<'ctx> { - type UpdateCallbackId = GameDrStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDrStateUpdateCallbackId { - GameDrStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDrStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameDrStateTableHandle<'ctx> { - type UpdateCallbackId = GameDrStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDrStateUpdateCallbackId { - GameDrStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDrStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_dr_state`, -/// which allows point queries on the field of the same name -/// via the [`GameDrStateIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_dr_state().id().find(...)`. -pub struct GameDrStateIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameDrStateTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_dr_state`. - pub fn id(&self) -> GameDrStateIdUnique<'ctx> { - GameDrStateIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameDrStateIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_dr_state"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `DrState`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_dr_stateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `DrState`. - fn game_dr_state(&self) -> __sdk::__query_builder::Table; -} - -impl game_dr_stateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_dr_state(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_dr_state") - } -} diff --git a/gateway/src/stdb/bindings/game_duel_event_table.rs b/gateway/src/stdb/bindings/game_duel_event_table.rs deleted file mode 100644 index 5a97863c7..000000000 --- a/gateway/src/stdb/bindings/game_duel_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::duel_event_type::DuelEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_duel_event`. -/// -/// Obtain a handle from the [`GameDuelEventTableAccess::game_duel_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_duel_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_duel_event().on_insert(...)`. -pub struct GameDuelEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_duel_event`. -pub struct GameDuelEventTableAccessor; - -impl __sdk::TableAccessor for GameDuelEventTableAccessor { - type Row = DuelEvent; - type Handle<'db> = GameDuelEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_duel_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_duel_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameDuelEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameDuelEventTableHandle`], which mediates access to the table `game_duel_event`. - fn game_duel_event(&self) -> GameDuelEventTableHandle<'_>; -} - -impl GameDuelEventTableAccess for super::RemoteTables { - fn game_duel_event(&self) -> GameDuelEventTableHandle<'_> { - GameDuelEventTableHandle { - imp: self.imp.get_table::("game_duel_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameDuelEventInsertCallbackId(__sdk::CallbackId); -pub struct GameDuelEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameDuelEventTableHandle<'ctx> { - type Row = DuelEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameDuelEventTableHandle<'ctx> { - type Row = DuelEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameDuelEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelEventInsertCallbackId { - GameDuelEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDuelEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameDuelEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelEventDeleteCallbackId { - GameDuelEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDuelEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameDuelEventTableHandle<'ctx> { - type InsertCallbackId = GameDuelEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelEventInsertCallbackId { - GameDuelEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDuelEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameDuelEventTableHandle<'ctx> { - type DeleteCallbackId = GameDuelEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelEventDeleteCallbackId { - GameDuelEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDuelEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameDuelEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameDuelEventTableHandle<'ctx> { - type UpdateCallbackId = GameDuelEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDuelEventUpdateCallbackId { - GameDuelEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDuelEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameDuelEventTableHandle<'ctx> { - type UpdateCallbackId = GameDuelEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDuelEventUpdateCallbackId { - GameDuelEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDuelEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_duel_event`, -/// which allows point queries on the field of the same name -/// via the [`GameDuelEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_duel_event().id().find(...)`. -pub struct GameDuelEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameDuelEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_duel_event`. - pub fn id(&self) -> GameDuelEventIdUnique<'ctx> { - GameDuelEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameDuelEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_duel_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `DuelEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_duel_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `DuelEvent`. - fn game_duel_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_duel_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_duel_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_duel_event") - } -} diff --git a/gateway/src/stdb/bindings/game_duel_schedule_table.rs b/gateway/src/stdb/bindings/game_duel_schedule_table.rs deleted file mode 100644 index dc52fe75e..000000000 --- a/gateway/src/stdb/bindings/game_duel_schedule_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::duel_schedule_type::DuelSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_duel_schedule`. -/// -/// Obtain a handle from the [`GameDuelScheduleTableAccess::game_duel_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_duel_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_duel_schedule().on_insert(...)`. -pub struct GameDuelScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_duel_schedule`. -pub struct GameDuelScheduleTableAccessor; - -impl __sdk::TableAccessor for GameDuelScheduleTableAccessor { - type Row = DuelSchedule; - type Handle<'db> = GameDuelScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_duel_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_duel_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameDuelScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameDuelScheduleTableHandle`], which mediates access to the table `game_duel_schedule`. - fn game_duel_schedule(&self) -> GameDuelScheduleTableHandle<'_>; -} - -impl GameDuelScheduleTableAccess for super::RemoteTables { - fn game_duel_schedule(&self) -> GameDuelScheduleTableHandle<'_> { - GameDuelScheduleTableHandle { - imp: self.imp.get_table::("game_duel_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameDuelScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameDuelScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameDuelScheduleTableHandle<'ctx> { - type Row = DuelSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameDuelScheduleTableHandle<'ctx> { - type Row = DuelSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameDuelScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelScheduleInsertCallbackId { - GameDuelScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDuelScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameDuelScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelScheduleDeleteCallbackId { - GameDuelScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDuelScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameDuelScheduleTableHandle<'ctx> { - type InsertCallbackId = GameDuelScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelScheduleInsertCallbackId { - GameDuelScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDuelScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameDuelScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameDuelScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelScheduleDeleteCallbackId { - GameDuelScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDuelScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameDuelScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameDuelScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameDuelScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDuelScheduleUpdateCallbackId { - GameDuelScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDuelScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameDuelScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameDuelScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDuelScheduleUpdateCallbackId { - GameDuelScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDuelScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_duel_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameDuelScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_duel_schedule().scheduled_id().find(...)`. -pub struct GameDuelScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameDuelScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_duel_schedule`. - pub fn scheduled_id(&self) -> GameDuelScheduleScheduledIdUnique<'ctx> { - GameDuelScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameDuelScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_duel_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `DuelSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_duel_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `DuelSchedule`. - fn game_duel_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_duel_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_duel_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_duel_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_duel_table.rs b/gateway/src/stdb/bindings/game_duel_table.rs deleted file mode 100644 index 8d80db19f..000000000 --- a/gateway/src/stdb/bindings/game_duel_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::duel_type::Duel; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_duel`. -/// -/// Obtain a handle from the [`GameDuelTableAccess::game_duel`] method on [`super::RemoteTables`], -/// like `ctx.db.game_duel()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_duel().on_insert(...)`. -pub struct GameDuelTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_duel`. -pub struct GameDuelTableAccessor; - -impl __sdk::TableAccessor for GameDuelTableAccessor { - type Row = Duel; - type Handle<'db> = GameDuelTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_duel() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_duel`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameDuelTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameDuelTableHandle`], which mediates access to the table `game_duel`. - fn game_duel(&self) -> GameDuelTableHandle<'_>; -} - -impl GameDuelTableAccess for super::RemoteTables { - fn game_duel(&self) -> GameDuelTableHandle<'_> { - GameDuelTableHandle { - imp: self.imp.get_table::("game_duel"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameDuelInsertCallbackId(__sdk::CallbackId); -pub struct GameDuelDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameDuelTableHandle<'ctx> { - type Row = Duel; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameDuelTableHandle<'ctx> { - type Row = Duel; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameDuelInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelInsertCallbackId { - GameDuelInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDuelInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameDuelDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelDeleteCallbackId { - GameDuelDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDuelDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameDuelTableHandle<'ctx> { - type InsertCallbackId = GameDuelInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelInsertCallbackId { - GameDuelInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDuelInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameDuelTableHandle<'ctx> { - type DeleteCallbackId = GameDuelDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDuelDeleteCallbackId { - GameDuelDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDuelDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameDuelUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameDuelTableHandle<'ctx> { - type UpdateCallbackId = GameDuelUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDuelUpdateCallbackId { - GameDuelUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDuelUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameDuelTableHandle<'ctx> { - type UpdateCallbackId = GameDuelUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDuelUpdateCallbackId { - GameDuelUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDuelUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_duel`, -/// which allows point queries on the field of the same name -/// via the [`GameDuelIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_duel().id().find(...)`. -pub struct GameDuelIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameDuelTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_duel`. - pub fn id(&self) -> GameDuelIdUnique<'ctx> { - GameDuelIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameDuelIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_duel"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Duel`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_duelQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Duel`. - fn game_duel(&self) -> __sdk::__query_builder::Table; -} - -impl game_duelQueryTableAccess for __sdk::QueryTableAccessor { - fn game_duel(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_duel") - } -} diff --git a/gateway/src/stdb/bindings/game_dynamic_object_table.rs b/gateway/src/stdb/bindings/game_dynamic_object_table.rs deleted file mode 100644 index bc8aa6b9f..000000000 --- a/gateway/src/stdb/bindings/game_dynamic_object_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::dynamic_object_type::DynamicObject; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_dynamic_object`. -/// -/// Obtain a handle from the [`GameDynamicObjectTableAccess::game_dynamic_object`] method on [`super::RemoteTables`], -/// like `ctx.db.game_dynamic_object()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_dynamic_object().on_insert(...)`. -pub struct GameDynamicObjectTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_dynamic_object`. -pub struct GameDynamicObjectTableAccessor; - -impl __sdk::TableAccessor for GameDynamicObjectTableAccessor { - type Row = DynamicObject; - type Handle<'db> = GameDynamicObjectTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_dynamic_object() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_dynamic_object`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameDynamicObjectTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameDynamicObjectTableHandle`], which mediates access to the table `game_dynamic_object`. - fn game_dynamic_object(&self) -> GameDynamicObjectTableHandle<'_>; -} - -impl GameDynamicObjectTableAccess for super::RemoteTables { - fn game_dynamic_object(&self) -> GameDynamicObjectTableHandle<'_> { - GameDynamicObjectTableHandle { - imp: self.imp.get_table::("game_dynamic_object"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameDynamicObjectInsertCallbackId(__sdk::CallbackId); -pub struct GameDynamicObjectDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameDynamicObjectTableHandle<'ctx> { - type Row = DynamicObject; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameDynamicObjectTableHandle<'ctx> { - type Row = DynamicObject; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameDynamicObjectInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDynamicObjectInsertCallbackId { - GameDynamicObjectInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDynamicObjectInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameDynamicObjectDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDynamicObjectDeleteCallbackId { - GameDynamicObjectDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDynamicObjectDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameDynamicObjectTableHandle<'ctx> { - type InsertCallbackId = GameDynamicObjectInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDynamicObjectInsertCallbackId { - GameDynamicObjectInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameDynamicObjectInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameDynamicObjectTableHandle<'ctx> { - type DeleteCallbackId = GameDynamicObjectDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameDynamicObjectDeleteCallbackId { - GameDynamicObjectDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameDynamicObjectDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameDynamicObjectUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameDynamicObjectTableHandle<'ctx> { - type UpdateCallbackId = GameDynamicObjectUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDynamicObjectUpdateCallbackId { - GameDynamicObjectUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDynamicObjectUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameDynamicObjectTableHandle<'ctx> { - type UpdateCallbackId = GameDynamicObjectUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameDynamicObjectUpdateCallbackId { - GameDynamicObjectUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameDynamicObjectUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_dynamic_object`, -/// which allows point queries on the field of the same name -/// via the [`GameDynamicObjectGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_dynamic_object().guid().find(...)`. -pub struct GameDynamicObjectGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameDynamicObjectTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_dynamic_object`. - pub fn guid(&self) -> GameDynamicObjectGuidUnique<'ctx> { - GameDynamicObjectGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameDynamicObjectGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_dynamic_object"); - _table.add_unique_constraint::("guid", |row| &row.guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `DynamicObject`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_dynamic_objectQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `DynamicObject`. - fn game_dynamic_object(&self) -> __sdk::__query_builder::Table; -} - -impl game_dynamic_objectQueryTableAccess for __sdk::QueryTableAccessor { - fn game_dynamic_object(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_dynamic_object") - } -} diff --git a/gateway/src/stdb/bindings/game_emote_event_table.rs b/gateway/src/stdb/bindings/game_emote_event_table.rs deleted file mode 100644 index 99468e66e..000000000 --- a/gateway/src/stdb/bindings/game_emote_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::emote_event_type::EmoteEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_emote_event`. -/// -/// Obtain a handle from the [`GameEmoteEventTableAccess::game_emote_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_emote_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_emote_event().on_insert(...)`. -pub struct GameEmoteEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_emote_event`. -pub struct GameEmoteEventTableAccessor; - -impl __sdk::TableAccessor for GameEmoteEventTableAccessor { - type Row = EmoteEvent; - type Handle<'db> = GameEmoteEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_emote_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_emote_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameEmoteEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameEmoteEventTableHandle`], which mediates access to the table `game_emote_event`. - fn game_emote_event(&self) -> GameEmoteEventTableHandle<'_>; -} - -impl GameEmoteEventTableAccess for super::RemoteTables { - fn game_emote_event(&self) -> GameEmoteEventTableHandle<'_> { - GameEmoteEventTableHandle { - imp: self.imp.get_table::("game_emote_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameEmoteEventInsertCallbackId(__sdk::CallbackId); -pub struct GameEmoteEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameEmoteEventTableHandle<'ctx> { - type Row = EmoteEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameEmoteEventTableHandle<'ctx> { - type Row = EmoteEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameEmoteEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEmoteEventInsertCallbackId { - GameEmoteEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEmoteEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameEmoteEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEmoteEventDeleteCallbackId { - GameEmoteEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEmoteEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameEmoteEventTableHandle<'ctx> { - type InsertCallbackId = GameEmoteEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEmoteEventInsertCallbackId { - GameEmoteEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEmoteEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameEmoteEventTableHandle<'ctx> { - type DeleteCallbackId = GameEmoteEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEmoteEventDeleteCallbackId { - GameEmoteEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEmoteEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameEmoteEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameEmoteEventTableHandle<'ctx> { - type UpdateCallbackId = GameEmoteEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEmoteEventUpdateCallbackId { - GameEmoteEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEmoteEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameEmoteEventTableHandle<'ctx> { - type UpdateCallbackId = GameEmoteEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEmoteEventUpdateCallbackId { - GameEmoteEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEmoteEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_emote_event`, -/// which allows point queries on the field of the same name -/// via the [`GameEmoteEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_emote_event().id().find(...)`. -pub struct GameEmoteEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameEmoteEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_emote_event`. - pub fn id(&self) -> GameEmoteEventIdUnique<'ctx> { - GameEmoteEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameEmoteEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_emote_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `EmoteEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_emote_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `EmoteEvent`. - fn game_emote_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_emote_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_emote_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_emote_event") - } -} diff --git a/gateway/src/stdb/bindings/game_encounter_equip_table.rs b/gateway/src/stdb/bindings/game_encounter_equip_table.rs deleted file mode 100644 index 96d284e3c..000000000 --- a/gateway/src/stdb/bindings/game_encounter_equip_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::encounter_equip_type::EncounterEquip; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_encounter_equip`. -/// -/// Obtain a handle from the [`GameEncounterEquipTableAccess::game_encounter_equip`] method on [`super::RemoteTables`], -/// like `ctx.db.game_encounter_equip()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_encounter_equip().on_insert(...)`. -pub struct GameEncounterEquipTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_encounter_equip`. -pub struct GameEncounterEquipTableAccessor; - -impl __sdk::TableAccessor for GameEncounterEquipTableAccessor { - type Row = EncounterEquip; - type Handle<'db> = GameEncounterEquipTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_encounter_equip() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_encounter_equip`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameEncounterEquipTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameEncounterEquipTableHandle`], which mediates access to the table `game_encounter_equip`. - fn game_encounter_equip(&self) -> GameEncounterEquipTableHandle<'_>; -} - -impl GameEncounterEquipTableAccess for super::RemoteTables { - fn game_encounter_equip(&self) -> GameEncounterEquipTableHandle<'_> { - GameEncounterEquipTableHandle { - imp: self.imp.get_table::("game_encounter_equip"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameEncounterEquipInsertCallbackId(__sdk::CallbackId); -pub struct GameEncounterEquipDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameEncounterEquipTableHandle<'ctx> { - type Row = EncounterEquip; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameEncounterEquipTableHandle<'ctx> { - type Row = EncounterEquip; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameEncounterEquipInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterEquipInsertCallbackId { - GameEncounterEquipInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEncounterEquipInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameEncounterEquipDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterEquipDeleteCallbackId { - GameEncounterEquipDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEncounterEquipDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameEncounterEquipTableHandle<'ctx> { - type InsertCallbackId = GameEncounterEquipInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterEquipInsertCallbackId { - GameEncounterEquipInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEncounterEquipInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameEncounterEquipTableHandle<'ctx> { - type DeleteCallbackId = GameEncounterEquipDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterEquipDeleteCallbackId { - GameEncounterEquipDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEncounterEquipDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameEncounterEquipUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameEncounterEquipTableHandle<'ctx> { - type UpdateCallbackId = GameEncounterEquipUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEncounterEquipUpdateCallbackId { - GameEncounterEquipUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEncounterEquipUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameEncounterEquipTableHandle<'ctx> { - type UpdateCallbackId = GameEncounterEquipUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEncounterEquipUpdateCallbackId { - GameEncounterEquipUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEncounterEquipUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `creature_guid` unique index on the table `game_encounter_equip`, -/// which allows point queries on the field of the same name -/// via the [`GameEncounterEquipCreatureGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_encounter_equip().creature_guid().find(...)`. -pub struct GameEncounterEquipCreatureGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameEncounterEquipTableHandle<'ctx> { - /// Get a handle on the `creature_guid` unique index on the table `game_encounter_equip`. - pub fn creature_guid(&self) -> GameEncounterEquipCreatureGuidUnique<'ctx> { - GameEncounterEquipCreatureGuidUnique { - imp: self.imp.get_unique_constraint::("creature_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameEncounterEquipCreatureGuidUnique<'ctx> { - /// Find the subscribed row whose `creature_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_encounter_equip"); - _table.add_unique_constraint::("creature_guid", |row| &row.creature_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `EncounterEquip`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_encounter_equipQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `EncounterEquip`. - fn game_encounter_equip(&self) -> __sdk::__query_builder::Table; -} - -impl game_encounter_equipQueryTableAccess for __sdk::QueryTableAccessor { - fn game_encounter_equip(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_encounter_equip") - } -} diff --git a/gateway/src/stdb/bindings/game_encounter_hp_watch_table.rs b/gateway/src/stdb/bindings/game_encounter_hp_watch_table.rs deleted file mode 100644 index 1654cf5a1..000000000 --- a/gateway/src/stdb/bindings/game_encounter_hp_watch_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::encounter_hp_watch_type::EncounterHpWatch; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_encounter_hp_watch`. -/// -/// Obtain a handle from the [`GameEncounterHpWatchTableAccess::game_encounter_hp_watch`] method on [`super::RemoteTables`], -/// like `ctx.db.game_encounter_hp_watch()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_encounter_hp_watch().on_insert(...)`. -pub struct GameEncounterHpWatchTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_encounter_hp_watch`. -pub struct GameEncounterHpWatchTableAccessor; - -impl __sdk::TableAccessor for GameEncounterHpWatchTableAccessor { - type Row = EncounterHpWatch; - type Handle<'db> = GameEncounterHpWatchTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_encounter_hp_watch() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_encounter_hp_watch`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameEncounterHpWatchTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameEncounterHpWatchTableHandle`], which mediates access to the table `game_encounter_hp_watch`. - fn game_encounter_hp_watch(&self) -> GameEncounterHpWatchTableHandle<'_>; -} - -impl GameEncounterHpWatchTableAccess for super::RemoteTables { - fn game_encounter_hp_watch(&self) -> GameEncounterHpWatchTableHandle<'_> { - GameEncounterHpWatchTableHandle { - imp: self - .imp - .get_table::("game_encounter_hp_watch"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameEncounterHpWatchInsertCallbackId(__sdk::CallbackId); -pub struct GameEncounterHpWatchDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameEncounterHpWatchTableHandle<'ctx> { - type Row = EncounterHpWatch; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameEncounterHpWatchTableHandle<'ctx> { - type Row = EncounterHpWatch; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameEncounterHpWatchInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterHpWatchInsertCallbackId { - GameEncounterHpWatchInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEncounterHpWatchInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameEncounterHpWatchDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterHpWatchDeleteCallbackId { - GameEncounterHpWatchDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEncounterHpWatchDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameEncounterHpWatchTableHandle<'ctx> { - type InsertCallbackId = GameEncounterHpWatchInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterHpWatchInsertCallbackId { - GameEncounterHpWatchInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEncounterHpWatchInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameEncounterHpWatchTableHandle<'ctx> { - type DeleteCallbackId = GameEncounterHpWatchDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterHpWatchDeleteCallbackId { - GameEncounterHpWatchDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEncounterHpWatchDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameEncounterHpWatchUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameEncounterHpWatchTableHandle<'ctx> { - type UpdateCallbackId = GameEncounterHpWatchUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEncounterHpWatchUpdateCallbackId { - GameEncounterHpWatchUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEncounterHpWatchUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameEncounterHpWatchTableHandle<'ctx> { - type UpdateCallbackId = GameEncounterHpWatchUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEncounterHpWatchUpdateCallbackId { - GameEncounterHpWatchUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEncounterHpWatchUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_encounter_hp_watch`, -/// which allows point queries on the field of the same name -/// via the [`GameEncounterHpWatchIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_encounter_hp_watch().id().find(...)`. -pub struct GameEncounterHpWatchIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameEncounterHpWatchTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_encounter_hp_watch`. - pub fn id(&self) -> GameEncounterHpWatchIdUnique<'ctx> { - GameEncounterHpWatchIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameEncounterHpWatchIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_encounter_hp_watch"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `EncounterHpWatch`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_encounter_hp_watchQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `EncounterHpWatch`. - fn game_encounter_hp_watch(&self) -> __sdk::__query_builder::Table; -} - -impl game_encounter_hp_watchQueryTableAccess for __sdk::QueryTableAccessor { - fn game_encounter_hp_watch(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_encounter_hp_watch") - } -} diff --git a/gateway/src/stdb/bindings/game_encounter_spawn_table.rs b/gateway/src/stdb/bindings/game_encounter_spawn_table.rs deleted file mode 100644 index 048a8d0f9..000000000 --- a/gateway/src/stdb/bindings/game_encounter_spawn_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::encounter_spawn_type::EncounterSpawn; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_encounter_spawn`. -/// -/// Obtain a handle from the [`GameEncounterSpawnTableAccess::game_encounter_spawn`] method on [`super::RemoteTables`], -/// like `ctx.db.game_encounter_spawn()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_encounter_spawn().on_insert(...)`. -pub struct GameEncounterSpawnTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_encounter_spawn`. -pub struct GameEncounterSpawnTableAccessor; - -impl __sdk::TableAccessor for GameEncounterSpawnTableAccessor { - type Row = EncounterSpawn; - type Handle<'db> = GameEncounterSpawnTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_encounter_spawn() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_encounter_spawn`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameEncounterSpawnTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameEncounterSpawnTableHandle`], which mediates access to the table `game_encounter_spawn`. - fn game_encounter_spawn(&self) -> GameEncounterSpawnTableHandle<'_>; -} - -impl GameEncounterSpawnTableAccess for super::RemoteTables { - fn game_encounter_spawn(&self) -> GameEncounterSpawnTableHandle<'_> { - GameEncounterSpawnTableHandle { - imp: self.imp.get_table::("game_encounter_spawn"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameEncounterSpawnInsertCallbackId(__sdk::CallbackId); -pub struct GameEncounterSpawnDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameEncounterSpawnTableHandle<'ctx> { - type Row = EncounterSpawn; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameEncounterSpawnTableHandle<'ctx> { - type Row = EncounterSpawn; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameEncounterSpawnInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterSpawnInsertCallbackId { - GameEncounterSpawnInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEncounterSpawnInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameEncounterSpawnDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterSpawnDeleteCallbackId { - GameEncounterSpawnDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEncounterSpawnDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameEncounterSpawnTableHandle<'ctx> { - type InsertCallbackId = GameEncounterSpawnInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterSpawnInsertCallbackId { - GameEncounterSpawnInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEncounterSpawnInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameEncounterSpawnTableHandle<'ctx> { - type DeleteCallbackId = GameEncounterSpawnDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterSpawnDeleteCallbackId { - GameEncounterSpawnDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEncounterSpawnDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameEncounterSpawnUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameEncounterSpawnTableHandle<'ctx> { - type UpdateCallbackId = GameEncounterSpawnUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEncounterSpawnUpdateCallbackId { - GameEncounterSpawnUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEncounterSpawnUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameEncounterSpawnTableHandle<'ctx> { - type UpdateCallbackId = GameEncounterSpawnUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEncounterSpawnUpdateCallbackId { - GameEncounterSpawnUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEncounterSpawnUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_encounter_spawn`, -/// which allows point queries on the field of the same name -/// via the [`GameEncounterSpawnIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_encounter_spawn().id().find(...)`. -pub struct GameEncounterSpawnIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameEncounterSpawnTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_encounter_spawn`. - pub fn id(&self) -> GameEncounterSpawnIdUnique<'ctx> { - GameEncounterSpawnIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameEncounterSpawnIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_encounter_spawn"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `EncounterSpawn`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_encounter_spawnQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `EncounterSpawn`. - fn game_encounter_spawn(&self) -> __sdk::__query_builder::Table; -} - -impl game_encounter_spawnQueryTableAccess for __sdk::QueryTableAccessor { - fn game_encounter_spawn(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_encounter_spawn") - } -} diff --git a/gateway/src/stdb/bindings/game_encounter_state_table.rs b/gateway/src/stdb/bindings/game_encounter_state_table.rs deleted file mode 100644 index 5f73d96a5..000000000 --- a/gateway/src/stdb/bindings/game_encounter_state_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::encounter_state_type::EncounterState; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_encounter_state`. -/// -/// Obtain a handle from the [`GameEncounterStateTableAccess::game_encounter_state`] method on [`super::RemoteTables`], -/// like `ctx.db.game_encounter_state()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_encounter_state().on_insert(...)`. -pub struct GameEncounterStateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_encounter_state`. -pub struct GameEncounterStateTableAccessor; - -impl __sdk::TableAccessor for GameEncounterStateTableAccessor { - type Row = EncounterState; - type Handle<'db> = GameEncounterStateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_encounter_state() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_encounter_state`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameEncounterStateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameEncounterStateTableHandle`], which mediates access to the table `game_encounter_state`. - fn game_encounter_state(&self) -> GameEncounterStateTableHandle<'_>; -} - -impl GameEncounterStateTableAccess for super::RemoteTables { - fn game_encounter_state(&self) -> GameEncounterStateTableHandle<'_> { - GameEncounterStateTableHandle { - imp: self.imp.get_table::("game_encounter_state"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameEncounterStateInsertCallbackId(__sdk::CallbackId); -pub struct GameEncounterStateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameEncounterStateTableHandle<'ctx> { - type Row = EncounterState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameEncounterStateTableHandle<'ctx> { - type Row = EncounterState; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameEncounterStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterStateInsertCallbackId { - GameEncounterStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEncounterStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameEncounterStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterStateDeleteCallbackId { - GameEncounterStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEncounterStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameEncounterStateTableHandle<'ctx> { - type InsertCallbackId = GameEncounterStateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterStateInsertCallbackId { - GameEncounterStateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEncounterStateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameEncounterStateTableHandle<'ctx> { - type DeleteCallbackId = GameEncounterStateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEncounterStateDeleteCallbackId { - GameEncounterStateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEncounterStateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameEncounterStateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameEncounterStateTableHandle<'ctx> { - type UpdateCallbackId = GameEncounterStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEncounterStateUpdateCallbackId { - GameEncounterStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEncounterStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameEncounterStateTableHandle<'ctx> { - type UpdateCallbackId = GameEncounterStateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEncounterStateUpdateCallbackId { - GameEncounterStateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEncounterStateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_encounter_state`, -/// which allows point queries on the field of the same name -/// via the [`GameEncounterStateIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_encounter_state().id().find(...)`. -pub struct GameEncounterStateIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameEncounterStateTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_encounter_state`. - pub fn id(&self) -> GameEncounterStateIdUnique<'ctx> { - GameEncounterStateIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameEncounterStateIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_encounter_state"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `EncounterState`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_encounter_stateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `EncounterState`. - fn game_encounter_state(&self) -> __sdk::__query_builder::Table; -} - -impl game_encounter_stateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_encounter_state(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_encounter_state") - } -} diff --git a/gateway/src/stdb/bindings/game_entity_motion_pending_table.rs b/gateway/src/stdb/bindings/game_entity_motion_pending_table.rs deleted file mode 100644 index 23a42b98a..000000000 --- a/gateway/src/stdb/bindings/game_entity_motion_pending_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::pending_motion_type::PendingMotion; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_entity_motion_pending`. -/// -/// Obtain a handle from the [`GameEntityMotionPendingTableAccess::game_entity_motion_pending`] method on [`super::RemoteTables`], -/// like `ctx.db.game_entity_motion_pending()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_entity_motion_pending().on_insert(...)`. -pub struct GameEntityMotionPendingTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_entity_motion_pending`. -pub struct GameEntityMotionPendingTableAccessor; - -impl __sdk::TableAccessor for GameEntityMotionPendingTableAccessor { - type Row = PendingMotion; - type Handle<'db> = GameEntityMotionPendingTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_entity_motion_pending() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_entity_motion_pending`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameEntityMotionPendingTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameEntityMotionPendingTableHandle`], which mediates access to the table `game_entity_motion_pending`. - fn game_entity_motion_pending(&self) -> GameEntityMotionPendingTableHandle<'_>; -} - -impl GameEntityMotionPendingTableAccess for super::RemoteTables { - fn game_entity_motion_pending(&self) -> GameEntityMotionPendingTableHandle<'_> { - GameEntityMotionPendingTableHandle { - imp: self - .imp - .get_table::("game_entity_motion_pending"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameEntityMotionPendingInsertCallbackId(__sdk::CallbackId); -pub struct GameEntityMotionPendingDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameEntityMotionPendingTableHandle<'ctx> { - type Row = PendingMotion; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameEntityMotionPendingTableHandle<'ctx> { - type Row = PendingMotion; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameEntityMotionPendingInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEntityMotionPendingInsertCallbackId { - GameEntityMotionPendingInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEntityMotionPendingInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameEntityMotionPendingDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEntityMotionPendingDeleteCallbackId { - GameEntityMotionPendingDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEntityMotionPendingDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameEntityMotionPendingTableHandle<'ctx> { - type InsertCallbackId = GameEntityMotionPendingInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEntityMotionPendingInsertCallbackId { - GameEntityMotionPendingInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEntityMotionPendingInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameEntityMotionPendingTableHandle<'ctx> { - type DeleteCallbackId = GameEntityMotionPendingDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEntityMotionPendingDeleteCallbackId { - GameEntityMotionPendingDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEntityMotionPendingDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameEntityMotionPendingUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameEntityMotionPendingTableHandle<'ctx> { - type UpdateCallbackId = GameEntityMotionPendingUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEntityMotionPendingUpdateCallbackId { - GameEntityMotionPendingUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEntityMotionPendingUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameEntityMotionPendingTableHandle<'ctx> { - type UpdateCallbackId = GameEntityMotionPendingUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEntityMotionPendingUpdateCallbackId { - GameEntityMotionPendingUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEntityMotionPendingUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_entity_motion_pending`, -/// which allows point queries on the field of the same name -/// via the [`GameEntityMotionPendingGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_entity_motion_pending().guid().find(...)`. -pub struct GameEntityMotionPendingGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameEntityMotionPendingTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_entity_motion_pending`. - pub fn guid(&self) -> GameEntityMotionPendingGuidUnique<'ctx> { - GameEntityMotionPendingGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameEntityMotionPendingGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_entity_motion_pending"); - _table.add_unique_constraint::("guid", |row| &row.guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PendingMotion`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_entity_motion_pendingQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PendingMotion`. - fn game_entity_motion_pending(&self) -> __sdk::__query_builder::Table; -} - -impl game_entity_motion_pendingQueryTableAccess for __sdk::QueryTableAccessor { - fn game_entity_motion_pending(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_entity_motion_pending") - } -} diff --git a/gateway/src/stdb/bindings/game_entity_motion_table.rs b/gateway/src/stdb/bindings/game_entity_motion_table.rs deleted file mode 100644 index 1612888df..000000000 --- a/gateway/src/stdb/bindings/game_entity_motion_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::entity_motion_type::EntityMotion; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_entity_motion`. -/// -/// Obtain a handle from the [`GameEntityMotionTableAccess::game_entity_motion`] method on [`super::RemoteTables`], -/// like `ctx.db.game_entity_motion()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_entity_motion().on_insert(...)`. -pub struct GameEntityMotionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_entity_motion`. -pub struct GameEntityMotionTableAccessor; - -impl __sdk::TableAccessor for GameEntityMotionTableAccessor { - type Row = EntityMotion; - type Handle<'db> = GameEntityMotionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_entity_motion() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_entity_motion`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameEntityMotionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameEntityMotionTableHandle`], which mediates access to the table `game_entity_motion`. - fn game_entity_motion(&self) -> GameEntityMotionTableHandle<'_>; -} - -impl GameEntityMotionTableAccess for super::RemoteTables { - fn game_entity_motion(&self) -> GameEntityMotionTableHandle<'_> { - GameEntityMotionTableHandle { - imp: self.imp.get_table::("game_entity_motion"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameEntityMotionInsertCallbackId(__sdk::CallbackId); -pub struct GameEntityMotionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameEntityMotionTableHandle<'ctx> { - type Row = EntityMotion; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameEntityMotionTableHandle<'ctx> { - type Row = EntityMotion; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameEntityMotionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEntityMotionInsertCallbackId { - GameEntityMotionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEntityMotionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameEntityMotionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEntityMotionDeleteCallbackId { - GameEntityMotionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEntityMotionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameEntityMotionTableHandle<'ctx> { - type InsertCallbackId = GameEntityMotionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEntityMotionInsertCallbackId { - GameEntityMotionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEntityMotionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameEntityMotionTableHandle<'ctx> { - type DeleteCallbackId = GameEntityMotionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEntityMotionDeleteCallbackId { - GameEntityMotionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEntityMotionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameEntityMotionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameEntityMotionTableHandle<'ctx> { - type UpdateCallbackId = GameEntityMotionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEntityMotionUpdateCallbackId { - GameEntityMotionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEntityMotionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameEntityMotionTableHandle<'ctx> { - type UpdateCallbackId = GameEntityMotionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEntityMotionUpdateCallbackId { - GameEntityMotionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEntityMotionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_entity_motion`, -/// which allows point queries on the field of the same name -/// via the [`GameEntityMotionGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_entity_motion().guid().find(...)`. -pub struct GameEntityMotionGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameEntityMotionTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_entity_motion`. - pub fn guid(&self) -> GameEntityMotionGuidUnique<'ctx> { - GameEntityMotionGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameEntityMotionGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_entity_motion"); - _table.add_unique_constraint::("guid", |row| &row.guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `EntityMotion`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_entity_motionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `EntityMotion`. - fn game_entity_motion(&self) -> __sdk::__query_builder::Table; -} - -impl game_entity_motionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_entity_motion(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_entity_motion") - } -} diff --git a/gateway/src/stdb/bindings/game_event_reaper_schedule_table.rs b/gateway/src/stdb/bindings/game_event_reaper_schedule_table.rs deleted file mode 100644 index 212cdcaf0..000000000 --- a/gateway/src/stdb/bindings/game_event_reaper_schedule_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::event_reaper_schedule_type::EventReaperSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_event_reaper_schedule`. -/// -/// Obtain a handle from the [`GameEventReaperScheduleTableAccess::game_event_reaper_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_event_reaper_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_event_reaper_schedule().on_insert(...)`. -pub struct GameEventReaperScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_event_reaper_schedule`. -pub struct GameEventReaperScheduleTableAccessor; - -impl __sdk::TableAccessor for GameEventReaperScheduleTableAccessor { - type Row = EventReaperSchedule; - type Handle<'db> = GameEventReaperScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_event_reaper_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_event_reaper_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameEventReaperScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameEventReaperScheduleTableHandle`], which mediates access to the table `game_event_reaper_schedule`. - fn game_event_reaper_schedule(&self) -> GameEventReaperScheduleTableHandle<'_>; -} - -impl GameEventReaperScheduleTableAccess for super::RemoteTables { - fn game_event_reaper_schedule(&self) -> GameEventReaperScheduleTableHandle<'_> { - GameEventReaperScheduleTableHandle { - imp: self - .imp - .get_table::("game_event_reaper_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameEventReaperScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameEventReaperScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameEventReaperScheduleTableHandle<'ctx> { - type Row = EventReaperSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameEventReaperScheduleTableHandle<'ctx> { - type Row = EventReaperSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameEventReaperScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEventReaperScheduleInsertCallbackId { - GameEventReaperScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEventReaperScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameEventReaperScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEventReaperScheduleDeleteCallbackId { - GameEventReaperScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEventReaperScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameEventReaperScheduleTableHandle<'ctx> { - type InsertCallbackId = GameEventReaperScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEventReaperScheduleInsertCallbackId { - GameEventReaperScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameEventReaperScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameEventReaperScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameEventReaperScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameEventReaperScheduleDeleteCallbackId { - GameEventReaperScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameEventReaperScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameEventReaperScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameEventReaperScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameEventReaperScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEventReaperScheduleUpdateCallbackId { - GameEventReaperScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEventReaperScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameEventReaperScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameEventReaperScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameEventReaperScheduleUpdateCallbackId { - GameEventReaperScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameEventReaperScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_event_reaper_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameEventReaperScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_event_reaper_schedule().scheduled_id().find(...)`. -pub struct GameEventReaperScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameEventReaperScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_event_reaper_schedule`. - pub fn scheduled_id(&self) -> GameEventReaperScheduleScheduledIdUnique<'ctx> { - GameEventReaperScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameEventReaperScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_event_reaper_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `EventReaperSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_event_reaper_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `EventReaperSchedule`. - fn game_event_reaper_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_event_reaper_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_event_reaper_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_event_reaper_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_faction_table.rs b/gateway/src/stdb/bindings/game_faction_table.rs deleted file mode 100644 index 900dbee8e..000000000 --- a/gateway/src/stdb/bindings/game_faction_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::faction_type::Faction; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_faction`. -/// -/// Obtain a handle from the [`GameFactionTableAccess::game_faction`] method on [`super::RemoteTables`], -/// like `ctx.db.game_faction()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_faction().on_insert(...)`. -pub struct GameFactionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_faction`. -pub struct GameFactionTableAccessor; - -impl __sdk::TableAccessor for GameFactionTableAccessor { - type Row = Faction; - type Handle<'db> = GameFactionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_faction() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_faction`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameFactionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameFactionTableHandle`], which mediates access to the table `game_faction`. - fn game_faction(&self) -> GameFactionTableHandle<'_>; -} - -impl GameFactionTableAccess for super::RemoteTables { - fn game_faction(&self) -> GameFactionTableHandle<'_> { - GameFactionTableHandle { - imp: self.imp.get_table::("game_faction"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameFactionInsertCallbackId(__sdk::CallbackId); -pub struct GameFactionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameFactionTableHandle<'ctx> { - type Row = Faction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameFactionTableHandle<'ctx> { - type Row = Faction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameFactionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFactionInsertCallbackId { - GameFactionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameFactionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameFactionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFactionDeleteCallbackId { - GameFactionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameFactionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameFactionTableHandle<'ctx> { - type InsertCallbackId = GameFactionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFactionInsertCallbackId { - GameFactionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameFactionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameFactionTableHandle<'ctx> { - type DeleteCallbackId = GameFactionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFactionDeleteCallbackId { - GameFactionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameFactionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameFactionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameFactionTableHandle<'ctx> { - type UpdateCallbackId = GameFactionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameFactionUpdateCallbackId { - GameFactionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameFactionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameFactionTableHandle<'ctx> { - type UpdateCallbackId = GameFactionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameFactionUpdateCallbackId { - GameFactionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameFactionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `faction_id` unique index on the table `game_faction`, -/// which allows point queries on the field of the same name -/// via the [`GameFactionFactionIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_faction().faction_id().find(...)`. -pub struct GameFactionFactionIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameFactionTableHandle<'ctx> { - /// Get a handle on the `faction_id` unique index on the table `game_faction`. - pub fn faction_id(&self) -> GameFactionFactionIdUnique<'ctx> { - GameFactionFactionIdUnique { - imp: self.imp.get_unique_constraint::("faction_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameFactionFactionIdUnique<'ctx> { - /// Find the subscribed row whose `faction_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_faction"); - _table.add_unique_constraint::("faction_id", |row| &row.faction_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Faction`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_factionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Faction`. - fn game_faction(&self) -> __sdk::__query_builder::Table; -} - -impl game_factionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_faction(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_faction") - } -} diff --git a/gateway/src/stdb/bindings/game_faction_template_table.rs b/gateway/src/stdb/bindings/game_faction_template_table.rs deleted file mode 100644 index 6afac5672..000000000 --- a/gateway/src/stdb/bindings/game_faction_template_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::faction_template_type::FactionTemplate; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_faction_template`. -/// -/// Obtain a handle from the [`GameFactionTemplateTableAccess::game_faction_template`] method on [`super::RemoteTables`], -/// like `ctx.db.game_faction_template()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_faction_template().on_insert(...)`. -pub struct GameFactionTemplateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_faction_template`. -pub struct GameFactionTemplateTableAccessor; - -impl __sdk::TableAccessor for GameFactionTemplateTableAccessor { - type Row = FactionTemplate; - type Handle<'db> = GameFactionTemplateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_faction_template() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_faction_template`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameFactionTemplateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameFactionTemplateTableHandle`], which mediates access to the table `game_faction_template`. - fn game_faction_template(&self) -> GameFactionTemplateTableHandle<'_>; -} - -impl GameFactionTemplateTableAccess for super::RemoteTables { - fn game_faction_template(&self) -> GameFactionTemplateTableHandle<'_> { - GameFactionTemplateTableHandle { - imp: self - .imp - .get_table::("game_faction_template"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameFactionTemplateInsertCallbackId(__sdk::CallbackId); -pub struct GameFactionTemplateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameFactionTemplateTableHandle<'ctx> { - type Row = FactionTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameFactionTemplateTableHandle<'ctx> { - type Row = FactionTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameFactionTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFactionTemplateInsertCallbackId { - GameFactionTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameFactionTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameFactionTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFactionTemplateDeleteCallbackId { - GameFactionTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameFactionTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameFactionTemplateTableHandle<'ctx> { - type InsertCallbackId = GameFactionTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFactionTemplateInsertCallbackId { - GameFactionTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameFactionTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameFactionTemplateTableHandle<'ctx> { - type DeleteCallbackId = GameFactionTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFactionTemplateDeleteCallbackId { - GameFactionTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameFactionTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameFactionTemplateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameFactionTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameFactionTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameFactionTemplateUpdateCallbackId { - GameFactionTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameFactionTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameFactionTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameFactionTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameFactionTemplateUpdateCallbackId { - GameFactionTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameFactionTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_faction_template`, -/// which allows point queries on the field of the same name -/// via the [`GameFactionTemplateIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_faction_template().id().find(...)`. -pub struct GameFactionTemplateIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameFactionTemplateTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_faction_template`. - pub fn id(&self) -> GameFactionTemplateIdUnique<'ctx> { - GameFactionTemplateIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameFactionTemplateIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_faction_template"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `FactionTemplate`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_faction_templateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `FactionTemplate`. - fn game_faction_template(&self) -> __sdk::__query_builder::Table; -} - -impl game_faction_templateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_faction_template(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_faction_template") - } -} diff --git a/gateway/src/stdb/bindings/game_fishing_loot_table.rs b/gateway/src/stdb/bindings/game_fishing_loot_table.rs deleted file mode 100644 index 81c8ece9d..000000000 --- a/gateway/src/stdb/bindings/game_fishing_loot_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_fishing_loot_type::GameFishingLoot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_fishing_loot`. -/// -/// Obtain a handle from the [`GameFishingLootTableAccess::game_fishing_loot`] method on [`super::RemoteTables`], -/// like `ctx.db.game_fishing_loot()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_fishing_loot().on_insert(...)`. -pub struct GameFishingLootTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_fishing_loot`. -pub struct GameFishingLootTableAccessor; - -impl __sdk::TableAccessor for GameFishingLootTableAccessor { - type Row = GameFishingLoot; - type Handle<'db> = GameFishingLootTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_fishing_loot() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_fishing_loot`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameFishingLootTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameFishingLootTableHandle`], which mediates access to the table `game_fishing_loot`. - fn game_fishing_loot(&self) -> GameFishingLootTableHandle<'_>; -} - -impl GameFishingLootTableAccess for super::RemoteTables { - fn game_fishing_loot(&self) -> GameFishingLootTableHandle<'_> { - GameFishingLootTableHandle { - imp: self.imp.get_table::("game_fishing_loot"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameFishingLootInsertCallbackId(__sdk::CallbackId); -pub struct GameFishingLootDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameFishingLootTableHandle<'ctx> { - type Row = GameFishingLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameFishingLootTableHandle<'ctx> { - type Row = GameFishingLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameFishingLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFishingLootInsertCallbackId { - GameFishingLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameFishingLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameFishingLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFishingLootDeleteCallbackId { - GameFishingLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameFishingLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameFishingLootTableHandle<'ctx> { - type InsertCallbackId = GameFishingLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFishingLootInsertCallbackId { - GameFishingLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameFishingLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameFishingLootTableHandle<'ctx> { - type DeleteCallbackId = GameFishingLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameFishingLootDeleteCallbackId { - GameFishingLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameFishingLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameFishingLootUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameFishingLootTableHandle<'ctx> { - type UpdateCallbackId = GameFishingLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameFishingLootUpdateCallbackId { - GameFishingLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameFishingLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameFishingLootTableHandle<'ctx> { - type UpdateCallbackId = GameFishingLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameFishingLootUpdateCallbackId { - GameFishingLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameFishingLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_fishing_loot`, -/// which allows point queries on the field of the same name -/// via the [`GameFishingLootIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_fishing_loot().id().find(...)`. -pub struct GameFishingLootIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameFishingLootTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_fishing_loot`. - pub fn id(&self) -> GameFishingLootIdUnique<'ctx> { - GameFishingLootIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameFishingLootIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_fishing_loot"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameFishingLoot`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_fishing_lootQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameFishingLoot`. - fn game_fishing_loot(&self) -> __sdk::__query_builder::Table; -} - -impl game_fishing_lootQueryTableAccess for __sdk::QueryTableAccessor { - fn game_fishing_loot(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_fishing_loot") - } -} diff --git a/gateway/src/stdb/bindings/game_fishing_loot_type.rs b/gateway/src/stdb/bindings/game_fishing_loot_type.rs deleted file mode 100644 index d62bf2217..000000000 --- a/gateway/src/stdb/bindings/game_fishing_loot_type.rs +++ /dev/null @@ -1,66 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameFishingLoot { - pub id: u64, - pub zone_id: u32, - pub item_entry: u32, - pub chance_bp: u32, - pub count: u32, - pub group_id: u32, -} - -impl __sdk::InModule for GameFishingLoot { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameFishingLoot`. -/// -/// Provides typed access to columns for query building. -pub struct GameFishingLootCols { - pub id: __sdk::__query_builder::Col, - pub zone_id: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub chance_bp: __sdk::__query_builder::Col, - pub count: __sdk::__query_builder::Col, - pub group_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameFishingLoot { - type Cols = GameFishingLootCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameFishingLootCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - zone_id: __sdk::__query_builder::Col::new(table_name, "zone_id"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - chance_bp: __sdk::__query_builder::Col::new(table_name, "chance_bp"), - count: __sdk::__query_builder::Col::new(table_name, "count"), - group_id: __sdk::__query_builder::Col::new(table_name, "group_id"), - } - } -} - -/// Indexed column accessor struct for the table `GameFishingLoot`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameFishingLootIxCols { - pub id: __sdk::__query_builder::IxCol, - pub zone_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameFishingLoot { - type IxCols = GameFishingLootIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameFishingLootIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - zone_id: __sdk::__query_builder::IxCol::new(table_name, "zone_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameFishingLoot {} diff --git a/gateway/src/stdb/bindings/game_gameobject_loot_table.rs b/gateway/src/stdb/bindings/game_gameobject_loot_table.rs deleted file mode 100644 index c3ffa7000..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_loot_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_loot_type::GameObjectLoot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject_loot`. -/// -/// Obtain a handle from the [`GameGameobjectLootTableAccess::game_gameobject_loot`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject_loot()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_loot().on_insert(...)`. -pub struct GameGameobjectLootTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject_loot`. -pub struct GameGameobjectLootTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectLootTableAccessor { - type Row = GameObjectLoot; - type Handle<'db> = GameGameobjectLootTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject_loot() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject_loot`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectLootTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectLootTableHandle`], which mediates access to the table `game_gameobject_loot`. - fn game_gameobject_loot(&self) -> GameGameobjectLootTableHandle<'_>; -} - -impl GameGameobjectLootTableAccess for super::RemoteTables { - fn game_gameobject_loot(&self) -> GameGameobjectLootTableHandle<'_> { - GameGameobjectLootTableHandle { - imp: self.imp.get_table::("game_gameobject_loot"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectLootInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectLootDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectLootTableHandle<'ctx> { - type Row = GameObjectLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectLootTableHandle<'ctx> { - type Row = GameObjectLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectLootInsertCallbackId { - GameGameobjectLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectLootDeleteCallbackId { - GameGameobjectLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectLootTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectLootInsertCallbackId { - GameGameobjectLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectLootTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectLootDeleteCallbackId { - GameGameobjectLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectLootUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectLootTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectLootUpdateCallbackId { - GameGameobjectLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectLootTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectLootUpdateCallbackId { - GameGameobjectLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_gameobject_loot`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectLootIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_loot().id().find(...)`. -pub struct GameGameobjectLootIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectLootTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_gameobject_loot`. - pub fn id(&self) -> GameGameobjectLootIdUnique<'ctx> { - GameGameobjectLootIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectLootIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gameobject_loot"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObjectLoot`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobject_lootQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObjectLoot`. - fn game_gameobject_loot(&self) -> __sdk::__query_builder::Table; -} - -impl game_gameobject_lootQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject_loot(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject_loot") - } -} diff --git a/gateway/src/stdb/bindings/game_gameobject_pool_member_table.rs b/gateway/src/stdb/bindings/game_gameobject_pool_member_table.rs deleted file mode 100644 index 2c64a3d8f..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_pool_member_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_pool_member_type::GameObjectPoolMember; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject_pool_member`. -/// -/// Obtain a handle from the [`GameGameobjectPoolMemberTableAccess::game_gameobject_pool_member`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject_pool_member()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_pool_member().on_insert(...)`. -pub struct GameGameobjectPoolMemberTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject_pool_member`. -pub struct GameGameobjectPoolMemberTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectPoolMemberTableAccessor { - type Row = GameObjectPoolMember; - type Handle<'db> = GameGameobjectPoolMemberTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject_pool_member() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject_pool_member`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectPoolMemberTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectPoolMemberTableHandle`], which mediates access to the table `game_gameobject_pool_member`. - fn game_gameobject_pool_member(&self) -> GameGameobjectPoolMemberTableHandle<'_>; -} - -impl GameGameobjectPoolMemberTableAccess for super::RemoteTables { - fn game_gameobject_pool_member(&self) -> GameGameobjectPoolMemberTableHandle<'_> { - GameGameobjectPoolMemberTableHandle { - imp: self - .imp - .get_table::("game_gameobject_pool_member"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectPoolMemberInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectPoolMemberDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectPoolMemberTableHandle<'ctx> { - type Row = GameObjectPoolMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectPoolMemberTableHandle<'ctx> { - type Row = GameObjectPoolMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectPoolMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolMemberInsertCallbackId { - GameGameobjectPoolMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectPoolMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectPoolMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolMemberDeleteCallbackId { - GameGameobjectPoolMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectPoolMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectPoolMemberTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectPoolMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolMemberInsertCallbackId { - GameGameobjectPoolMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectPoolMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectPoolMemberTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectPoolMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolMemberDeleteCallbackId { - GameGameobjectPoolMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectPoolMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectPoolMemberUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectPoolMemberTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectPoolMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolMemberUpdateCallbackId { - GameGameobjectPoolMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectPoolMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectPoolMemberTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectPoolMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolMemberUpdateCallbackId { - GameGameobjectPoolMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectPoolMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `point_id` unique index on the table `game_gameobject_pool_member`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectPoolMemberPointIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_pool_member().point_id().find(...)`. -pub struct GameGameobjectPoolMemberPointIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectPoolMemberTableHandle<'ctx> { - /// Get a handle on the `point_id` unique index on the table `game_gameobject_pool_member`. - pub fn point_id(&self) -> GameGameobjectPoolMemberPointIdUnique<'ctx> { - GameGameobjectPoolMemberPointIdUnique { - imp: self.imp.get_unique_constraint::("point_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectPoolMemberPointIdUnique<'ctx> { - /// Find the subscribed row whose `point_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_gameobject_pool_member"); - _table.add_unique_constraint::("point_id", |row| &row.point_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObjectPoolMember`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobject_pool_memberQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObjectPoolMember`. - fn game_gameobject_pool_member(&self) -> __sdk::__query_builder::Table; -} - -impl game_gameobject_pool_memberQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject_pool_member(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject_pool_member") - } -} diff --git a/gateway/src/stdb/bindings/game_gameobject_pool_table.rs b/gateway/src/stdb/bindings/game_gameobject_pool_table.rs deleted file mode 100644 index 1fae3bea6..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_pool_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_pool_type::GameObjectPool; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject_pool`. -/// -/// Obtain a handle from the [`GameGameobjectPoolTableAccess::game_gameobject_pool`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject_pool()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_pool().on_insert(...)`. -pub struct GameGameobjectPoolTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject_pool`. -pub struct GameGameobjectPoolTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectPoolTableAccessor { - type Row = GameObjectPool; - type Handle<'db> = GameGameobjectPoolTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject_pool() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject_pool`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectPoolTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectPoolTableHandle`], which mediates access to the table `game_gameobject_pool`. - fn game_gameobject_pool(&self) -> GameGameobjectPoolTableHandle<'_>; -} - -impl GameGameobjectPoolTableAccess for super::RemoteTables { - fn game_gameobject_pool(&self) -> GameGameobjectPoolTableHandle<'_> { - GameGameobjectPoolTableHandle { - imp: self.imp.get_table::("game_gameobject_pool"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectPoolInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectPoolDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectPoolTableHandle<'ctx> { - type Row = GameObjectPool; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectPoolTableHandle<'ctx> { - type Row = GameObjectPool; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectPoolInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolInsertCallbackId { - GameGameobjectPoolInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectPoolInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectPoolDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolDeleteCallbackId { - GameGameobjectPoolDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectPoolDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectPoolTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectPoolInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolInsertCallbackId { - GameGameobjectPoolInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectPoolInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectPoolTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectPoolDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolDeleteCallbackId { - GameGameobjectPoolDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectPoolDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectPoolUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectPoolTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectPoolUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolUpdateCallbackId { - GameGameobjectPoolUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectPoolUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectPoolTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectPoolUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectPoolUpdateCallbackId { - GameGameobjectPoolUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectPoolUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `pool_id` unique index on the table `game_gameobject_pool`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectPoolPoolIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_pool().pool_id().find(...)`. -pub struct GameGameobjectPoolPoolIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectPoolTableHandle<'ctx> { - /// Get a handle on the `pool_id` unique index on the table `game_gameobject_pool`. - pub fn pool_id(&self) -> GameGameobjectPoolPoolIdUnique<'ctx> { - GameGameobjectPoolPoolIdUnique { - imp: self.imp.get_unique_constraint::("pool_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectPoolPoolIdUnique<'ctx> { - /// Find the subscribed row whose `pool_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gameobject_pool"); - _table.add_unique_constraint::("pool_id", |row| &row.pool_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObjectPool`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobject_poolQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObjectPool`. - fn game_gameobject_pool(&self) -> __sdk::__query_builder::Table; -} - -impl game_gameobject_poolQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject_pool(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject_pool") - } -} diff --git a/gateway/src/stdb/bindings/game_gameobject_quest_table.rs b/gateway/src/stdb/bindings/game_gameobject_quest_table.rs deleted file mode 100644 index 58e30557a..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_quest_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_quest_type::GameObjectQuest; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject_quest`. -/// -/// Obtain a handle from the [`GameGameobjectQuestTableAccess::game_gameobject_quest`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject_quest()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_quest().on_insert(...)`. -pub struct GameGameobjectQuestTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject_quest`. -pub struct GameGameobjectQuestTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectQuestTableAccessor { - type Row = GameObjectQuest; - type Handle<'db> = GameGameobjectQuestTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject_quest() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject_quest`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectQuestTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectQuestTableHandle`], which mediates access to the table `game_gameobject_quest`. - fn game_gameobject_quest(&self) -> GameGameobjectQuestTableHandle<'_>; -} - -impl GameGameobjectQuestTableAccess for super::RemoteTables { - fn game_gameobject_quest(&self) -> GameGameobjectQuestTableHandle<'_> { - GameGameobjectQuestTableHandle { - imp: self - .imp - .get_table::("game_gameobject_quest"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectQuestInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectQuestDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectQuestTableHandle<'ctx> { - type Row = GameObjectQuest; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectQuestTableHandle<'ctx> { - type Row = GameObjectQuest; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectQuestInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectQuestInsertCallbackId { - GameGameobjectQuestInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectQuestInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectQuestDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectQuestDeleteCallbackId { - GameGameobjectQuestDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectQuestDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectQuestTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectQuestInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectQuestInsertCallbackId { - GameGameobjectQuestInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectQuestInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectQuestTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectQuestDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectQuestDeleteCallbackId { - GameGameobjectQuestDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectQuestDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectQuestUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectQuestTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectQuestUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectQuestUpdateCallbackId { - GameGameobjectQuestUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectQuestUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectQuestTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectQuestUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectQuestUpdateCallbackId { - GameGameobjectQuestUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectQuestUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_gameobject_quest`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectQuestIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_quest().id().find(...)`. -pub struct GameGameobjectQuestIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectQuestTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_gameobject_quest`. - pub fn id(&self) -> GameGameobjectQuestIdUnique<'ctx> { - GameGameobjectQuestIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectQuestIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gameobject_quest"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObjectQuest`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobject_questQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObjectQuest`. - fn game_gameobject_quest(&self) -> __sdk::__query_builder::Table; -} - -impl game_gameobject_questQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject_quest(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject_quest") - } -} diff --git a/gateway/src/stdb/bindings/game_gameobject_table.rs b/gateway/src/stdb/bindings/game_gameobject_table.rs deleted file mode 100644 index 57fab66dd..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_type::GameObject; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject`. -/// -/// Obtain a handle from the [`GameGameobjectTableAccess::game_gameobject`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject().on_insert(...)`. -pub struct GameGameobjectTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject`. -pub struct GameGameobjectTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectTableAccessor { - type Row = GameObject; - type Handle<'db> = GameGameobjectTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectTableHandle`], which mediates access to the table `game_gameobject`. - fn game_gameobject(&self) -> GameGameobjectTableHandle<'_>; -} - -impl GameGameobjectTableAccess for super::RemoteTables { - fn game_gameobject(&self) -> GameGameobjectTableHandle<'_> { - GameGameobjectTableHandle { - imp: self.imp.get_table::("game_gameobject"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectTableHandle<'ctx> { - type Row = GameObject; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectTableHandle<'ctx> { - type Row = GameObject; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectInsertCallbackId { - GameGameobjectInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectDeleteCallbackId { - GameGameobjectDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectInsertCallbackId { - GameGameobjectInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectDeleteCallbackId { - GameGameobjectDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectUpdateCallbackId { - GameGameobjectUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectUpdateCallbackId { - GameGameobjectUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_gameobject`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject().guid().find(...)`. -pub struct GameGameobjectGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_gameobject`. - pub fn guid(&self) -> GameGameobjectGuidUnique<'ctx> { - GameGameobjectGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gameobject"); - _table.add_unique_constraint::("guid", |row| &row.guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObject`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobjectQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObject`. - fn game_gameobject(&self) -> __sdk::__query_builder::Table; -} - -impl game_gameobjectQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject") - } -} diff --git a/gateway/src/stdb/bindings/game_gameobject_template_table.rs b/gateway/src/stdb/bindings/game_gameobject_template_table.rs deleted file mode 100644 index b52e2094b..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_template_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_template_type::GameObjectTemplate; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject_template`. -/// -/// Obtain a handle from the [`GameGameobjectTemplateTableAccess::game_gameobject_template`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject_template()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_template().on_insert(...)`. -pub struct GameGameobjectTemplateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject_template`. -pub struct GameGameobjectTemplateTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectTemplateTableAccessor { - type Row = GameObjectTemplate; - type Handle<'db> = GameGameobjectTemplateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject_template() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject_template`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectTemplateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectTemplateTableHandle`], which mediates access to the table `game_gameobject_template`. - fn game_gameobject_template(&self) -> GameGameobjectTemplateTableHandle<'_>; -} - -impl GameGameobjectTemplateTableAccess for super::RemoteTables { - fn game_gameobject_template(&self) -> GameGameobjectTemplateTableHandle<'_> { - GameGameobjectTemplateTableHandle { - imp: self - .imp - .get_table::("game_gameobject_template"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectTemplateInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectTemplateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectTemplateTableHandle<'ctx> { - type Row = GameObjectTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectTemplateTableHandle<'ctx> { - type Row = GameObjectTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTemplateInsertCallbackId { - GameGameobjectTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTemplateDeleteCallbackId { - GameGameobjectTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectTemplateTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTemplateInsertCallbackId { - GameGameobjectTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectTemplateTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTemplateDeleteCallbackId { - GameGameobjectTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectTemplateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectTemplateUpdateCallbackId { - GameGameobjectTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectTemplateUpdateCallbackId { - GameGameobjectTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entry` unique index on the table `game_gameobject_template`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectTemplateEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_template().entry().find(...)`. -pub struct GameGameobjectTemplateEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectTemplateTableHandle<'ctx> { - /// Get a handle on the `entry` unique index on the table `game_gameobject_template`. - pub fn entry(&self) -> GameGameobjectTemplateEntryUnique<'ctx> { - GameGameobjectTemplateEntryUnique { - imp: self.imp.get_unique_constraint::("entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectTemplateEntryUnique<'ctx> { - /// Find the subscribed row whose `entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gameobject_template"); - _table.add_unique_constraint::("entry", |row| &row.entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObjectTemplate`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobject_templateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObjectTemplate`. - fn game_gameobject_template(&self) -> __sdk::__query_builder::Table; -} - -impl game_gameobject_templateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject_template(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject_template") - } -} diff --git a/gateway/src/stdb/bindings/game_gameobject_trap_cooldown_table.rs b/gateway/src/stdb/bindings/game_gameobject_trap_cooldown_table.rs deleted file mode 100644 index 5448bdd37..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_trap_cooldown_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_trap_cooldown_type::GameObjectTrapCooldown; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject_trap_cooldown`. -/// -/// Obtain a handle from the [`GameGameobjectTrapCooldownTableAccess::game_gameobject_trap_cooldown`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject_trap_cooldown()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_trap_cooldown().on_insert(...)`. -pub struct GameGameobjectTrapCooldownTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject_trap_cooldown`. -pub struct GameGameobjectTrapCooldownTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectTrapCooldownTableAccessor { - type Row = GameObjectTrapCooldown; - type Handle<'db> = GameGameobjectTrapCooldownTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject_trap_cooldown() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject_trap_cooldown`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectTrapCooldownTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectTrapCooldownTableHandle`], which mediates access to the table `game_gameobject_trap_cooldown`. - fn game_gameobject_trap_cooldown(&self) -> GameGameobjectTrapCooldownTableHandle<'_>; -} - -impl GameGameobjectTrapCooldownTableAccess for super::RemoteTables { - fn game_gameobject_trap_cooldown(&self) -> GameGameobjectTrapCooldownTableHandle<'_> { - GameGameobjectTrapCooldownTableHandle { - imp: self - .imp - .get_table::("game_gameobject_trap_cooldown"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectTrapCooldownInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectTrapCooldownDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectTrapCooldownTableHandle<'ctx> { - type Row = GameObjectTrapCooldown; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectTrapCooldownTableHandle<'ctx> { - type Row = GameObjectTrapCooldown; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectTrapCooldownInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapCooldownInsertCallbackId { - GameGameobjectTrapCooldownInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectTrapCooldownInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectTrapCooldownDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapCooldownDeleteCallbackId { - GameGameobjectTrapCooldownDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectTrapCooldownDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectTrapCooldownTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectTrapCooldownInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapCooldownInsertCallbackId { - GameGameobjectTrapCooldownInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectTrapCooldownInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectTrapCooldownTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectTrapCooldownDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapCooldownDeleteCallbackId { - GameGameobjectTrapCooldownDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectTrapCooldownDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectTrapCooldownUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectTrapCooldownTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectTrapCooldownUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapCooldownUpdateCallbackId { - GameGameobjectTrapCooldownUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectTrapCooldownUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectTrapCooldownTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectTrapCooldownUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapCooldownUpdateCallbackId { - GameGameobjectTrapCooldownUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectTrapCooldownUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `go_guid` unique index on the table `game_gameobject_trap_cooldown`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectTrapCooldownGoGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_trap_cooldown().go_guid().find(...)`. -pub struct GameGameobjectTrapCooldownGoGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectTrapCooldownTableHandle<'ctx> { - /// Get a handle on the `go_guid` unique index on the table `game_gameobject_trap_cooldown`. - pub fn go_guid(&self) -> GameGameobjectTrapCooldownGoGuidUnique<'ctx> { - GameGameobjectTrapCooldownGoGuidUnique { - imp: self.imp.get_unique_constraint::("go_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectTrapCooldownGoGuidUnique<'ctx> { - /// Find the subscribed row whose `go_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_gameobject_trap_cooldown"); - _table.add_unique_constraint::("go_guid", |row| &row.go_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObjectTrapCooldown`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobject_trap_cooldownQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObjectTrapCooldown`. - fn game_gameobject_trap_cooldown( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_gameobject_trap_cooldownQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject_trap_cooldown( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject_trap_cooldown") - } -} diff --git a/gateway/src/stdb/bindings/game_gameobject_trap_table.rs b/gateway/src/stdb/bindings/game_gameobject_trap_table.rs deleted file mode 100644 index 3db5ef818..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_trap_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_trap_type::GameObjectTrap; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject_trap`. -/// -/// Obtain a handle from the [`GameGameobjectTrapTableAccess::game_gameobject_trap`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject_trap()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_trap().on_insert(...)`. -pub struct GameGameobjectTrapTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject_trap`. -pub struct GameGameobjectTrapTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectTrapTableAccessor { - type Row = GameObjectTrap; - type Handle<'db> = GameGameobjectTrapTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject_trap() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject_trap`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectTrapTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectTrapTableHandle`], which mediates access to the table `game_gameobject_trap`. - fn game_gameobject_trap(&self) -> GameGameobjectTrapTableHandle<'_>; -} - -impl GameGameobjectTrapTableAccess for super::RemoteTables { - fn game_gameobject_trap(&self) -> GameGameobjectTrapTableHandle<'_> { - GameGameobjectTrapTableHandle { - imp: self.imp.get_table::("game_gameobject_trap"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectTrapInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectTrapDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectTrapTableHandle<'ctx> { - type Row = GameObjectTrap; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectTrapTableHandle<'ctx> { - type Row = GameObjectTrap; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectTrapInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapInsertCallbackId { - GameGameobjectTrapInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectTrapInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectTrapDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapDeleteCallbackId { - GameGameobjectTrapDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectTrapDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectTrapTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectTrapInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapInsertCallbackId { - GameGameobjectTrapInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectTrapInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectTrapTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectTrapDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapDeleteCallbackId { - GameGameobjectTrapDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectTrapDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectTrapUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectTrapTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectTrapUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapUpdateCallbackId { - GameGameobjectTrapUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectTrapUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectTrapTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectTrapUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectTrapUpdateCallbackId { - GameGameobjectTrapUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectTrapUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entry` unique index on the table `game_gameobject_trap`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectTrapEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_trap().entry().find(...)`. -pub struct GameGameobjectTrapEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectTrapTableHandle<'ctx> { - /// Get a handle on the `entry` unique index on the table `game_gameobject_trap`. - pub fn entry(&self) -> GameGameobjectTrapEntryUnique<'ctx> { - GameGameobjectTrapEntryUnique { - imp: self.imp.get_unique_constraint::("entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectTrapEntryUnique<'ctx> { - /// Find the subscribed row whose `entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gameobject_trap"); - _table.add_unique_constraint::("entry", |row| &row.entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObjectTrap`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobject_trapQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObjectTrap`. - fn game_gameobject_trap(&self) -> __sdk::__query_builder::Table; -} - -impl game_gameobject_trapQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject_trap(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject_trap") - } -} diff --git a/gateway/src/stdb/bindings/game_gameobject_unlocked_table.rs b/gateway/src/stdb/bindings/game_gameobject_unlocked_table.rs deleted file mode 100644 index 6456e5c91..000000000 --- a/gateway/src/stdb/bindings/game_gameobject_unlocked_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_object_unlocked_type::GameObjectUnlocked; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gameobject_unlocked`. -/// -/// Obtain a handle from the [`GameGameobjectUnlockedTableAccess::game_gameobject_unlocked`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gameobject_unlocked()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_unlocked().on_insert(...)`. -pub struct GameGameobjectUnlockedTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gameobject_unlocked`. -pub struct GameGameobjectUnlockedTableAccessor; - -impl __sdk::TableAccessor for GameGameobjectUnlockedTableAccessor { - type Row = GameObjectUnlocked; - type Handle<'db> = GameGameobjectUnlockedTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gameobject_unlocked() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gameobject_unlocked`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGameobjectUnlockedTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGameobjectUnlockedTableHandle`], which mediates access to the table `game_gameobject_unlocked`. - fn game_gameobject_unlocked(&self) -> GameGameobjectUnlockedTableHandle<'_>; -} - -impl GameGameobjectUnlockedTableAccess for super::RemoteTables { - fn game_gameobject_unlocked(&self) -> GameGameobjectUnlockedTableHandle<'_> { - GameGameobjectUnlockedTableHandle { - imp: self - .imp - .get_table::("game_gameobject_unlocked"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGameobjectUnlockedInsertCallbackId(__sdk::CallbackId); -pub struct GameGameobjectUnlockedDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGameobjectUnlockedTableHandle<'ctx> { - type Row = GameObjectUnlocked; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGameobjectUnlockedTableHandle<'ctx> { - type Row = GameObjectUnlocked; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGameobjectUnlockedInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectUnlockedInsertCallbackId { - GameGameobjectUnlockedInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectUnlockedInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGameobjectUnlockedDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectUnlockedDeleteCallbackId { - GameGameobjectUnlockedDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectUnlockedDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGameobjectUnlockedTableHandle<'ctx> { - type InsertCallbackId = GameGameobjectUnlockedInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectUnlockedInsertCallbackId { - GameGameobjectUnlockedInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGameobjectUnlockedInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGameobjectUnlockedTableHandle<'ctx> { - type DeleteCallbackId = GameGameobjectUnlockedDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGameobjectUnlockedDeleteCallbackId { - GameGameobjectUnlockedDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGameobjectUnlockedDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGameobjectUnlockedUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGameobjectUnlockedTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectUnlockedUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectUnlockedUpdateCallbackId { - GameGameobjectUnlockedUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectUnlockedUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGameobjectUnlockedTableHandle<'ctx> { - type UpdateCallbackId = GameGameobjectUnlockedUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGameobjectUnlockedUpdateCallbackId { - GameGameobjectUnlockedUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGameobjectUnlockedUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `go_guid` unique index on the table `game_gameobject_unlocked`, -/// which allows point queries on the field of the same name -/// via the [`GameGameobjectUnlockedGoGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gameobject_unlocked().go_guid().find(...)`. -pub struct GameGameobjectUnlockedGoGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGameobjectUnlockedTableHandle<'ctx> { - /// Get a handle on the `go_guid` unique index on the table `game_gameobject_unlocked`. - pub fn go_guid(&self) -> GameGameobjectUnlockedGoGuidUnique<'ctx> { - GameGameobjectUnlockedGoGuidUnique { - imp: self.imp.get_unique_constraint::("go_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGameobjectUnlockedGoGuidUnique<'ctx> { - /// Find the subscribed row whose `go_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gameobject_unlocked"); - _table.add_unique_constraint::("go_guid", |row| &row.go_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameObjectUnlocked`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gameobject_unlockedQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameObjectUnlocked`. - fn game_gameobject_unlocked(&self) -> __sdk::__query_builder::Table; -} - -impl game_gameobject_unlockedQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gameobject_unlocked(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gameobject_unlocked") - } -} diff --git a/gateway/src/stdb/bindings/game_gateway_lease_reaper_schedule_table.rs b/gateway/src/stdb/bindings/game_gateway_lease_reaper_schedule_table.rs deleted file mode 100644 index e1c72d5c5..000000000 --- a/gateway/src/stdb/bindings/game_gateway_lease_reaper_schedule_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::gateway_lease_reaper_schedule_type::GatewayLeaseReaperSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gateway_lease_reaper_schedule`. -/// -/// Obtain a handle from the [`GameGatewayLeaseReaperScheduleTableAccess::game_gateway_lease_reaper_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gateway_lease_reaper_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gateway_lease_reaper_schedule().on_insert(...)`. -pub struct GameGatewayLeaseReaperScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gateway_lease_reaper_schedule`. -pub struct GameGatewayLeaseReaperScheduleTableAccessor; - -impl __sdk::TableAccessor for GameGatewayLeaseReaperScheduleTableAccessor { - type Row = GatewayLeaseReaperSchedule; - type Handle<'db> = GameGatewayLeaseReaperScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gateway_lease_reaper_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gateway_lease_reaper_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGatewayLeaseReaperScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGatewayLeaseReaperScheduleTableHandle`], which mediates access to the table `game_gateway_lease_reaper_schedule`. - fn game_gateway_lease_reaper_schedule(&self) -> GameGatewayLeaseReaperScheduleTableHandle<'_>; -} - -impl GameGatewayLeaseReaperScheduleTableAccess for super::RemoteTables { - fn game_gateway_lease_reaper_schedule(&self) -> GameGatewayLeaseReaperScheduleTableHandle<'_> { - GameGatewayLeaseReaperScheduleTableHandle { - imp: self - .imp - .get_table::("game_gateway_lease_reaper_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGatewayLeaseReaperScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameGatewayLeaseReaperScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGatewayLeaseReaperScheduleTableHandle<'ctx> { - type Row = GatewayLeaseReaperSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGatewayLeaseReaperScheduleTableHandle<'ctx> { - type Row = GatewayLeaseReaperSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGatewayLeaseReaperScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseReaperScheduleInsertCallbackId { - GameGatewayLeaseReaperScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGatewayLeaseReaperScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGatewayLeaseReaperScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseReaperScheduleDeleteCallbackId { - GameGatewayLeaseReaperScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGatewayLeaseReaperScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGatewayLeaseReaperScheduleTableHandle<'ctx> { - type InsertCallbackId = GameGatewayLeaseReaperScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseReaperScheduleInsertCallbackId { - GameGatewayLeaseReaperScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGatewayLeaseReaperScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGatewayLeaseReaperScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameGatewayLeaseReaperScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseReaperScheduleDeleteCallbackId { - GameGatewayLeaseReaperScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGatewayLeaseReaperScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGatewayLeaseReaperScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGatewayLeaseReaperScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameGatewayLeaseReaperScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseReaperScheduleUpdateCallbackId { - GameGatewayLeaseReaperScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGatewayLeaseReaperScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGatewayLeaseReaperScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameGatewayLeaseReaperScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseReaperScheduleUpdateCallbackId { - GameGatewayLeaseReaperScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGatewayLeaseReaperScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_gateway_lease_reaper_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameGatewayLeaseReaperScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gateway_lease_reaper_schedule().scheduled_id().find(...)`. -pub struct GameGatewayLeaseReaperScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGatewayLeaseReaperScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_gateway_lease_reaper_schedule`. - pub fn scheduled_id(&self) -> GameGatewayLeaseReaperScheduleScheduledIdUnique<'ctx> { - GameGatewayLeaseReaperScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGatewayLeaseReaperScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_gateway_lease_reaper_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GatewayLeaseReaperSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gateway_lease_reaper_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GatewayLeaseReaperSchedule`. - fn game_gateway_lease_reaper_schedule( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_gateway_lease_reaper_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gateway_lease_reaper_schedule( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gateway_lease_reaper_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_gateway_lease_table.rs b/gateway/src/stdb/bindings/game_gateway_lease_table.rs deleted file mode 100644 index 954f6eed3..000000000 --- a/gateway/src/stdb/bindings/game_gateway_lease_table.rs +++ /dev/null @@ -1,261 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::gateway_lease_type::GatewayLease; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gateway_lease`. -/// -/// Obtain a handle from the [`GameGatewayLeaseTableAccess::game_gateway_lease`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gateway_lease()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gateway_lease().on_insert(...)`. -pub struct GameGatewayLeaseTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gateway_lease`. -pub struct GameGatewayLeaseTableAccessor; - -impl __sdk::TableAccessor for GameGatewayLeaseTableAccessor { - type Row = GatewayLease; - type Handle<'db> = GameGatewayLeaseTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gateway_lease() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gateway_lease`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGatewayLeaseTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGatewayLeaseTableHandle`], which mediates access to the table `game_gateway_lease`. - fn game_gateway_lease(&self) -> GameGatewayLeaseTableHandle<'_>; -} - -impl GameGatewayLeaseTableAccess for super::RemoteTables { - fn game_gateway_lease(&self) -> GameGatewayLeaseTableHandle<'_> { - GameGatewayLeaseTableHandle { - imp: self.imp.get_table::("game_gateway_lease"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGatewayLeaseInsertCallbackId(__sdk::CallbackId); -pub struct GameGatewayLeaseDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGatewayLeaseTableHandle<'ctx> { - type Row = GatewayLease; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGatewayLeaseTableHandle<'ctx> { - type Row = GatewayLease; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGatewayLeaseInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseInsertCallbackId { - GameGatewayLeaseInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGatewayLeaseInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGatewayLeaseDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseDeleteCallbackId { - GameGatewayLeaseDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGatewayLeaseDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGatewayLeaseTableHandle<'ctx> { - type InsertCallbackId = GameGatewayLeaseInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseInsertCallbackId { - GameGatewayLeaseInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGatewayLeaseInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGatewayLeaseTableHandle<'ctx> { - type DeleteCallbackId = GameGatewayLeaseDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseDeleteCallbackId { - GameGatewayLeaseDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGatewayLeaseDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGatewayLeaseUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGatewayLeaseTableHandle<'ctx> { - type UpdateCallbackId = GameGatewayLeaseUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseUpdateCallbackId { - GameGatewayLeaseUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGatewayLeaseUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGatewayLeaseTableHandle<'ctx> { - type UpdateCallbackId = GameGatewayLeaseUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGatewayLeaseUpdateCallbackId { - GameGatewayLeaseUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGatewayLeaseUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_gateway_lease`, -/// which allows point queries on the field of the same name -/// via the [`GameGatewayLeaseIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gateway_lease().id().find(...)`. -pub struct GameGatewayLeaseIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGatewayLeaseTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_gateway_lease`. - pub fn id(&self) -> GameGatewayLeaseIdUnique<'ctx> { - GameGatewayLeaseIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGatewayLeaseIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `identity` unique index on the table `game_gateway_lease`, -/// which allows point queries on the field of the same name -/// via the [`GameGatewayLeaseIdentityUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gateway_lease().identity().find(...)`. -pub struct GameGatewayLeaseIdentityUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGatewayLeaseTableHandle<'ctx> { - /// Get a handle on the `identity` unique index on the table `game_gateway_lease`. - pub fn identity(&self) -> GameGatewayLeaseIdentityUnique<'ctx> { - GameGatewayLeaseIdentityUnique { - imp: self - .imp - .get_unique_constraint::<__sdk::Identity>("identity"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGatewayLeaseIdentityUnique<'ctx> { - /// Find the subscribed row whose `identity` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &__sdk::Identity) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gateway_lease"); - _table.add_unique_constraint::("id", |row| &row.id); - _table.add_unique_constraint::<__sdk::Identity>("identity", |row| &row.identity); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GatewayLease`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gateway_leaseQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GatewayLease`. - fn game_gateway_lease(&self) -> __sdk::__query_builder::Table; -} - -impl game_gateway_leaseQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gateway_lease(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gateway_lease") - } -} diff --git a/gateway/src/stdb/bindings/game_gateway_session_table.rs b/gateway/src/stdb/bindings/game_gateway_session_table.rs deleted file mode 100644 index e6968097c..000000000 --- a/gateway/src/stdb/bindings/game_gateway_session_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::gateway_session_type::GatewaySession; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gateway_session`. -/// -/// Obtain a handle from the [`GameGatewaySessionTableAccess::game_gateway_session`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gateway_session()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gateway_session().on_insert(...)`. -pub struct GameGatewaySessionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gateway_session`. -pub struct GameGatewaySessionTableAccessor; - -impl __sdk::TableAccessor for GameGatewaySessionTableAccessor { - type Row = GatewaySession; - type Handle<'db> = GameGatewaySessionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gateway_session() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gateway_session`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGatewaySessionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGatewaySessionTableHandle`], which mediates access to the table `game_gateway_session`. - fn game_gateway_session(&self) -> GameGatewaySessionTableHandle<'_>; -} - -impl GameGatewaySessionTableAccess for super::RemoteTables { - fn game_gateway_session(&self) -> GameGatewaySessionTableHandle<'_> { - GameGatewaySessionTableHandle { - imp: self.imp.get_table::("game_gateway_session"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGatewaySessionInsertCallbackId(__sdk::CallbackId); -pub struct GameGatewaySessionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGatewaySessionTableHandle<'ctx> { - type Row = GatewaySession; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGatewaySessionTableHandle<'ctx> { - type Row = GatewaySession; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGatewaySessionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewaySessionInsertCallbackId { - GameGatewaySessionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGatewaySessionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGatewaySessionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewaySessionDeleteCallbackId { - GameGatewaySessionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGatewaySessionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGatewaySessionTableHandle<'ctx> { - type InsertCallbackId = GameGatewaySessionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewaySessionInsertCallbackId { - GameGatewaySessionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGatewaySessionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGatewaySessionTableHandle<'ctx> { - type DeleteCallbackId = GameGatewaySessionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGatewaySessionDeleteCallbackId { - GameGatewaySessionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGatewaySessionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGatewaySessionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGatewaySessionTableHandle<'ctx> { - type UpdateCallbackId = GameGatewaySessionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGatewaySessionUpdateCallbackId { - GameGatewaySessionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGatewaySessionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGatewaySessionTableHandle<'ctx> { - type UpdateCallbackId = GameGatewaySessionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGatewaySessionUpdateCallbackId { - GameGatewaySessionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGatewaySessionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entity_guid` unique index on the table `game_gateway_session`, -/// which allows point queries on the field of the same name -/// via the [`GameGatewaySessionEntityGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gateway_session().entity_guid().find(...)`. -pub struct GameGatewaySessionEntityGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGatewaySessionTableHandle<'ctx> { - /// Get a handle on the `entity_guid` unique index on the table `game_gateway_session`. - pub fn entity_guid(&self) -> GameGatewaySessionEntityGuidUnique<'ctx> { - GameGatewaySessionEntityGuidUnique { - imp: self.imp.get_unique_constraint::("entity_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGatewaySessionEntityGuidUnique<'ctx> { - /// Find the subscribed row whose `entity_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gateway_session"); - _table.add_unique_constraint::("entity_guid", |row| &row.entity_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GatewaySession`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gateway_sessionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GatewaySession`. - fn game_gateway_session(&self) -> __sdk::__query_builder::Table; -} - -impl game_gateway_sessionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gateway_session(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gateway_session") - } -} diff --git a/gateway/src/stdb/bindings/game_go_collider_table.rs b/gateway/src/stdb/bindings/game_go_collider_table.rs deleted file mode 100644 index 4629ca1f5..000000000 --- a/gateway/src/stdb/bindings/game_go_collider_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::go_collider_type::GoCollider; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_go_collider`. -/// -/// Obtain a handle from the [`GameGoColliderTableAccess::game_go_collider`] method on [`super::RemoteTables`], -/// like `ctx.db.game_go_collider()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_go_collider().on_insert(...)`. -pub struct GameGoColliderTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_go_collider`. -pub struct GameGoColliderTableAccessor; - -impl __sdk::TableAccessor for GameGoColliderTableAccessor { - type Row = GoCollider; - type Handle<'db> = GameGoColliderTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_go_collider() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_go_collider`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGoColliderTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGoColliderTableHandle`], which mediates access to the table `game_go_collider`. - fn game_go_collider(&self) -> GameGoColliderTableHandle<'_>; -} - -impl GameGoColliderTableAccess for super::RemoteTables { - fn game_go_collider(&self) -> GameGoColliderTableHandle<'_> { - GameGoColliderTableHandle { - imp: self.imp.get_table::("game_go_collider"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGoColliderInsertCallbackId(__sdk::CallbackId); -pub struct GameGoColliderDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGoColliderTableHandle<'ctx> { - type Row = GoCollider; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGoColliderTableHandle<'ctx> { - type Row = GoCollider; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGoColliderInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGoColliderInsertCallbackId { - GameGoColliderInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGoColliderInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGoColliderDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGoColliderDeleteCallbackId { - GameGoColliderDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGoColliderDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGoColliderTableHandle<'ctx> { - type InsertCallbackId = GameGoColliderInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGoColliderInsertCallbackId { - GameGoColliderInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGoColliderInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGoColliderTableHandle<'ctx> { - type DeleteCallbackId = GameGoColliderDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGoColliderDeleteCallbackId { - GameGoColliderDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGoColliderDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGoColliderUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGoColliderTableHandle<'ctx> { - type UpdateCallbackId = GameGoColliderUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGoColliderUpdateCallbackId { - GameGoColliderUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGoColliderUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGoColliderTableHandle<'ctx> { - type UpdateCallbackId = GameGoColliderUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGoColliderUpdateCallbackId { - GameGoColliderUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGoColliderUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `go_guid` unique index on the table `game_go_collider`, -/// which allows point queries on the field of the same name -/// via the [`GameGoColliderGoGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_go_collider().go_guid().find(...)`. -pub struct GameGoColliderGoGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGoColliderTableHandle<'ctx> { - /// Get a handle on the `go_guid` unique index on the table `game_go_collider`. - pub fn go_guid(&self) -> GameGoColliderGoGuidUnique<'ctx> { - GameGoColliderGoGuidUnique { - imp: self.imp.get_unique_constraint::("go_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGoColliderGoGuidUnique<'ctx> { - /// Find the subscribed row whose `go_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_go_collider"); - _table.add_unique_constraint::("go_guid", |row| &row.go_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GoCollider`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_go_colliderQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GoCollider`. - fn game_go_collider(&self) -> __sdk::__query_builder::Table; -} - -impl game_go_colliderQueryTableAccess for __sdk::QueryTableAccessor { - fn game_go_collider(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_go_collider") - } -} diff --git a/gateway/src/stdb/bindings/game_go_model_table.rs b/gateway/src/stdb/bindings/game_go_model_table.rs deleted file mode 100644 index 72c3571fc..000000000 --- a/gateway/src/stdb/bindings/game_go_model_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::go_model_type::GoModel; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_go_model`. -/// -/// Obtain a handle from the [`GameGoModelTableAccess::game_go_model`] method on [`super::RemoteTables`], -/// like `ctx.db.game_go_model()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_go_model().on_insert(...)`. -pub struct GameGoModelTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_go_model`. -pub struct GameGoModelTableAccessor; - -impl __sdk::TableAccessor for GameGoModelTableAccessor { - type Row = GoModel; - type Handle<'db> = GameGoModelTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_go_model() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_go_model`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGoModelTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGoModelTableHandle`], which mediates access to the table `game_go_model`. - fn game_go_model(&self) -> GameGoModelTableHandle<'_>; -} - -impl GameGoModelTableAccess for super::RemoteTables { - fn game_go_model(&self) -> GameGoModelTableHandle<'_> { - GameGoModelTableHandle { - imp: self.imp.get_table::("game_go_model"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGoModelInsertCallbackId(__sdk::CallbackId); -pub struct GameGoModelDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGoModelTableHandle<'ctx> { - type Row = GoModel; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGoModelTableHandle<'ctx> { - type Row = GoModel; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGoModelInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGoModelInsertCallbackId { - GameGoModelInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGoModelInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGoModelDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGoModelDeleteCallbackId { - GameGoModelDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGoModelDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGoModelTableHandle<'ctx> { - type InsertCallbackId = GameGoModelInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGoModelInsertCallbackId { - GameGoModelInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGoModelInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGoModelTableHandle<'ctx> { - type DeleteCallbackId = GameGoModelDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGoModelDeleteCallbackId { - GameGoModelDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGoModelDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGoModelUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGoModelTableHandle<'ctx> { - type UpdateCallbackId = GameGoModelUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGoModelUpdateCallbackId { - GameGoModelUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGoModelUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGoModelTableHandle<'ctx> { - type UpdateCallbackId = GameGoModelUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGoModelUpdateCallbackId { - GameGoModelUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGoModelUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entry` unique index on the table `game_go_model`, -/// which allows point queries on the field of the same name -/// via the [`GameGoModelEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_go_model().entry().find(...)`. -pub struct GameGoModelEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGoModelTableHandle<'ctx> { - /// Get a handle on the `entry` unique index on the table `game_go_model`. - pub fn entry(&self) -> GameGoModelEntryUnique<'ctx> { - GameGoModelEntryUnique { - imp: self.imp.get_unique_constraint::("entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGoModelEntryUnique<'ctx> { - /// Find the subscribed row whose `entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_go_model"); - _table.add_unique_constraint::("entry", |row| &row.entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GoModel`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_go_modelQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GoModel`. - fn game_go_model(&self) -> __sdk::__query_builder::Table; -} - -impl game_go_modelQueryTableAccess for __sdk::QueryTableAccessor { - fn game_go_model(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_go_model") - } -} diff --git a/gateway/src/stdb/bindings/game_gossip_menu_profile_option_table.rs b/gateway/src/stdb/bindings/game_gossip_menu_profile_option_table.rs deleted file mode 100644 index 51295b9d4..000000000 --- a/gateway/src/stdb/bindings/game_gossip_menu_profile_option_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::gossip_menu_profile_option_type::GossipMenuProfileOption; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gossip_menu_profile_option`. -/// -/// Obtain a handle from the [`GameGossipMenuProfileOptionTableAccess::game_gossip_menu_profile_option`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gossip_menu_profile_option()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gossip_menu_profile_option().on_insert(...)`. -pub struct GameGossipMenuProfileOptionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gossip_menu_profile_option`. -pub struct GameGossipMenuProfileOptionTableAccessor; - -impl __sdk::TableAccessor for GameGossipMenuProfileOptionTableAccessor { - type Row = GossipMenuProfileOption; - type Handle<'db> = GameGossipMenuProfileOptionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gossip_menu_profile_option() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gossip_menu_profile_option`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGossipMenuProfileOptionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGossipMenuProfileOptionTableHandle`], which mediates access to the table `game_gossip_menu_profile_option`. - fn game_gossip_menu_profile_option(&self) -> GameGossipMenuProfileOptionTableHandle<'_>; -} - -impl GameGossipMenuProfileOptionTableAccess for super::RemoteTables { - fn game_gossip_menu_profile_option(&self) -> GameGossipMenuProfileOptionTableHandle<'_> { - GameGossipMenuProfileOptionTableHandle { - imp: self - .imp - .get_table::("game_gossip_menu_profile_option"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGossipMenuProfileOptionInsertCallbackId(__sdk::CallbackId); -pub struct GameGossipMenuProfileOptionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGossipMenuProfileOptionTableHandle<'ctx> { - type Row = GossipMenuProfileOption; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGossipMenuProfileOptionTableHandle<'ctx> { - type Row = GossipMenuProfileOption; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGossipMenuProfileOptionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileOptionInsertCallbackId { - GameGossipMenuProfileOptionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGossipMenuProfileOptionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGossipMenuProfileOptionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileOptionDeleteCallbackId { - GameGossipMenuProfileOptionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGossipMenuProfileOptionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGossipMenuProfileOptionTableHandle<'ctx> { - type InsertCallbackId = GameGossipMenuProfileOptionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileOptionInsertCallbackId { - GameGossipMenuProfileOptionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGossipMenuProfileOptionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGossipMenuProfileOptionTableHandle<'ctx> { - type DeleteCallbackId = GameGossipMenuProfileOptionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileOptionDeleteCallbackId { - GameGossipMenuProfileOptionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGossipMenuProfileOptionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGossipMenuProfileOptionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGossipMenuProfileOptionTableHandle<'ctx> { - type UpdateCallbackId = GameGossipMenuProfileOptionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileOptionUpdateCallbackId { - GameGossipMenuProfileOptionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGossipMenuProfileOptionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGossipMenuProfileOptionTableHandle<'ctx> { - type UpdateCallbackId = GameGossipMenuProfileOptionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileOptionUpdateCallbackId { - GameGossipMenuProfileOptionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGossipMenuProfileOptionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `row_id` unique index on the table `game_gossip_menu_profile_option`, -/// which allows point queries on the field of the same name -/// via the [`GameGossipMenuProfileOptionRowIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gossip_menu_profile_option().row_id().find(...)`. -pub struct GameGossipMenuProfileOptionRowIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGossipMenuProfileOptionTableHandle<'ctx> { - /// Get a handle on the `row_id` unique index on the table `game_gossip_menu_profile_option`. - pub fn row_id(&self) -> GameGossipMenuProfileOptionRowIdUnique<'ctx> { - GameGossipMenuProfileOptionRowIdUnique { - imp: self.imp.get_unique_constraint::("row_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGossipMenuProfileOptionRowIdUnique<'ctx> { - /// Find the subscribed row whose `row_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_gossip_menu_profile_option"); - _table.add_unique_constraint::("row_id", |row| &row.row_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GossipMenuProfileOption`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gossip_menu_profile_optionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GossipMenuProfileOption`. - fn game_gossip_menu_profile_option( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_gossip_menu_profile_optionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gossip_menu_profile_option( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gossip_menu_profile_option") - } -} diff --git a/gateway/src/stdb/bindings/game_gossip_menu_profile_table.rs b/gateway/src/stdb/bindings/game_gossip_menu_profile_table.rs deleted file mode 100644 index 399eea29d..000000000 --- a/gateway/src/stdb/bindings/game_gossip_menu_profile_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::gossip_menu_profile_type::GossipMenuProfile; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gossip_menu_profile`. -/// -/// Obtain a handle from the [`GameGossipMenuProfileTableAccess::game_gossip_menu_profile`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gossip_menu_profile()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gossip_menu_profile().on_insert(...)`. -pub struct GameGossipMenuProfileTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gossip_menu_profile`. -pub struct GameGossipMenuProfileTableAccessor; - -impl __sdk::TableAccessor for GameGossipMenuProfileTableAccessor { - type Row = GossipMenuProfile; - type Handle<'db> = GameGossipMenuProfileTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gossip_menu_profile() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gossip_menu_profile`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGossipMenuProfileTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGossipMenuProfileTableHandle`], which mediates access to the table `game_gossip_menu_profile`. - fn game_gossip_menu_profile(&self) -> GameGossipMenuProfileTableHandle<'_>; -} - -impl GameGossipMenuProfileTableAccess for super::RemoteTables { - fn game_gossip_menu_profile(&self) -> GameGossipMenuProfileTableHandle<'_> { - GameGossipMenuProfileTableHandle { - imp: self - .imp - .get_table::("game_gossip_menu_profile"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGossipMenuProfileInsertCallbackId(__sdk::CallbackId); -pub struct GameGossipMenuProfileDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGossipMenuProfileTableHandle<'ctx> { - type Row = GossipMenuProfile; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGossipMenuProfileTableHandle<'ctx> { - type Row = GossipMenuProfile; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGossipMenuProfileInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileInsertCallbackId { - GameGossipMenuProfileInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGossipMenuProfileInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGossipMenuProfileDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileDeleteCallbackId { - GameGossipMenuProfileDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGossipMenuProfileDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGossipMenuProfileTableHandle<'ctx> { - type InsertCallbackId = GameGossipMenuProfileInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileInsertCallbackId { - GameGossipMenuProfileInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGossipMenuProfileInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGossipMenuProfileTableHandle<'ctx> { - type DeleteCallbackId = GameGossipMenuProfileDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileDeleteCallbackId { - GameGossipMenuProfileDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGossipMenuProfileDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGossipMenuProfileUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGossipMenuProfileTableHandle<'ctx> { - type UpdateCallbackId = GameGossipMenuProfileUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileUpdateCallbackId { - GameGossipMenuProfileUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGossipMenuProfileUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGossipMenuProfileTableHandle<'ctx> { - type UpdateCallbackId = GameGossipMenuProfileUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGossipMenuProfileUpdateCallbackId { - GameGossipMenuProfileUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGossipMenuProfileUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `menu_id` unique index on the table `game_gossip_menu_profile`, -/// which allows point queries on the field of the same name -/// via the [`GameGossipMenuProfileMenuIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gossip_menu_profile().menu_id().find(...)`. -pub struct GameGossipMenuProfileMenuIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGossipMenuProfileTableHandle<'ctx> { - /// Get a handle on the `menu_id` unique index on the table `game_gossip_menu_profile`. - pub fn menu_id(&self) -> GameGossipMenuProfileMenuIdUnique<'ctx> { - GameGossipMenuProfileMenuIdUnique { - imp: self.imp.get_unique_constraint::("menu_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGossipMenuProfileMenuIdUnique<'ctx> { - /// Find the subscribed row whose `menu_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gossip_menu_profile"); - _table.add_unique_constraint::("menu_id", |row| &row.menu_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GossipMenuProfile`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gossip_menu_profileQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GossipMenuProfile`. - fn game_gossip_menu_profile(&self) -> __sdk::__query_builder::Table; -} - -impl game_gossip_menu_profileQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gossip_menu_profile(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gossip_menu_profile") - } -} diff --git a/gateway/src/stdb/bindings/game_gossip_menu_table.rs b/gateway/src/stdb/bindings/game_gossip_menu_table.rs deleted file mode 100644 index 050a04bb4..000000000 --- a/gateway/src/stdb/bindings/game_gossip_menu_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::gossip_menu_type::GossipMenu; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gossip_menu`. -/// -/// Obtain a handle from the [`GameGossipMenuTableAccess::game_gossip_menu`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gossip_menu()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gossip_menu().on_insert(...)`. -pub struct GameGossipMenuTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gossip_menu`. -pub struct GameGossipMenuTableAccessor; - -impl __sdk::TableAccessor for GameGossipMenuTableAccessor { - type Row = GossipMenu; - type Handle<'db> = GameGossipMenuTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gossip_menu() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gossip_menu`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGossipMenuTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGossipMenuTableHandle`], which mediates access to the table `game_gossip_menu`. - fn game_gossip_menu(&self) -> GameGossipMenuTableHandle<'_>; -} - -impl GameGossipMenuTableAccess for super::RemoteTables { - fn game_gossip_menu(&self) -> GameGossipMenuTableHandle<'_> { - GameGossipMenuTableHandle { - imp: self.imp.get_table::("game_gossip_menu"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGossipMenuInsertCallbackId(__sdk::CallbackId); -pub struct GameGossipMenuDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGossipMenuTableHandle<'ctx> { - type Row = GossipMenu; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGossipMenuTableHandle<'ctx> { - type Row = GossipMenu; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGossipMenuInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuInsertCallbackId { - GameGossipMenuInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGossipMenuInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGossipMenuDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuDeleteCallbackId { - GameGossipMenuDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGossipMenuDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGossipMenuTableHandle<'ctx> { - type InsertCallbackId = GameGossipMenuInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuInsertCallbackId { - GameGossipMenuInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGossipMenuInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGossipMenuTableHandle<'ctx> { - type DeleteCallbackId = GameGossipMenuDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipMenuDeleteCallbackId { - GameGossipMenuDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGossipMenuDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGossipMenuUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGossipMenuTableHandle<'ctx> { - type UpdateCallbackId = GameGossipMenuUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGossipMenuUpdateCallbackId { - GameGossipMenuUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGossipMenuUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGossipMenuTableHandle<'ctx> { - type UpdateCallbackId = GameGossipMenuUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGossipMenuUpdateCallbackId { - GameGossipMenuUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGossipMenuUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entry` unique index on the table `game_gossip_menu`, -/// which allows point queries on the field of the same name -/// via the [`GameGossipMenuEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gossip_menu().entry().find(...)`. -pub struct GameGossipMenuEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGossipMenuTableHandle<'ctx> { - /// Get a handle on the `entry` unique index on the table `game_gossip_menu`. - pub fn entry(&self) -> GameGossipMenuEntryUnique<'ctx> { - GameGossipMenuEntryUnique { - imp: self.imp.get_unique_constraint::("entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGossipMenuEntryUnique<'ctx> { - /// Find the subscribed row whose `entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gossip_menu"); - _table.add_unique_constraint::("entry", |row| &row.entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GossipMenu`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gossip_menuQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GossipMenu`. - fn game_gossip_menu(&self) -> __sdk::__query_builder::Table; -} - -impl game_gossip_menuQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gossip_menu(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gossip_menu") - } -} diff --git a/gateway/src/stdb/bindings/game_gossip_option_table.rs b/gateway/src/stdb/bindings/game_gossip_option_table.rs deleted file mode 100644 index 801b288a2..000000000 --- a/gateway/src/stdb/bindings/game_gossip_option_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::gossip_option_type::GossipOption; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_gossip_option`. -/// -/// Obtain a handle from the [`GameGossipOptionTableAccess::game_gossip_option`] method on [`super::RemoteTables`], -/// like `ctx.db.game_gossip_option()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gossip_option().on_insert(...)`. -pub struct GameGossipOptionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_gossip_option`. -pub struct GameGossipOptionTableAccessor; - -impl __sdk::TableAccessor for GameGossipOptionTableAccessor { - type Row = GossipOption; - type Handle<'db> = GameGossipOptionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_gossip_option() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_gossip_option`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGossipOptionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGossipOptionTableHandle`], which mediates access to the table `game_gossip_option`. - fn game_gossip_option(&self) -> GameGossipOptionTableHandle<'_>; -} - -impl GameGossipOptionTableAccess for super::RemoteTables { - fn game_gossip_option(&self) -> GameGossipOptionTableHandle<'_> { - GameGossipOptionTableHandle { - imp: self.imp.get_table::("game_gossip_option"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGossipOptionInsertCallbackId(__sdk::CallbackId); -pub struct GameGossipOptionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGossipOptionTableHandle<'ctx> { - type Row = GossipOption; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGossipOptionTableHandle<'ctx> { - type Row = GossipOption; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGossipOptionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipOptionInsertCallbackId { - GameGossipOptionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGossipOptionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGossipOptionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipOptionDeleteCallbackId { - GameGossipOptionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGossipOptionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGossipOptionTableHandle<'ctx> { - type InsertCallbackId = GameGossipOptionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipOptionInsertCallbackId { - GameGossipOptionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGossipOptionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGossipOptionTableHandle<'ctx> { - type DeleteCallbackId = GameGossipOptionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGossipOptionDeleteCallbackId { - GameGossipOptionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGossipOptionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGossipOptionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGossipOptionTableHandle<'ctx> { - type UpdateCallbackId = GameGossipOptionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGossipOptionUpdateCallbackId { - GameGossipOptionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGossipOptionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGossipOptionTableHandle<'ctx> { - type UpdateCallbackId = GameGossipOptionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGossipOptionUpdateCallbackId { - GameGossipOptionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGossipOptionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `row_id` unique index on the table `game_gossip_option`, -/// which allows point queries on the field of the same name -/// via the [`GameGossipOptionRowIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_gossip_option().row_id().find(...)`. -pub struct GameGossipOptionRowIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGossipOptionTableHandle<'ctx> { - /// Get a handle on the `row_id` unique index on the table `game_gossip_option`. - pub fn row_id(&self) -> GameGossipOptionRowIdUnique<'ctx> { - GameGossipOptionRowIdUnique { - imp: self.imp.get_unique_constraint::("row_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGossipOptionRowIdUnique<'ctx> { - /// Find the subscribed row whose `row_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_gossip_option"); - _table.add_unique_constraint::("row_id", |row| &row.row_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GossipOption`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_gossip_optionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GossipOption`. - fn game_gossip_option(&self) -> __sdk::__query_builder::Table; -} - -impl game_gossip_optionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_gossip_option(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_gossip_option") - } -} diff --git a/gateway/src/stdb/bindings/game_graveyard_table.rs b/gateway/src/stdb/bindings/game_graveyard_table.rs deleted file mode 100644 index 9872a9329..000000000 --- a/gateway/src/stdb/bindings/game_graveyard_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::graveyard_loc_type::GraveyardLoc; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_graveyard`. -/// -/// Obtain a handle from the [`GameGraveyardTableAccess::game_graveyard`] method on [`super::RemoteTables`], -/// like `ctx.db.game_graveyard()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_graveyard().on_insert(...)`. -pub struct GameGraveyardTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_graveyard`. -pub struct GameGraveyardTableAccessor; - -impl __sdk::TableAccessor for GameGraveyardTableAccessor { - type Row = GraveyardLoc; - type Handle<'db> = GameGraveyardTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_graveyard() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_graveyard`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGraveyardTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGraveyardTableHandle`], which mediates access to the table `game_graveyard`. - fn game_graveyard(&self) -> GameGraveyardTableHandle<'_>; -} - -impl GameGraveyardTableAccess for super::RemoteTables { - fn game_graveyard(&self) -> GameGraveyardTableHandle<'_> { - GameGraveyardTableHandle { - imp: self.imp.get_table::("game_graveyard"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGraveyardInsertCallbackId(__sdk::CallbackId); -pub struct GameGraveyardDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGraveyardTableHandle<'ctx> { - type Row = GraveyardLoc; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGraveyardTableHandle<'ctx> { - type Row = GraveyardLoc; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGraveyardInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGraveyardInsertCallbackId { - GameGraveyardInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGraveyardInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGraveyardDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGraveyardDeleteCallbackId { - GameGraveyardDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGraveyardDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGraveyardTableHandle<'ctx> { - type InsertCallbackId = GameGraveyardInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGraveyardInsertCallbackId { - GameGraveyardInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGraveyardInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGraveyardTableHandle<'ctx> { - type DeleteCallbackId = GameGraveyardDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGraveyardDeleteCallbackId { - GameGraveyardDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGraveyardDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGraveyardUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGraveyardTableHandle<'ctx> { - type UpdateCallbackId = GameGraveyardUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGraveyardUpdateCallbackId { - GameGraveyardUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGraveyardUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGraveyardTableHandle<'ctx> { - type UpdateCallbackId = GameGraveyardUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGraveyardUpdateCallbackId { - GameGraveyardUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGraveyardUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_graveyard`, -/// which allows point queries on the field of the same name -/// via the [`GameGraveyardIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_graveyard().id().find(...)`. -pub struct GameGraveyardIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGraveyardTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_graveyard`. - pub fn id(&self) -> GameGraveyardIdUnique<'ctx> { - GameGraveyardIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGraveyardIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_graveyard"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GraveyardLoc`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_graveyardQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GraveyardLoc`. - fn game_graveyard(&self) -> __sdk::__query_builder::Table; -} - -impl game_graveyardQueryTableAccess for __sdk::QueryTableAccessor { - fn game_graveyard(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_graveyard") - } -} diff --git a/gateway/src/stdb/bindings/game_graveyard_zone_table.rs b/gateway/src/stdb/bindings/game_graveyard_zone_table.rs deleted file mode 100644 index 5168a9f89..000000000 --- a/gateway/src/stdb/bindings/game_graveyard_zone_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::graveyard_zone_type::GraveyardZone; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_graveyard_zone`. -/// -/// Obtain a handle from the [`GameGraveyardZoneTableAccess::game_graveyard_zone`] method on [`super::RemoteTables`], -/// like `ctx.db.game_graveyard_zone()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_graveyard_zone().on_insert(...)`. -pub struct GameGraveyardZoneTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_graveyard_zone`. -pub struct GameGraveyardZoneTableAccessor; - -impl __sdk::TableAccessor for GameGraveyardZoneTableAccessor { - type Row = GraveyardZone; - type Handle<'db> = GameGraveyardZoneTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_graveyard_zone() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_graveyard_zone`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGraveyardZoneTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGraveyardZoneTableHandle`], which mediates access to the table `game_graveyard_zone`. - fn game_graveyard_zone(&self) -> GameGraveyardZoneTableHandle<'_>; -} - -impl GameGraveyardZoneTableAccess for super::RemoteTables { - fn game_graveyard_zone(&self) -> GameGraveyardZoneTableHandle<'_> { - GameGraveyardZoneTableHandle { - imp: self.imp.get_table::("game_graveyard_zone"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGraveyardZoneInsertCallbackId(__sdk::CallbackId); -pub struct GameGraveyardZoneDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGraveyardZoneTableHandle<'ctx> { - type Row = GraveyardZone; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGraveyardZoneTableHandle<'ctx> { - type Row = GraveyardZone; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGraveyardZoneInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGraveyardZoneInsertCallbackId { - GameGraveyardZoneInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGraveyardZoneInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGraveyardZoneDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGraveyardZoneDeleteCallbackId { - GameGraveyardZoneDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGraveyardZoneDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGraveyardZoneTableHandle<'ctx> { - type InsertCallbackId = GameGraveyardZoneInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGraveyardZoneInsertCallbackId { - GameGraveyardZoneInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGraveyardZoneInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGraveyardZoneTableHandle<'ctx> { - type DeleteCallbackId = GameGraveyardZoneDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGraveyardZoneDeleteCallbackId { - GameGraveyardZoneDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGraveyardZoneDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGraveyardZoneUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGraveyardZoneTableHandle<'ctx> { - type UpdateCallbackId = GameGraveyardZoneUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGraveyardZoneUpdateCallbackId { - GameGraveyardZoneUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGraveyardZoneUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGraveyardZoneTableHandle<'ctx> { - type UpdateCallbackId = GameGraveyardZoneUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGraveyardZoneUpdateCallbackId { - GameGraveyardZoneUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGraveyardZoneUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `row_id` unique index on the table `game_graveyard_zone`, -/// which allows point queries on the field of the same name -/// via the [`GameGraveyardZoneRowIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_graveyard_zone().row_id().find(...)`. -pub struct GameGraveyardZoneRowIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGraveyardZoneTableHandle<'ctx> { - /// Get a handle on the `row_id` unique index on the table `game_graveyard_zone`. - pub fn row_id(&self) -> GameGraveyardZoneRowIdUnique<'ctx> { - GameGraveyardZoneRowIdUnique { - imp: self.imp.get_unique_constraint::("row_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGraveyardZoneRowIdUnique<'ctx> { - /// Find the subscribed row whose `row_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_graveyard_zone"); - _table.add_unique_constraint::("row_id", |row| &row.row_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GraveyardZone`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_graveyard_zoneQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GraveyardZone`. - fn game_graveyard_zone(&self) -> __sdk::__query_builder::Table; -} - -impl game_graveyard_zoneQueryTableAccess for __sdk::QueryTableAccessor { - fn game_graveyard_zone(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_graveyard_zone") - } -} diff --git a/gateway/src/stdb/bindings/game_ground_area_schedule_table.rs b/gateway/src/stdb/bindings/game_ground_area_schedule_table.rs deleted file mode 100644 index 14098fa2e..000000000 --- a/gateway/src/stdb/bindings/game_ground_area_schedule_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::ground_area_schedule_type::GroundAreaSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_ground_area_schedule`. -/// -/// Obtain a handle from the [`GameGroundAreaScheduleTableAccess::game_ground_area_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_ground_area_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_ground_area_schedule().on_insert(...)`. -pub struct GameGroundAreaScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_ground_area_schedule`. -pub struct GameGroundAreaScheduleTableAccessor; - -impl __sdk::TableAccessor for GameGroundAreaScheduleTableAccessor { - type Row = GroundAreaSchedule; - type Handle<'db> = GameGroundAreaScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_ground_area_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_ground_area_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroundAreaScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroundAreaScheduleTableHandle`], which mediates access to the table `game_ground_area_schedule`. - fn game_ground_area_schedule(&self) -> GameGroundAreaScheduleTableHandle<'_>; -} - -impl GameGroundAreaScheduleTableAccess for super::RemoteTables { - fn game_ground_area_schedule(&self) -> GameGroundAreaScheduleTableHandle<'_> { - GameGroundAreaScheduleTableHandle { - imp: self - .imp - .get_table::("game_ground_area_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroundAreaScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameGroundAreaScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroundAreaScheduleTableHandle<'ctx> { - type Row = GroundAreaSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroundAreaScheduleTableHandle<'ctx> { - type Row = GroundAreaSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroundAreaScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroundAreaScheduleInsertCallbackId { - GameGroundAreaScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroundAreaScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroundAreaScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroundAreaScheduleDeleteCallbackId { - GameGroundAreaScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroundAreaScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroundAreaScheduleTableHandle<'ctx> { - type InsertCallbackId = GameGroundAreaScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroundAreaScheduleInsertCallbackId { - GameGroundAreaScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroundAreaScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroundAreaScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameGroundAreaScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroundAreaScheduleDeleteCallbackId { - GameGroundAreaScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroundAreaScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroundAreaScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroundAreaScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameGroundAreaScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroundAreaScheduleUpdateCallbackId { - GameGroundAreaScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroundAreaScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroundAreaScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameGroundAreaScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroundAreaScheduleUpdateCallbackId { - GameGroundAreaScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroundAreaScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_ground_area_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameGroundAreaScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_ground_area_schedule().scheduled_id().find(...)`. -pub struct GameGroundAreaScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroundAreaScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_ground_area_schedule`. - pub fn scheduled_id(&self) -> GameGroundAreaScheduleScheduledIdUnique<'ctx> { - GameGroundAreaScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroundAreaScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_ground_area_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GroundAreaSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_ground_area_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GroundAreaSchedule`. - fn game_ground_area_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_ground_area_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_ground_area_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_ground_area_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_ground_area_table.rs b/gateway/src/stdb/bindings/game_ground_area_table.rs deleted file mode 100644 index 0e397cf51..000000000 --- a/gateway/src/stdb/bindings/game_ground_area_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::ground_area_type::GroundArea; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_ground_area`. -/// -/// Obtain a handle from the [`GameGroundAreaTableAccess::game_ground_area`] method on [`super::RemoteTables`], -/// like `ctx.db.game_ground_area()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_ground_area().on_insert(...)`. -pub struct GameGroundAreaTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_ground_area`. -pub struct GameGroundAreaTableAccessor; - -impl __sdk::TableAccessor for GameGroundAreaTableAccessor { - type Row = GroundArea; - type Handle<'db> = GameGroundAreaTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_ground_area() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_ground_area`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroundAreaTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroundAreaTableHandle`], which mediates access to the table `game_ground_area`. - fn game_ground_area(&self) -> GameGroundAreaTableHandle<'_>; -} - -impl GameGroundAreaTableAccess for super::RemoteTables { - fn game_ground_area(&self) -> GameGroundAreaTableHandle<'_> { - GameGroundAreaTableHandle { - imp: self.imp.get_table::("game_ground_area"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroundAreaInsertCallbackId(__sdk::CallbackId); -pub struct GameGroundAreaDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroundAreaTableHandle<'ctx> { - type Row = GroundArea; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroundAreaTableHandle<'ctx> { - type Row = GroundArea; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroundAreaInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroundAreaInsertCallbackId { - GameGroundAreaInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroundAreaInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroundAreaDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroundAreaDeleteCallbackId { - GameGroundAreaDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroundAreaDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroundAreaTableHandle<'ctx> { - type InsertCallbackId = GameGroundAreaInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroundAreaInsertCallbackId { - GameGroundAreaInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroundAreaInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroundAreaTableHandle<'ctx> { - type DeleteCallbackId = GameGroundAreaDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroundAreaDeleteCallbackId { - GameGroundAreaDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroundAreaDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroundAreaUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroundAreaTableHandle<'ctx> { - type UpdateCallbackId = GameGroundAreaUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroundAreaUpdateCallbackId { - GameGroundAreaUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroundAreaUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroundAreaTableHandle<'ctx> { - type UpdateCallbackId = GameGroundAreaUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroundAreaUpdateCallbackId { - GameGroundAreaUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroundAreaUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_ground_area`, -/// which allows point queries on the field of the same name -/// via the [`GameGroundAreaIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_ground_area().id().find(...)`. -pub struct GameGroundAreaIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroundAreaTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_ground_area`. - pub fn id(&self) -> GameGroundAreaIdUnique<'ctx> { - GameGroundAreaIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroundAreaIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_ground_area"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GroundArea`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_ground_areaQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GroundArea`. - fn game_ground_area(&self) -> __sdk::__query_builder::Table; -} - -impl game_ground_areaQueryTableAccess for __sdk::QueryTableAccessor { - fn game_ground_area(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_ground_area") - } -} diff --git a/gateway/src/stdb/bindings/game_group_event_table.rs b/gateway/src/stdb/bindings/game_group_event_table.rs deleted file mode 100644 index 0c1cd250a..000000000 --- a/gateway/src/stdb/bindings/game_group_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::group_event_type::GroupEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_group_event`. -/// -/// Obtain a handle from the [`GameGroupEventTableAccess::game_group_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_group_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_event().on_insert(...)`. -pub struct GameGroupEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_group_event`. -pub struct GameGroupEventTableAccessor; - -impl __sdk::TableAccessor for GameGroupEventTableAccessor { - type Row = GroupEvent; - type Handle<'db> = GameGroupEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_group_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_group_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroupEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroupEventTableHandle`], which mediates access to the table `game_group_event`. - fn game_group_event(&self) -> GameGroupEventTableHandle<'_>; -} - -impl GameGroupEventTableAccess for super::RemoteTables { - fn game_group_event(&self) -> GameGroupEventTableHandle<'_> { - GameGroupEventTableHandle { - imp: self.imp.get_table::("game_group_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroupEventInsertCallbackId(__sdk::CallbackId); -pub struct GameGroupEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroupEventTableHandle<'ctx> { - type Row = GroupEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroupEventTableHandle<'ctx> { - type Row = GroupEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroupEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupEventInsertCallbackId { - GameGroupEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroupEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupEventDeleteCallbackId { - GameGroupEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroupEventTableHandle<'ctx> { - type InsertCallbackId = GameGroupEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupEventInsertCallbackId { - GameGroupEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroupEventTableHandle<'ctx> { - type DeleteCallbackId = GameGroupEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupEventDeleteCallbackId { - GameGroupEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroupEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroupEventTableHandle<'ctx> { - type UpdateCallbackId = GameGroupEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupEventUpdateCallbackId { - GameGroupEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroupEventTableHandle<'ctx> { - type UpdateCallbackId = GameGroupEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupEventUpdateCallbackId { - GameGroupEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_group_event`, -/// which allows point queries on the field of the same name -/// via the [`GameGroupEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_event().id().find(...)`. -pub struct GameGroupEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroupEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_group_event`. - pub fn id(&self) -> GameGroupEventIdUnique<'ctx> { - GameGroupEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroupEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_group_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GroupEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_group_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GroupEvent`. - fn game_group_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_group_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_group_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_group_event") - } -} diff --git a/gateway/src/stdb/bindings/game_group_invite_table.rs b/gateway/src/stdb/bindings/game_group_invite_table.rs deleted file mode 100644 index 0c17556a3..000000000 --- a/gateway/src/stdb/bindings/game_group_invite_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::group_invite_type::GroupInvite; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_group_invite`. -/// -/// Obtain a handle from the [`GameGroupInviteTableAccess::game_group_invite`] method on [`super::RemoteTables`], -/// like `ctx.db.game_group_invite()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_invite().on_insert(...)`. -pub struct GameGroupInviteTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_group_invite`. -pub struct GameGroupInviteTableAccessor; - -impl __sdk::TableAccessor for GameGroupInviteTableAccessor { - type Row = GroupInvite; - type Handle<'db> = GameGroupInviteTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_group_invite() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_group_invite`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroupInviteTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroupInviteTableHandle`], which mediates access to the table `game_group_invite`. - fn game_group_invite(&self) -> GameGroupInviteTableHandle<'_>; -} - -impl GameGroupInviteTableAccess for super::RemoteTables { - fn game_group_invite(&self) -> GameGroupInviteTableHandle<'_> { - GameGroupInviteTableHandle { - imp: self.imp.get_table::("game_group_invite"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroupInviteInsertCallbackId(__sdk::CallbackId); -pub struct GameGroupInviteDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroupInviteTableHandle<'ctx> { - type Row = GroupInvite; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroupInviteTableHandle<'ctx> { - type Row = GroupInvite; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroupInviteInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupInviteInsertCallbackId { - GameGroupInviteInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupInviteInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroupInviteDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupInviteDeleteCallbackId { - GameGroupInviteDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupInviteDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroupInviteTableHandle<'ctx> { - type InsertCallbackId = GameGroupInviteInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupInviteInsertCallbackId { - GameGroupInviteInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupInviteInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroupInviteTableHandle<'ctx> { - type DeleteCallbackId = GameGroupInviteDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupInviteDeleteCallbackId { - GameGroupInviteDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupInviteDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroupInviteUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroupInviteTableHandle<'ctx> { - type UpdateCallbackId = GameGroupInviteUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupInviteUpdateCallbackId { - GameGroupInviteUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupInviteUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroupInviteTableHandle<'ctx> { - type UpdateCallbackId = GameGroupInviteUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupInviteUpdateCallbackId { - GameGroupInviteUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupInviteUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_group_invite`, -/// which allows point queries on the field of the same name -/// via the [`GameGroupInviteIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_invite().id().find(...)`. -pub struct GameGroupInviteIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroupInviteTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_group_invite`. - pub fn id(&self) -> GameGroupInviteIdUnique<'ctx> { - GameGroupInviteIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroupInviteIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_group_invite"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GroupInvite`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_group_inviteQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GroupInvite`. - fn game_group_invite(&self) -> __sdk::__query_builder::Table; -} - -impl game_group_inviteQueryTableAccess for __sdk::QueryTableAccessor { - fn game_group_invite(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_group_invite") - } -} diff --git a/gateway/src/stdb/bindings/game_group_member_partition_table.rs b/gateway/src/stdb/bindings/game_group_member_partition_table.rs deleted file mode 100644 index cdf5a0209..000000000 --- a/gateway/src/stdb/bindings/game_group_member_partition_table.rs +++ /dev/null @@ -1,232 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::group_member_partition_type::GroupMemberPartition; -use super::party_partition_state_type::PartyPartitionState; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_group_member_partition`. -/// -/// Obtain a handle from the [`GameGroupMemberPartitionTableAccess::game_group_member_partition`] method on [`super::RemoteTables`], -/// like `ctx.db.game_group_member_partition()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_member_partition().on_insert(...)`. -pub struct GameGroupMemberPartitionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_group_member_partition`. -pub struct GameGroupMemberPartitionTableAccessor; - -impl __sdk::TableAccessor for GameGroupMemberPartitionTableAccessor { - type Row = GroupMemberPartition; - type Handle<'db> = GameGroupMemberPartitionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_group_member_partition() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_group_member_partition`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroupMemberPartitionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroupMemberPartitionTableHandle`], which mediates access to the table `game_group_member_partition`. - fn game_group_member_partition(&self) -> GameGroupMemberPartitionTableHandle<'_>; -} - -impl GameGroupMemberPartitionTableAccess for super::RemoteTables { - fn game_group_member_partition(&self) -> GameGroupMemberPartitionTableHandle<'_> { - GameGroupMemberPartitionTableHandle { - imp: self - .imp - .get_table::("game_group_member_partition"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroupMemberPartitionInsertCallbackId(__sdk::CallbackId); -pub struct GameGroupMemberPartitionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroupMemberPartitionTableHandle<'ctx> { - type Row = GroupMemberPartition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroupMemberPartitionTableHandle<'ctx> { - type Row = GroupMemberPartition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroupMemberPartitionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupMemberPartitionInsertCallbackId { - GameGroupMemberPartitionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupMemberPartitionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroupMemberPartitionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupMemberPartitionDeleteCallbackId { - GameGroupMemberPartitionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupMemberPartitionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroupMemberPartitionTableHandle<'ctx> { - type InsertCallbackId = GameGroupMemberPartitionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupMemberPartitionInsertCallbackId { - GameGroupMemberPartitionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupMemberPartitionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroupMemberPartitionTableHandle<'ctx> { - type DeleteCallbackId = GameGroupMemberPartitionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupMemberPartitionDeleteCallbackId { - GameGroupMemberPartitionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupMemberPartitionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroupMemberPartitionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroupMemberPartitionTableHandle<'ctx> { - type UpdateCallbackId = GameGroupMemberPartitionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupMemberPartitionUpdateCallbackId { - GameGroupMemberPartitionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupMemberPartitionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroupMemberPartitionTableHandle<'ctx> { - type UpdateCallbackId = GameGroupMemberPartitionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupMemberPartitionUpdateCallbackId { - GameGroupMemberPartitionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupMemberPartitionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `character_guid` unique index on the table `game_group_member_partition`, -/// which allows point queries on the field of the same name -/// via the [`GameGroupMemberPartitionCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_member_partition().character_guid().find(...)`. -pub struct GameGroupMemberPartitionCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroupMemberPartitionTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_group_member_partition`. - pub fn character_guid(&self) -> GameGroupMemberPartitionCharacterGuidUnique<'ctx> { - GameGroupMemberPartitionCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroupMemberPartitionCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_group_member_partition"); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GroupMemberPartition`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_group_member_partitionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GroupMemberPartition`. - fn game_group_member_partition(&self) -> __sdk::__query_builder::Table; -} - -impl game_group_member_partitionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_group_member_partition(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_group_member_partition") - } -} diff --git a/gateway/src/stdb/bindings/game_group_member_table.rs b/gateway/src/stdb/bindings/game_group_member_table.rs deleted file mode 100644 index 7f6122a90..000000000 --- a/gateway/src/stdb/bindings/game_group_member_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::group_member_type::GroupMember; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_group_member`. -/// -/// Obtain a handle from the [`GameGroupMemberTableAccess::game_group_member`] method on [`super::RemoteTables`], -/// like `ctx.db.game_group_member()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_member().on_insert(...)`. -pub struct GameGroupMemberTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_group_member`. -pub struct GameGroupMemberTableAccessor; - -impl __sdk::TableAccessor for GameGroupMemberTableAccessor { - type Row = GroupMember; - type Handle<'db> = GameGroupMemberTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_group_member() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_group_member`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroupMemberTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroupMemberTableHandle`], which mediates access to the table `game_group_member`. - fn game_group_member(&self) -> GameGroupMemberTableHandle<'_>; -} - -impl GameGroupMemberTableAccess for super::RemoteTables { - fn game_group_member(&self) -> GameGroupMemberTableHandle<'_> { - GameGroupMemberTableHandle { - imp: self.imp.get_table::("game_group_member"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroupMemberInsertCallbackId(__sdk::CallbackId); -pub struct GameGroupMemberDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroupMemberTableHandle<'ctx> { - type Row = GroupMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroupMemberTableHandle<'ctx> { - type Row = GroupMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroupMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupMemberInsertCallbackId { - GameGroupMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroupMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupMemberDeleteCallbackId { - GameGroupMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroupMemberTableHandle<'ctx> { - type InsertCallbackId = GameGroupMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupMemberInsertCallbackId { - GameGroupMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroupMemberTableHandle<'ctx> { - type DeleteCallbackId = GameGroupMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupMemberDeleteCallbackId { - GameGroupMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroupMemberUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroupMemberTableHandle<'ctx> { - type UpdateCallbackId = GameGroupMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupMemberUpdateCallbackId { - GameGroupMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroupMemberTableHandle<'ctx> { - type UpdateCallbackId = GameGroupMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupMemberUpdateCallbackId { - GameGroupMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_group_member`, -/// which allows point queries on the field of the same name -/// via the [`GameGroupMemberIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_member().id().find(...)`. -pub struct GameGroupMemberIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroupMemberTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_group_member`. - pub fn id(&self) -> GameGroupMemberIdUnique<'ctx> { - GameGroupMemberIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroupMemberIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_group_member"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GroupMember`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_group_memberQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GroupMember`. - fn game_group_member(&self) -> __sdk::__query_builder::Table; -} - -impl game_group_memberQueryTableAccess for __sdk::QueryTableAccessor { - fn game_group_member(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_group_member") - } -} diff --git a/gateway/src/stdb/bindings/game_group_roster_revision_table.rs b/gateway/src/stdb/bindings/game_group_roster_revision_table.rs deleted file mode 100644 index 14c1bebdd..000000000 --- a/gateway/src/stdb/bindings/game_group_roster_revision_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::group_roster_revision_type::GroupRosterRevision; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_group_roster_revision`. -/// -/// Obtain a handle from the [`GameGroupRosterRevisionTableAccess::game_group_roster_revision`] method on [`super::RemoteTables`], -/// like `ctx.db.game_group_roster_revision()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_roster_revision().on_insert(...)`. -pub struct GameGroupRosterRevisionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_group_roster_revision`. -pub struct GameGroupRosterRevisionTableAccessor; - -impl __sdk::TableAccessor for GameGroupRosterRevisionTableAccessor { - type Row = GroupRosterRevision; - type Handle<'db> = GameGroupRosterRevisionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_group_roster_revision() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_group_roster_revision`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroupRosterRevisionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroupRosterRevisionTableHandle`], which mediates access to the table `game_group_roster_revision`. - fn game_group_roster_revision(&self) -> GameGroupRosterRevisionTableHandle<'_>; -} - -impl GameGroupRosterRevisionTableAccess for super::RemoteTables { - fn game_group_roster_revision(&self) -> GameGroupRosterRevisionTableHandle<'_> { - GameGroupRosterRevisionTableHandle { - imp: self - .imp - .get_table::("game_group_roster_revision"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroupRosterRevisionInsertCallbackId(__sdk::CallbackId); -pub struct GameGroupRosterRevisionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroupRosterRevisionTableHandle<'ctx> { - type Row = GroupRosterRevision; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroupRosterRevisionTableHandle<'ctx> { - type Row = GroupRosterRevision; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroupRosterRevisionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupRosterRevisionInsertCallbackId { - GameGroupRosterRevisionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupRosterRevisionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroupRosterRevisionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupRosterRevisionDeleteCallbackId { - GameGroupRosterRevisionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupRosterRevisionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroupRosterRevisionTableHandle<'ctx> { - type InsertCallbackId = GameGroupRosterRevisionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupRosterRevisionInsertCallbackId { - GameGroupRosterRevisionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupRosterRevisionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroupRosterRevisionTableHandle<'ctx> { - type DeleteCallbackId = GameGroupRosterRevisionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupRosterRevisionDeleteCallbackId { - GameGroupRosterRevisionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupRosterRevisionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroupRosterRevisionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroupRosterRevisionTableHandle<'ctx> { - type UpdateCallbackId = GameGroupRosterRevisionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupRosterRevisionUpdateCallbackId { - GameGroupRosterRevisionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupRosterRevisionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroupRosterRevisionTableHandle<'ctx> { - type UpdateCallbackId = GameGroupRosterRevisionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupRosterRevisionUpdateCallbackId { - GameGroupRosterRevisionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupRosterRevisionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `group_id` unique index on the table `game_group_roster_revision`, -/// which allows point queries on the field of the same name -/// via the [`GameGroupRosterRevisionGroupIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_roster_revision().group_id().find(...)`. -pub struct GameGroupRosterRevisionGroupIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroupRosterRevisionTableHandle<'ctx> { - /// Get a handle on the `group_id` unique index on the table `game_group_roster_revision`. - pub fn group_id(&self) -> GameGroupRosterRevisionGroupIdUnique<'ctx> { - GameGroupRosterRevisionGroupIdUnique { - imp: self.imp.get_unique_constraint::("group_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroupRosterRevisionGroupIdUnique<'ctx> { - /// Find the subscribed row whose `group_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_group_roster_revision"); - _table.add_unique_constraint::("group_id", |row| &row.group_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GroupRosterRevision`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_group_roster_revisionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GroupRosterRevision`. - fn game_group_roster_revision(&self) -> __sdk::__query_builder::Table; -} - -impl game_group_roster_revisionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_group_roster_revision(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_group_roster_revision") - } -} diff --git a/gateway/src/stdb/bindings/game_group_table.rs b/gateway/src/stdb/bindings/game_group_table.rs deleted file mode 100644 index f0260e131..000000000 --- a/gateway/src/stdb/bindings/game_group_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::group_type::Group; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_group`. -/// -/// Obtain a handle from the [`GameGroupTableAccess::game_group`] method on [`super::RemoteTables`], -/// like `ctx.db.game_group()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group().on_insert(...)`. -pub struct GameGroupTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_group`. -pub struct GameGroupTableAccessor; - -impl __sdk::TableAccessor for GameGroupTableAccessor { - type Row = Group; - type Handle<'db> = GameGroupTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_group() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_group`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroupTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroupTableHandle`], which mediates access to the table `game_group`. - fn game_group(&self) -> GameGroupTableHandle<'_>; -} - -impl GameGroupTableAccess for super::RemoteTables { - fn game_group(&self) -> GameGroupTableHandle<'_> { - GameGroupTableHandle { - imp: self.imp.get_table::("game_group"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroupInsertCallbackId(__sdk::CallbackId); -pub struct GameGroupDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroupTableHandle<'ctx> { - type Row = Group; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroupTableHandle<'ctx> { - type Row = Group; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroupInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupInsertCallbackId { - GameGroupInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroupDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupDeleteCallbackId { - GameGroupDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroupTableHandle<'ctx> { - type InsertCallbackId = GameGroupInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupInsertCallbackId { - GameGroupInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroupTableHandle<'ctx> { - type DeleteCallbackId = GameGroupDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupDeleteCallbackId { - GameGroupDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroupUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroupTableHandle<'ctx> { - type UpdateCallbackId = GameGroupUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupUpdateCallbackId { - GameGroupUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroupTableHandle<'ctx> { - type UpdateCallbackId = GameGroupUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupUpdateCallbackId { - GameGroupUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `group_id` unique index on the table `game_group`, -/// which allows point queries on the field of the same name -/// via the [`GameGroupGroupIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group().group_id().find(...)`. -pub struct GameGroupGroupIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroupTableHandle<'ctx> { - /// Get a handle on the `group_id` unique index on the table `game_group`. - pub fn group_id(&self) -> GameGroupGroupIdUnique<'ctx> { - GameGroupGroupIdUnique { - imp: self.imp.get_unique_constraint::("group_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroupGroupIdUnique<'ctx> { - /// Find the subscribed row whose `group_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_group"); - _table.add_unique_constraint::("group_id", |row| &row.group_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Group`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_groupQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Group`. - fn game_group(&self) -> __sdk::__query_builder::Table; -} - -impl game_groupQueryTableAccess for __sdk::QueryTableAccessor { - fn game_group(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_group") - } -} diff --git a/gateway/src/stdb/bindings/game_group_target_icon_table.rs b/gateway/src/stdb/bindings/game_group_target_icon_table.rs deleted file mode 100644 index 020aeb75b..000000000 --- a/gateway/src/stdb/bindings/game_group_target_icon_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::group_target_icon_type::GroupTargetIcon; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_group_target_icon`. -/// -/// Obtain a handle from the [`GameGroupTargetIconTableAccess::game_group_target_icon`] method on [`super::RemoteTables`], -/// like `ctx.db.game_group_target_icon()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_target_icon().on_insert(...)`. -pub struct GameGroupTargetIconTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_group_target_icon`. -pub struct GameGroupTargetIconTableAccessor; - -impl __sdk::TableAccessor for GameGroupTargetIconTableAccessor { - type Row = GroupTargetIcon; - type Handle<'db> = GameGroupTargetIconTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_group_target_icon() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_group_target_icon`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGroupTargetIconTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGroupTargetIconTableHandle`], which mediates access to the table `game_group_target_icon`. - fn game_group_target_icon(&self) -> GameGroupTargetIconTableHandle<'_>; -} - -impl GameGroupTargetIconTableAccess for super::RemoteTables { - fn game_group_target_icon(&self) -> GameGroupTargetIconTableHandle<'_> { - GameGroupTargetIconTableHandle { - imp: self - .imp - .get_table::("game_group_target_icon"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGroupTargetIconInsertCallbackId(__sdk::CallbackId); -pub struct GameGroupTargetIconDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGroupTargetIconTableHandle<'ctx> { - type Row = GroupTargetIcon; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGroupTargetIconTableHandle<'ctx> { - type Row = GroupTargetIcon; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGroupTargetIconInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupTargetIconInsertCallbackId { - GameGroupTargetIconInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupTargetIconInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGroupTargetIconDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupTargetIconDeleteCallbackId { - GameGroupTargetIconDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupTargetIconDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGroupTargetIconTableHandle<'ctx> { - type InsertCallbackId = GameGroupTargetIconInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupTargetIconInsertCallbackId { - GameGroupTargetIconInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGroupTargetIconInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGroupTargetIconTableHandle<'ctx> { - type DeleteCallbackId = GameGroupTargetIconDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGroupTargetIconDeleteCallbackId { - GameGroupTargetIconDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGroupTargetIconDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGroupTargetIconUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGroupTargetIconTableHandle<'ctx> { - type UpdateCallbackId = GameGroupTargetIconUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupTargetIconUpdateCallbackId { - GameGroupTargetIconUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupTargetIconUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGroupTargetIconTableHandle<'ctx> { - type UpdateCallbackId = GameGroupTargetIconUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGroupTargetIconUpdateCallbackId { - GameGroupTargetIconUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGroupTargetIconUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_group_target_icon`, -/// which allows point queries on the field of the same name -/// via the [`GameGroupTargetIconIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_group_target_icon().id().find(...)`. -pub struct GameGroupTargetIconIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGroupTargetIconTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_group_target_icon`. - pub fn id(&self) -> GameGroupTargetIconIdUnique<'ctx> { - GameGroupTargetIconIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGroupTargetIconIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_group_target_icon"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GroupTargetIcon`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_group_target_iconQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GroupTargetIcon`. - fn game_group_target_icon(&self) -> __sdk::__query_builder::Table; -} - -impl game_group_target_iconQueryTableAccess for __sdk::QueryTableAccessor { - fn game_group_target_icon(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_group_target_icon") - } -} diff --git a/gateway/src/stdb/bindings/game_guid_allocator_table.rs b/gateway/src/stdb/bindings/game_guid_allocator_table.rs deleted file mode 100644 index 308d1a062..000000000 --- a/gateway/src/stdb/bindings/game_guid_allocator_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guid_allocator_type::GuidAllocator; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guid_allocator`. -/// -/// Obtain a handle from the [`GameGuidAllocatorTableAccess::game_guid_allocator`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guid_allocator()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guid_allocator().on_insert(...)`. -pub struct GameGuidAllocatorTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guid_allocator`. -pub struct GameGuidAllocatorTableAccessor; - -impl __sdk::TableAccessor for GameGuidAllocatorTableAccessor { - type Row = GuidAllocator; - type Handle<'db> = GameGuidAllocatorTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guid_allocator() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guid_allocator`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuidAllocatorTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuidAllocatorTableHandle`], which mediates access to the table `game_guid_allocator`. - fn game_guid_allocator(&self) -> GameGuidAllocatorTableHandle<'_>; -} - -impl GameGuidAllocatorTableAccess for super::RemoteTables { - fn game_guid_allocator(&self) -> GameGuidAllocatorTableHandle<'_> { - GameGuidAllocatorTableHandle { - imp: self.imp.get_table::("game_guid_allocator"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuidAllocatorInsertCallbackId(__sdk::CallbackId); -pub struct GameGuidAllocatorDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuidAllocatorTableHandle<'ctx> { - type Row = GuidAllocator; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuidAllocatorTableHandle<'ctx> { - type Row = GuidAllocator; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuidAllocatorInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidAllocatorInsertCallbackId { - GameGuidAllocatorInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuidAllocatorInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuidAllocatorDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidAllocatorDeleteCallbackId { - GameGuidAllocatorDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuidAllocatorDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuidAllocatorTableHandle<'ctx> { - type InsertCallbackId = GameGuidAllocatorInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidAllocatorInsertCallbackId { - GameGuidAllocatorInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuidAllocatorInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuidAllocatorTableHandle<'ctx> { - type DeleteCallbackId = GameGuidAllocatorDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidAllocatorDeleteCallbackId { - GameGuidAllocatorDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuidAllocatorDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuidAllocatorUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuidAllocatorTableHandle<'ctx> { - type UpdateCallbackId = GameGuidAllocatorUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuidAllocatorUpdateCallbackId { - GameGuidAllocatorUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuidAllocatorUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuidAllocatorTableHandle<'ctx> { - type UpdateCallbackId = GameGuidAllocatorUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuidAllocatorUpdateCallbackId { - GameGuidAllocatorUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuidAllocatorUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_guid_allocator`, -/// which allows point queries on the field of the same name -/// via the [`GameGuidAllocatorIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guid_allocator().id().find(...)`. -pub struct GameGuidAllocatorIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuidAllocatorTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_guid_allocator`. - pub fn id(&self) -> GameGuidAllocatorIdUnique<'ctx> { - GameGuidAllocatorIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuidAllocatorIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guid_allocator"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuidAllocator`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guid_allocatorQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuidAllocator`. - fn game_guid_allocator(&self) -> __sdk::__query_builder::Table; -} - -impl game_guid_allocatorQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guid_allocator(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guid_allocator") - } -} diff --git a/gateway/src/stdb/bindings/game_guid_range_registry_table.rs b/gateway/src/stdb/bindings/game_guid_range_registry_table.rs deleted file mode 100644 index 4d773fae5..000000000 --- a/gateway/src/stdb/bindings/game_guid_range_registry_table.rs +++ /dev/null @@ -1,261 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guid_range_assignment_type::GuidRangeAssignment; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guid_range_registry`. -/// -/// Obtain a handle from the [`GameGuidRangeRegistryTableAccess::game_guid_range_registry`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guid_range_registry()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guid_range_registry().on_insert(...)`. -pub struct GameGuidRangeRegistryTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guid_range_registry`. -pub struct GameGuidRangeRegistryTableAccessor; - -impl __sdk::TableAccessor for GameGuidRangeRegistryTableAccessor { - type Row = GuidRangeAssignment; - type Handle<'db> = GameGuidRangeRegistryTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guid_range_registry() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guid_range_registry`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuidRangeRegistryTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuidRangeRegistryTableHandle`], which mediates access to the table `game_guid_range_registry`. - fn game_guid_range_registry(&self) -> GameGuidRangeRegistryTableHandle<'_>; -} - -impl GameGuidRangeRegistryTableAccess for super::RemoteTables { - fn game_guid_range_registry(&self) -> GameGuidRangeRegistryTableHandle<'_> { - GameGuidRangeRegistryTableHandle { - imp: self - .imp - .get_table::("game_guid_range_registry"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuidRangeRegistryInsertCallbackId(__sdk::CallbackId); -pub struct GameGuidRangeRegistryDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuidRangeRegistryTableHandle<'ctx> { - type Row = GuidRangeAssignment; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuidRangeRegistryTableHandle<'ctx> { - type Row = GuidRangeAssignment; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuidRangeRegistryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidRangeRegistryInsertCallbackId { - GameGuidRangeRegistryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuidRangeRegistryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuidRangeRegistryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidRangeRegistryDeleteCallbackId { - GameGuidRangeRegistryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuidRangeRegistryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuidRangeRegistryTableHandle<'ctx> { - type InsertCallbackId = GameGuidRangeRegistryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidRangeRegistryInsertCallbackId { - GameGuidRangeRegistryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuidRangeRegistryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuidRangeRegistryTableHandle<'ctx> { - type DeleteCallbackId = GameGuidRangeRegistryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidRangeRegistryDeleteCallbackId { - GameGuidRangeRegistryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuidRangeRegistryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuidRangeRegistryUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuidRangeRegistryTableHandle<'ctx> { - type UpdateCallbackId = GameGuidRangeRegistryUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuidRangeRegistryUpdateCallbackId { - GameGuidRangeRegistryUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuidRangeRegistryUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuidRangeRegistryTableHandle<'ctx> { - type UpdateCallbackId = GameGuidRangeRegistryUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuidRangeRegistryUpdateCallbackId { - GameGuidRangeRegistryUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuidRangeRegistryUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `shard_name` unique index on the table `game_guid_range_registry`, -/// which allows point queries on the field of the same name -/// via the [`GameGuidRangeRegistryShardNameUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guid_range_registry().shard_name().find(...)`. -pub struct GameGuidRangeRegistryShardNameUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuidRangeRegistryTableHandle<'ctx> { - /// Get a handle on the `shard_name` unique index on the table `game_guid_range_registry`. - pub fn shard_name(&self) -> GameGuidRangeRegistryShardNameUnique<'ctx> { - GameGuidRangeRegistryShardNameUnique { - imp: self.imp.get_unique_constraint::("shard_name"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuidRangeRegistryShardNameUnique<'ctx> { - /// Find the subscribed row whose `shard_name` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `slot` unique index on the table `game_guid_range_registry`, -/// which allows point queries on the field of the same name -/// via the [`GameGuidRangeRegistrySlotUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guid_range_registry().slot().find(...)`. -pub struct GameGuidRangeRegistrySlotUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuidRangeRegistryTableHandle<'ctx> { - /// Get a handle on the `slot` unique index on the table `game_guid_range_registry`. - pub fn slot(&self) -> GameGuidRangeRegistrySlotUnique<'ctx> { - GameGuidRangeRegistrySlotUnique { - imp: self.imp.get_unique_constraint::("slot"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuidRangeRegistrySlotUnique<'ctx> { - /// Find the subscribed row whose `slot` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guid_range_registry"); - _table.add_unique_constraint::("shard_name", |row| &row.shard_name); - _table.add_unique_constraint::("slot", |row| &row.slot); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuidRangeAssignment`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guid_range_registryQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuidRangeAssignment`. - fn game_guid_range_registry(&self) -> __sdk::__query_builder::Table; -} - -impl game_guid_range_registryQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guid_range_registry(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guid_range_registry") - } -} diff --git a/gateway/src/stdb/bindings/game_guid_range_table.rs b/gateway/src/stdb/bindings/game_guid_range_table.rs deleted file mode 100644 index 8430810d7..000000000 --- a/gateway/src/stdb/bindings/game_guid_range_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guid_range_type::GuidRange; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guid_range`. -/// -/// Obtain a handle from the [`GameGuidRangeTableAccess::game_guid_range`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guid_range()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guid_range().on_insert(...)`. -pub struct GameGuidRangeTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guid_range`. -pub struct GameGuidRangeTableAccessor; - -impl __sdk::TableAccessor for GameGuidRangeTableAccessor { - type Row = GuidRange; - type Handle<'db> = GameGuidRangeTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guid_range() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guid_range`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuidRangeTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuidRangeTableHandle`], which mediates access to the table `game_guid_range`. - fn game_guid_range(&self) -> GameGuidRangeTableHandle<'_>; -} - -impl GameGuidRangeTableAccess for super::RemoteTables { - fn game_guid_range(&self) -> GameGuidRangeTableHandle<'_> { - GameGuidRangeTableHandle { - imp: self.imp.get_table::("game_guid_range"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuidRangeInsertCallbackId(__sdk::CallbackId); -pub struct GameGuidRangeDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuidRangeTableHandle<'ctx> { - type Row = GuidRange; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuidRangeTableHandle<'ctx> { - type Row = GuidRange; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuidRangeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidRangeInsertCallbackId { - GameGuidRangeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuidRangeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuidRangeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidRangeDeleteCallbackId { - GameGuidRangeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuidRangeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuidRangeTableHandle<'ctx> { - type InsertCallbackId = GameGuidRangeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidRangeInsertCallbackId { - GameGuidRangeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuidRangeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuidRangeTableHandle<'ctx> { - type DeleteCallbackId = GameGuidRangeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuidRangeDeleteCallbackId { - GameGuidRangeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuidRangeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuidRangeUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuidRangeTableHandle<'ctx> { - type UpdateCallbackId = GameGuidRangeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuidRangeUpdateCallbackId { - GameGuidRangeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuidRangeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuidRangeTableHandle<'ctx> { - type UpdateCallbackId = GameGuidRangeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuidRangeUpdateCallbackId { - GameGuidRangeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuidRangeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_guid_range`, -/// which allows point queries on the field of the same name -/// via the [`GameGuidRangeIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guid_range().id().find(...)`. -pub struct GameGuidRangeIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuidRangeTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_guid_range`. - pub fn id(&self) -> GameGuidRangeIdUnique<'ctx> { - GameGuidRangeIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuidRangeIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guid_range"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuidRange`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guid_rangeQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuidRange`. - fn game_guid_range(&self) -> __sdk::__query_builder::Table; -} - -impl game_guid_rangeQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guid_range(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guid_range") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_event_table.rs b/gateway/src/stdb/bindings/game_guild_event_table.rs deleted file mode 100644 index 4c774103b..000000000 --- a/gateway/src/stdb/bindings/game_guild_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_event_type::GuildEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild_event`. -/// -/// Obtain a handle from the [`GameGuildEventTableAccess::game_guild_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_event().on_insert(...)`. -pub struct GameGuildEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild_event`. -pub struct GameGuildEventTableAccessor; - -impl __sdk::TableAccessor for GameGuildEventTableAccessor { - type Row = GuildEvent; - type Handle<'db> = GameGuildEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildEventTableHandle`], which mediates access to the table `game_guild_event`. - fn game_guild_event(&self) -> GameGuildEventTableHandle<'_>; -} - -impl GameGuildEventTableAccess for super::RemoteTables { - fn game_guild_event(&self) -> GameGuildEventTableHandle<'_> { - GameGuildEventTableHandle { - imp: self.imp.get_table::("game_guild_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildEventInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildEventTableHandle<'ctx> { - type Row = GuildEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildEventTableHandle<'ctx> { - type Row = GuildEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildEventInsertCallbackId { - GameGuildEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildEventDeleteCallbackId { - GameGuildEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildEventTableHandle<'ctx> { - type InsertCallbackId = GameGuildEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildEventInsertCallbackId { - GameGuildEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildEventTableHandle<'ctx> { - type DeleteCallbackId = GameGuildEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildEventDeleteCallbackId { - GameGuildEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildEventTableHandle<'ctx> { - type UpdateCallbackId = GameGuildEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildEventUpdateCallbackId { - GameGuildEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildEventTableHandle<'ctx> { - type UpdateCallbackId = GameGuildEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildEventUpdateCallbackId { - GameGuildEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_guild_event`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_event().id().find(...)`. -pub struct GameGuildEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_guild_event`. - pub fn id(&self) -> GameGuildEventIdUnique<'ctx> { - GameGuildEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guild_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuildEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guild_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuildEvent`. - fn game_guild_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_guild_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild_event") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_fee_decision_table.rs b/gateway/src/stdb/bindings/game_guild_fee_decision_table.rs deleted file mode 100644 index 0701a0e96..000000000 --- a/gateway/src/stdb/bindings/game_guild_fee_decision_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_fee_decision_type::GuildFeeDecision; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild_fee_decision`. -/// -/// Obtain a handle from the [`GameGuildFeeDecisionTableAccess::game_guild_fee_decision`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild_fee_decision()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_fee_decision().on_insert(...)`. -pub struct GameGuildFeeDecisionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild_fee_decision`. -pub struct GameGuildFeeDecisionTableAccessor; - -impl __sdk::TableAccessor for GameGuildFeeDecisionTableAccessor { - type Row = GuildFeeDecision; - type Handle<'db> = GameGuildFeeDecisionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild_fee_decision() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild_fee_decision`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildFeeDecisionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildFeeDecisionTableHandle`], which mediates access to the table `game_guild_fee_decision`. - fn game_guild_fee_decision(&self) -> GameGuildFeeDecisionTableHandle<'_>; -} - -impl GameGuildFeeDecisionTableAccess for super::RemoteTables { - fn game_guild_fee_decision(&self) -> GameGuildFeeDecisionTableHandle<'_> { - GameGuildFeeDecisionTableHandle { - imp: self - .imp - .get_table::("game_guild_fee_decision"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildFeeDecisionInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildFeeDecisionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildFeeDecisionTableHandle<'ctx> { - type Row = GuildFeeDecision; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildFeeDecisionTableHandle<'ctx> { - type Row = GuildFeeDecision; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildFeeDecisionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildFeeDecisionInsertCallbackId { - GameGuildFeeDecisionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildFeeDecisionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildFeeDecisionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildFeeDecisionDeleteCallbackId { - GameGuildFeeDecisionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildFeeDecisionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildFeeDecisionTableHandle<'ctx> { - type InsertCallbackId = GameGuildFeeDecisionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildFeeDecisionInsertCallbackId { - GameGuildFeeDecisionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildFeeDecisionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildFeeDecisionTableHandle<'ctx> { - type DeleteCallbackId = GameGuildFeeDecisionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildFeeDecisionDeleteCallbackId { - GameGuildFeeDecisionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildFeeDecisionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildFeeDecisionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildFeeDecisionTableHandle<'ctx> { - type UpdateCallbackId = GameGuildFeeDecisionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildFeeDecisionUpdateCallbackId { - GameGuildFeeDecisionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildFeeDecisionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildFeeDecisionTableHandle<'ctx> { - type UpdateCallbackId = GameGuildFeeDecisionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildFeeDecisionUpdateCallbackId { - GameGuildFeeDecisionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildFeeDecisionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `operation_id` unique index on the table `game_guild_fee_decision`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildFeeDecisionOperationIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_fee_decision().operation_id().find(...)`. -pub struct GameGuildFeeDecisionOperationIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildFeeDecisionTableHandle<'ctx> { - /// Get a handle on the `operation_id` unique index on the table `game_guild_fee_decision`. - pub fn operation_id(&self) -> GameGuildFeeDecisionOperationIdUnique<'ctx> { - GameGuildFeeDecisionOperationIdUnique { - imp: self.imp.get_unique_constraint::("operation_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildFeeDecisionOperationIdUnique<'ctx> { - /// Find the subscribed row whose `operation_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guild_fee_decision"); - _table.add_unique_constraint::("operation_id", |row| &row.operation_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuildFeeDecision`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guild_fee_decisionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuildFeeDecision`. - fn game_guild_fee_decision(&self) -> __sdk::__query_builder::Table; -} - -impl game_guild_fee_decisionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild_fee_decision(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild_fee_decision") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_fee_hold_table.rs b/gateway/src/stdb/bindings/game_guild_fee_hold_table.rs deleted file mode 100644 index e53622f04..000000000 --- a/gateway/src/stdb/bindings/game_guild_fee_hold_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_fee_hold_type::GuildFeeHold; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild_fee_hold`. -/// -/// Obtain a handle from the [`GameGuildFeeHoldTableAccess::game_guild_fee_hold`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild_fee_hold()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_fee_hold().on_insert(...)`. -pub struct GameGuildFeeHoldTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild_fee_hold`. -pub struct GameGuildFeeHoldTableAccessor; - -impl __sdk::TableAccessor for GameGuildFeeHoldTableAccessor { - type Row = GuildFeeHold; - type Handle<'db> = GameGuildFeeHoldTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild_fee_hold() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild_fee_hold`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildFeeHoldTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildFeeHoldTableHandle`], which mediates access to the table `game_guild_fee_hold`. - fn game_guild_fee_hold(&self) -> GameGuildFeeHoldTableHandle<'_>; -} - -impl GameGuildFeeHoldTableAccess for super::RemoteTables { - fn game_guild_fee_hold(&self) -> GameGuildFeeHoldTableHandle<'_> { - GameGuildFeeHoldTableHandle { - imp: self.imp.get_table::("game_guild_fee_hold"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildFeeHoldInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildFeeHoldDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildFeeHoldTableHandle<'ctx> { - type Row = GuildFeeHold; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildFeeHoldTableHandle<'ctx> { - type Row = GuildFeeHold; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildFeeHoldInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildFeeHoldInsertCallbackId { - GameGuildFeeHoldInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildFeeHoldInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildFeeHoldDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildFeeHoldDeleteCallbackId { - GameGuildFeeHoldDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildFeeHoldDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildFeeHoldTableHandle<'ctx> { - type InsertCallbackId = GameGuildFeeHoldInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildFeeHoldInsertCallbackId { - GameGuildFeeHoldInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildFeeHoldInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildFeeHoldTableHandle<'ctx> { - type DeleteCallbackId = GameGuildFeeHoldDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildFeeHoldDeleteCallbackId { - GameGuildFeeHoldDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildFeeHoldDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildFeeHoldUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildFeeHoldTableHandle<'ctx> { - type UpdateCallbackId = GameGuildFeeHoldUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildFeeHoldUpdateCallbackId { - GameGuildFeeHoldUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildFeeHoldUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildFeeHoldTableHandle<'ctx> { - type UpdateCallbackId = GameGuildFeeHoldUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildFeeHoldUpdateCallbackId { - GameGuildFeeHoldUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildFeeHoldUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `payer_guid` unique index on the table `game_guild_fee_hold`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildFeeHoldPayerGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_fee_hold().payer_guid().find(...)`. -pub struct GameGuildFeeHoldPayerGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildFeeHoldTableHandle<'ctx> { - /// Get a handle on the `payer_guid` unique index on the table `game_guild_fee_hold`. - pub fn payer_guid(&self) -> GameGuildFeeHoldPayerGuidUnique<'ctx> { - GameGuildFeeHoldPayerGuidUnique { - imp: self.imp.get_unique_constraint::("payer_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildFeeHoldPayerGuidUnique<'ctx> { - /// Find the subscribed row whose `payer_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guild_fee_hold"); - _table.add_unique_constraint::("payer_guid", |row| &row.payer_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuildFeeHold`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guild_fee_holdQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuildFeeHold`. - fn game_guild_fee_hold(&self) -> __sdk::__query_builder::Table; -} - -impl game_guild_fee_holdQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild_fee_hold(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild_fee_hold") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_invite_table.rs b/gateway/src/stdb/bindings/game_guild_invite_table.rs deleted file mode 100644 index 16fa52127..000000000 --- a/gateway/src/stdb/bindings/game_guild_invite_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_invite_type::GuildInvite; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild_invite`. -/// -/// Obtain a handle from the [`GameGuildInviteTableAccess::game_guild_invite`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild_invite()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_invite().on_insert(...)`. -pub struct GameGuildInviteTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild_invite`. -pub struct GameGuildInviteTableAccessor; - -impl __sdk::TableAccessor for GameGuildInviteTableAccessor { - type Row = GuildInvite; - type Handle<'db> = GameGuildInviteTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild_invite() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild_invite`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildInviteTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildInviteTableHandle`], which mediates access to the table `game_guild_invite`. - fn game_guild_invite(&self) -> GameGuildInviteTableHandle<'_>; -} - -impl GameGuildInviteTableAccess for super::RemoteTables { - fn game_guild_invite(&self) -> GameGuildInviteTableHandle<'_> { - GameGuildInviteTableHandle { - imp: self.imp.get_table::("game_guild_invite"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildInviteInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildInviteDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildInviteTableHandle<'ctx> { - type Row = GuildInvite; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildInviteTableHandle<'ctx> { - type Row = GuildInvite; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildInviteInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildInviteInsertCallbackId { - GameGuildInviteInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildInviteInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildInviteDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildInviteDeleteCallbackId { - GameGuildInviteDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildInviteDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildInviteTableHandle<'ctx> { - type InsertCallbackId = GameGuildInviteInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildInviteInsertCallbackId { - GameGuildInviteInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildInviteInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildInviteTableHandle<'ctx> { - type DeleteCallbackId = GameGuildInviteDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildInviteDeleteCallbackId { - GameGuildInviteDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildInviteDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildInviteUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildInviteTableHandle<'ctx> { - type UpdateCallbackId = GameGuildInviteUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildInviteUpdateCallbackId { - GameGuildInviteUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildInviteUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildInviteTableHandle<'ctx> { - type UpdateCallbackId = GameGuildInviteUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildInviteUpdateCallbackId { - GameGuildInviteUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildInviteUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `target_guid` unique index on the table `game_guild_invite`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildInviteTargetGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_invite().target_guid().find(...)`. -pub struct GameGuildInviteTargetGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildInviteTableHandle<'ctx> { - /// Get a handle on the `target_guid` unique index on the table `game_guild_invite`. - pub fn target_guid(&self) -> GameGuildInviteTargetGuidUnique<'ctx> { - GameGuildInviteTargetGuidUnique { - imp: self.imp.get_unique_constraint::("target_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildInviteTargetGuidUnique<'ctx> { - /// Find the subscribed row whose `target_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guild_invite"); - _table.add_unique_constraint::("target_guid", |row| &row.target_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuildInvite`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guild_inviteQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuildInvite`. - fn game_guild_invite(&self) -> __sdk::__query_builder::Table; -} - -impl game_guild_inviteQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild_invite(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild_invite") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_member_table.rs b/gateway/src/stdb/bindings/game_guild_member_table.rs deleted file mode 100644 index 998dfaa1f..000000000 --- a/gateway/src/stdb/bindings/game_guild_member_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_member_type::GuildMember; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild_member`. -/// -/// Obtain a handle from the [`GameGuildMemberTableAccess::game_guild_member`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild_member()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_member().on_insert(...)`. -pub struct GameGuildMemberTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild_member`. -pub struct GameGuildMemberTableAccessor; - -impl __sdk::TableAccessor for GameGuildMemberTableAccessor { - type Row = GuildMember; - type Handle<'db> = GameGuildMemberTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild_member() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild_member`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildMemberTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildMemberTableHandle`], which mediates access to the table `game_guild_member`. - fn game_guild_member(&self) -> GameGuildMemberTableHandle<'_>; -} - -impl GameGuildMemberTableAccess for super::RemoteTables { - fn game_guild_member(&self) -> GameGuildMemberTableHandle<'_> { - GameGuildMemberTableHandle { - imp: self.imp.get_table::("game_guild_member"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildMemberInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildMemberDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildMemberTableHandle<'ctx> { - type Row = GuildMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildMemberTableHandle<'ctx> { - type Row = GuildMember; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildMemberInsertCallbackId { - GameGuildMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildMemberDeleteCallbackId { - GameGuildMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildMemberTableHandle<'ctx> { - type InsertCallbackId = GameGuildMemberInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildMemberInsertCallbackId { - GameGuildMemberInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildMemberInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildMemberTableHandle<'ctx> { - type DeleteCallbackId = GameGuildMemberDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildMemberDeleteCallbackId { - GameGuildMemberDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildMemberDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildMemberUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildMemberTableHandle<'ctx> { - type UpdateCallbackId = GameGuildMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildMemberUpdateCallbackId { - GameGuildMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildMemberTableHandle<'ctx> { - type UpdateCallbackId = GameGuildMemberUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildMemberUpdateCallbackId { - GameGuildMemberUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildMemberUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `character_guid` unique index on the table `game_guild_member`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildMemberCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_member().character_guid().find(...)`. -pub struct GameGuildMemberCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildMemberTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_guild_member`. - pub fn character_guid(&self) -> GameGuildMemberCharacterGuidUnique<'ctx> { - GameGuildMemberCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildMemberCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guild_member"); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuildMember`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guild_memberQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuildMember`. - fn game_guild_member(&self) -> __sdk::__query_builder::Table; -} - -impl game_guild_memberQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild_member(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild_member") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_petition_signature_table.rs b/gateway/src/stdb/bindings/game_guild_petition_signature_table.rs deleted file mode 100644 index 1ead090a6..000000000 --- a/gateway/src/stdb/bindings/game_guild_petition_signature_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_petition_signature_type::GuildPetitionSignature; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild_petition_signature`. -/// -/// Obtain a handle from the [`GameGuildPetitionSignatureTableAccess::game_guild_petition_signature`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild_petition_signature()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_petition_signature().on_insert(...)`. -pub struct GameGuildPetitionSignatureTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild_petition_signature`. -pub struct GameGuildPetitionSignatureTableAccessor; - -impl __sdk::TableAccessor for GameGuildPetitionSignatureTableAccessor { - type Row = GuildPetitionSignature; - type Handle<'db> = GameGuildPetitionSignatureTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild_petition_signature() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild_petition_signature`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildPetitionSignatureTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildPetitionSignatureTableHandle`], which mediates access to the table `game_guild_petition_signature`. - fn game_guild_petition_signature(&self) -> GameGuildPetitionSignatureTableHandle<'_>; -} - -impl GameGuildPetitionSignatureTableAccess for super::RemoteTables { - fn game_guild_petition_signature(&self) -> GameGuildPetitionSignatureTableHandle<'_> { - GameGuildPetitionSignatureTableHandle { - imp: self - .imp - .get_table::("game_guild_petition_signature"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildPetitionSignatureInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildPetitionSignatureDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildPetitionSignatureTableHandle<'ctx> { - type Row = GuildPetitionSignature; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildPetitionSignatureTableHandle<'ctx> { - type Row = GuildPetitionSignature; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildPetitionSignatureInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionSignatureInsertCallbackId { - GameGuildPetitionSignatureInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildPetitionSignatureInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildPetitionSignatureDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionSignatureDeleteCallbackId { - GameGuildPetitionSignatureDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildPetitionSignatureDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildPetitionSignatureTableHandle<'ctx> { - type InsertCallbackId = GameGuildPetitionSignatureInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionSignatureInsertCallbackId { - GameGuildPetitionSignatureInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildPetitionSignatureInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildPetitionSignatureTableHandle<'ctx> { - type DeleteCallbackId = GameGuildPetitionSignatureDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionSignatureDeleteCallbackId { - GameGuildPetitionSignatureDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildPetitionSignatureDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildPetitionSignatureUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildPetitionSignatureTableHandle<'ctx> { - type UpdateCallbackId = GameGuildPetitionSignatureUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionSignatureUpdateCallbackId { - GameGuildPetitionSignatureUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildPetitionSignatureUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildPetitionSignatureTableHandle<'ctx> { - type UpdateCallbackId = GameGuildPetitionSignatureUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionSignatureUpdateCallbackId { - GameGuildPetitionSignatureUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildPetitionSignatureUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `signature_key` unique index on the table `game_guild_petition_signature`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildPetitionSignatureSignatureKeyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_petition_signature().signature_key().find(...)`. -pub struct GameGuildPetitionSignatureSignatureKeyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildPetitionSignatureTableHandle<'ctx> { - /// Get a handle on the `signature_key` unique index on the table `game_guild_petition_signature`. - pub fn signature_key(&self) -> GameGuildPetitionSignatureSignatureKeyUnique<'ctx> { - GameGuildPetitionSignatureSignatureKeyUnique { - imp: self.imp.get_unique_constraint::("signature_key"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildPetitionSignatureSignatureKeyUnique<'ctx> { - /// Find the subscribed row whose `signature_key` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_guild_petition_signature"); - _table.add_unique_constraint::("signature_key", |row| &row.signature_key); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuildPetitionSignature`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guild_petition_signatureQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuildPetitionSignature`. - fn game_guild_petition_signature( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_guild_petition_signatureQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild_petition_signature( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild_petition_signature") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_petition_table.rs b/gateway/src/stdb/bindings/game_guild_petition_table.rs deleted file mode 100644 index fbb4dcc25..000000000 --- a/gateway/src/stdb/bindings/game_guild_petition_table.rs +++ /dev/null @@ -1,290 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_petition_type::GuildPetition; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild_petition`. -/// -/// Obtain a handle from the [`GameGuildPetitionTableAccess::game_guild_petition`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild_petition()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_petition().on_insert(...)`. -pub struct GameGuildPetitionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild_petition`. -pub struct GameGuildPetitionTableAccessor; - -impl __sdk::TableAccessor for GameGuildPetitionTableAccessor { - type Row = GuildPetition; - type Handle<'db> = GameGuildPetitionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild_petition() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild_petition`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildPetitionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildPetitionTableHandle`], which mediates access to the table `game_guild_petition`. - fn game_guild_petition(&self) -> GameGuildPetitionTableHandle<'_>; -} - -impl GameGuildPetitionTableAccess for super::RemoteTables { - fn game_guild_petition(&self) -> GameGuildPetitionTableHandle<'_> { - GameGuildPetitionTableHandle { - imp: self.imp.get_table::("game_guild_petition"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildPetitionInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildPetitionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildPetitionTableHandle<'ctx> { - type Row = GuildPetition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildPetitionTableHandle<'ctx> { - type Row = GuildPetition; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildPetitionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionInsertCallbackId { - GameGuildPetitionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildPetitionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildPetitionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionDeleteCallbackId { - GameGuildPetitionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildPetitionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildPetitionTableHandle<'ctx> { - type InsertCallbackId = GameGuildPetitionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionInsertCallbackId { - GameGuildPetitionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildPetitionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildPetitionTableHandle<'ctx> { - type DeleteCallbackId = GameGuildPetitionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionDeleteCallbackId { - GameGuildPetitionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildPetitionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildPetitionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildPetitionTableHandle<'ctx> { - type UpdateCallbackId = GameGuildPetitionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionUpdateCallbackId { - GameGuildPetitionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildPetitionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildPetitionTableHandle<'ctx> { - type UpdateCallbackId = GameGuildPetitionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildPetitionUpdateCallbackId { - GameGuildPetitionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildPetitionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `petition_id` unique index on the table `game_guild_petition`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildPetitionPetitionIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_petition().petition_id().find(...)`. -pub struct GameGuildPetitionPetitionIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildPetitionTableHandle<'ctx> { - /// Get a handle on the `petition_id` unique index on the table `game_guild_petition`. - pub fn petition_id(&self) -> GameGuildPetitionPetitionIdUnique<'ctx> { - GameGuildPetitionPetitionIdUnique { - imp: self.imp.get_unique_constraint::("petition_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildPetitionPetitionIdUnique<'ctx> { - /// Find the subscribed row whose `petition_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `charter_item_guid` unique index on the table `game_guild_petition`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildPetitionCharterItemGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_petition().charter_item_guid().find(...)`. -pub struct GameGuildPetitionCharterItemGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildPetitionTableHandle<'ctx> { - /// Get a handle on the `charter_item_guid` unique index on the table `game_guild_petition`. - pub fn charter_item_guid(&self) -> GameGuildPetitionCharterItemGuidUnique<'ctx> { - GameGuildPetitionCharterItemGuidUnique { - imp: self.imp.get_unique_constraint::("charter_item_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildPetitionCharterItemGuidUnique<'ctx> { - /// Find the subscribed row whose `charter_item_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `owner_guid` unique index on the table `game_guild_petition`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildPetitionOwnerGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_petition().owner_guid().find(...)`. -pub struct GameGuildPetitionOwnerGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildPetitionTableHandle<'ctx> { - /// Get a handle on the `owner_guid` unique index on the table `game_guild_petition`. - pub fn owner_guid(&self) -> GameGuildPetitionOwnerGuidUnique<'ctx> { - GameGuildPetitionOwnerGuidUnique { - imp: self.imp.get_unique_constraint::("owner_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildPetitionOwnerGuidUnique<'ctx> { - /// Find the subscribed row whose `owner_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guild_petition"); - _table.add_unique_constraint::("petition_id", |row| &row.petition_id); - _table.add_unique_constraint::("charter_item_guid", |row| &row.charter_item_guid); - _table.add_unique_constraint::("owner_guid", |row| &row.owner_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuildPetition`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guild_petitionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuildPetition`. - fn game_guild_petition(&self) -> __sdk::__query_builder::Table; -} - -impl game_guild_petitionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild_petition(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild_petition") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_rank_table.rs b/gateway/src/stdb/bindings/game_guild_rank_table.rs deleted file mode 100644 index b2b4e5203..000000000 --- a/gateway/src/stdb/bindings/game_guild_rank_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_rank_type::GuildRank; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild_rank`. -/// -/// Obtain a handle from the [`GameGuildRankTableAccess::game_guild_rank`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild_rank()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_rank().on_insert(...)`. -pub struct GameGuildRankTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild_rank`. -pub struct GameGuildRankTableAccessor; - -impl __sdk::TableAccessor for GameGuildRankTableAccessor { - type Row = GuildRank; - type Handle<'db> = GameGuildRankTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild_rank() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild_rank`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildRankTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildRankTableHandle`], which mediates access to the table `game_guild_rank`. - fn game_guild_rank(&self) -> GameGuildRankTableHandle<'_>; -} - -impl GameGuildRankTableAccess for super::RemoteTables { - fn game_guild_rank(&self) -> GameGuildRankTableHandle<'_> { - GameGuildRankTableHandle { - imp: self.imp.get_table::("game_guild_rank"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildRankInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildRankDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildRankTableHandle<'ctx> { - type Row = GuildRank; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildRankTableHandle<'ctx> { - type Row = GuildRank; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildRankInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildRankInsertCallbackId { - GameGuildRankInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildRankInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildRankDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildRankDeleteCallbackId { - GameGuildRankDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildRankDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildRankTableHandle<'ctx> { - type InsertCallbackId = GameGuildRankInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildRankInsertCallbackId { - GameGuildRankInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildRankInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildRankTableHandle<'ctx> { - type DeleteCallbackId = GameGuildRankDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildRankDeleteCallbackId { - GameGuildRankDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildRankDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildRankUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildRankTableHandle<'ctx> { - type UpdateCallbackId = GameGuildRankUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildRankUpdateCallbackId { - GameGuildRankUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildRankUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildRankTableHandle<'ctx> { - type UpdateCallbackId = GameGuildRankUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildRankUpdateCallbackId { - GameGuildRankUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildRankUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_guild_rank`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildRankIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild_rank().id().find(...)`. -pub struct GameGuildRankIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildRankTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_guild_rank`. - pub fn id(&self) -> GameGuildRankIdUnique<'ctx> { - GameGuildRankIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildRankIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guild_rank"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GuildRank`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guild_rankQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GuildRank`. - fn game_guild_rank(&self) -> __sdk::__query_builder::Table; -} - -impl game_guild_rankQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild_rank(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild_rank") - } -} diff --git a/gateway/src/stdb/bindings/game_guild_table.rs b/gateway/src/stdb/bindings/game_guild_table.rs deleted file mode 100644 index bba0acc56..000000000 --- a/gateway/src/stdb/bindings/game_guild_table.rs +++ /dev/null @@ -1,259 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::guild_type::Guild; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_guild`. -/// -/// Obtain a handle from the [`GameGuildTableAccess::game_guild`] method on [`super::RemoteTables`], -/// like `ctx.db.game_guild()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild().on_insert(...)`. -pub struct GameGuildTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_guild`. -pub struct GameGuildTableAccessor; - -impl __sdk::TableAccessor for GameGuildTableAccessor { - type Row = Guild; - type Handle<'db> = GameGuildTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_guild() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_guild`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameGuildTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameGuildTableHandle`], which mediates access to the table `game_guild`. - fn game_guild(&self) -> GameGuildTableHandle<'_>; -} - -impl GameGuildTableAccess for super::RemoteTables { - fn game_guild(&self) -> GameGuildTableHandle<'_> { - GameGuildTableHandle { - imp: self.imp.get_table::("game_guild"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameGuildInsertCallbackId(__sdk::CallbackId); -pub struct GameGuildDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameGuildTableHandle<'ctx> { - type Row = Guild; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameGuildTableHandle<'ctx> { - type Row = Guild; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameGuildInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildInsertCallbackId { - GameGuildInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameGuildDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildDeleteCallbackId { - GameGuildDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameGuildTableHandle<'ctx> { - type InsertCallbackId = GameGuildInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildInsertCallbackId { - GameGuildInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameGuildInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameGuildTableHandle<'ctx> { - type DeleteCallbackId = GameGuildDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameGuildDeleteCallbackId { - GameGuildDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameGuildDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameGuildUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameGuildTableHandle<'ctx> { - type UpdateCallbackId = GameGuildUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildUpdateCallbackId { - GameGuildUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameGuildTableHandle<'ctx> { - type UpdateCallbackId = GameGuildUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameGuildUpdateCallbackId { - GameGuildUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameGuildUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guild_id` unique index on the table `game_guild`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildGuildIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild().guild_id().find(...)`. -pub struct GameGuildGuildIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildTableHandle<'ctx> { - /// Get a handle on the `guild_id` unique index on the table `game_guild`. - pub fn guild_id(&self) -> GameGuildGuildIdUnique<'ctx> { - GameGuildGuildIdUnique { - imp: self.imp.get_unique_constraint::("guild_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildGuildIdUnique<'ctx> { - /// Find the subscribed row whose `guild_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `name_key` unique index on the table `game_guild`, -/// which allows point queries on the field of the same name -/// via the [`GameGuildNameKeyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_guild().name_key().find(...)`. -pub struct GameGuildNameKeyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameGuildTableHandle<'ctx> { - /// Get a handle on the `name_key` unique index on the table `game_guild`. - pub fn name_key(&self) -> GameGuildNameKeyUnique<'ctx> { - GameGuildNameKeyUnique { - imp: self.imp.get_unique_constraint::("name_key"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameGuildNameKeyUnique<'ctx> { - /// Find the subscribed row whose `name_key` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_guild"); - _table.add_unique_constraint::("guild_id", |row| &row.guild_id); - _table.add_unique_constraint::("name_key", |row| &row.name_key); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Guild`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_guildQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Guild`. - fn game_guild(&self) -> __sdk::__query_builder::Table; -} - -impl game_guildQueryTableAccess for __sdk::QueryTableAccessor { - fn game_guild(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_guild") - } -} diff --git a/gateway/src/stdb/bindings/game_hunter_pet_protocol_table.rs b/gateway/src/stdb/bindings/game_hunter_pet_protocol_table.rs deleted file mode 100644 index 57e1113e6..000000000 --- a/gateway/src/stdb/bindings/game_hunter_pet_protocol_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::hunter_pet_protocol_type::HunterPetProtocol; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_hunter_pet_protocol`. -/// -/// Obtain a handle from the [`GameHunterPetProtocolTableAccess::game_hunter_pet_protocol`] method on [`super::RemoteTables`], -/// like `ctx.db.game_hunter_pet_protocol()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_hunter_pet_protocol().on_insert(...)`. -pub struct GameHunterPetProtocolTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_hunter_pet_protocol`. -pub struct GameHunterPetProtocolTableAccessor; - -impl __sdk::TableAccessor for GameHunterPetProtocolTableAccessor { - type Row = HunterPetProtocol; - type Handle<'db> = GameHunterPetProtocolTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_hunter_pet_protocol() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_hunter_pet_protocol`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameHunterPetProtocolTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameHunterPetProtocolTableHandle`], which mediates access to the table `game_hunter_pet_protocol`. - fn game_hunter_pet_protocol(&self) -> GameHunterPetProtocolTableHandle<'_>; -} - -impl GameHunterPetProtocolTableAccess for super::RemoteTables { - fn game_hunter_pet_protocol(&self) -> GameHunterPetProtocolTableHandle<'_> { - GameHunterPetProtocolTableHandle { - imp: self - .imp - .get_table::("game_hunter_pet_protocol"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameHunterPetProtocolInsertCallbackId(__sdk::CallbackId); -pub struct GameHunterPetProtocolDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameHunterPetProtocolTableHandle<'ctx> { - type Row = HunterPetProtocol; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameHunterPetProtocolTableHandle<'ctx> { - type Row = HunterPetProtocol; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameHunterPetProtocolInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameHunterPetProtocolInsertCallbackId { - GameHunterPetProtocolInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameHunterPetProtocolInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameHunterPetProtocolDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameHunterPetProtocolDeleteCallbackId { - GameHunterPetProtocolDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameHunterPetProtocolDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameHunterPetProtocolTableHandle<'ctx> { - type InsertCallbackId = GameHunterPetProtocolInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameHunterPetProtocolInsertCallbackId { - GameHunterPetProtocolInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameHunterPetProtocolInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameHunterPetProtocolTableHandle<'ctx> { - type DeleteCallbackId = GameHunterPetProtocolDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameHunterPetProtocolDeleteCallbackId { - GameHunterPetProtocolDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameHunterPetProtocolDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameHunterPetProtocolUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameHunterPetProtocolTableHandle<'ctx> { - type UpdateCallbackId = GameHunterPetProtocolUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameHunterPetProtocolUpdateCallbackId { - GameHunterPetProtocolUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameHunterPetProtocolUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameHunterPetProtocolTableHandle<'ctx> { - type UpdateCallbackId = GameHunterPetProtocolUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameHunterPetProtocolUpdateCallbackId { - GameHunterPetProtocolUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameHunterPetProtocolUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `pet_id` unique index on the table `game_hunter_pet_protocol`, -/// which allows point queries on the field of the same name -/// via the [`GameHunterPetProtocolPetIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_hunter_pet_protocol().pet_id().find(...)`. -pub struct GameHunterPetProtocolPetIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameHunterPetProtocolTableHandle<'ctx> { - /// Get a handle on the `pet_id` unique index on the table `game_hunter_pet_protocol`. - pub fn pet_id(&self) -> GameHunterPetProtocolPetIdUnique<'ctx> { - GameHunterPetProtocolPetIdUnique { - imp: self.imp.get_unique_constraint::("pet_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameHunterPetProtocolPetIdUnique<'ctx> { - /// Find the subscribed row whose `pet_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_hunter_pet_protocol"); - _table.add_unique_constraint::("pet_id", |row| &row.pet_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `HunterPetProtocol`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_hunter_pet_protocolQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `HunterPetProtocol`. - fn game_hunter_pet_protocol(&self) -> __sdk::__query_builder::Table; -} - -impl game_hunter_pet_protocolQueryTableAccess for __sdk::QueryTableAccessor { - fn game_hunter_pet_protocol(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_hunter_pet_protocol") - } -} diff --git a/gateway/src/stdb/bindings/game_hunter_pet_table.rs b/gateway/src/stdb/bindings/game_hunter_pet_table.rs deleted file mode 100644 index 127b7b0d0..000000000 --- a/gateway/src/stdb/bindings/game_hunter_pet_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::hunter_pet_type::HunterPet; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_hunter_pet`. -/// -/// Obtain a handle from the [`GameHunterPetTableAccess::game_hunter_pet`] method on [`super::RemoteTables`], -/// like `ctx.db.game_hunter_pet()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_hunter_pet().on_insert(...)`. -pub struct GameHunterPetTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_hunter_pet`. -pub struct GameHunterPetTableAccessor; - -impl __sdk::TableAccessor for GameHunterPetTableAccessor { - type Row = HunterPet; - type Handle<'db> = GameHunterPetTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_hunter_pet() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_hunter_pet`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameHunterPetTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameHunterPetTableHandle`], which mediates access to the table `game_hunter_pet`. - fn game_hunter_pet(&self) -> GameHunterPetTableHandle<'_>; -} - -impl GameHunterPetTableAccess for super::RemoteTables { - fn game_hunter_pet(&self) -> GameHunterPetTableHandle<'_> { - GameHunterPetTableHandle { - imp: self.imp.get_table::("game_hunter_pet"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameHunterPetInsertCallbackId(__sdk::CallbackId); -pub struct GameHunterPetDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameHunterPetTableHandle<'ctx> { - type Row = HunterPet; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameHunterPetTableHandle<'ctx> { - type Row = HunterPet; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameHunterPetInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameHunterPetInsertCallbackId { - GameHunterPetInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameHunterPetInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameHunterPetDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameHunterPetDeleteCallbackId { - GameHunterPetDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameHunterPetDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameHunterPetTableHandle<'ctx> { - type InsertCallbackId = GameHunterPetInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameHunterPetInsertCallbackId { - GameHunterPetInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameHunterPetInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameHunterPetTableHandle<'ctx> { - type DeleteCallbackId = GameHunterPetDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameHunterPetDeleteCallbackId { - GameHunterPetDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameHunterPetDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameHunterPetUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameHunterPetTableHandle<'ctx> { - type UpdateCallbackId = GameHunterPetUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameHunterPetUpdateCallbackId { - GameHunterPetUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameHunterPetUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameHunterPetTableHandle<'ctx> { - type UpdateCallbackId = GameHunterPetUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameHunterPetUpdateCallbackId { - GameHunterPetUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameHunterPetUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `pet_id` unique index on the table `game_hunter_pet`, -/// which allows point queries on the field of the same name -/// via the [`GameHunterPetPetIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_hunter_pet().pet_id().find(...)`. -pub struct GameHunterPetPetIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameHunterPetTableHandle<'ctx> { - /// Get a handle on the `pet_id` unique index on the table `game_hunter_pet`. - pub fn pet_id(&self) -> GameHunterPetPetIdUnique<'ctx> { - GameHunterPetPetIdUnique { - imp: self.imp.get_unique_constraint::("pet_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameHunterPetPetIdUnique<'ctx> { - /// Find the subscribed row whose `pet_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_hunter_pet"); - _table.add_unique_constraint::("pet_id", |row| &row.pet_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `HunterPet`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_hunter_petQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `HunterPet`. - fn game_hunter_pet(&self) -> __sdk::__query_builder::Table; -} - -impl game_hunter_petQueryTableAccess for __sdk::QueryTableAccessor { - fn game_hunter_pet(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_hunter_pet") - } -} diff --git a/gateway/src/stdb/bindings/game_import_meta_table.rs b/gateway/src/stdb/bindings/game_import_meta_table.rs deleted file mode 100644 index 4440a7676..000000000 --- a/gateway/src/stdb/bindings/game_import_meta_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::import_meta_type::ImportMeta; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_import_meta`. -/// -/// Obtain a handle from the [`GameImportMetaTableAccess::game_import_meta`] method on [`super::RemoteTables`], -/// like `ctx.db.game_import_meta()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_import_meta().on_insert(...)`. -pub struct GameImportMetaTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_import_meta`. -pub struct GameImportMetaTableAccessor; - -impl __sdk::TableAccessor for GameImportMetaTableAccessor { - type Row = ImportMeta; - type Handle<'db> = GameImportMetaTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_import_meta() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_import_meta`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameImportMetaTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameImportMetaTableHandle`], which mediates access to the table `game_import_meta`. - fn game_import_meta(&self) -> GameImportMetaTableHandle<'_>; -} - -impl GameImportMetaTableAccess for super::RemoteTables { - fn game_import_meta(&self) -> GameImportMetaTableHandle<'_> { - GameImportMetaTableHandle { - imp: self.imp.get_table::("game_import_meta"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameImportMetaInsertCallbackId(__sdk::CallbackId); -pub struct GameImportMetaDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameImportMetaTableHandle<'ctx> { - type Row = ImportMeta; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameImportMetaTableHandle<'ctx> { - type Row = ImportMeta; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameImportMetaInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameImportMetaInsertCallbackId { - GameImportMetaInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameImportMetaInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameImportMetaDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameImportMetaDeleteCallbackId { - GameImportMetaDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameImportMetaDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameImportMetaTableHandle<'ctx> { - type InsertCallbackId = GameImportMetaInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameImportMetaInsertCallbackId { - GameImportMetaInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameImportMetaInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameImportMetaTableHandle<'ctx> { - type DeleteCallbackId = GameImportMetaDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameImportMetaDeleteCallbackId { - GameImportMetaDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameImportMetaDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameImportMetaUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameImportMetaTableHandle<'ctx> { - type UpdateCallbackId = GameImportMetaUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameImportMetaUpdateCallbackId { - GameImportMetaUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameImportMetaUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameImportMetaTableHandle<'ctx> { - type UpdateCallbackId = GameImportMetaUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameImportMetaUpdateCallbackId { - GameImportMetaUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameImportMetaUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `family` unique index on the table `game_import_meta`, -/// which allows point queries on the field of the same name -/// via the [`GameImportMetaFamilyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_import_meta().family().find(...)`. -pub struct GameImportMetaFamilyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameImportMetaTableHandle<'ctx> { - /// Get a handle on the `family` unique index on the table `game_import_meta`. - pub fn family(&self) -> GameImportMetaFamilyUnique<'ctx> { - GameImportMetaFamilyUnique { - imp: self.imp.get_unique_constraint::("family"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameImportMetaFamilyUnique<'ctx> { - /// Find the subscribed row whose `family` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_import_meta"); - _table.add_unique_constraint::("family", |row| &row.family); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ImportMeta`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_import_metaQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ImportMeta`. - fn game_import_meta(&self) -> __sdk::__query_builder::Table; -} - -impl game_import_metaQueryTableAccess for __sdk::QueryTableAccessor { - fn game_import_meta(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_import_meta") - } -} diff --git a/gateway/src/stdb/bindings/game_instance_binding_table.rs b/gateway/src/stdb/bindings/game_instance_binding_table.rs deleted file mode 100644 index 837e53abc..000000000 --- a/gateway/src/stdb/bindings/game_instance_binding_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_instance_binding_type::GameInstanceBinding; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_instance_binding`. -/// -/// Obtain a handle from the [`GameInstanceBindingTableAccess::game_instance_binding`] method on [`super::RemoteTables`], -/// like `ctx.db.game_instance_binding()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance_binding().on_insert(...)`. -pub struct GameInstanceBindingTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_instance_binding`. -pub struct GameInstanceBindingTableAccessor; - -impl __sdk::TableAccessor for GameInstanceBindingTableAccessor { - type Row = GameInstanceBinding; - type Handle<'db> = GameInstanceBindingTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_instance_binding() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_instance_binding`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameInstanceBindingTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameInstanceBindingTableHandle`], which mediates access to the table `game_instance_binding`. - fn game_instance_binding(&self) -> GameInstanceBindingTableHandle<'_>; -} - -impl GameInstanceBindingTableAccess for super::RemoteTables { - fn game_instance_binding(&self) -> GameInstanceBindingTableHandle<'_> { - GameInstanceBindingTableHandle { - imp: self - .imp - .get_table::("game_instance_binding"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameInstanceBindingInsertCallbackId(__sdk::CallbackId); -pub struct GameInstanceBindingDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameInstanceBindingTableHandle<'ctx> { - type Row = GameInstanceBinding; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameInstanceBindingTableHandle<'ctx> { - type Row = GameInstanceBinding; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameInstanceBindingInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceBindingInsertCallbackId { - GameInstanceBindingInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameInstanceBindingInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameInstanceBindingDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceBindingDeleteCallbackId { - GameInstanceBindingDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameInstanceBindingDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameInstanceBindingTableHandle<'ctx> { - type InsertCallbackId = GameInstanceBindingInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceBindingInsertCallbackId { - GameInstanceBindingInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameInstanceBindingInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameInstanceBindingTableHandle<'ctx> { - type DeleteCallbackId = GameInstanceBindingDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceBindingDeleteCallbackId { - GameInstanceBindingDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameInstanceBindingDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameInstanceBindingUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameInstanceBindingTableHandle<'ctx> { - type UpdateCallbackId = GameInstanceBindingUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameInstanceBindingUpdateCallbackId { - GameInstanceBindingUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameInstanceBindingUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameInstanceBindingTableHandle<'ctx> { - type UpdateCallbackId = GameInstanceBindingUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameInstanceBindingUpdateCallbackId { - GameInstanceBindingUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameInstanceBindingUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_instance_binding`, -/// which allows point queries on the field of the same name -/// via the [`GameInstanceBindingIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance_binding().id().find(...)`. -pub struct GameInstanceBindingIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameInstanceBindingTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_instance_binding`. - pub fn id(&self) -> GameInstanceBindingIdUnique<'ctx> { - GameInstanceBindingIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameInstanceBindingIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_instance_binding"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameInstanceBinding`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_instance_bindingQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameInstanceBinding`. - fn game_instance_binding(&self) -> __sdk::__query_builder::Table; -} - -impl game_instance_bindingQueryTableAccess for __sdk::QueryTableAccessor { - fn game_instance_binding(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_instance_binding") - } -} diff --git a/gateway/src/stdb/bindings/game_instance_binding_type.rs b/gateway/src/stdb/bindings/game_instance_binding_type.rs deleted file mode 100644 index 6e3245252..000000000 --- a/gateway/src/stdb/bindings/game_instance_binding_type.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameInstanceBinding { - pub id: u64, - pub character_guid: u64, - pub instance_id: u64, - pub map_id: u32, -} - -impl __sdk::InModule for GameInstanceBinding { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameInstanceBinding`. -/// -/// Provides typed access to columns for query building. -pub struct GameInstanceBindingCols { - pub id: __sdk::__query_builder::Col, - pub character_guid: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameInstanceBinding { - type Cols = GameInstanceBindingCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameInstanceBindingCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - character_guid: __sdk::__query_builder::Col::new(table_name, "character_guid"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - } - } -} - -/// Indexed column accessor struct for the table `GameInstanceBinding`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameInstanceBindingIxCols { - pub character_guid: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, - pub instance_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameInstanceBinding { - type IxCols = GameInstanceBindingIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameInstanceBindingIxCols { - character_guid: __sdk::__query_builder::IxCol::new(table_name, "character_guid"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - instance_id: __sdk::__query_builder::IxCol::new(table_name, "instance_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameInstanceBinding {} diff --git a/gateway/src/stdb/bindings/game_instance_reaper_schedule_table.rs b/gateway/src/stdb/bindings/game_instance_reaper_schedule_table.rs deleted file mode 100644 index de393e6d8..000000000 --- a/gateway/src/stdb/bindings/game_instance_reaper_schedule_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::instance_reaper_schedule_type::InstanceReaperSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_instance_reaper_schedule`. -/// -/// Obtain a handle from the [`GameInstanceReaperScheduleTableAccess::game_instance_reaper_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_instance_reaper_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance_reaper_schedule().on_insert(...)`. -pub struct GameInstanceReaperScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_instance_reaper_schedule`. -pub struct GameInstanceReaperScheduleTableAccessor; - -impl __sdk::TableAccessor for GameInstanceReaperScheduleTableAccessor { - type Row = InstanceReaperSchedule; - type Handle<'db> = GameInstanceReaperScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_instance_reaper_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_instance_reaper_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameInstanceReaperScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameInstanceReaperScheduleTableHandle`], which mediates access to the table `game_instance_reaper_schedule`. - fn game_instance_reaper_schedule(&self) -> GameInstanceReaperScheduleTableHandle<'_>; -} - -impl GameInstanceReaperScheduleTableAccess for super::RemoteTables { - fn game_instance_reaper_schedule(&self) -> GameInstanceReaperScheduleTableHandle<'_> { - GameInstanceReaperScheduleTableHandle { - imp: self - .imp - .get_table::("game_instance_reaper_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameInstanceReaperScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameInstanceReaperScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameInstanceReaperScheduleTableHandle<'ctx> { - type Row = InstanceReaperSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameInstanceReaperScheduleTableHandle<'ctx> { - type Row = InstanceReaperSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameInstanceReaperScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceReaperScheduleInsertCallbackId { - GameInstanceReaperScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameInstanceReaperScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameInstanceReaperScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceReaperScheduleDeleteCallbackId { - GameInstanceReaperScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameInstanceReaperScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameInstanceReaperScheduleTableHandle<'ctx> { - type InsertCallbackId = GameInstanceReaperScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceReaperScheduleInsertCallbackId { - GameInstanceReaperScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameInstanceReaperScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameInstanceReaperScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameInstanceReaperScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceReaperScheduleDeleteCallbackId { - GameInstanceReaperScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameInstanceReaperScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameInstanceReaperScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameInstanceReaperScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameInstanceReaperScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameInstanceReaperScheduleUpdateCallbackId { - GameInstanceReaperScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameInstanceReaperScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameInstanceReaperScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameInstanceReaperScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameInstanceReaperScheduleUpdateCallbackId { - GameInstanceReaperScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameInstanceReaperScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_instance_reaper_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameInstanceReaperScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance_reaper_schedule().scheduled_id().find(...)`. -pub struct GameInstanceReaperScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameInstanceReaperScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_instance_reaper_schedule`. - pub fn scheduled_id(&self) -> GameInstanceReaperScheduleScheduledIdUnique<'ctx> { - GameInstanceReaperScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameInstanceReaperScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_instance_reaper_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `InstanceReaperSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_instance_reaper_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `InstanceReaperSchedule`. - fn game_instance_reaper_schedule( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_instance_reaper_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_instance_reaper_schedule( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_instance_reaper_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_instance_removal_table.rs b/gateway/src/stdb/bindings/game_instance_removal_table.rs deleted file mode 100644 index 3c403a3e3..000000000 --- a/gateway/src/stdb/bindings/game_instance_removal_table.rs +++ /dev/null @@ -1,261 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::instance_removal_type::InstanceRemoval; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_instance_removal`. -/// -/// Obtain a handle from the [`GameInstanceRemovalTableAccess::game_instance_removal`] method on [`super::RemoteTables`], -/// like `ctx.db.game_instance_removal()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance_removal().on_insert(...)`. -pub struct GameInstanceRemovalTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_instance_removal`. -pub struct GameInstanceRemovalTableAccessor; - -impl __sdk::TableAccessor for GameInstanceRemovalTableAccessor { - type Row = InstanceRemoval; - type Handle<'db> = GameInstanceRemovalTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_instance_removal() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_instance_removal`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameInstanceRemovalTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameInstanceRemovalTableHandle`], which mediates access to the table `game_instance_removal`. - fn game_instance_removal(&self) -> GameInstanceRemovalTableHandle<'_>; -} - -impl GameInstanceRemovalTableAccess for super::RemoteTables { - fn game_instance_removal(&self) -> GameInstanceRemovalTableHandle<'_> { - GameInstanceRemovalTableHandle { - imp: self - .imp - .get_table::("game_instance_removal"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameInstanceRemovalInsertCallbackId(__sdk::CallbackId); -pub struct GameInstanceRemovalDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameInstanceRemovalTableHandle<'ctx> { - type Row = InstanceRemoval; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameInstanceRemovalTableHandle<'ctx> { - type Row = InstanceRemoval; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameInstanceRemovalInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceRemovalInsertCallbackId { - GameInstanceRemovalInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameInstanceRemovalInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameInstanceRemovalDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceRemovalDeleteCallbackId { - GameInstanceRemovalDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameInstanceRemovalDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameInstanceRemovalTableHandle<'ctx> { - type InsertCallbackId = GameInstanceRemovalInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceRemovalInsertCallbackId { - GameInstanceRemovalInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameInstanceRemovalInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameInstanceRemovalTableHandle<'ctx> { - type DeleteCallbackId = GameInstanceRemovalDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceRemovalDeleteCallbackId { - GameInstanceRemovalDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameInstanceRemovalDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameInstanceRemovalUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameInstanceRemovalTableHandle<'ctx> { - type UpdateCallbackId = GameInstanceRemovalUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameInstanceRemovalUpdateCallbackId { - GameInstanceRemovalUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameInstanceRemovalUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameInstanceRemovalTableHandle<'ctx> { - type UpdateCallbackId = GameInstanceRemovalUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameInstanceRemovalUpdateCallbackId { - GameInstanceRemovalUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameInstanceRemovalUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_instance_removal`, -/// which allows point queries on the field of the same name -/// via the [`GameInstanceRemovalScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance_removal().scheduled_id().find(...)`. -pub struct GameInstanceRemovalScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameInstanceRemovalTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_instance_removal`. - pub fn scheduled_id(&self) -> GameInstanceRemovalScheduledIdUnique<'ctx> { - GameInstanceRemovalScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameInstanceRemovalScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `character_guid` unique index on the table `game_instance_removal`, -/// which allows point queries on the field of the same name -/// via the [`GameInstanceRemovalCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance_removal().character_guid().find(...)`. -pub struct GameInstanceRemovalCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameInstanceRemovalTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_instance_removal`. - pub fn character_guid(&self) -> GameInstanceRemovalCharacterGuidUnique<'ctx> { - GameInstanceRemovalCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameInstanceRemovalCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_instance_removal"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `InstanceRemoval`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_instance_removalQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `InstanceRemoval`. - fn game_instance_removal(&self) -> __sdk::__query_builder::Table; -} - -impl game_instance_removalQueryTableAccess for __sdk::QueryTableAccessor { - fn game_instance_removal(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_instance_removal") - } -} diff --git a/gateway/src/stdb/bindings/game_instance_table.rs b/gateway/src/stdb/bindings/game_instance_table.rs deleted file mode 100644 index 808c57c05..000000000 --- a/gateway/src/stdb/bindings/game_instance_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_instance_type::GameInstance; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_instance`. -/// -/// Obtain a handle from the [`GameInstanceTableAccess::game_instance`] method on [`super::RemoteTables`], -/// like `ctx.db.game_instance()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance().on_insert(...)`. -pub struct GameInstanceTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_instance`. -pub struct GameInstanceTableAccessor; - -impl __sdk::TableAccessor for GameInstanceTableAccessor { - type Row = GameInstance; - type Handle<'db> = GameInstanceTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_instance() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_instance`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameInstanceTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameInstanceTableHandle`], which mediates access to the table `game_instance`. - fn game_instance(&self) -> GameInstanceTableHandle<'_>; -} - -impl GameInstanceTableAccess for super::RemoteTables { - fn game_instance(&self) -> GameInstanceTableHandle<'_> { - GameInstanceTableHandle { - imp: self.imp.get_table::("game_instance"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameInstanceInsertCallbackId(__sdk::CallbackId); -pub struct GameInstanceDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameInstanceTableHandle<'ctx> { - type Row = GameInstance; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameInstanceTableHandle<'ctx> { - type Row = GameInstance; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameInstanceInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceInsertCallbackId { - GameInstanceInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameInstanceInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameInstanceDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceDeleteCallbackId { - GameInstanceDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameInstanceDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameInstanceTableHandle<'ctx> { - type InsertCallbackId = GameInstanceInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceInsertCallbackId { - GameInstanceInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameInstanceInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameInstanceTableHandle<'ctx> { - type DeleteCallbackId = GameInstanceDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameInstanceDeleteCallbackId { - GameInstanceDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameInstanceDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameInstanceUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameInstanceTableHandle<'ctx> { - type UpdateCallbackId = GameInstanceUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameInstanceUpdateCallbackId { - GameInstanceUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameInstanceUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameInstanceTableHandle<'ctx> { - type UpdateCallbackId = GameInstanceUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameInstanceUpdateCallbackId { - GameInstanceUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameInstanceUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `instance_id` unique index on the table `game_instance`, -/// which allows point queries on the field of the same name -/// via the [`GameInstanceInstanceIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_instance().instance_id().find(...)`. -pub struct GameInstanceInstanceIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameInstanceTableHandle<'ctx> { - /// Get a handle on the `instance_id` unique index on the table `game_instance`. - pub fn instance_id(&self) -> GameInstanceInstanceIdUnique<'ctx> { - GameInstanceInstanceIdUnique { - imp: self.imp.get_unique_constraint::("instance_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameInstanceInstanceIdUnique<'ctx> { - /// Find the subscribed row whose `instance_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_instance"); - _table.add_unique_constraint::("instance_id", |row| &row.instance_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameInstance`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_instanceQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameInstance`. - fn game_instance(&self) -> __sdk::__query_builder::Table; -} - -impl game_instanceQueryTableAccess for __sdk::QueryTableAccessor { - fn game_instance(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_instance") - } -} diff --git a/gateway/src/stdb/bindings/game_instance_type.rs b/gateway/src/stdb/bindings/game_instance_type.rs deleted file mode 100644 index 5f15b4a16..000000000 --- a/gateway/src/stdb/bindings/game_instance_type.rs +++ /dev/null @@ -1,71 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameInstance { - pub instance_id: u64, - pub map_id: u32, - pub party_id: u64, - pub created_at: __sdk::Timestamp, - pub last_empty_at_micros: i64, - pub reset_requested: bool, -} - -impl __sdk::InModule for GameInstance { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameInstance`. -/// -/// Provides typed access to columns for query building. -pub struct GameInstanceCols { - pub instance_id: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub party_id: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub last_empty_at_micros: __sdk::__query_builder::Col, - pub reset_requested: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameInstance { - type Cols = GameInstanceCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameInstanceCols { - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - party_id: __sdk::__query_builder::Col::new(table_name, "party_id"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - last_empty_at_micros: __sdk::__query_builder::Col::new( - table_name, - "last_empty_at_micros", - ), - reset_requested: __sdk::__query_builder::Col::new(table_name, "reset_requested"), - } - } -} - -/// Indexed column accessor struct for the table `GameInstance`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameInstanceIxCols { - pub instance_id: __sdk::__query_builder::IxCol, - pub map_id: __sdk::__query_builder::IxCol, - pub party_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameInstance { - type IxCols = GameInstanceIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameInstanceIxCols { - instance_id: __sdk::__query_builder::IxCol::new(table_name, "instance_id"), - map_id: __sdk::__query_builder::IxCol::new(table_name, "map_id"), - party_id: __sdk::__query_builder::IxCol::new(table_name, "party_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameInstance {} diff --git a/gateway/src/stdb/bindings/game_item_enchantment_table.rs b/gateway/src/stdb/bindings/game_item_enchantment_table.rs deleted file mode 100644 index 9f3320b1d..000000000 --- a/gateway/src/stdb/bindings/game_item_enchantment_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::item_enchantment_type::ItemEnchantment; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_item_enchantment`. -/// -/// Obtain a handle from the [`GameItemEnchantmentTableAccess::game_item_enchantment`] method on [`super::RemoteTables`], -/// like `ctx.db.game_item_enchantment()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_enchantment().on_insert(...)`. -pub struct GameItemEnchantmentTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_item_enchantment`. -pub struct GameItemEnchantmentTableAccessor; - -impl __sdk::TableAccessor for GameItemEnchantmentTableAccessor { - type Row = ItemEnchantment; - type Handle<'db> = GameItemEnchantmentTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_item_enchantment() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_item_enchantment`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameItemEnchantmentTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameItemEnchantmentTableHandle`], which mediates access to the table `game_item_enchantment`. - fn game_item_enchantment(&self) -> GameItemEnchantmentTableHandle<'_>; -} - -impl GameItemEnchantmentTableAccess for super::RemoteTables { - fn game_item_enchantment(&self) -> GameItemEnchantmentTableHandle<'_> { - GameItemEnchantmentTableHandle { - imp: self - .imp - .get_table::("game_item_enchantment"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameItemEnchantmentInsertCallbackId(__sdk::CallbackId); -pub struct GameItemEnchantmentDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameItemEnchantmentTableHandle<'ctx> { - type Row = ItemEnchantment; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameItemEnchantmentTableHandle<'ctx> { - type Row = ItemEnchantment; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameItemEnchantmentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemEnchantmentInsertCallbackId { - GameItemEnchantmentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemEnchantmentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameItemEnchantmentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemEnchantmentDeleteCallbackId { - GameItemEnchantmentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemEnchantmentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameItemEnchantmentTableHandle<'ctx> { - type InsertCallbackId = GameItemEnchantmentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemEnchantmentInsertCallbackId { - GameItemEnchantmentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemEnchantmentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameItemEnchantmentTableHandle<'ctx> { - type DeleteCallbackId = GameItemEnchantmentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemEnchantmentDeleteCallbackId { - GameItemEnchantmentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemEnchantmentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameItemEnchantmentUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameItemEnchantmentTableHandle<'ctx> { - type UpdateCallbackId = GameItemEnchantmentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemEnchantmentUpdateCallbackId { - GameItemEnchantmentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemEnchantmentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameItemEnchantmentTableHandle<'ctx> { - type UpdateCallbackId = GameItemEnchantmentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemEnchantmentUpdateCallbackId { - GameItemEnchantmentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemEnchantmentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_item_enchantment`, -/// which allows point queries on the field of the same name -/// via the [`GameItemEnchantmentIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_enchantment().id().find(...)`. -pub struct GameItemEnchantmentIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameItemEnchantmentTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_item_enchantment`. - pub fn id(&self) -> GameItemEnchantmentIdUnique<'ctx> { - GameItemEnchantmentIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameItemEnchantmentIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_item_enchantment"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ItemEnchantment`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_item_enchantmentQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ItemEnchantment`. - fn game_item_enchantment(&self) -> __sdk::__query_builder::Table; -} - -impl game_item_enchantmentQueryTableAccess for __sdk::QueryTableAccessor { - fn game_item_enchantment(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_item_enchantment") - } -} diff --git a/gateway/src/stdb/bindings/game_item_instance_table.rs b/gateway/src/stdb/bindings/game_item_instance_table.rs deleted file mode 100644 index e47a092b5..000000000 --- a/gateway/src/stdb/bindings/game_item_instance_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::item_instance_type::ItemInstance; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_item_instance`. -/// -/// Obtain a handle from the [`GameItemInstanceTableAccess::game_item_instance`] method on [`super::RemoteTables`], -/// like `ctx.db.game_item_instance()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_instance().on_insert(...)`. -pub struct GameItemInstanceTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_item_instance`. -pub struct GameItemInstanceTableAccessor; - -impl __sdk::TableAccessor for GameItemInstanceTableAccessor { - type Row = ItemInstance; - type Handle<'db> = GameItemInstanceTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_item_instance() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_item_instance`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameItemInstanceTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameItemInstanceTableHandle`], which mediates access to the table `game_item_instance`. - fn game_item_instance(&self) -> GameItemInstanceTableHandle<'_>; -} - -impl GameItemInstanceTableAccess for super::RemoteTables { - fn game_item_instance(&self) -> GameItemInstanceTableHandle<'_> { - GameItemInstanceTableHandle { - imp: self.imp.get_table::("game_item_instance"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameItemInstanceInsertCallbackId(__sdk::CallbackId); -pub struct GameItemInstanceDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameItemInstanceTableHandle<'ctx> { - type Row = ItemInstance; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameItemInstanceTableHandle<'ctx> { - type Row = ItemInstance; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameItemInstanceInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemInstanceInsertCallbackId { - GameItemInstanceInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemInstanceInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameItemInstanceDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemInstanceDeleteCallbackId { - GameItemInstanceDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemInstanceDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameItemInstanceTableHandle<'ctx> { - type InsertCallbackId = GameItemInstanceInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemInstanceInsertCallbackId { - GameItemInstanceInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemInstanceInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameItemInstanceTableHandle<'ctx> { - type DeleteCallbackId = GameItemInstanceDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemInstanceDeleteCallbackId { - GameItemInstanceDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemInstanceDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameItemInstanceUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameItemInstanceTableHandle<'ctx> { - type UpdateCallbackId = GameItemInstanceUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemInstanceUpdateCallbackId { - GameItemInstanceUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemInstanceUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameItemInstanceTableHandle<'ctx> { - type UpdateCallbackId = GameItemInstanceUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemInstanceUpdateCallbackId { - GameItemInstanceUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemInstanceUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `guid` unique index on the table `game_item_instance`, -/// which allows point queries on the field of the same name -/// via the [`GameItemInstanceGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_instance().guid().find(...)`. -pub struct GameItemInstanceGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameItemInstanceTableHandle<'ctx> { - /// Get a handle on the `guid` unique index on the table `game_item_instance`. - pub fn guid(&self) -> GameItemInstanceGuidUnique<'ctx> { - GameItemInstanceGuidUnique { - imp: self.imp.get_unique_constraint::("guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameItemInstanceGuidUnique<'ctx> { - /// Find the subscribed row whose `guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_item_instance"); - _table.add_unique_constraint::("guid", |row| &row.guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ItemInstance`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_item_instanceQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ItemInstance`. - fn game_item_instance(&self) -> __sdk::__query_builder::Table; -} - -impl game_item_instanceQueryTableAccess for __sdk::QueryTableAccessor { - fn game_item_instance(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_item_instance") - } -} diff --git a/gateway/src/stdb/bindings/game_item_property_weight_table.rs b/gateway/src/stdb/bindings/game_item_property_weight_table.rs deleted file mode 100644 index 9522e715c..000000000 --- a/gateway/src/stdb/bindings/game_item_property_weight_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::item_property_weight_type::ItemPropertyWeight; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_item_property_weight`. -/// -/// Obtain a handle from the [`GameItemPropertyWeightTableAccess::game_item_property_weight`] method on [`super::RemoteTables`], -/// like `ctx.db.game_item_property_weight()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_property_weight().on_insert(...)`. -pub struct GameItemPropertyWeightTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_item_property_weight`. -pub struct GameItemPropertyWeightTableAccessor; - -impl __sdk::TableAccessor for GameItemPropertyWeightTableAccessor { - type Row = ItemPropertyWeight; - type Handle<'db> = GameItemPropertyWeightTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_item_property_weight() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_item_property_weight`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameItemPropertyWeightTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameItemPropertyWeightTableHandle`], which mediates access to the table `game_item_property_weight`. - fn game_item_property_weight(&self) -> GameItemPropertyWeightTableHandle<'_>; -} - -impl GameItemPropertyWeightTableAccess for super::RemoteTables { - fn game_item_property_weight(&self) -> GameItemPropertyWeightTableHandle<'_> { - GameItemPropertyWeightTableHandle { - imp: self - .imp - .get_table::("game_item_property_weight"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameItemPropertyWeightInsertCallbackId(__sdk::CallbackId); -pub struct GameItemPropertyWeightDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameItemPropertyWeightTableHandle<'ctx> { - type Row = ItemPropertyWeight; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameItemPropertyWeightTableHandle<'ctx> { - type Row = ItemPropertyWeight; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameItemPropertyWeightInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemPropertyWeightInsertCallbackId { - GameItemPropertyWeightInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemPropertyWeightInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameItemPropertyWeightDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemPropertyWeightDeleteCallbackId { - GameItemPropertyWeightDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemPropertyWeightDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameItemPropertyWeightTableHandle<'ctx> { - type InsertCallbackId = GameItemPropertyWeightInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemPropertyWeightInsertCallbackId { - GameItemPropertyWeightInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemPropertyWeightInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameItemPropertyWeightTableHandle<'ctx> { - type DeleteCallbackId = GameItemPropertyWeightDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemPropertyWeightDeleteCallbackId { - GameItemPropertyWeightDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemPropertyWeightDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameItemPropertyWeightUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameItemPropertyWeightTableHandle<'ctx> { - type UpdateCallbackId = GameItemPropertyWeightUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemPropertyWeightUpdateCallbackId { - GameItemPropertyWeightUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemPropertyWeightUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameItemPropertyWeightTableHandle<'ctx> { - type UpdateCallbackId = GameItemPropertyWeightUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemPropertyWeightUpdateCallbackId { - GameItemPropertyWeightUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemPropertyWeightUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_item_property_weight`, -/// which allows point queries on the field of the same name -/// via the [`GameItemPropertyWeightIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_property_weight().id().find(...)`. -pub struct GameItemPropertyWeightIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameItemPropertyWeightTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_item_property_weight`. - pub fn id(&self) -> GameItemPropertyWeightIdUnique<'ctx> { - GameItemPropertyWeightIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameItemPropertyWeightIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_item_property_weight"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ItemPropertyWeight`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_item_property_weightQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ItemPropertyWeight`. - fn game_item_property_weight(&self) -> __sdk::__query_builder::Table; -} - -impl game_item_property_weightQueryTableAccess for __sdk::QueryTableAccessor { - fn game_item_property_weight(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_item_property_weight") - } -} diff --git a/gateway/src/stdb/bindings/game_item_random_property_table.rs b/gateway/src/stdb/bindings/game_item_random_property_table.rs deleted file mode 100644 index a70f11922..000000000 --- a/gateway/src/stdb/bindings/game_item_random_property_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::item_random_property_type::ItemRandomProperty; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_item_random_property`. -/// -/// Obtain a handle from the [`GameItemRandomPropertyTableAccess::game_item_random_property`] method on [`super::RemoteTables`], -/// like `ctx.db.game_item_random_property()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_random_property().on_insert(...)`. -pub struct GameItemRandomPropertyTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_item_random_property`. -pub struct GameItemRandomPropertyTableAccessor; - -impl __sdk::TableAccessor for GameItemRandomPropertyTableAccessor { - type Row = ItemRandomProperty; - type Handle<'db> = GameItemRandomPropertyTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_item_random_property() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_item_random_property`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameItemRandomPropertyTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameItemRandomPropertyTableHandle`], which mediates access to the table `game_item_random_property`. - fn game_item_random_property(&self) -> GameItemRandomPropertyTableHandle<'_>; -} - -impl GameItemRandomPropertyTableAccess for super::RemoteTables { - fn game_item_random_property(&self) -> GameItemRandomPropertyTableHandle<'_> { - GameItemRandomPropertyTableHandle { - imp: self - .imp - .get_table::("game_item_random_property"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameItemRandomPropertyInsertCallbackId(__sdk::CallbackId); -pub struct GameItemRandomPropertyDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameItemRandomPropertyTableHandle<'ctx> { - type Row = ItemRandomProperty; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameItemRandomPropertyTableHandle<'ctx> { - type Row = ItemRandomProperty; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameItemRandomPropertyInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemRandomPropertyInsertCallbackId { - GameItemRandomPropertyInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemRandomPropertyInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameItemRandomPropertyDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemRandomPropertyDeleteCallbackId { - GameItemRandomPropertyDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemRandomPropertyDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameItemRandomPropertyTableHandle<'ctx> { - type InsertCallbackId = GameItemRandomPropertyInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemRandomPropertyInsertCallbackId { - GameItemRandomPropertyInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemRandomPropertyInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameItemRandomPropertyTableHandle<'ctx> { - type DeleteCallbackId = GameItemRandomPropertyDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemRandomPropertyDeleteCallbackId { - GameItemRandomPropertyDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemRandomPropertyDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameItemRandomPropertyUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameItemRandomPropertyTableHandle<'ctx> { - type UpdateCallbackId = GameItemRandomPropertyUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemRandomPropertyUpdateCallbackId { - GameItemRandomPropertyUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemRandomPropertyUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameItemRandomPropertyTableHandle<'ctx> { - type UpdateCallbackId = GameItemRandomPropertyUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemRandomPropertyUpdateCallbackId { - GameItemRandomPropertyUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemRandomPropertyUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `property_id` unique index on the table `game_item_random_property`, -/// which allows point queries on the field of the same name -/// via the [`GameItemRandomPropertyPropertyIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_random_property().property_id().find(...)`. -pub struct GameItemRandomPropertyPropertyIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameItemRandomPropertyTableHandle<'ctx> { - /// Get a handle on the `property_id` unique index on the table `game_item_random_property`. - pub fn property_id(&self) -> GameItemRandomPropertyPropertyIdUnique<'ctx> { - GameItemRandomPropertyPropertyIdUnique { - imp: self.imp.get_unique_constraint::("property_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameItemRandomPropertyPropertyIdUnique<'ctx> { - /// Find the subscribed row whose `property_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_item_random_property"); - _table.add_unique_constraint::("property_id", |row| &row.property_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ItemRandomProperty`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_item_random_propertyQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ItemRandomProperty`. - fn game_item_random_property(&self) -> __sdk::__query_builder::Table; -} - -impl game_item_random_propertyQueryTableAccess for __sdk::QueryTableAccessor { - fn game_item_random_property(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_item_random_property") - } -} diff --git a/gateway/src/stdb/bindings/game_item_template_table.rs b/gateway/src/stdb/bindings/game_item_template_table.rs deleted file mode 100644 index 4a9ac172d..000000000 --- a/gateway/src/stdb/bindings/game_item_template_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::item_template_type::ItemTemplate; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_item_template`. -/// -/// Obtain a handle from the [`GameItemTemplateTableAccess::game_item_template`] method on [`super::RemoteTables`], -/// like `ctx.db.game_item_template()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_template().on_insert(...)`. -pub struct GameItemTemplateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_item_template`. -pub struct GameItemTemplateTableAccessor; - -impl __sdk::TableAccessor for GameItemTemplateTableAccessor { - type Row = ItemTemplate; - type Handle<'db> = GameItemTemplateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_item_template() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_item_template`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameItemTemplateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameItemTemplateTableHandle`], which mediates access to the table `game_item_template`. - fn game_item_template(&self) -> GameItemTemplateTableHandle<'_>; -} - -impl GameItemTemplateTableAccess for super::RemoteTables { - fn game_item_template(&self) -> GameItemTemplateTableHandle<'_> { - GameItemTemplateTableHandle { - imp: self.imp.get_table::("game_item_template"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameItemTemplateInsertCallbackId(__sdk::CallbackId); -pub struct GameItemTemplateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameItemTemplateTableHandle<'ctx> { - type Row = ItemTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameItemTemplateTableHandle<'ctx> { - type Row = ItemTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameItemTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemTemplateInsertCallbackId { - GameItemTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameItemTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemTemplateDeleteCallbackId { - GameItemTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameItemTemplateTableHandle<'ctx> { - type InsertCallbackId = GameItemTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemTemplateInsertCallbackId { - GameItemTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameItemTemplateTableHandle<'ctx> { - type DeleteCallbackId = GameItemTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemTemplateDeleteCallbackId { - GameItemTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameItemTemplateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameItemTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameItemTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemTemplateUpdateCallbackId { - GameItemTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameItemTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameItemTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemTemplateUpdateCallbackId { - GameItemTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entry` unique index on the table `game_item_template`, -/// which allows point queries on the field of the same name -/// via the [`GameItemTemplateEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_template().entry().find(...)`. -pub struct GameItemTemplateEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameItemTemplateTableHandle<'ctx> { - /// Get a handle on the `entry` unique index on the table `game_item_template`. - pub fn entry(&self) -> GameItemTemplateEntryUnique<'ctx> { - GameItemTemplateEntryUnique { - imp: self.imp.get_unique_constraint::("entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameItemTemplateEntryUnique<'ctx> { - /// Find the subscribed row whose `entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_item_template"); - _table.add_unique_constraint::("entry", |row| &row.entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ItemTemplate`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_item_templateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ItemTemplate`. - fn game_item_template(&self) -> __sdk::__query_builder::Table; -} - -impl game_item_templateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_item_template(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_item_template") - } -} diff --git a/gateway/src/stdb/bindings/game_item_text_table.rs b/gateway/src/stdb/bindings/game_item_text_table.rs deleted file mode 100644 index 189e043e2..000000000 --- a/gateway/src/stdb/bindings/game_item_text_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::item_text_type::ItemText; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_item_text`. -/// -/// Obtain a handle from the [`GameItemTextTableAccess::game_item_text`] method on [`super::RemoteTables`], -/// like `ctx.db.game_item_text()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_text().on_insert(...)`. -pub struct GameItemTextTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_item_text`. -pub struct GameItemTextTableAccessor; - -impl __sdk::TableAccessor for GameItemTextTableAccessor { - type Row = ItemText; - type Handle<'db> = GameItemTextTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_item_text() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_item_text`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameItemTextTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameItemTextTableHandle`], which mediates access to the table `game_item_text`. - fn game_item_text(&self) -> GameItemTextTableHandle<'_>; -} - -impl GameItemTextTableAccess for super::RemoteTables { - fn game_item_text(&self) -> GameItemTextTableHandle<'_> { - GameItemTextTableHandle { - imp: self.imp.get_table::("game_item_text"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameItemTextInsertCallbackId(__sdk::CallbackId); -pub struct GameItemTextDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameItemTextTableHandle<'ctx> { - type Row = ItemText; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameItemTextTableHandle<'ctx> { - type Row = ItemText; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameItemTextInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemTextInsertCallbackId { - GameItemTextInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemTextInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameItemTextDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemTextDeleteCallbackId { - GameItemTextDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemTextDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameItemTextTableHandle<'ctx> { - type InsertCallbackId = GameItemTextInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemTextInsertCallbackId { - GameItemTextInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameItemTextInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameItemTextTableHandle<'ctx> { - type DeleteCallbackId = GameItemTextDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameItemTextDeleteCallbackId { - GameItemTextDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameItemTextDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameItemTextUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameItemTextTableHandle<'ctx> { - type UpdateCallbackId = GameItemTextUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemTextUpdateCallbackId { - GameItemTextUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemTextUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameItemTextTableHandle<'ctx> { - type UpdateCallbackId = GameItemTextUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameItemTextUpdateCallbackId { - GameItemTextUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameItemTextUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_item_text`, -/// which allows point queries on the field of the same name -/// via the [`GameItemTextIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_item_text().id().find(...)`. -pub struct GameItemTextIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameItemTextTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_item_text`. - pub fn id(&self) -> GameItemTextIdUnique<'ctx> { - GameItemTextIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameItemTextIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_item_text"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ItemText`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_item_textQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ItemText`. - fn game_item_text(&self) -> __sdk::__query_builder::Table; -} - -impl game_item_textQueryTableAccess for __sdk::QueryTableAccessor { - fn game_item_text(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_item_text") - } -} diff --git a/gateway/src/stdb/bindings/game_level_stats_table.rs b/gateway/src/stdb/bindings/game_level_stats_table.rs deleted file mode 100644 index 07df0ff0d..000000000 --- a/gateway/src/stdb/bindings/game_level_stats_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::level_stats_type::LevelStats; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_level_stats`. -/// -/// Obtain a handle from the [`GameLevelStatsTableAccess::game_level_stats`] method on [`super::RemoteTables`], -/// like `ctx.db.game_level_stats()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_level_stats().on_insert(...)`. -pub struct GameLevelStatsTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_level_stats`. -pub struct GameLevelStatsTableAccessor; - -impl __sdk::TableAccessor for GameLevelStatsTableAccessor { - type Row = LevelStats; - type Handle<'db> = GameLevelStatsTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_level_stats() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_level_stats`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameLevelStatsTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameLevelStatsTableHandle`], which mediates access to the table `game_level_stats`. - fn game_level_stats(&self) -> GameLevelStatsTableHandle<'_>; -} - -impl GameLevelStatsTableAccess for super::RemoteTables { - fn game_level_stats(&self) -> GameLevelStatsTableHandle<'_> { - GameLevelStatsTableHandle { - imp: self.imp.get_table::("game_level_stats"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameLevelStatsInsertCallbackId(__sdk::CallbackId); -pub struct GameLevelStatsDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameLevelStatsTableHandle<'ctx> { - type Row = LevelStats; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameLevelStatsTableHandle<'ctx> { - type Row = LevelStats; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameLevelStatsInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLevelStatsInsertCallbackId { - GameLevelStatsInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLevelStatsInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameLevelStatsDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLevelStatsDeleteCallbackId { - GameLevelStatsDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLevelStatsDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameLevelStatsTableHandle<'ctx> { - type InsertCallbackId = GameLevelStatsInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLevelStatsInsertCallbackId { - GameLevelStatsInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLevelStatsInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameLevelStatsTableHandle<'ctx> { - type DeleteCallbackId = GameLevelStatsDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLevelStatsDeleteCallbackId { - GameLevelStatsDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLevelStatsDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameLevelStatsUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameLevelStatsTableHandle<'ctx> { - type UpdateCallbackId = GameLevelStatsUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLevelStatsUpdateCallbackId { - GameLevelStatsUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLevelStatsUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameLevelStatsTableHandle<'ctx> { - type UpdateCallbackId = GameLevelStatsUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLevelStatsUpdateCallbackId { - GameLevelStatsUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLevelStatsUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `race_class_level` unique index on the table `game_level_stats`, -/// which allows point queries on the field of the same name -/// via the [`GameLevelStatsRaceClassLevelUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_level_stats().race_class_level().find(...)`. -pub struct GameLevelStatsRaceClassLevelUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameLevelStatsTableHandle<'ctx> { - /// Get a handle on the `race_class_level` unique index on the table `game_level_stats`. - pub fn race_class_level(&self) -> GameLevelStatsRaceClassLevelUnique<'ctx> { - GameLevelStatsRaceClassLevelUnique { - imp: self.imp.get_unique_constraint::("race_class_level"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameLevelStatsRaceClassLevelUnique<'ctx> { - /// Find the subscribed row whose `race_class_level` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_level_stats"); - _table.add_unique_constraint::("race_class_level", |row| &row.race_class_level); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `LevelStats`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_level_statsQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `LevelStats`. - fn game_level_stats(&self) -> __sdk::__query_builder::Table; -} - -impl game_level_statsQueryTableAccess for __sdk::QueryTableAccessor { - fn game_level_stats(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_level_stats") - } -} diff --git a/gateway/src/stdb/bindings/game_levelup_event_table.rs b/gateway/src/stdb/bindings/game_levelup_event_table.rs deleted file mode 100644 index a17053429..000000000 --- a/gateway/src/stdb/bindings/game_levelup_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::levelup_event_type::LevelupEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_levelup_event`. -/// -/// Obtain a handle from the [`GameLevelupEventTableAccess::game_levelup_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_levelup_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_levelup_event().on_insert(...)`. -pub struct GameLevelupEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_levelup_event`. -pub struct GameLevelupEventTableAccessor; - -impl __sdk::TableAccessor for GameLevelupEventTableAccessor { - type Row = LevelupEvent; - type Handle<'db> = GameLevelupEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_levelup_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_levelup_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameLevelupEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameLevelupEventTableHandle`], which mediates access to the table `game_levelup_event`. - fn game_levelup_event(&self) -> GameLevelupEventTableHandle<'_>; -} - -impl GameLevelupEventTableAccess for super::RemoteTables { - fn game_levelup_event(&self) -> GameLevelupEventTableHandle<'_> { - GameLevelupEventTableHandle { - imp: self.imp.get_table::("game_levelup_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameLevelupEventInsertCallbackId(__sdk::CallbackId); -pub struct GameLevelupEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameLevelupEventTableHandle<'ctx> { - type Row = LevelupEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameLevelupEventTableHandle<'ctx> { - type Row = LevelupEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameLevelupEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLevelupEventInsertCallbackId { - GameLevelupEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLevelupEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameLevelupEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLevelupEventDeleteCallbackId { - GameLevelupEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLevelupEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameLevelupEventTableHandle<'ctx> { - type InsertCallbackId = GameLevelupEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLevelupEventInsertCallbackId { - GameLevelupEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLevelupEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameLevelupEventTableHandle<'ctx> { - type DeleteCallbackId = GameLevelupEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLevelupEventDeleteCallbackId { - GameLevelupEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLevelupEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameLevelupEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameLevelupEventTableHandle<'ctx> { - type UpdateCallbackId = GameLevelupEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLevelupEventUpdateCallbackId { - GameLevelupEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLevelupEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameLevelupEventTableHandle<'ctx> { - type UpdateCallbackId = GameLevelupEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLevelupEventUpdateCallbackId { - GameLevelupEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLevelupEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_levelup_event`, -/// which allows point queries on the field of the same name -/// via the [`GameLevelupEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_levelup_event().id().find(...)`. -pub struct GameLevelupEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameLevelupEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_levelup_event`. - pub fn id(&self) -> GameLevelupEventIdUnique<'ctx> { - GameLevelupEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameLevelupEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_levelup_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `LevelupEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_levelup_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `LevelupEvent`. - fn game_levelup_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_levelup_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_levelup_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_levelup_event") - } -} diff --git a/gateway/src/stdb/bindings/game_live_pet_kind_table.rs b/gateway/src/stdb/bindings/game_live_pet_kind_table.rs deleted file mode 100644 index b94980608..000000000 --- a/gateway/src/stdb/bindings/game_live_pet_kind_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::live_pet_kind_type::LivePetKind; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_live_pet_kind`. -/// -/// Obtain a handle from the [`GameLivePetKindTableAccess::game_live_pet_kind`] method on [`super::RemoteTables`], -/// like `ctx.db.game_live_pet_kind()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_live_pet_kind().on_insert(...)`. -pub struct GameLivePetKindTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_live_pet_kind`. -pub struct GameLivePetKindTableAccessor; - -impl __sdk::TableAccessor for GameLivePetKindTableAccessor { - type Row = LivePetKind; - type Handle<'db> = GameLivePetKindTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_live_pet_kind() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_live_pet_kind`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameLivePetKindTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameLivePetKindTableHandle`], which mediates access to the table `game_live_pet_kind`. - fn game_live_pet_kind(&self) -> GameLivePetKindTableHandle<'_>; -} - -impl GameLivePetKindTableAccess for super::RemoteTables { - fn game_live_pet_kind(&self) -> GameLivePetKindTableHandle<'_> { - GameLivePetKindTableHandle { - imp: self.imp.get_table::("game_live_pet_kind"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameLivePetKindInsertCallbackId(__sdk::CallbackId); -pub struct GameLivePetKindDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameLivePetKindTableHandle<'ctx> { - type Row = LivePetKind; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameLivePetKindTableHandle<'ctx> { - type Row = LivePetKind; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameLivePetKindInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLivePetKindInsertCallbackId { - GameLivePetKindInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLivePetKindInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameLivePetKindDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLivePetKindDeleteCallbackId { - GameLivePetKindDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLivePetKindDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameLivePetKindTableHandle<'ctx> { - type InsertCallbackId = GameLivePetKindInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLivePetKindInsertCallbackId { - GameLivePetKindInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLivePetKindInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameLivePetKindTableHandle<'ctx> { - type DeleteCallbackId = GameLivePetKindDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLivePetKindDeleteCallbackId { - GameLivePetKindDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLivePetKindDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameLivePetKindUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameLivePetKindTableHandle<'ctx> { - type UpdateCallbackId = GameLivePetKindUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLivePetKindUpdateCallbackId { - GameLivePetKindUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLivePetKindUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameLivePetKindTableHandle<'ctx> { - type UpdateCallbackId = GameLivePetKindUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLivePetKindUpdateCallbackId { - GameLivePetKindUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLivePetKindUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `pet_guid` unique index on the table `game_live_pet_kind`, -/// which allows point queries on the field of the same name -/// via the [`GameLivePetKindPetGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_live_pet_kind().pet_guid().find(...)`. -pub struct GameLivePetKindPetGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameLivePetKindTableHandle<'ctx> { - /// Get a handle on the `pet_guid` unique index on the table `game_live_pet_kind`. - pub fn pet_guid(&self) -> GameLivePetKindPetGuidUnique<'ctx> { - GameLivePetKindPetGuidUnique { - imp: self.imp.get_unique_constraint::("pet_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameLivePetKindPetGuidUnique<'ctx> { - /// Find the subscribed row whose `pet_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_live_pet_kind"); - _table.add_unique_constraint::("pet_guid", |row| &row.pet_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `LivePetKind`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_live_pet_kindQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `LivePetKind`. - fn game_live_pet_kind(&self) -> __sdk::__query_builder::Table; -} - -impl game_live_pet_kindQueryTableAccess for __sdk::QueryTableAccessor { - fn game_live_pet_kind(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_live_pet_kind") - } -} diff --git a/gateway/src/stdb/bindings/game_lock_table.rs b/gateway/src/stdb/bindings/game_lock_table.rs deleted file mode 100644 index 5cea6a2c6..000000000 --- a/gateway/src/stdb/bindings/game_lock_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_lock_type::GameLock; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_lock`. -/// -/// Obtain a handle from the [`GameLockTableAccess::game_lock`] method on [`super::RemoteTables`], -/// like `ctx.db.game_lock()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_lock().on_insert(...)`. -pub struct GameLockTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_lock`. -pub struct GameLockTableAccessor; - -impl __sdk::TableAccessor for GameLockTableAccessor { - type Row = GameLock; - type Handle<'db> = GameLockTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_lock() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_lock`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameLockTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameLockTableHandle`], which mediates access to the table `game_lock`. - fn game_lock(&self) -> GameLockTableHandle<'_>; -} - -impl GameLockTableAccess for super::RemoteTables { - fn game_lock(&self) -> GameLockTableHandle<'_> { - GameLockTableHandle { - imp: self.imp.get_table::("game_lock"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameLockInsertCallbackId(__sdk::CallbackId); -pub struct GameLockDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameLockTableHandle<'ctx> { - type Row = GameLock; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameLockTableHandle<'ctx> { - type Row = GameLock; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameLockInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLockInsertCallbackId { - GameLockInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLockInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameLockDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLockDeleteCallbackId { - GameLockDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLockDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameLockTableHandle<'ctx> { - type InsertCallbackId = GameLockInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLockInsertCallbackId { - GameLockInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLockInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameLockTableHandle<'ctx> { - type DeleteCallbackId = GameLockDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLockDeleteCallbackId { - GameLockDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLockDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameLockUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameLockTableHandle<'ctx> { - type UpdateCallbackId = GameLockUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLockUpdateCallbackId { - GameLockUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLockUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameLockTableHandle<'ctx> { - type UpdateCallbackId = GameLockUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLockUpdateCallbackId { - GameLockUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLockUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_lock`, -/// which allows point queries on the field of the same name -/// via the [`GameLockIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_lock().id().find(...)`. -pub struct GameLockIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameLockTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_lock`. - pub fn id(&self) -> GameLockIdUnique<'ctx> { - GameLockIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameLockIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_lock"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GameLock`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_lockQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GameLock`. - fn game_lock(&self) -> __sdk::__query_builder::Table; -} - -impl game_lockQueryTableAccess for __sdk::QueryTableAccessor { - fn game_lock(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_lock") - } -} diff --git a/gateway/src/stdb/bindings/game_lock_type.rs b/gateway/src/stdb/bindings/game_lock_type.rs deleted file mode 100644 index 364c75bbe..000000000 --- a/gateway/src/stdb/bindings/game_lock_type.rs +++ /dev/null @@ -1,66 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameLock { - pub id: u64, - pub lock_id: u32, - pub index: u8, - pub kind: u8, - pub property: u32, - pub required_skill: u32, -} - -impl __sdk::InModule for GameLock { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameLock`. -/// -/// Provides typed access to columns for query building. -pub struct GameLockCols { - pub id: __sdk::__query_builder::Col, - pub lock_id: __sdk::__query_builder::Col, - pub index: __sdk::__query_builder::Col, - pub kind: __sdk::__query_builder::Col, - pub property: __sdk::__query_builder::Col, - pub required_skill: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameLock { - type Cols = GameLockCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameLockCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - lock_id: __sdk::__query_builder::Col::new(table_name, "lock_id"), - index: __sdk::__query_builder::Col::new(table_name, "index"), - kind: __sdk::__query_builder::Col::new(table_name, "kind"), - property: __sdk::__query_builder::Col::new(table_name, "property"), - required_skill: __sdk::__query_builder::Col::new(table_name, "required_skill"), - } - } -} - -/// Indexed column accessor struct for the table `GameLock`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameLockIxCols { - pub id: __sdk::__query_builder::IxCol, - pub lock_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameLock { - type IxCols = GameLockIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameLockIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - lock_id: __sdk::__query_builder::IxCol::new(table_name, "lock_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameLock {} diff --git a/gateway/src/stdb/bindings/game_loot_roll_promotion_receipt_table.rs b/gateway/src/stdb/bindings/game_loot_roll_promotion_receipt_table.rs deleted file mode 100644 index 9cd4ab445..000000000 --- a/gateway/src/stdb/bindings/game_loot_roll_promotion_receipt_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::loot_roll_promotion_receipt_type::LootRollPromotionReceipt; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_loot_roll_promotion_receipt`. -/// -/// Obtain a handle from the [`GameLootRollPromotionReceiptTableAccess::game_loot_roll_promotion_receipt`] method on [`super::RemoteTables`], -/// like `ctx.db.game_loot_roll_promotion_receipt()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_loot_roll_promotion_receipt().on_insert(...)`. -pub struct GameLootRollPromotionReceiptTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_loot_roll_promotion_receipt`. -pub struct GameLootRollPromotionReceiptTableAccessor; - -impl __sdk::TableAccessor for GameLootRollPromotionReceiptTableAccessor { - type Row = LootRollPromotionReceipt; - type Handle<'db> = GameLootRollPromotionReceiptTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_loot_roll_promotion_receipt() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_loot_roll_promotion_receipt`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameLootRollPromotionReceiptTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameLootRollPromotionReceiptTableHandle`], which mediates access to the table `game_loot_roll_promotion_receipt`. - fn game_loot_roll_promotion_receipt(&self) -> GameLootRollPromotionReceiptTableHandle<'_>; -} - -impl GameLootRollPromotionReceiptTableAccess for super::RemoteTables { - fn game_loot_roll_promotion_receipt(&self) -> GameLootRollPromotionReceiptTableHandle<'_> { - GameLootRollPromotionReceiptTableHandle { - imp: self - .imp - .get_table::("game_loot_roll_promotion_receipt"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameLootRollPromotionReceiptInsertCallbackId(__sdk::CallbackId); -pub struct GameLootRollPromotionReceiptDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameLootRollPromotionReceiptTableHandle<'ctx> { - type Row = LootRollPromotionReceipt; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameLootRollPromotionReceiptTableHandle<'ctx> { - type Row = LootRollPromotionReceipt; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameLootRollPromotionReceiptInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollPromotionReceiptInsertCallbackId { - GameLootRollPromotionReceiptInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLootRollPromotionReceiptInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameLootRollPromotionReceiptDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollPromotionReceiptDeleteCallbackId { - GameLootRollPromotionReceiptDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLootRollPromotionReceiptDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameLootRollPromotionReceiptTableHandle<'ctx> { - type InsertCallbackId = GameLootRollPromotionReceiptInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollPromotionReceiptInsertCallbackId { - GameLootRollPromotionReceiptInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLootRollPromotionReceiptInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameLootRollPromotionReceiptTableHandle<'ctx> { - type DeleteCallbackId = GameLootRollPromotionReceiptDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollPromotionReceiptDeleteCallbackId { - GameLootRollPromotionReceiptDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLootRollPromotionReceiptDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameLootRollPromotionReceiptUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameLootRollPromotionReceiptTableHandle<'ctx> { - type UpdateCallbackId = GameLootRollPromotionReceiptUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLootRollPromotionReceiptUpdateCallbackId { - GameLootRollPromotionReceiptUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLootRollPromotionReceiptUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameLootRollPromotionReceiptTableHandle<'ctx> { - type UpdateCallbackId = GameLootRollPromotionReceiptUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLootRollPromotionReceiptUpdateCallbackId { - GameLootRollPromotionReceiptUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLootRollPromotionReceiptUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_loot_roll_promotion_receipt`, -/// which allows point queries on the field of the same name -/// via the [`GameLootRollPromotionReceiptIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_loot_roll_promotion_receipt().id().find(...)`. -pub struct GameLootRollPromotionReceiptIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameLootRollPromotionReceiptTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_loot_roll_promotion_receipt`. - pub fn id(&self) -> GameLootRollPromotionReceiptIdUnique<'ctx> { - GameLootRollPromotionReceiptIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameLootRollPromotionReceiptIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_loot_roll_promotion_receipt"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `LootRollPromotionReceipt`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_loot_roll_promotion_receiptQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `LootRollPromotionReceipt`. - fn game_loot_roll_promotion_receipt( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_loot_roll_promotion_receiptQueryTableAccess for __sdk::QueryTableAccessor { - fn game_loot_roll_promotion_receipt( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_loot_roll_promotion_receipt") - } -} diff --git a/gateway/src/stdb/bindings/game_loot_roll_table.rs b/gateway/src/stdb/bindings/game_loot_roll_table.rs deleted file mode 100644 index 5200279c3..000000000 --- a/gateway/src/stdb/bindings/game_loot_roll_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::loot_roll_type::LootRoll; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_loot_roll`. -/// -/// Obtain a handle from the [`GameLootRollTableAccess::game_loot_roll`] method on [`super::RemoteTables`], -/// like `ctx.db.game_loot_roll()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_loot_roll().on_insert(...)`. -pub struct GameLootRollTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_loot_roll`. -pub struct GameLootRollTableAccessor; - -impl __sdk::TableAccessor for GameLootRollTableAccessor { - type Row = LootRoll; - type Handle<'db> = GameLootRollTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_loot_roll() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_loot_roll`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameLootRollTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameLootRollTableHandle`], which mediates access to the table `game_loot_roll`. - fn game_loot_roll(&self) -> GameLootRollTableHandle<'_>; -} - -impl GameLootRollTableAccess for super::RemoteTables { - fn game_loot_roll(&self) -> GameLootRollTableHandle<'_> { - GameLootRollTableHandle { - imp: self.imp.get_table::("game_loot_roll"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameLootRollInsertCallbackId(__sdk::CallbackId); -pub struct GameLootRollDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameLootRollTableHandle<'ctx> { - type Row = LootRoll; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameLootRollTableHandle<'ctx> { - type Row = LootRoll; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameLootRollInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollInsertCallbackId { - GameLootRollInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLootRollInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameLootRollDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollDeleteCallbackId { - GameLootRollDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLootRollDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameLootRollTableHandle<'ctx> { - type InsertCallbackId = GameLootRollInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollInsertCallbackId { - GameLootRollInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLootRollInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameLootRollTableHandle<'ctx> { - type DeleteCallbackId = GameLootRollDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollDeleteCallbackId { - GameLootRollDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLootRollDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameLootRollUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameLootRollTableHandle<'ctx> { - type UpdateCallbackId = GameLootRollUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLootRollUpdateCallbackId { - GameLootRollUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLootRollUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameLootRollTableHandle<'ctx> { - type UpdateCallbackId = GameLootRollUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLootRollUpdateCallbackId { - GameLootRollUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLootRollUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_loot_roll`, -/// which allows point queries on the field of the same name -/// via the [`GameLootRollIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_loot_roll().id().find(...)`. -pub struct GameLootRollIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameLootRollTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_loot_roll`. - pub fn id(&self) -> GameLootRollIdUnique<'ctx> { - GameLootRollIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameLootRollIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_loot_roll"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `LootRoll`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_loot_rollQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `LootRoll`. - fn game_loot_roll(&self) -> __sdk::__query_builder::Table; -} - -impl game_loot_rollQueryTableAccess for __sdk::QueryTableAccessor { - fn game_loot_roll(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_loot_roll") - } -} diff --git a/gateway/src/stdb/bindings/game_loot_roll_vote_table.rs b/gateway/src/stdb/bindings/game_loot_roll_vote_table.rs deleted file mode 100644 index bae7cada1..000000000 --- a/gateway/src/stdb/bindings/game_loot_roll_vote_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::loot_roll_vote_type::LootRollVote; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_loot_roll_vote`. -/// -/// Obtain a handle from the [`GameLootRollVoteTableAccess::game_loot_roll_vote`] method on [`super::RemoteTables`], -/// like `ctx.db.game_loot_roll_vote()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_loot_roll_vote().on_insert(...)`. -pub struct GameLootRollVoteTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_loot_roll_vote`. -pub struct GameLootRollVoteTableAccessor; - -impl __sdk::TableAccessor for GameLootRollVoteTableAccessor { - type Row = LootRollVote; - type Handle<'db> = GameLootRollVoteTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_loot_roll_vote() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_loot_roll_vote`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameLootRollVoteTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameLootRollVoteTableHandle`], which mediates access to the table `game_loot_roll_vote`. - fn game_loot_roll_vote(&self) -> GameLootRollVoteTableHandle<'_>; -} - -impl GameLootRollVoteTableAccess for super::RemoteTables { - fn game_loot_roll_vote(&self) -> GameLootRollVoteTableHandle<'_> { - GameLootRollVoteTableHandle { - imp: self.imp.get_table::("game_loot_roll_vote"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameLootRollVoteInsertCallbackId(__sdk::CallbackId); -pub struct GameLootRollVoteDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameLootRollVoteTableHandle<'ctx> { - type Row = LootRollVote; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameLootRollVoteTableHandle<'ctx> { - type Row = LootRollVote; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameLootRollVoteInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollVoteInsertCallbackId { - GameLootRollVoteInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLootRollVoteInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameLootRollVoteDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollVoteDeleteCallbackId { - GameLootRollVoteDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLootRollVoteDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameLootRollVoteTableHandle<'ctx> { - type InsertCallbackId = GameLootRollVoteInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollVoteInsertCallbackId { - GameLootRollVoteInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameLootRollVoteInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameLootRollVoteTableHandle<'ctx> { - type DeleteCallbackId = GameLootRollVoteDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameLootRollVoteDeleteCallbackId { - GameLootRollVoteDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameLootRollVoteDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameLootRollVoteUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameLootRollVoteTableHandle<'ctx> { - type UpdateCallbackId = GameLootRollVoteUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLootRollVoteUpdateCallbackId { - GameLootRollVoteUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLootRollVoteUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameLootRollVoteTableHandle<'ctx> { - type UpdateCallbackId = GameLootRollVoteUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameLootRollVoteUpdateCallbackId { - GameLootRollVoteUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameLootRollVoteUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_loot_roll_vote`, -/// which allows point queries on the field of the same name -/// via the [`GameLootRollVoteIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_loot_roll_vote().id().find(...)`. -pub struct GameLootRollVoteIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameLootRollVoteTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_loot_roll_vote`. - pub fn id(&self) -> GameLootRollVoteIdUnique<'ctx> { - GameLootRollVoteIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameLootRollVoteIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_loot_roll_vote"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `LootRollVote`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_loot_roll_voteQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `LootRollVote`. - fn game_loot_roll_vote(&self) -> __sdk::__query_builder::Table; -} - -impl game_loot_roll_voteQueryTableAccess for __sdk::QueryTableAccessor { - fn game_loot_roll_vote(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_loot_roll_vote") - } -} diff --git a/gateway/src/stdb/bindings/game_mail_arrival_table.rs b/gateway/src/stdb/bindings/game_mail_arrival_table.rs deleted file mode 100644 index 8d2754197..000000000 --- a/gateway/src/stdb/bindings/game_mail_arrival_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::mail_arrival_type::MailArrival; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_mail_arrival`. -/// -/// Obtain a handle from the [`GameMailArrivalTableAccess::game_mail_arrival`] method on [`super::RemoteTables`], -/// like `ctx.db.game_mail_arrival()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_arrival().on_insert(...)`. -pub struct GameMailArrivalTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_mail_arrival`. -pub struct GameMailArrivalTableAccessor; - -impl __sdk::TableAccessor for GameMailArrivalTableAccessor { - type Row = MailArrival; - type Handle<'db> = GameMailArrivalTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_mail_arrival() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_mail_arrival`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMailArrivalTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMailArrivalTableHandle`], which mediates access to the table `game_mail_arrival`. - fn game_mail_arrival(&self) -> GameMailArrivalTableHandle<'_>; -} - -impl GameMailArrivalTableAccess for super::RemoteTables { - fn game_mail_arrival(&self) -> GameMailArrivalTableHandle<'_> { - GameMailArrivalTableHandle { - imp: self.imp.get_table::("game_mail_arrival"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMailArrivalInsertCallbackId(__sdk::CallbackId); -pub struct GameMailArrivalDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMailArrivalTableHandle<'ctx> { - type Row = MailArrival; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMailArrivalTableHandle<'ctx> { - type Row = MailArrival; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMailArrivalInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailArrivalInsertCallbackId { - GameMailArrivalInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailArrivalInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMailArrivalDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailArrivalDeleteCallbackId { - GameMailArrivalDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailArrivalDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMailArrivalTableHandle<'ctx> { - type InsertCallbackId = GameMailArrivalInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailArrivalInsertCallbackId { - GameMailArrivalInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailArrivalInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMailArrivalTableHandle<'ctx> { - type DeleteCallbackId = GameMailArrivalDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailArrivalDeleteCallbackId { - GameMailArrivalDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailArrivalDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMailArrivalUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMailArrivalTableHandle<'ctx> { - type UpdateCallbackId = GameMailArrivalUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailArrivalUpdateCallbackId { - GameMailArrivalUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailArrivalUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMailArrivalTableHandle<'ctx> { - type UpdateCallbackId = GameMailArrivalUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailArrivalUpdateCallbackId { - GameMailArrivalUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailArrivalUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_mail_arrival`, -/// which allows point queries on the field of the same name -/// via the [`GameMailArrivalIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_arrival().id().find(...)`. -pub struct GameMailArrivalIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailArrivalTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_mail_arrival`. - pub fn id(&self) -> GameMailArrivalIdUnique<'ctx> { - GameMailArrivalIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailArrivalIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_mail_arrival"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MailArrival`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_mail_arrivalQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MailArrival`. - fn game_mail_arrival(&self) -> __sdk::__query_builder::Table; -} - -impl game_mail_arrivalQueryTableAccess for __sdk::QueryTableAccessor { - fn game_mail_arrival(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_mail_arrival") - } -} diff --git a/gateway/src/stdb/bindings/game_mail_delivery_table.rs b/gateway/src/stdb/bindings/game_mail_delivery_table.rs deleted file mode 100644 index 11e23f046..000000000 --- a/gateway/src/stdb/bindings/game_mail_delivery_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::mail_delivery_type::MailDelivery; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_mail_delivery`. -/// -/// Obtain a handle from the [`GameMailDeliveryTableAccess::game_mail_delivery`] method on [`super::RemoteTables`], -/// like `ctx.db.game_mail_delivery()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_delivery().on_insert(...)`. -pub struct GameMailDeliveryTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_mail_delivery`. -pub struct GameMailDeliveryTableAccessor; - -impl __sdk::TableAccessor for GameMailDeliveryTableAccessor { - type Row = MailDelivery; - type Handle<'db> = GameMailDeliveryTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_mail_delivery() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_mail_delivery`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMailDeliveryTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMailDeliveryTableHandle`], which mediates access to the table `game_mail_delivery`. - fn game_mail_delivery(&self) -> GameMailDeliveryTableHandle<'_>; -} - -impl GameMailDeliveryTableAccess for super::RemoteTables { - fn game_mail_delivery(&self) -> GameMailDeliveryTableHandle<'_> { - GameMailDeliveryTableHandle { - imp: self.imp.get_table::("game_mail_delivery"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMailDeliveryInsertCallbackId(__sdk::CallbackId); -pub struct GameMailDeliveryDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMailDeliveryTableHandle<'ctx> { - type Row = MailDelivery; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMailDeliveryTableHandle<'ctx> { - type Row = MailDelivery; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMailDeliveryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailDeliveryInsertCallbackId { - GameMailDeliveryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailDeliveryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMailDeliveryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailDeliveryDeleteCallbackId { - GameMailDeliveryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailDeliveryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMailDeliveryTableHandle<'ctx> { - type InsertCallbackId = GameMailDeliveryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailDeliveryInsertCallbackId { - GameMailDeliveryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailDeliveryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMailDeliveryTableHandle<'ctx> { - type DeleteCallbackId = GameMailDeliveryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailDeliveryDeleteCallbackId { - GameMailDeliveryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailDeliveryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMailDeliveryUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMailDeliveryTableHandle<'ctx> { - type UpdateCallbackId = GameMailDeliveryUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailDeliveryUpdateCallbackId { - GameMailDeliveryUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailDeliveryUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMailDeliveryTableHandle<'ctx> { - type UpdateCallbackId = GameMailDeliveryUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailDeliveryUpdateCallbackId { - GameMailDeliveryUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailDeliveryUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `escrow_id` unique index on the table `game_mail_delivery`, -/// which allows point queries on the field of the same name -/// via the [`GameMailDeliveryEscrowIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_delivery().escrow_id().find(...)`. -pub struct GameMailDeliveryEscrowIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailDeliveryTableHandle<'ctx> { - /// Get a handle on the `escrow_id` unique index on the table `game_mail_delivery`. - pub fn escrow_id(&self) -> GameMailDeliveryEscrowIdUnique<'ctx> { - GameMailDeliveryEscrowIdUnique { - imp: self.imp.get_unique_constraint::("escrow_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailDeliveryEscrowIdUnique<'ctx> { - /// Find the subscribed row whose `escrow_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_mail_delivery"); - _table.add_unique_constraint::("escrow_id", |row| &row.escrow_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MailDelivery`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_mail_deliveryQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MailDelivery`. - fn game_mail_delivery(&self) -> __sdk::__query_builder::Table; -} - -impl game_mail_deliveryQueryTableAccess for __sdk::QueryTableAccessor { - fn game_mail_delivery(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_mail_delivery") - } -} diff --git a/gateway/src/stdb/bindings/game_mail_escrow_reaper_schedule_table.rs b/gateway/src/stdb/bindings/game_mail_escrow_reaper_schedule_table.rs deleted file mode 100644 index fc58594c3..000000000 --- a/gateway/src/stdb/bindings/game_mail_escrow_reaper_schedule_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::mail_escrow_reaper_schedule_type::MailEscrowReaperSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_mail_escrow_reaper_schedule`. -/// -/// Obtain a handle from the [`GameMailEscrowReaperScheduleTableAccess::game_mail_escrow_reaper_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_mail_escrow_reaper_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_escrow_reaper_schedule().on_insert(...)`. -pub struct GameMailEscrowReaperScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_mail_escrow_reaper_schedule`. -pub struct GameMailEscrowReaperScheduleTableAccessor; - -impl __sdk::TableAccessor for GameMailEscrowReaperScheduleTableAccessor { - type Row = MailEscrowReaperSchedule; - type Handle<'db> = GameMailEscrowReaperScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_mail_escrow_reaper_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_mail_escrow_reaper_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMailEscrowReaperScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMailEscrowReaperScheduleTableHandle`], which mediates access to the table `game_mail_escrow_reaper_schedule`. - fn game_mail_escrow_reaper_schedule(&self) -> GameMailEscrowReaperScheduleTableHandle<'_>; -} - -impl GameMailEscrowReaperScheduleTableAccess for super::RemoteTables { - fn game_mail_escrow_reaper_schedule(&self) -> GameMailEscrowReaperScheduleTableHandle<'_> { - GameMailEscrowReaperScheduleTableHandle { - imp: self - .imp - .get_table::("game_mail_escrow_reaper_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMailEscrowReaperScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameMailEscrowReaperScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMailEscrowReaperScheduleTableHandle<'ctx> { - type Row = MailEscrowReaperSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMailEscrowReaperScheduleTableHandle<'ctx> { - type Row = MailEscrowReaperSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMailEscrowReaperScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailEscrowReaperScheduleInsertCallbackId { - GameMailEscrowReaperScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailEscrowReaperScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMailEscrowReaperScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailEscrowReaperScheduleDeleteCallbackId { - GameMailEscrowReaperScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailEscrowReaperScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMailEscrowReaperScheduleTableHandle<'ctx> { - type InsertCallbackId = GameMailEscrowReaperScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailEscrowReaperScheduleInsertCallbackId { - GameMailEscrowReaperScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailEscrowReaperScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMailEscrowReaperScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameMailEscrowReaperScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailEscrowReaperScheduleDeleteCallbackId { - GameMailEscrowReaperScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailEscrowReaperScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMailEscrowReaperScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMailEscrowReaperScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameMailEscrowReaperScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailEscrowReaperScheduleUpdateCallbackId { - GameMailEscrowReaperScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailEscrowReaperScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMailEscrowReaperScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameMailEscrowReaperScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailEscrowReaperScheduleUpdateCallbackId { - GameMailEscrowReaperScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailEscrowReaperScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_mail_escrow_reaper_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameMailEscrowReaperScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_escrow_reaper_schedule().scheduled_id().find(...)`. -pub struct GameMailEscrowReaperScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailEscrowReaperScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_mail_escrow_reaper_schedule`. - pub fn scheduled_id(&self) -> GameMailEscrowReaperScheduleScheduledIdUnique<'ctx> { - GameMailEscrowReaperScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailEscrowReaperScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_mail_escrow_reaper_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MailEscrowReaperSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_mail_escrow_reaper_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MailEscrowReaperSchedule`. - fn game_mail_escrow_reaper_schedule( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_mail_escrow_reaper_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_mail_escrow_reaper_schedule( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_mail_escrow_reaper_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_mail_escrow_table.rs b/gateway/src/stdb/bindings/game_mail_escrow_table.rs deleted file mode 100644 index 4656f096e..000000000 --- a/gateway/src/stdb/bindings/game_mail_escrow_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::mail_escrow_type::MailEscrow; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_mail_escrow`. -/// -/// Obtain a handle from the [`GameMailEscrowTableAccess::game_mail_escrow`] method on [`super::RemoteTables`], -/// like `ctx.db.game_mail_escrow()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_escrow().on_insert(...)`. -pub struct GameMailEscrowTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_mail_escrow`. -pub struct GameMailEscrowTableAccessor; - -impl __sdk::TableAccessor for GameMailEscrowTableAccessor { - type Row = MailEscrow; - type Handle<'db> = GameMailEscrowTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_mail_escrow() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_mail_escrow`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMailEscrowTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMailEscrowTableHandle`], which mediates access to the table `game_mail_escrow`. - fn game_mail_escrow(&self) -> GameMailEscrowTableHandle<'_>; -} - -impl GameMailEscrowTableAccess for super::RemoteTables { - fn game_mail_escrow(&self) -> GameMailEscrowTableHandle<'_> { - GameMailEscrowTableHandle { - imp: self.imp.get_table::("game_mail_escrow"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMailEscrowInsertCallbackId(__sdk::CallbackId); -pub struct GameMailEscrowDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMailEscrowTableHandle<'ctx> { - type Row = MailEscrow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMailEscrowTableHandle<'ctx> { - type Row = MailEscrow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMailEscrowInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailEscrowInsertCallbackId { - GameMailEscrowInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailEscrowInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMailEscrowDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailEscrowDeleteCallbackId { - GameMailEscrowDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailEscrowDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMailEscrowTableHandle<'ctx> { - type InsertCallbackId = GameMailEscrowInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailEscrowInsertCallbackId { - GameMailEscrowInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailEscrowInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMailEscrowTableHandle<'ctx> { - type DeleteCallbackId = GameMailEscrowDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailEscrowDeleteCallbackId { - GameMailEscrowDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailEscrowDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMailEscrowUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMailEscrowTableHandle<'ctx> { - type UpdateCallbackId = GameMailEscrowUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailEscrowUpdateCallbackId { - GameMailEscrowUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailEscrowUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMailEscrowTableHandle<'ctx> { - type UpdateCallbackId = GameMailEscrowUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailEscrowUpdateCallbackId { - GameMailEscrowUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailEscrowUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `escrow_id` unique index on the table `game_mail_escrow`, -/// which allows point queries on the field of the same name -/// via the [`GameMailEscrowEscrowIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_escrow().escrow_id().find(...)`. -pub struct GameMailEscrowEscrowIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailEscrowTableHandle<'ctx> { - /// Get a handle on the `escrow_id` unique index on the table `game_mail_escrow`. - pub fn escrow_id(&self) -> GameMailEscrowEscrowIdUnique<'ctx> { - GameMailEscrowEscrowIdUnique { - imp: self.imp.get_unique_constraint::("escrow_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailEscrowEscrowIdUnique<'ctx> { - /// Find the subscribed row whose `escrow_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_mail_escrow"); - _table.add_unique_constraint::("escrow_id", |row| &row.escrow_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MailEscrow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_mail_escrowQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MailEscrow`. - fn game_mail_escrow(&self) -> __sdk::__query_builder::Table; -} - -impl game_mail_escrowQueryTableAccess for __sdk::QueryTableAccessor { - fn game_mail_escrow(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_mail_escrow") - } -} diff --git a/gateway/src/stdb/bindings/game_mail_loot_table.rs b/gateway/src/stdb/bindings/game_mail_loot_table.rs deleted file mode 100644 index 17f247443..000000000 --- a/gateway/src/stdb/bindings/game_mail_loot_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::mail_loot_type::MailLoot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_mail_loot`. -/// -/// Obtain a handle from the [`GameMailLootTableAccess::game_mail_loot`] method on [`super::RemoteTables`], -/// like `ctx.db.game_mail_loot()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_loot().on_insert(...)`. -pub struct GameMailLootTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_mail_loot`. -pub struct GameMailLootTableAccessor; - -impl __sdk::TableAccessor for GameMailLootTableAccessor { - type Row = MailLoot; - type Handle<'db> = GameMailLootTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_mail_loot() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_mail_loot`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMailLootTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMailLootTableHandle`], which mediates access to the table `game_mail_loot`. - fn game_mail_loot(&self) -> GameMailLootTableHandle<'_>; -} - -impl GameMailLootTableAccess for super::RemoteTables { - fn game_mail_loot(&self) -> GameMailLootTableHandle<'_> { - GameMailLootTableHandle { - imp: self.imp.get_table::("game_mail_loot"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMailLootInsertCallbackId(__sdk::CallbackId); -pub struct GameMailLootDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMailLootTableHandle<'ctx> { - type Row = MailLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMailLootTableHandle<'ctx> { - type Row = MailLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMailLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailLootInsertCallbackId { - GameMailLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMailLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailLootDeleteCallbackId { - GameMailLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMailLootTableHandle<'ctx> { - type InsertCallbackId = GameMailLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailLootInsertCallbackId { - GameMailLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMailLootTableHandle<'ctx> { - type DeleteCallbackId = GameMailLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailLootDeleteCallbackId { - GameMailLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMailLootUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMailLootTableHandle<'ctx> { - type UpdateCallbackId = GameMailLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailLootUpdateCallbackId { - GameMailLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMailLootTableHandle<'ctx> { - type UpdateCallbackId = GameMailLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailLootUpdateCallbackId { - GameMailLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `mail_template_id` unique index on the table `game_mail_loot`, -/// which allows point queries on the field of the same name -/// via the [`GameMailLootMailTemplateIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_loot().mail_template_id().find(...)`. -pub struct GameMailLootMailTemplateIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailLootTableHandle<'ctx> { - /// Get a handle on the `mail_template_id` unique index on the table `game_mail_loot`. - pub fn mail_template_id(&self) -> GameMailLootMailTemplateIdUnique<'ctx> { - GameMailLootMailTemplateIdUnique { - imp: self.imp.get_unique_constraint::("mail_template_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailLootMailTemplateIdUnique<'ctx> { - /// Find the subscribed row whose `mail_template_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_mail_loot"); - _table.add_unique_constraint::("mail_template_id", |row| &row.mail_template_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MailLoot`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_mail_lootQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MailLoot`. - fn game_mail_loot(&self) -> __sdk::__query_builder::Table; -} - -impl game_mail_lootQueryTableAccess for __sdk::QueryTableAccessor { - fn game_mail_loot(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_mail_loot") - } -} diff --git a/gateway/src/stdb/bindings/game_mail_table.rs b/gateway/src/stdb/bindings/game_mail_table.rs deleted file mode 100644 index d5e6d3f7f..000000000 --- a/gateway/src/stdb/bindings/game_mail_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::mail_type::Mail; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_mail`. -/// -/// Obtain a handle from the [`GameMailTableAccess::game_mail`] method on [`super::RemoteTables`], -/// like `ctx.db.game_mail()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail().on_insert(...)`. -pub struct GameMailTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_mail`. -pub struct GameMailTableAccessor; - -impl __sdk::TableAccessor for GameMailTableAccessor { - type Row = Mail; - type Handle<'db> = GameMailTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_mail() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_mail`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMailTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMailTableHandle`], which mediates access to the table `game_mail`. - fn game_mail(&self) -> GameMailTableHandle<'_>; -} - -impl GameMailTableAccess for super::RemoteTables { - fn game_mail(&self) -> GameMailTableHandle<'_> { - GameMailTableHandle { - imp: self.imp.get_table::("game_mail"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMailInsertCallbackId(__sdk::CallbackId); -pub struct GameMailDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMailTableHandle<'ctx> { - type Row = Mail; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMailTableHandle<'ctx> { - type Row = Mail; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMailInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailInsertCallbackId { - GameMailInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMailDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailDeleteCallbackId { - GameMailDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMailTableHandle<'ctx> { - type InsertCallbackId = GameMailInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailInsertCallbackId { - GameMailInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMailTableHandle<'ctx> { - type DeleteCallbackId = GameMailDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailDeleteCallbackId { - GameMailDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMailUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMailTableHandle<'ctx> { - type UpdateCallbackId = GameMailUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailUpdateCallbackId { - GameMailUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMailTableHandle<'ctx> { - type UpdateCallbackId = GameMailUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailUpdateCallbackId { - GameMailUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_mail`, -/// which allows point queries on the field of the same name -/// via the [`GameMailIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail().id().find(...)`. -pub struct GameMailIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_mail`. - pub fn id(&self) -> GameMailIdUnique<'ctx> { - GameMailIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_mail"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Mail`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_mailQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Mail`. - fn game_mail(&self) -> __sdk::__query_builder::Table; -} - -impl game_mailQueryTableAccess for __sdk::QueryTableAccessor { - fn game_mail(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_mail") - } -} diff --git a/gateway/src/stdb/bindings/game_mail_template_table.rs b/gateway/src/stdb/bindings/game_mail_template_table.rs deleted file mode 100644 index 06c54905a..000000000 --- a/gateway/src/stdb/bindings/game_mail_template_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::mail_template_type::MailTemplate; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_mail_template`. -/// -/// Obtain a handle from the [`GameMailTemplateTableAccess::game_mail_template`] method on [`super::RemoteTables`], -/// like `ctx.db.game_mail_template()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_template().on_insert(...)`. -pub struct GameMailTemplateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_mail_template`. -pub struct GameMailTemplateTableAccessor; - -impl __sdk::TableAccessor for GameMailTemplateTableAccessor { - type Row = MailTemplate; - type Handle<'db> = GameMailTemplateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_mail_template() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_mail_template`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMailTemplateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMailTemplateTableHandle`], which mediates access to the table `game_mail_template`. - fn game_mail_template(&self) -> GameMailTemplateTableHandle<'_>; -} - -impl GameMailTemplateTableAccess for super::RemoteTables { - fn game_mail_template(&self) -> GameMailTemplateTableHandle<'_> { - GameMailTemplateTableHandle { - imp: self.imp.get_table::("game_mail_template"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMailTemplateInsertCallbackId(__sdk::CallbackId); -pub struct GameMailTemplateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMailTemplateTableHandle<'ctx> { - type Row = MailTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMailTemplateTableHandle<'ctx> { - type Row = MailTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMailTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailTemplateInsertCallbackId { - GameMailTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMailTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailTemplateDeleteCallbackId { - GameMailTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMailTemplateTableHandle<'ctx> { - type InsertCallbackId = GameMailTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailTemplateInsertCallbackId { - GameMailTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMailTemplateTableHandle<'ctx> { - type DeleteCallbackId = GameMailTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailTemplateDeleteCallbackId { - GameMailTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMailTemplateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMailTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameMailTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailTemplateUpdateCallbackId { - GameMailTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMailTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameMailTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailTemplateUpdateCallbackId { - GameMailTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_mail_template`, -/// which allows point queries on the field of the same name -/// via the [`GameMailTemplateIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_template().id().find(...)`. -pub struct GameMailTemplateIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailTemplateTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_mail_template`. - pub fn id(&self) -> GameMailTemplateIdUnique<'ctx> { - GameMailTemplateIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailTemplateIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_mail_template"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MailTemplate`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_mail_templateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MailTemplate`. - fn game_mail_template(&self) -> __sdk::__query_builder::Table; -} - -impl game_mail_templateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_mail_template(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_mail_template") - } -} diff --git a/gateway/src/stdb/bindings/game_mail_timer_table.rs b/gateway/src/stdb/bindings/game_mail_timer_table.rs deleted file mode 100644 index 4a514528f..000000000 --- a/gateway/src/stdb/bindings/game_mail_timer_table.rs +++ /dev/null @@ -1,259 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::mail_timer_type::MailTimer; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_mail_timer`. -/// -/// Obtain a handle from the [`GameMailTimerTableAccess::game_mail_timer`] method on [`super::RemoteTables`], -/// like `ctx.db.game_mail_timer()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_timer().on_insert(...)`. -pub struct GameMailTimerTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_mail_timer`. -pub struct GameMailTimerTableAccessor; - -impl __sdk::TableAccessor for GameMailTimerTableAccessor { - type Row = MailTimer; - type Handle<'db> = GameMailTimerTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_mail_timer() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_mail_timer`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMailTimerTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMailTimerTableHandle`], which mediates access to the table `game_mail_timer`. - fn game_mail_timer(&self) -> GameMailTimerTableHandle<'_>; -} - -impl GameMailTimerTableAccess for super::RemoteTables { - fn game_mail_timer(&self) -> GameMailTimerTableHandle<'_> { - GameMailTimerTableHandle { - imp: self.imp.get_table::("game_mail_timer"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMailTimerInsertCallbackId(__sdk::CallbackId); -pub struct GameMailTimerDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMailTimerTableHandle<'ctx> { - type Row = MailTimer; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMailTimerTableHandle<'ctx> { - type Row = MailTimer; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMailTimerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailTimerInsertCallbackId { - GameMailTimerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailTimerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMailTimerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailTimerDeleteCallbackId { - GameMailTimerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailTimerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMailTimerTableHandle<'ctx> { - type InsertCallbackId = GameMailTimerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailTimerInsertCallbackId { - GameMailTimerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMailTimerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMailTimerTableHandle<'ctx> { - type DeleteCallbackId = GameMailTimerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMailTimerDeleteCallbackId { - GameMailTimerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMailTimerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMailTimerUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMailTimerTableHandle<'ctx> { - type UpdateCallbackId = GameMailTimerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailTimerUpdateCallbackId { - GameMailTimerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailTimerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMailTimerTableHandle<'ctx> { - type UpdateCallbackId = GameMailTimerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMailTimerUpdateCallbackId { - GameMailTimerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMailTimerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_mail_timer`, -/// which allows point queries on the field of the same name -/// via the [`GameMailTimerScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_timer().scheduled_id().find(...)`. -pub struct GameMailTimerScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailTimerTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_mail_timer`. - pub fn scheduled_id(&self) -> GameMailTimerScheduledIdUnique<'ctx> { - GameMailTimerScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailTimerScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `mail_id` unique index on the table `game_mail_timer`, -/// which allows point queries on the field of the same name -/// via the [`GameMailTimerMailIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_mail_timer().mail_id().find(...)`. -pub struct GameMailTimerMailIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMailTimerTableHandle<'ctx> { - /// Get a handle on the `mail_id` unique index on the table `game_mail_timer`. - pub fn mail_id(&self) -> GameMailTimerMailIdUnique<'ctx> { - GameMailTimerMailIdUnique { - imp: self.imp.get_unique_constraint::("mail_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMailTimerMailIdUnique<'ctx> { - /// Find the subscribed row whose `mail_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_mail_timer"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); - _table.add_unique_constraint::("mail_id", |row| &row.mail_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MailTimer`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_mail_timerQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MailTimer`. - fn game_mail_timer(&self) -> __sdk::__query_builder::Table; -} - -impl game_mail_timerQueryTableAccess for __sdk::QueryTableAccessor { - fn game_mail_timer(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_mail_timer") - } -} diff --git a/gateway/src/stdb/bindings/game_map_region_table.rs b/gateway/src/stdb/bindings/game_map_region_table.rs deleted file mode 100644 index 53bebc167..000000000 --- a/gateway/src/stdb/bindings/game_map_region_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::map_region_type::MapRegion; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_map_region`. -/// -/// Obtain a handle from the [`GameMapRegionTableAccess::game_map_region`] method on [`super::RemoteTables`], -/// like `ctx.db.game_map_region()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_map_region().on_insert(...)`. -pub struct GameMapRegionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_map_region`. -pub struct GameMapRegionTableAccessor; - -impl __sdk::TableAccessor for GameMapRegionTableAccessor { - type Row = MapRegion; - type Handle<'db> = GameMapRegionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_map_region() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_map_region`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMapRegionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMapRegionTableHandle`], which mediates access to the table `game_map_region`. - fn game_map_region(&self) -> GameMapRegionTableHandle<'_>; -} - -impl GameMapRegionTableAccess for super::RemoteTables { - fn game_map_region(&self) -> GameMapRegionTableHandle<'_> { - GameMapRegionTableHandle { - imp: self.imp.get_table::("game_map_region"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMapRegionInsertCallbackId(__sdk::CallbackId); -pub struct GameMapRegionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMapRegionTableHandle<'ctx> { - type Row = MapRegion; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMapRegionTableHandle<'ctx> { - type Row = MapRegion; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMapRegionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMapRegionInsertCallbackId { - GameMapRegionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMapRegionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMapRegionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMapRegionDeleteCallbackId { - GameMapRegionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMapRegionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMapRegionTableHandle<'ctx> { - type InsertCallbackId = GameMapRegionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMapRegionInsertCallbackId { - GameMapRegionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMapRegionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMapRegionTableHandle<'ctx> { - type DeleteCallbackId = GameMapRegionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMapRegionDeleteCallbackId { - GameMapRegionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMapRegionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMapRegionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMapRegionTableHandle<'ctx> { - type UpdateCallbackId = GameMapRegionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMapRegionUpdateCallbackId { - GameMapRegionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMapRegionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMapRegionTableHandle<'ctx> { - type UpdateCallbackId = GameMapRegionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMapRegionUpdateCallbackId { - GameMapRegionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMapRegionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `key` unique index on the table `game_map_region`, -/// which allows point queries on the field of the same name -/// via the [`GameMapRegionKeyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_map_region().key().find(...)`. -pub struct GameMapRegionKeyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMapRegionTableHandle<'ctx> { - /// Get a handle on the `key` unique index on the table `game_map_region`. - pub fn key(&self) -> GameMapRegionKeyUnique<'ctx> { - GameMapRegionKeyUnique { - imp: self.imp.get_unique_constraint::("key"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMapRegionKeyUnique<'ctx> { - /// Find the subscribed row whose `key` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_map_region"); - _table.add_unique_constraint::("key", |row| &row.key); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MapRegion`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_map_regionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MapRegion`. - fn game_map_region(&self) -> __sdk::__query_builder::Table; -} - -impl game_map_regionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_map_region(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_map_region") - } -} diff --git a/gateway/src/stdb/bindings/game_meeting_stone_party_table.rs b/gateway/src/stdb/bindings/game_meeting_stone_party_table.rs deleted file mode 100644 index 57e259f6f..000000000 --- a/gateway/src/stdb/bindings/game_meeting_stone_party_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::meeting_stone_party_type::MeetingStoneParty; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_meeting_stone_party`. -/// -/// Obtain a handle from the [`GameMeetingStonePartyTableAccess::game_meeting_stone_party`] method on [`super::RemoteTables`], -/// like `ctx.db.game_meeting_stone_party()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_meeting_stone_party().on_insert(...)`. -pub struct GameMeetingStonePartyTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_meeting_stone_party`. -pub struct GameMeetingStonePartyTableAccessor; - -impl __sdk::TableAccessor for GameMeetingStonePartyTableAccessor { - type Row = MeetingStoneParty; - type Handle<'db> = GameMeetingStonePartyTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_meeting_stone_party() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_meeting_stone_party`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMeetingStonePartyTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMeetingStonePartyTableHandle`], which mediates access to the table `game_meeting_stone_party`. - fn game_meeting_stone_party(&self) -> GameMeetingStonePartyTableHandle<'_>; -} - -impl GameMeetingStonePartyTableAccess for super::RemoteTables { - fn game_meeting_stone_party(&self) -> GameMeetingStonePartyTableHandle<'_> { - GameMeetingStonePartyTableHandle { - imp: self - .imp - .get_table::("game_meeting_stone_party"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMeetingStonePartyInsertCallbackId(__sdk::CallbackId); -pub struct GameMeetingStonePartyDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMeetingStonePartyTableHandle<'ctx> { - type Row = MeetingStoneParty; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMeetingStonePartyTableHandle<'ctx> { - type Row = MeetingStoneParty; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMeetingStonePartyInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStonePartyInsertCallbackId { - GameMeetingStonePartyInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeetingStonePartyInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMeetingStonePartyDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStonePartyDeleteCallbackId { - GameMeetingStonePartyDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeetingStonePartyDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMeetingStonePartyTableHandle<'ctx> { - type InsertCallbackId = GameMeetingStonePartyInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStonePartyInsertCallbackId { - GameMeetingStonePartyInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeetingStonePartyInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMeetingStonePartyTableHandle<'ctx> { - type DeleteCallbackId = GameMeetingStonePartyDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStonePartyDeleteCallbackId { - GameMeetingStonePartyDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeetingStonePartyDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMeetingStonePartyUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMeetingStonePartyTableHandle<'ctx> { - type UpdateCallbackId = GameMeetingStonePartyUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeetingStonePartyUpdateCallbackId { - GameMeetingStonePartyUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeetingStonePartyUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMeetingStonePartyTableHandle<'ctx> { - type UpdateCallbackId = GameMeetingStonePartyUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeetingStonePartyUpdateCallbackId { - GameMeetingStonePartyUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeetingStonePartyUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `group_id` unique index on the table `game_meeting_stone_party`, -/// which allows point queries on the field of the same name -/// via the [`GameMeetingStonePartyGroupIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_meeting_stone_party().group_id().find(...)`. -pub struct GameMeetingStonePartyGroupIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMeetingStonePartyTableHandle<'ctx> { - /// Get a handle on the `group_id` unique index on the table `game_meeting_stone_party`. - pub fn group_id(&self) -> GameMeetingStonePartyGroupIdUnique<'ctx> { - GameMeetingStonePartyGroupIdUnique { - imp: self.imp.get_unique_constraint::("group_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMeetingStonePartyGroupIdUnique<'ctx> { - /// Find the subscribed row whose `group_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_meeting_stone_party"); - _table.add_unique_constraint::("group_id", |row| &row.group_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MeetingStoneParty`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_meeting_stone_partyQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MeetingStoneParty`. - fn game_meeting_stone_party(&self) -> __sdk::__query_builder::Table; -} - -impl game_meeting_stone_partyQueryTableAccess for __sdk::QueryTableAccessor { - fn game_meeting_stone_party(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_meeting_stone_party") - } -} diff --git a/gateway/src/stdb/bindings/game_meeting_stone_reminder_schedule_table.rs b/gateway/src/stdb/bindings/game_meeting_stone_reminder_schedule_table.rs deleted file mode 100644 index bb0d85827..000000000 --- a/gateway/src/stdb/bindings/game_meeting_stone_reminder_schedule_table.rs +++ /dev/null @@ -1,242 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::meeting_stone_reminder_schedule_type::MeetingStoneReminderSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_meeting_stone_reminder_schedule`. -/// -/// Obtain a handle from the [`GameMeetingStoneReminderScheduleTableAccess::game_meeting_stone_reminder_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_meeting_stone_reminder_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_meeting_stone_reminder_schedule().on_insert(...)`. -pub struct GameMeetingStoneReminderScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_meeting_stone_reminder_schedule`. -pub struct GameMeetingStoneReminderScheduleTableAccessor; - -impl __sdk::TableAccessor for GameMeetingStoneReminderScheduleTableAccessor { - type Row = MeetingStoneReminderSchedule; - type Handle<'db> = GameMeetingStoneReminderScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_meeting_stone_reminder_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_meeting_stone_reminder_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMeetingStoneReminderScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMeetingStoneReminderScheduleTableHandle`], which mediates access to the table `game_meeting_stone_reminder_schedule`. - fn game_meeting_stone_reminder_schedule( - &self, - ) -> GameMeetingStoneReminderScheduleTableHandle<'_>; -} - -impl GameMeetingStoneReminderScheduleTableAccess for super::RemoteTables { - fn game_meeting_stone_reminder_schedule( - &self, - ) -> GameMeetingStoneReminderScheduleTableHandle<'_> { - GameMeetingStoneReminderScheduleTableHandle { - imp: self - .imp - .get_table::("game_meeting_stone_reminder_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMeetingStoneReminderScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameMeetingStoneReminderScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMeetingStoneReminderScheduleTableHandle<'ctx> { - type Row = MeetingStoneReminderSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMeetingStoneReminderScheduleTableHandle<'ctx> { - type Row = MeetingStoneReminderSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMeetingStoneReminderScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneReminderScheduleInsertCallbackId { - GameMeetingStoneReminderScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeetingStoneReminderScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMeetingStoneReminderScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneReminderScheduleDeleteCallbackId { - GameMeetingStoneReminderScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeetingStoneReminderScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMeetingStoneReminderScheduleTableHandle<'ctx> { - type InsertCallbackId = GameMeetingStoneReminderScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneReminderScheduleInsertCallbackId { - GameMeetingStoneReminderScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeetingStoneReminderScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMeetingStoneReminderScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameMeetingStoneReminderScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneReminderScheduleDeleteCallbackId { - GameMeetingStoneReminderScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeetingStoneReminderScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMeetingStoneReminderScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMeetingStoneReminderScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameMeetingStoneReminderScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneReminderScheduleUpdateCallbackId { - GameMeetingStoneReminderScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeetingStoneReminderScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMeetingStoneReminderScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameMeetingStoneReminderScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneReminderScheduleUpdateCallbackId { - GameMeetingStoneReminderScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeetingStoneReminderScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_meeting_stone_reminder_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameMeetingStoneReminderScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_meeting_stone_reminder_schedule().scheduled_id().find(...)`. -pub struct GameMeetingStoneReminderScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMeetingStoneReminderScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_meeting_stone_reminder_schedule`. - pub fn scheduled_id(&self) -> GameMeetingStoneReminderScheduleScheduledIdUnique<'ctx> { - GameMeetingStoneReminderScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMeetingStoneReminderScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_meeting_stone_reminder_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse( - "TableUpdate", - "TableUpdate", - ) - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MeetingStoneReminderSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_meeting_stone_reminder_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MeetingStoneReminderSchedule`. - fn game_meeting_stone_reminder_schedule( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_meeting_stone_reminder_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_meeting_stone_reminder_schedule( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_meeting_stone_reminder_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_meeting_stone_seeker_table.rs b/gateway/src/stdb/bindings/game_meeting_stone_seeker_table.rs deleted file mode 100644 index ee7d594f4..000000000 --- a/gateway/src/stdb/bindings/game_meeting_stone_seeker_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::meeting_stone_seeker_type::MeetingStoneSeeker; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_meeting_stone_seeker`. -/// -/// Obtain a handle from the [`GameMeetingStoneSeekerTableAccess::game_meeting_stone_seeker`] method on [`super::RemoteTables`], -/// like `ctx.db.game_meeting_stone_seeker()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_meeting_stone_seeker().on_insert(...)`. -pub struct GameMeetingStoneSeekerTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_meeting_stone_seeker`. -pub struct GameMeetingStoneSeekerTableAccessor; - -impl __sdk::TableAccessor for GameMeetingStoneSeekerTableAccessor { - type Row = MeetingStoneSeeker; - type Handle<'db> = GameMeetingStoneSeekerTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_meeting_stone_seeker() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_meeting_stone_seeker`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMeetingStoneSeekerTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMeetingStoneSeekerTableHandle`], which mediates access to the table `game_meeting_stone_seeker`. - fn game_meeting_stone_seeker(&self) -> GameMeetingStoneSeekerTableHandle<'_>; -} - -impl GameMeetingStoneSeekerTableAccess for super::RemoteTables { - fn game_meeting_stone_seeker(&self) -> GameMeetingStoneSeekerTableHandle<'_> { - GameMeetingStoneSeekerTableHandle { - imp: self - .imp - .get_table::("game_meeting_stone_seeker"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMeetingStoneSeekerInsertCallbackId(__sdk::CallbackId); -pub struct GameMeetingStoneSeekerDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMeetingStoneSeekerTableHandle<'ctx> { - type Row = MeetingStoneSeeker; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMeetingStoneSeekerTableHandle<'ctx> { - type Row = MeetingStoneSeeker; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMeetingStoneSeekerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneSeekerInsertCallbackId { - GameMeetingStoneSeekerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeetingStoneSeekerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMeetingStoneSeekerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneSeekerDeleteCallbackId { - GameMeetingStoneSeekerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeetingStoneSeekerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMeetingStoneSeekerTableHandle<'ctx> { - type InsertCallbackId = GameMeetingStoneSeekerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneSeekerInsertCallbackId { - GameMeetingStoneSeekerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeetingStoneSeekerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMeetingStoneSeekerTableHandle<'ctx> { - type DeleteCallbackId = GameMeetingStoneSeekerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneSeekerDeleteCallbackId { - GameMeetingStoneSeekerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeetingStoneSeekerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMeetingStoneSeekerUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMeetingStoneSeekerTableHandle<'ctx> { - type UpdateCallbackId = GameMeetingStoneSeekerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneSeekerUpdateCallbackId { - GameMeetingStoneSeekerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeetingStoneSeekerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMeetingStoneSeekerTableHandle<'ctx> { - type UpdateCallbackId = GameMeetingStoneSeekerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneSeekerUpdateCallbackId { - GameMeetingStoneSeekerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeetingStoneSeekerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `character_guid` unique index on the table `game_meeting_stone_seeker`, -/// which allows point queries on the field of the same name -/// via the [`GameMeetingStoneSeekerCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_meeting_stone_seeker().character_guid().find(...)`. -pub struct GameMeetingStoneSeekerCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMeetingStoneSeekerTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_meeting_stone_seeker`. - pub fn character_guid(&self) -> GameMeetingStoneSeekerCharacterGuidUnique<'ctx> { - GameMeetingStoneSeekerCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMeetingStoneSeekerCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_meeting_stone_seeker"); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MeetingStoneSeeker`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_meeting_stone_seekerQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MeetingStoneSeeker`. - fn game_meeting_stone_seeker(&self) -> __sdk::__query_builder::Table; -} - -impl game_meeting_stone_seekerQueryTableAccess for __sdk::QueryTableAccessor { - fn game_meeting_stone_seeker(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_meeting_stone_seeker") - } -} diff --git a/gateway/src/stdb/bindings/game_meeting_stone_table.rs b/gateway/src/stdb/bindings/game_meeting_stone_table.rs deleted file mode 100644 index 4544d6602..000000000 --- a/gateway/src/stdb/bindings/game_meeting_stone_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::meeting_stone_type::MeetingStone; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_meeting_stone`. -/// -/// Obtain a handle from the [`GameMeetingStoneTableAccess::game_meeting_stone`] method on [`super::RemoteTables`], -/// like `ctx.db.game_meeting_stone()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_meeting_stone().on_insert(...)`. -pub struct GameMeetingStoneTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_meeting_stone`. -pub struct GameMeetingStoneTableAccessor; - -impl __sdk::TableAccessor for GameMeetingStoneTableAccessor { - type Row = MeetingStone; - type Handle<'db> = GameMeetingStoneTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_meeting_stone() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_meeting_stone`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMeetingStoneTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMeetingStoneTableHandle`], which mediates access to the table `game_meeting_stone`. - fn game_meeting_stone(&self) -> GameMeetingStoneTableHandle<'_>; -} - -impl GameMeetingStoneTableAccess for super::RemoteTables { - fn game_meeting_stone(&self) -> GameMeetingStoneTableHandle<'_> { - GameMeetingStoneTableHandle { - imp: self.imp.get_table::("game_meeting_stone"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMeetingStoneInsertCallbackId(__sdk::CallbackId); -pub struct GameMeetingStoneDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMeetingStoneTableHandle<'ctx> { - type Row = MeetingStone; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMeetingStoneTableHandle<'ctx> { - type Row = MeetingStone; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMeetingStoneInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneInsertCallbackId { - GameMeetingStoneInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeetingStoneInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMeetingStoneDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneDeleteCallbackId { - GameMeetingStoneDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeetingStoneDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMeetingStoneTableHandle<'ctx> { - type InsertCallbackId = GameMeetingStoneInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneInsertCallbackId { - GameMeetingStoneInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeetingStoneInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMeetingStoneTableHandle<'ctx> { - type DeleteCallbackId = GameMeetingStoneDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneDeleteCallbackId { - GameMeetingStoneDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeetingStoneDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMeetingStoneUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMeetingStoneTableHandle<'ctx> { - type UpdateCallbackId = GameMeetingStoneUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneUpdateCallbackId { - GameMeetingStoneUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeetingStoneUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMeetingStoneTableHandle<'ctx> { - type UpdateCallbackId = GameMeetingStoneUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeetingStoneUpdateCallbackId { - GameMeetingStoneUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeetingStoneUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entry` unique index on the table `game_meeting_stone`, -/// which allows point queries on the field of the same name -/// via the [`GameMeetingStoneEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_meeting_stone().entry().find(...)`. -pub struct GameMeetingStoneEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMeetingStoneTableHandle<'ctx> { - /// Get a handle on the `entry` unique index on the table `game_meeting_stone`. - pub fn entry(&self) -> GameMeetingStoneEntryUnique<'ctx> { - GameMeetingStoneEntryUnique { - imp: self.imp.get_unique_constraint::("entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMeetingStoneEntryUnique<'ctx> { - /// Find the subscribed row whose `entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_meeting_stone"); - _table.add_unique_constraint::("entry", |row| &row.entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MeetingStone`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_meeting_stoneQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MeetingStone`. - fn game_meeting_stone(&self) -> __sdk::__query_builder::Table; -} - -impl game_meeting_stoneQueryTableAccess for __sdk::QueryTableAccessor { - fn game_meeting_stone(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_meeting_stone") - } -} diff --git a/gateway/src/stdb/bindings/game_melee_attack_table.rs b/gateway/src/stdb/bindings/game_melee_attack_table.rs deleted file mode 100644 index 1c06d3e6c..000000000 --- a/gateway/src/stdb/bindings/game_melee_attack_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::melee_attack_type::MeleeAttack; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_melee_attack`. -/// -/// Obtain a handle from the [`GameMeleeAttackTableAccess::game_melee_attack`] method on [`super::RemoteTables`], -/// like `ctx.db.game_melee_attack()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_melee_attack().on_insert(...)`. -pub struct GameMeleeAttackTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_melee_attack`. -pub struct GameMeleeAttackTableAccessor; - -impl __sdk::TableAccessor for GameMeleeAttackTableAccessor { - type Row = MeleeAttack; - type Handle<'db> = GameMeleeAttackTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_melee_attack() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_melee_attack`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMeleeAttackTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMeleeAttackTableHandle`], which mediates access to the table `game_melee_attack`. - fn game_melee_attack(&self) -> GameMeleeAttackTableHandle<'_>; -} - -impl GameMeleeAttackTableAccess for super::RemoteTables { - fn game_melee_attack(&self) -> GameMeleeAttackTableHandle<'_> { - GameMeleeAttackTableHandle { - imp: self.imp.get_table::("game_melee_attack"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMeleeAttackInsertCallbackId(__sdk::CallbackId); -pub struct GameMeleeAttackDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMeleeAttackTableHandle<'ctx> { - type Row = MeleeAttack; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMeleeAttackTableHandle<'ctx> { - type Row = MeleeAttack; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMeleeAttackInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeleeAttackInsertCallbackId { - GameMeleeAttackInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeleeAttackInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMeleeAttackDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeleeAttackDeleteCallbackId { - GameMeleeAttackDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeleeAttackDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMeleeAttackTableHandle<'ctx> { - type InsertCallbackId = GameMeleeAttackInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeleeAttackInsertCallbackId { - GameMeleeAttackInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeleeAttackInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMeleeAttackTableHandle<'ctx> { - type DeleteCallbackId = GameMeleeAttackDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeleeAttackDeleteCallbackId { - GameMeleeAttackDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeleeAttackDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMeleeAttackUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMeleeAttackTableHandle<'ctx> { - type UpdateCallbackId = GameMeleeAttackUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeleeAttackUpdateCallbackId { - GameMeleeAttackUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeleeAttackUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMeleeAttackTableHandle<'ctx> { - type UpdateCallbackId = GameMeleeAttackUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeleeAttackUpdateCallbackId { - GameMeleeAttackUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeleeAttackUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `attacker_guid` unique index on the table `game_melee_attack`, -/// which allows point queries on the field of the same name -/// via the [`GameMeleeAttackAttackerGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_melee_attack().attacker_guid().find(...)`. -pub struct GameMeleeAttackAttackerGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMeleeAttackTableHandle<'ctx> { - /// Get a handle on the `attacker_guid` unique index on the table `game_melee_attack`. - pub fn attacker_guid(&self) -> GameMeleeAttackAttackerGuidUnique<'ctx> { - GameMeleeAttackAttackerGuidUnique { - imp: self.imp.get_unique_constraint::("attacker_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMeleeAttackAttackerGuidUnique<'ctx> { - /// Find the subscribed row whose `attacker_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_melee_attack"); - _table.add_unique_constraint::("attacker_guid", |row| &row.attacker_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MeleeAttack`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_melee_attackQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MeleeAttack`. - fn game_melee_attack(&self) -> __sdk::__query_builder::Table; -} - -impl game_melee_attackQueryTableAccess for __sdk::QueryTableAccessor { - fn game_melee_attack(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_melee_attack") - } -} diff --git a/gateway/src/stdb/bindings/game_melee_schedule_table.rs b/gateway/src/stdb/bindings/game_melee_schedule_table.rs deleted file mode 100644 index 3b720d632..000000000 --- a/gateway/src/stdb/bindings/game_melee_schedule_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::melee_schedule_type::MeleeSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_melee_schedule`. -/// -/// Obtain a handle from the [`GameMeleeScheduleTableAccess::game_melee_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_melee_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_melee_schedule().on_insert(...)`. -pub struct GameMeleeScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_melee_schedule`. -pub struct GameMeleeScheduleTableAccessor; - -impl __sdk::TableAccessor for GameMeleeScheduleTableAccessor { - type Row = MeleeSchedule; - type Handle<'db> = GameMeleeScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_melee_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_melee_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMeleeScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMeleeScheduleTableHandle`], which mediates access to the table `game_melee_schedule`. - fn game_melee_schedule(&self) -> GameMeleeScheduleTableHandle<'_>; -} - -impl GameMeleeScheduleTableAccess for super::RemoteTables { - fn game_melee_schedule(&self) -> GameMeleeScheduleTableHandle<'_> { - GameMeleeScheduleTableHandle { - imp: self.imp.get_table::("game_melee_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMeleeScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameMeleeScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMeleeScheduleTableHandle<'ctx> { - type Row = MeleeSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMeleeScheduleTableHandle<'ctx> { - type Row = MeleeSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMeleeScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeleeScheduleInsertCallbackId { - GameMeleeScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeleeScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMeleeScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeleeScheduleDeleteCallbackId { - GameMeleeScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeleeScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMeleeScheduleTableHandle<'ctx> { - type InsertCallbackId = GameMeleeScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeleeScheduleInsertCallbackId { - GameMeleeScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMeleeScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMeleeScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameMeleeScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMeleeScheduleDeleteCallbackId { - GameMeleeScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMeleeScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMeleeScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMeleeScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameMeleeScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeleeScheduleUpdateCallbackId { - GameMeleeScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeleeScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMeleeScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameMeleeScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMeleeScheduleUpdateCallbackId { - GameMeleeScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMeleeScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_melee_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameMeleeScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_melee_schedule().scheduled_id().find(...)`. -pub struct GameMeleeScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMeleeScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_melee_schedule`. - pub fn scheduled_id(&self) -> GameMeleeScheduleScheduledIdUnique<'ctx> { - GameMeleeScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMeleeScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_melee_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MeleeSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_melee_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MeleeSchedule`. - fn game_melee_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_melee_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_melee_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_melee_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_motion_publish_schedule_table.rs b/gateway/src/stdb/bindings/game_motion_publish_schedule_table.rs deleted file mode 100644 index 0e2c61071..000000000 --- a/gateway/src/stdb/bindings/game_motion_publish_schedule_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::motion_publish_schedule_type::MotionPublishSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_motion_publish_schedule`. -/// -/// Obtain a handle from the [`GameMotionPublishScheduleTableAccess::game_motion_publish_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_motion_publish_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_motion_publish_schedule().on_insert(...)`. -pub struct GameMotionPublishScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_motion_publish_schedule`. -pub struct GameMotionPublishScheduleTableAccessor; - -impl __sdk::TableAccessor for GameMotionPublishScheduleTableAccessor { - type Row = MotionPublishSchedule; - type Handle<'db> = GameMotionPublishScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_motion_publish_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_motion_publish_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMotionPublishScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMotionPublishScheduleTableHandle`], which mediates access to the table `game_motion_publish_schedule`. - fn game_motion_publish_schedule(&self) -> GameMotionPublishScheduleTableHandle<'_>; -} - -impl GameMotionPublishScheduleTableAccess for super::RemoteTables { - fn game_motion_publish_schedule(&self) -> GameMotionPublishScheduleTableHandle<'_> { - GameMotionPublishScheduleTableHandle { - imp: self - .imp - .get_table::("game_motion_publish_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMotionPublishScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameMotionPublishScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMotionPublishScheduleTableHandle<'ctx> { - type Row = MotionPublishSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMotionPublishScheduleTableHandle<'ctx> { - type Row = MotionPublishSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMotionPublishScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMotionPublishScheduleInsertCallbackId { - GameMotionPublishScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMotionPublishScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMotionPublishScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMotionPublishScheduleDeleteCallbackId { - GameMotionPublishScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMotionPublishScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMotionPublishScheduleTableHandle<'ctx> { - type InsertCallbackId = GameMotionPublishScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMotionPublishScheduleInsertCallbackId { - GameMotionPublishScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMotionPublishScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMotionPublishScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameMotionPublishScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMotionPublishScheduleDeleteCallbackId { - GameMotionPublishScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMotionPublishScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMotionPublishScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMotionPublishScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameMotionPublishScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMotionPublishScheduleUpdateCallbackId { - GameMotionPublishScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMotionPublishScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMotionPublishScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameMotionPublishScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMotionPublishScheduleUpdateCallbackId { - GameMotionPublishScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMotionPublishScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_motion_publish_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameMotionPublishScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_motion_publish_schedule().scheduled_id().find(...)`. -pub struct GameMotionPublishScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMotionPublishScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_motion_publish_schedule`. - pub fn scheduled_id(&self) -> GameMotionPublishScheduleScheduledIdUnique<'ctx> { - GameMotionPublishScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMotionPublishScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_motion_publish_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MotionPublishSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_motion_publish_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MotionPublishSchedule`. - fn game_motion_publish_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_motion_publish_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_motion_publish_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_motion_publish_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_movement_violation_table.rs b/gateway/src/stdb/bindings/game_movement_violation_table.rs deleted file mode 100644 index ad572e154..000000000 --- a/gateway/src/stdb/bindings/game_movement_violation_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::movement_violation_type::MovementViolation; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_movement_violation`. -/// -/// Obtain a handle from the [`GameMovementViolationTableAccess::game_movement_violation`] method on [`super::RemoteTables`], -/// like `ctx.db.game_movement_violation()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_movement_violation().on_insert(...)`. -pub struct GameMovementViolationTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_movement_violation`. -pub struct GameMovementViolationTableAccessor; - -impl __sdk::TableAccessor for GameMovementViolationTableAccessor { - type Row = MovementViolation; - type Handle<'db> = GameMovementViolationTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_movement_violation() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_movement_violation`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameMovementViolationTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameMovementViolationTableHandle`], which mediates access to the table `game_movement_violation`. - fn game_movement_violation(&self) -> GameMovementViolationTableHandle<'_>; -} - -impl GameMovementViolationTableAccess for super::RemoteTables { - fn game_movement_violation(&self) -> GameMovementViolationTableHandle<'_> { - GameMovementViolationTableHandle { - imp: self - .imp - .get_table::("game_movement_violation"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameMovementViolationInsertCallbackId(__sdk::CallbackId); -pub struct GameMovementViolationDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameMovementViolationTableHandle<'ctx> { - type Row = MovementViolation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameMovementViolationTableHandle<'ctx> { - type Row = MovementViolation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameMovementViolationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMovementViolationInsertCallbackId { - GameMovementViolationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMovementViolationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameMovementViolationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMovementViolationDeleteCallbackId { - GameMovementViolationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMovementViolationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameMovementViolationTableHandle<'ctx> { - type InsertCallbackId = GameMovementViolationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMovementViolationInsertCallbackId { - GameMovementViolationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameMovementViolationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameMovementViolationTableHandle<'ctx> { - type DeleteCallbackId = GameMovementViolationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameMovementViolationDeleteCallbackId { - GameMovementViolationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameMovementViolationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameMovementViolationUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameMovementViolationTableHandle<'ctx> { - type UpdateCallbackId = GameMovementViolationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMovementViolationUpdateCallbackId { - GameMovementViolationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMovementViolationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameMovementViolationTableHandle<'ctx> { - type UpdateCallbackId = GameMovementViolationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameMovementViolationUpdateCallbackId { - GameMovementViolationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameMovementViolationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_movement_violation`, -/// which allows point queries on the field of the same name -/// via the [`GameMovementViolationIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_movement_violation().id().find(...)`. -pub struct GameMovementViolationIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameMovementViolationTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_movement_violation`. - pub fn id(&self) -> GameMovementViolationIdUnique<'ctx> { - GameMovementViolationIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameMovementViolationIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_movement_violation"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `MovementViolation`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_movement_violationQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `MovementViolation`. - fn game_movement_violation(&self) -> __sdk::__query_builder::Table; -} - -impl game_movement_violationQueryTableAccess for __sdk::QueryTableAccessor { - fn game_movement_violation(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_movement_violation") - } -} diff --git a/gateway/src/stdb/bindings/game_nav_chunk_table.rs b/gateway/src/stdb/bindings/game_nav_chunk_table.rs deleted file mode 100644 index b43031c1b..000000000 --- a/gateway/src/stdb/bindings/game_nav_chunk_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::nav_chunk_type::NavChunk; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_nav_chunk`. -/// -/// Obtain a handle from the [`GameNavChunkTableAccess::game_nav_chunk`] method on [`super::RemoteTables`], -/// like `ctx.db.game_nav_chunk()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_nav_chunk().on_insert(...)`. -pub struct GameNavChunkTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_nav_chunk`. -pub struct GameNavChunkTableAccessor; - -impl __sdk::TableAccessor for GameNavChunkTableAccessor { - type Row = NavChunk; - type Handle<'db> = GameNavChunkTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_nav_chunk() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_nav_chunk`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameNavChunkTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameNavChunkTableHandle`], which mediates access to the table `game_nav_chunk`. - fn game_nav_chunk(&self) -> GameNavChunkTableHandle<'_>; -} - -impl GameNavChunkTableAccess for super::RemoteTables { - fn game_nav_chunk(&self) -> GameNavChunkTableHandle<'_> { - GameNavChunkTableHandle { - imp: self.imp.get_table::("game_nav_chunk"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameNavChunkInsertCallbackId(__sdk::CallbackId); -pub struct GameNavChunkDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameNavChunkTableHandle<'ctx> { - type Row = NavChunk; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameNavChunkTableHandle<'ctx> { - type Row = NavChunk; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameNavChunkInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNavChunkInsertCallbackId { - GameNavChunkInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNavChunkInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameNavChunkDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNavChunkDeleteCallbackId { - GameNavChunkDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNavChunkDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameNavChunkTableHandle<'ctx> { - type InsertCallbackId = GameNavChunkInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNavChunkInsertCallbackId { - GameNavChunkInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNavChunkInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameNavChunkTableHandle<'ctx> { - type DeleteCallbackId = GameNavChunkDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNavChunkDeleteCallbackId { - GameNavChunkDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNavChunkDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameNavChunkUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameNavChunkTableHandle<'ctx> { - type UpdateCallbackId = GameNavChunkUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNavChunkUpdateCallbackId { - GameNavChunkUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNavChunkUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameNavChunkTableHandle<'ctx> { - type UpdateCallbackId = GameNavChunkUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNavChunkUpdateCallbackId { - GameNavChunkUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNavChunkUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `key` unique index on the table `game_nav_chunk`, -/// which allows point queries on the field of the same name -/// via the [`GameNavChunkKeyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_nav_chunk().key().find(...)`. -pub struct GameNavChunkKeyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameNavChunkTableHandle<'ctx> { - /// Get a handle on the `key` unique index on the table `game_nav_chunk`. - pub fn key(&self) -> GameNavChunkKeyUnique<'ctx> { - GameNavChunkKeyUnique { - imp: self.imp.get_unique_constraint::("key"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameNavChunkKeyUnique<'ctx> { - /// Find the subscribed row whose `key` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_nav_chunk"); - _table.add_unique_constraint::("key", |row| &row.key); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `NavChunk`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_nav_chunkQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `NavChunk`. - fn game_nav_chunk(&self) -> __sdk::__query_builder::Table; -} - -impl game_nav_chunkQueryTableAccess for __sdk::QueryTableAccessor { - fn game_nav_chunk(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_nav_chunk") - } -} diff --git a/gateway/src/stdb/bindings/game_navigation_revision_table.rs b/gateway/src/stdb/bindings/game_navigation_revision_table.rs deleted file mode 100644 index 08faef7b5..000000000 --- a/gateway/src/stdb/bindings/game_navigation_revision_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::navigation_revision_type::NavigationRevision; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_navigation_revision`. -/// -/// Obtain a handle from the [`GameNavigationRevisionTableAccess::game_navigation_revision`] method on [`super::RemoteTables`], -/// like `ctx.db.game_navigation_revision()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_navigation_revision().on_insert(...)`. -pub struct GameNavigationRevisionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_navigation_revision`. -pub struct GameNavigationRevisionTableAccessor; - -impl __sdk::TableAccessor for GameNavigationRevisionTableAccessor { - type Row = NavigationRevision; - type Handle<'db> = GameNavigationRevisionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_navigation_revision() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_navigation_revision`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameNavigationRevisionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameNavigationRevisionTableHandle`], which mediates access to the table `game_navigation_revision`. - fn game_navigation_revision(&self) -> GameNavigationRevisionTableHandle<'_>; -} - -impl GameNavigationRevisionTableAccess for super::RemoteTables { - fn game_navigation_revision(&self) -> GameNavigationRevisionTableHandle<'_> { - GameNavigationRevisionTableHandle { - imp: self - .imp - .get_table::("game_navigation_revision"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameNavigationRevisionInsertCallbackId(__sdk::CallbackId); -pub struct GameNavigationRevisionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameNavigationRevisionTableHandle<'ctx> { - type Row = NavigationRevision; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameNavigationRevisionTableHandle<'ctx> { - type Row = NavigationRevision; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameNavigationRevisionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNavigationRevisionInsertCallbackId { - GameNavigationRevisionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNavigationRevisionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameNavigationRevisionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNavigationRevisionDeleteCallbackId { - GameNavigationRevisionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNavigationRevisionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameNavigationRevisionTableHandle<'ctx> { - type InsertCallbackId = GameNavigationRevisionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNavigationRevisionInsertCallbackId { - GameNavigationRevisionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNavigationRevisionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameNavigationRevisionTableHandle<'ctx> { - type DeleteCallbackId = GameNavigationRevisionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNavigationRevisionDeleteCallbackId { - GameNavigationRevisionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNavigationRevisionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameNavigationRevisionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameNavigationRevisionTableHandle<'ctx> { - type UpdateCallbackId = GameNavigationRevisionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNavigationRevisionUpdateCallbackId { - GameNavigationRevisionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNavigationRevisionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameNavigationRevisionTableHandle<'ctx> { - type UpdateCallbackId = GameNavigationRevisionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNavigationRevisionUpdateCallbackId { - GameNavigationRevisionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNavigationRevisionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_navigation_revision`, -/// which allows point queries on the field of the same name -/// via the [`GameNavigationRevisionIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_navigation_revision().id().find(...)`. -pub struct GameNavigationRevisionIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameNavigationRevisionTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_navigation_revision`. - pub fn id(&self) -> GameNavigationRevisionIdUnique<'ctx> { - GameNavigationRevisionIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameNavigationRevisionIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u8) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_navigation_revision"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `NavigationRevision`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_navigation_revisionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `NavigationRevision`. - fn game_navigation_revision(&self) -> __sdk::__query_builder::Table; -} - -impl game_navigation_revisionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_navigation_revision(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_navigation_revision") - } -} diff --git a/gateway/src/stdb/bindings/game_npc_text_slot_table.rs b/gateway/src/stdb/bindings/game_npc_text_slot_table.rs deleted file mode 100644 index 4d461531c..000000000 --- a/gateway/src/stdb/bindings/game_npc_text_slot_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::npc_text_slot_type::NpcTextSlot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_npc_text_slot`. -/// -/// Obtain a handle from the [`GameNpcTextSlotTableAccess::game_npc_text_slot`] method on [`super::RemoteTables`], -/// like `ctx.db.game_npc_text_slot()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_npc_text_slot().on_insert(...)`. -pub struct GameNpcTextSlotTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_npc_text_slot`. -pub struct GameNpcTextSlotTableAccessor; - -impl __sdk::TableAccessor for GameNpcTextSlotTableAccessor { - type Row = NpcTextSlot; - type Handle<'db> = GameNpcTextSlotTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_npc_text_slot() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_npc_text_slot`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameNpcTextSlotTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameNpcTextSlotTableHandle`], which mediates access to the table `game_npc_text_slot`. - fn game_npc_text_slot(&self) -> GameNpcTextSlotTableHandle<'_>; -} - -impl GameNpcTextSlotTableAccess for super::RemoteTables { - fn game_npc_text_slot(&self) -> GameNpcTextSlotTableHandle<'_> { - GameNpcTextSlotTableHandle { - imp: self.imp.get_table::("game_npc_text_slot"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameNpcTextSlotInsertCallbackId(__sdk::CallbackId); -pub struct GameNpcTextSlotDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameNpcTextSlotTableHandle<'ctx> { - type Row = NpcTextSlot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameNpcTextSlotTableHandle<'ctx> { - type Row = NpcTextSlot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameNpcTextSlotInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcTextSlotInsertCallbackId { - GameNpcTextSlotInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNpcTextSlotInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameNpcTextSlotDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcTextSlotDeleteCallbackId { - GameNpcTextSlotDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNpcTextSlotDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameNpcTextSlotTableHandle<'ctx> { - type InsertCallbackId = GameNpcTextSlotInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcTextSlotInsertCallbackId { - GameNpcTextSlotInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNpcTextSlotInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameNpcTextSlotTableHandle<'ctx> { - type DeleteCallbackId = GameNpcTextSlotDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcTextSlotDeleteCallbackId { - GameNpcTextSlotDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNpcTextSlotDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameNpcTextSlotUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameNpcTextSlotTableHandle<'ctx> { - type UpdateCallbackId = GameNpcTextSlotUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNpcTextSlotUpdateCallbackId { - GameNpcTextSlotUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNpcTextSlotUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameNpcTextSlotTableHandle<'ctx> { - type UpdateCallbackId = GameNpcTextSlotUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNpcTextSlotUpdateCallbackId { - GameNpcTextSlotUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNpcTextSlotUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_npc_text_slot`, -/// which allows point queries on the field of the same name -/// via the [`GameNpcTextSlotIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_npc_text_slot().id().find(...)`. -pub struct GameNpcTextSlotIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameNpcTextSlotTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_npc_text_slot`. - pub fn id(&self) -> GameNpcTextSlotIdUnique<'ctx> { - GameNpcTextSlotIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameNpcTextSlotIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_npc_text_slot"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `NpcTextSlot`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_npc_text_slotQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `NpcTextSlot`. - fn game_npc_text_slot(&self) -> __sdk::__query_builder::Table; -} - -impl game_npc_text_slotQueryTableAccess for __sdk::QueryTableAccessor { - fn game_npc_text_slot(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_npc_text_slot") - } -} diff --git a/gateway/src/stdb/bindings/game_npc_text_table.rs b/gateway/src/stdb/bindings/game_npc_text_table.rs deleted file mode 100644 index 9c6fd912a..000000000 --- a/gateway/src/stdb/bindings/game_npc_text_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::npc_text_type::NpcText; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_npc_text`. -/// -/// Obtain a handle from the [`GameNpcTextTableAccess::game_npc_text`] method on [`super::RemoteTables`], -/// like `ctx.db.game_npc_text()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_npc_text().on_insert(...)`. -pub struct GameNpcTextTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_npc_text`. -pub struct GameNpcTextTableAccessor; - -impl __sdk::TableAccessor for GameNpcTextTableAccessor { - type Row = NpcText; - type Handle<'db> = GameNpcTextTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_npc_text() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_npc_text`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameNpcTextTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameNpcTextTableHandle`], which mediates access to the table `game_npc_text`. - fn game_npc_text(&self) -> GameNpcTextTableHandle<'_>; -} - -impl GameNpcTextTableAccess for super::RemoteTables { - fn game_npc_text(&self) -> GameNpcTextTableHandle<'_> { - GameNpcTextTableHandle { - imp: self.imp.get_table::("game_npc_text"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameNpcTextInsertCallbackId(__sdk::CallbackId); -pub struct GameNpcTextDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameNpcTextTableHandle<'ctx> { - type Row = NpcText; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameNpcTextTableHandle<'ctx> { - type Row = NpcText; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameNpcTextInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcTextInsertCallbackId { - GameNpcTextInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNpcTextInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameNpcTextDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcTextDeleteCallbackId { - GameNpcTextDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNpcTextDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameNpcTextTableHandle<'ctx> { - type InsertCallbackId = GameNpcTextInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcTextInsertCallbackId { - GameNpcTextInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNpcTextInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameNpcTextTableHandle<'ctx> { - type DeleteCallbackId = GameNpcTextDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcTextDeleteCallbackId { - GameNpcTextDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNpcTextDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameNpcTextUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameNpcTextTableHandle<'ctx> { - type UpdateCallbackId = GameNpcTextUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNpcTextUpdateCallbackId { - GameNpcTextUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNpcTextUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameNpcTextTableHandle<'ctx> { - type UpdateCallbackId = GameNpcTextUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNpcTextUpdateCallbackId { - GameNpcTextUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNpcTextUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `text_id` unique index on the table `game_npc_text`, -/// which allows point queries on the field of the same name -/// via the [`GameNpcTextTextIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_npc_text().text_id().find(...)`. -pub struct GameNpcTextTextIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameNpcTextTableHandle<'ctx> { - /// Get a handle on the `text_id` unique index on the table `game_npc_text`. - pub fn text_id(&self) -> GameNpcTextTextIdUnique<'ctx> { - GameNpcTextTextIdUnique { - imp: self.imp.get_unique_constraint::("text_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameNpcTextTextIdUnique<'ctx> { - /// Find the subscribed row whose `text_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_npc_text"); - _table.add_unique_constraint::("text_id", |row| &row.text_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `NpcText`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_npc_textQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `NpcText`. - fn game_npc_text(&self) -> __sdk::__query_builder::Table; -} - -impl game_npc_textQueryTableAccess for __sdk::QueryTableAccessor { - fn game_npc_text(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_npc_text") - } -} diff --git a/gateway/src/stdb/bindings/game_npc_vendor_table.rs b/gateway/src/stdb/bindings/game_npc_vendor_table.rs deleted file mode 100644 index f10ed3d32..000000000 --- a/gateway/src/stdb/bindings/game_npc_vendor_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::npc_vendor_type::NpcVendor; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_npc_vendor`. -/// -/// Obtain a handle from the [`GameNpcVendorTableAccess::game_npc_vendor`] method on [`super::RemoteTables`], -/// like `ctx.db.game_npc_vendor()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_npc_vendor().on_insert(...)`. -pub struct GameNpcVendorTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_npc_vendor`. -pub struct GameNpcVendorTableAccessor; - -impl __sdk::TableAccessor for GameNpcVendorTableAccessor { - type Row = NpcVendor; - type Handle<'db> = GameNpcVendorTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_npc_vendor() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_npc_vendor`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameNpcVendorTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameNpcVendorTableHandle`], which mediates access to the table `game_npc_vendor`. - fn game_npc_vendor(&self) -> GameNpcVendorTableHandle<'_>; -} - -impl GameNpcVendorTableAccess for super::RemoteTables { - fn game_npc_vendor(&self) -> GameNpcVendorTableHandle<'_> { - GameNpcVendorTableHandle { - imp: self.imp.get_table::("game_npc_vendor"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameNpcVendorInsertCallbackId(__sdk::CallbackId); -pub struct GameNpcVendorDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameNpcVendorTableHandle<'ctx> { - type Row = NpcVendor; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameNpcVendorTableHandle<'ctx> { - type Row = NpcVendor; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameNpcVendorInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcVendorInsertCallbackId { - GameNpcVendorInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNpcVendorInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameNpcVendorDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcVendorDeleteCallbackId { - GameNpcVendorDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNpcVendorDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameNpcVendorTableHandle<'ctx> { - type InsertCallbackId = GameNpcVendorInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcVendorInsertCallbackId { - GameNpcVendorInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameNpcVendorInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameNpcVendorTableHandle<'ctx> { - type DeleteCallbackId = GameNpcVendorDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameNpcVendorDeleteCallbackId { - GameNpcVendorDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameNpcVendorDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameNpcVendorUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameNpcVendorTableHandle<'ctx> { - type UpdateCallbackId = GameNpcVendorUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNpcVendorUpdateCallbackId { - GameNpcVendorUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNpcVendorUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameNpcVendorTableHandle<'ctx> { - type UpdateCallbackId = GameNpcVendorUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameNpcVendorUpdateCallbackId { - GameNpcVendorUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameNpcVendorUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_npc_vendor`, -/// which allows point queries on the field of the same name -/// via the [`GameNpcVendorIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_npc_vendor().id().find(...)`. -pub struct GameNpcVendorIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameNpcVendorTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_npc_vendor`. - pub fn id(&self) -> GameNpcVendorIdUnique<'ctx> { - GameNpcVendorIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameNpcVendorIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_npc_vendor"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `NpcVendor`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_npc_vendorQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `NpcVendor`. - fn game_npc_vendor(&self) -> __sdk::__query_builder::Table; -} - -impl game_npc_vendorQueryTableAccess for __sdk::QueryTableAccessor { - fn game_npc_vendor(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_npc_vendor") - } -} diff --git a/gateway/src/stdb/bindings/game_object_loot_type.rs b/gateway/src/stdb/bindings/game_object_loot_type.rs deleted file mode 100644 index b8498d5bd..000000000 --- a/gateway/src/stdb/bindings/game_object_loot_type.rs +++ /dev/null @@ -1,69 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObjectLoot { - pub id: u64, - pub loot_id: u32, - pub item_entry: u32, - pub chance_bp: u32, - pub count: u32, - pub group_id: u32, - pub quest_only: bool, -} - -impl __sdk::InModule for GameObjectLoot { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObjectLoot`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectLootCols { - pub id: __sdk::__query_builder::Col, - pub loot_id: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub chance_bp: __sdk::__query_builder::Col, - pub count: __sdk::__query_builder::Col, - pub group_id: __sdk::__query_builder::Col, - pub quest_only: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObjectLoot { - type Cols = GameObjectLootCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectLootCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - loot_id: __sdk::__query_builder::Col::new(table_name, "loot_id"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - chance_bp: __sdk::__query_builder::Col::new(table_name, "chance_bp"), - count: __sdk::__query_builder::Col::new(table_name, "count"), - group_id: __sdk::__query_builder::Col::new(table_name, "group_id"), - quest_only: __sdk::__query_builder::Col::new(table_name, "quest_only"), - } - } -} - -/// Indexed column accessor struct for the table `GameObjectLoot`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectLootIxCols { - pub id: __sdk::__query_builder::IxCol, - pub loot_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObjectLoot { - type IxCols = GameObjectLootIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectLootIxCols { - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - loot_id: __sdk::__query_builder::IxCol::new(table_name, "loot_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObjectLoot {} diff --git a/gateway/src/stdb/bindings/game_object_pool_member_type.rs b/gateway/src/stdb/bindings/game_object_pool_member_type.rs deleted file mode 100644 index 4f62ab56e..000000000 --- a/gateway/src/stdb/bindings/game_object_pool_member_type.rs +++ /dev/null @@ -1,75 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObjectPoolMember { - pub point_id: u64, - pub pool_id: u32, - pub template_entry: u32, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub orientation: f32, - pub weight: u32, -} - -impl __sdk::InModule for GameObjectPoolMember { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObjectPoolMember`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectPoolMemberCols { - pub point_id: __sdk::__query_builder::Col, - pub pool_id: __sdk::__query_builder::Col, - pub template_entry: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub orientation: __sdk::__query_builder::Col, - pub weight: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObjectPoolMember { - type Cols = GameObjectPoolMemberCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectPoolMemberCols { - point_id: __sdk::__query_builder::Col::new(table_name, "point_id"), - pool_id: __sdk::__query_builder::Col::new(table_name, "pool_id"), - template_entry: __sdk::__query_builder::Col::new(table_name, "template_entry"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - orientation: __sdk::__query_builder::Col::new(table_name, "orientation"), - weight: __sdk::__query_builder::Col::new(table_name, "weight"), - } - } -} - -/// Indexed column accessor struct for the table `GameObjectPoolMember`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectPoolMemberIxCols { - pub point_id: __sdk::__query_builder::IxCol, - pub pool_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObjectPoolMember { - type IxCols = GameObjectPoolMemberIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectPoolMemberIxCols { - point_id: __sdk::__query_builder::IxCol::new(table_name, "point_id"), - pool_id: __sdk::__query_builder::IxCol::new(table_name, "pool_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObjectPoolMember {} diff --git a/gateway/src/stdb/bindings/game_object_pool_type.rs b/gateway/src/stdb/bindings/game_object_pool_type.rs deleted file mode 100644 index d92d1d045..000000000 --- a/gateway/src/stdb/bindings/game_object_pool_type.rs +++ /dev/null @@ -1,55 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObjectPool { - pub pool_id: u32, - pub max_active: u32, - pub in_place: bool, -} - -impl __sdk::InModule for GameObjectPool { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObjectPool`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectPoolCols { - pub pool_id: __sdk::__query_builder::Col, - pub max_active: __sdk::__query_builder::Col, - pub in_place: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObjectPool { - type Cols = GameObjectPoolCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectPoolCols { - pool_id: __sdk::__query_builder::Col::new(table_name, "pool_id"), - max_active: __sdk::__query_builder::Col::new(table_name, "max_active"), - in_place: __sdk::__query_builder::Col::new(table_name, "in_place"), - } - } -} - -/// Indexed column accessor struct for the table `GameObjectPool`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectPoolIxCols { - pub pool_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObjectPool { - type IxCols = GameObjectPoolIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectPoolIxCols { - pool_id: __sdk::__query_builder::IxCol::new(table_name, "pool_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObjectPool {} diff --git a/gateway/src/stdb/bindings/game_object_quest_type.rs b/gateway/src/stdb/bindings/game_object_quest_type.rs deleted file mode 100644 index fdbf178b4..000000000 --- a/gateway/src/stdb/bindings/game_object_quest_type.rs +++ /dev/null @@ -1,60 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObjectQuest { - pub id: u64, - pub go_entry: u32, - pub quest_entry: u32, - pub role: u8, -} - -impl __sdk::InModule for GameObjectQuest { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObjectQuest`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectQuestCols { - pub id: __sdk::__query_builder::Col, - pub go_entry: __sdk::__query_builder::Col, - pub quest_entry: __sdk::__query_builder::Col, - pub role: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObjectQuest { - type Cols = GameObjectQuestCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectQuestCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - go_entry: __sdk::__query_builder::Col::new(table_name, "go_entry"), - quest_entry: __sdk::__query_builder::Col::new(table_name, "quest_entry"), - role: __sdk::__query_builder::Col::new(table_name, "role"), - } - } -} - -/// Indexed column accessor struct for the table `GameObjectQuest`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectQuestIxCols { - pub go_entry: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObjectQuest { - type IxCols = GameObjectQuestIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectQuestIxCols { - go_entry: __sdk::__query_builder::IxCol::new(table_name, "go_entry"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObjectQuest {} diff --git a/gateway/src/stdb/bindings/game_object_template_type.rs b/gateway/src/stdb/bindings/game_object_template_type.rs deleted file mode 100644 index 5c66e94f4..000000000 --- a/gateway/src/stdb/bindings/game_object_template_type.rs +++ /dev/null @@ -1,79 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObjectTemplate { - pub entry: u32, - pub type_id: u8, - pub display_id: u32, - pub name: String, - pub data_0: u32, - pub data_1: u32, - pub gather_skill_line: u32, - pub respawn_secs: u32, - pub gather_gray: u32, - pub lock_id: u32, - pub size: f32, -} - -impl __sdk::InModule for GameObjectTemplate { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObjectTemplate`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectTemplateCols { - pub entry: __sdk::__query_builder::Col, - pub type_id: __sdk::__query_builder::Col, - pub display_id: __sdk::__query_builder::Col, - pub name: __sdk::__query_builder::Col, - pub data_0: __sdk::__query_builder::Col, - pub data_1: __sdk::__query_builder::Col, - pub gather_skill_line: __sdk::__query_builder::Col, - pub respawn_secs: __sdk::__query_builder::Col, - pub gather_gray: __sdk::__query_builder::Col, - pub lock_id: __sdk::__query_builder::Col, - pub size: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObjectTemplate { - type Cols = GameObjectTemplateCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectTemplateCols { - entry: __sdk::__query_builder::Col::new(table_name, "entry"), - type_id: __sdk::__query_builder::Col::new(table_name, "type_id"), - display_id: __sdk::__query_builder::Col::new(table_name, "display_id"), - name: __sdk::__query_builder::Col::new(table_name, "name"), - data_0: __sdk::__query_builder::Col::new(table_name, "data_0"), - data_1: __sdk::__query_builder::Col::new(table_name, "data_1"), - gather_skill_line: __sdk::__query_builder::Col::new(table_name, "gather_skill_line"), - respawn_secs: __sdk::__query_builder::Col::new(table_name, "respawn_secs"), - gather_gray: __sdk::__query_builder::Col::new(table_name, "gather_gray"), - lock_id: __sdk::__query_builder::Col::new(table_name, "lock_id"), - size: __sdk::__query_builder::Col::new(table_name, "size"), - } - } -} - -/// Indexed column accessor struct for the table `GameObjectTemplate`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectTemplateIxCols { - pub entry: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObjectTemplate { - type IxCols = GameObjectTemplateIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectTemplateIxCols { - entry: __sdk::__query_builder::IxCol::new(table_name, "entry"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObjectTemplate {} diff --git a/gateway/src/stdb/bindings/game_object_trap_cooldown_type.rs b/gateway/src/stdb/bindings/game_object_trap_cooldown_type.rs deleted file mode 100644 index 59d9124bf..000000000 --- a/gateway/src/stdb/bindings/game_object_trap_cooldown_type.rs +++ /dev/null @@ -1,60 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObjectTrapCooldown { - pub go_guid: u64, - pub map_id: u32, - pub instance_id: u64, - pub ready_at: __sdk::Timestamp, -} - -impl __sdk::InModule for GameObjectTrapCooldown { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObjectTrapCooldown`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectTrapCooldownCols { - pub go_guid: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub ready_at: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObjectTrapCooldown { - type Cols = GameObjectTrapCooldownCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectTrapCooldownCols { - go_guid: __sdk::__query_builder::Col::new(table_name, "go_guid"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - ready_at: __sdk::__query_builder::Col::new(table_name, "ready_at"), - } - } -} - -/// Indexed column accessor struct for the table `GameObjectTrapCooldown`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectTrapCooldownIxCols { - pub go_guid: __sdk::__query_builder::IxCol, - pub instance_id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObjectTrapCooldown { - type IxCols = GameObjectTrapCooldownIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectTrapCooldownIxCols { - go_guid: __sdk::__query_builder::IxCol::new(table_name, "go_guid"), - instance_id: __sdk::__query_builder::IxCol::new(table_name, "instance_id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObjectTrapCooldown {} diff --git a/gateway/src/stdb/bindings/game_object_trap_type.rs b/gateway/src/stdb/bindings/game_object_trap_type.rs deleted file mode 100644 index 561b354fe..000000000 --- a/gateway/src/stdb/bindings/game_object_trap_type.rs +++ /dev/null @@ -1,55 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObjectTrap { - pub entry: u32, - pub spell_id: u32, - pub cooldown_secs: u32, -} - -impl __sdk::InModule for GameObjectTrap { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObjectTrap`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectTrapCols { - pub entry: __sdk::__query_builder::Col, - pub spell_id: __sdk::__query_builder::Col, - pub cooldown_secs: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObjectTrap { - type Cols = GameObjectTrapCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectTrapCols { - entry: __sdk::__query_builder::Col::new(table_name, "entry"), - spell_id: __sdk::__query_builder::Col::new(table_name, "spell_id"), - cooldown_secs: __sdk::__query_builder::Col::new(table_name, "cooldown_secs"), - } - } -} - -/// Indexed column accessor struct for the table `GameObjectTrap`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectTrapIxCols { - pub entry: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObjectTrap { - type IxCols = GameObjectTrapIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectTrapIxCols { - entry: __sdk::__query_builder::IxCol::new(table_name, "entry"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObjectTrap {} diff --git a/gateway/src/stdb/bindings/game_object_type.rs b/gateway/src/stdb/bindings/game_object_type.rs deleted file mode 100644 index 2672857f1..000000000 --- a/gateway/src/stdb/bindings/game_object_type.rs +++ /dev/null @@ -1,104 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObject { - pub guid: u64, - pub template_entry: u32, - pub map_id: u32, - pub x: f32, - pub y: f32, - pub z: f32, - pub orientation: f32, - pub state: u8, - pub created_at: __sdk::Timestamp, - pub respawn_at_micros: u64, - pub instance_id: u64, - pub grid_x: i32, - pub grid_y: i32, - pub cell: i64, - pub rotation_0: f32, - pub rotation_1: f32, - pub rotation_2: f32, - pub rotation_3: f32, -} - -impl __sdk::InModule for GameObject { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObject`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectCols { - pub guid: __sdk::__query_builder::Col, - pub template_entry: __sdk::__query_builder::Col, - pub map_id: __sdk::__query_builder::Col, - pub x: __sdk::__query_builder::Col, - pub y: __sdk::__query_builder::Col, - pub z: __sdk::__query_builder::Col, - pub orientation: __sdk::__query_builder::Col, - pub state: __sdk::__query_builder::Col, - pub created_at: __sdk::__query_builder::Col, - pub respawn_at_micros: __sdk::__query_builder::Col, - pub instance_id: __sdk::__query_builder::Col, - pub grid_x: __sdk::__query_builder::Col, - pub grid_y: __sdk::__query_builder::Col, - pub cell: __sdk::__query_builder::Col, - pub rotation_0: __sdk::__query_builder::Col, - pub rotation_1: __sdk::__query_builder::Col, - pub rotation_2: __sdk::__query_builder::Col, - pub rotation_3: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObject { - type Cols = GameObjectCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectCols { - guid: __sdk::__query_builder::Col::new(table_name, "guid"), - template_entry: __sdk::__query_builder::Col::new(table_name, "template_entry"), - map_id: __sdk::__query_builder::Col::new(table_name, "map_id"), - x: __sdk::__query_builder::Col::new(table_name, "x"), - y: __sdk::__query_builder::Col::new(table_name, "y"), - z: __sdk::__query_builder::Col::new(table_name, "z"), - orientation: __sdk::__query_builder::Col::new(table_name, "orientation"), - state: __sdk::__query_builder::Col::new(table_name, "state"), - created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - respawn_at_micros: __sdk::__query_builder::Col::new(table_name, "respawn_at_micros"), - instance_id: __sdk::__query_builder::Col::new(table_name, "instance_id"), - grid_x: __sdk::__query_builder::Col::new(table_name, "grid_x"), - grid_y: __sdk::__query_builder::Col::new(table_name, "grid_y"), - cell: __sdk::__query_builder::Col::new(table_name, "cell"), - rotation_0: __sdk::__query_builder::Col::new(table_name, "rotation_0"), - rotation_1: __sdk::__query_builder::Col::new(table_name, "rotation_1"), - rotation_2: __sdk::__query_builder::Col::new(table_name, "rotation_2"), - rotation_3: __sdk::__query_builder::Col::new(table_name, "rotation_3"), - } - } -} - -/// Indexed column accessor struct for the table `GameObject`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectIxCols { - pub guid: __sdk::__query_builder::IxCol, - pub map_id: __sdk::__query_builder::IxCol, - pub respawn_at_micros: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObject { - type IxCols = GameObjectIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectIxCols { - guid: __sdk::__query_builder::IxCol::new(table_name, "guid"), - map_id: __sdk::__query_builder::IxCol::new(table_name, "map_id"), - respawn_at_micros: __sdk::__query_builder::IxCol::new(table_name, "respawn_at_micros"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObject {} diff --git a/gateway/src/stdb/bindings/game_object_unlocked_type.rs b/gateway/src/stdb/bindings/game_object_unlocked_type.rs deleted file mode 100644 index 11a8b9309..000000000 --- a/gateway/src/stdb/bindings/game_object_unlocked_type.rs +++ /dev/null @@ -1,49 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GameObjectUnlocked { - pub go_guid: u64, -} - -impl __sdk::InModule for GameObjectUnlocked { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GameObjectUnlocked`. -/// -/// Provides typed access to columns for query building. -pub struct GameObjectUnlockedCols { - pub go_guid: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GameObjectUnlocked { - type Cols = GameObjectUnlockedCols; - fn cols(table_name: &'static str) -> Self::Cols { - GameObjectUnlockedCols { - go_guid: __sdk::__query_builder::Col::new(table_name, "go_guid"), - } - } -} - -/// Indexed column accessor struct for the table `GameObjectUnlocked`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GameObjectUnlockedIxCols { - pub go_guid: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GameObjectUnlocked { - type IxCols = GameObjectUnlockedIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GameObjectUnlockedIxCols { - go_guid: __sdk::__query_builder::IxCol::new(table_name, "go_guid"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GameObjectUnlocked {} diff --git a/gateway/src/stdb/bindings/game_operator_table.rs b/gateway/src/stdb/bindings/game_operator_table.rs deleted file mode 100644 index 9ed84ee16..000000000 --- a/gateway/src/stdb/bindings/game_operator_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::operator_type::Operator; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_operator`. -/// -/// Obtain a handle from the [`GameOperatorTableAccess::game_operator`] method on [`super::RemoteTables`], -/// like `ctx.db.game_operator()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_operator().on_insert(...)`. -pub struct GameOperatorTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_operator`. -pub struct GameOperatorTableAccessor; - -impl __sdk::TableAccessor for GameOperatorTableAccessor { - type Row = Operator; - type Handle<'db> = GameOperatorTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_operator() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_operator`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameOperatorTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameOperatorTableHandle`], which mediates access to the table `game_operator`. - fn game_operator(&self) -> GameOperatorTableHandle<'_>; -} - -impl GameOperatorTableAccess for super::RemoteTables { - fn game_operator(&self) -> GameOperatorTableHandle<'_> { - GameOperatorTableHandle { - imp: self.imp.get_table::("game_operator"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameOperatorInsertCallbackId(__sdk::CallbackId); -pub struct GameOperatorDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameOperatorTableHandle<'ctx> { - type Row = Operator; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameOperatorTableHandle<'ctx> { - type Row = Operator; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameOperatorInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameOperatorInsertCallbackId { - GameOperatorInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameOperatorInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameOperatorDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameOperatorDeleteCallbackId { - GameOperatorDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameOperatorDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameOperatorTableHandle<'ctx> { - type InsertCallbackId = GameOperatorInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameOperatorInsertCallbackId { - GameOperatorInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameOperatorInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameOperatorTableHandle<'ctx> { - type DeleteCallbackId = GameOperatorDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameOperatorDeleteCallbackId { - GameOperatorDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameOperatorDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameOperatorUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameOperatorTableHandle<'ctx> { - type UpdateCallbackId = GameOperatorUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameOperatorUpdateCallbackId { - GameOperatorUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameOperatorUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameOperatorTableHandle<'ctx> { - type UpdateCallbackId = GameOperatorUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameOperatorUpdateCallbackId { - GameOperatorUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameOperatorUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_operator`, -/// which allows point queries on the field of the same name -/// via the [`GameOperatorIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_operator().id().find(...)`. -pub struct GameOperatorIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameOperatorTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_operator`. - pub fn id(&self) -> GameOperatorIdUnique<'ctx> { - GameOperatorIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameOperatorIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u8) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_operator"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Operator`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_operatorQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Operator`. - fn game_operator(&self) -> __sdk::__query_builder::Table; -} - -impl game_operatorQueryTableAccess for __sdk::QueryTableAccessor { - fn game_operator(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_operator") - } -} diff --git a/gateway/src/stdb/bindings/game_package_account_table.rs b/gateway/src/stdb/bindings/game_package_account_table.rs deleted file mode 100644 index ad08c3d5e..000000000 --- a/gateway/src/stdb/bindings/game_package_account_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::package_account_type::PackageAccount; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_package_account`. -/// -/// Obtain a handle from the [`GamePackageAccountTableAccess::game_package_account`] method on [`super::RemoteTables`], -/// like `ctx.db.game_package_account()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_package_account().on_insert(...)`. -pub struct GamePackageAccountTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_package_account`. -pub struct GamePackageAccountTableAccessor; - -impl __sdk::TableAccessor for GamePackageAccountTableAccessor { - type Row = PackageAccount; - type Handle<'db> = GamePackageAccountTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_package_account() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_package_account`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePackageAccountTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePackageAccountTableHandle`], which mediates access to the table `game_package_account`. - fn game_package_account(&self) -> GamePackageAccountTableHandle<'_>; -} - -impl GamePackageAccountTableAccess for super::RemoteTables { - fn game_package_account(&self) -> GamePackageAccountTableHandle<'_> { - GamePackageAccountTableHandle { - imp: self.imp.get_table::("game_package_account"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePackageAccountInsertCallbackId(__sdk::CallbackId); -pub struct GamePackageAccountDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePackageAccountTableHandle<'ctx> { - type Row = PackageAccount; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePackageAccountTableHandle<'ctx> { - type Row = PackageAccount; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePackageAccountInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageAccountInsertCallbackId { - GamePackageAccountInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePackageAccountInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePackageAccountDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageAccountDeleteCallbackId { - GamePackageAccountDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePackageAccountDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePackageAccountTableHandle<'ctx> { - type InsertCallbackId = GamePackageAccountInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageAccountInsertCallbackId { - GamePackageAccountInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePackageAccountInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePackageAccountTableHandle<'ctx> { - type DeleteCallbackId = GamePackageAccountDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageAccountDeleteCallbackId { - GamePackageAccountDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePackageAccountDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePackageAccountUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePackageAccountTableHandle<'ctx> { - type UpdateCallbackId = GamePackageAccountUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePackageAccountUpdateCallbackId { - GamePackageAccountUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePackageAccountUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePackageAccountTableHandle<'ctx> { - type UpdateCallbackId = GamePackageAccountUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePackageAccountUpdateCallbackId { - GamePackageAccountUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePackageAccountUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `account_id` unique index on the table `game_package_account`, -/// which allows point queries on the field of the same name -/// via the [`GamePackageAccountAccountIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_package_account().account_id().find(...)`. -pub struct GamePackageAccountAccountIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePackageAccountTableHandle<'ctx> { - /// Get a handle on the `account_id` unique index on the table `game_package_account`. - pub fn account_id(&self) -> GamePackageAccountAccountIdUnique<'ctx> { - GamePackageAccountAccountIdUnique { - imp: self.imp.get_unique_constraint::("account_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePackageAccountAccountIdUnique<'ctx> { - /// Find the subscribed row whose `account_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_package_account"); - _table.add_unique_constraint::("account_id", |row| &row.account_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PackageAccount`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_package_accountQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PackageAccount`. - fn game_package_account(&self) -> __sdk::__query_builder::Table; -} - -impl game_package_accountQueryTableAccess for __sdk::QueryTableAccessor { - fn game_package_account(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_package_account") - } -} diff --git a/gateway/src/stdb/bindings/game_package_config_table.rs b/gateway/src/stdb/bindings/game_package_config_table.rs deleted file mode 100644 index 15b90b132..000000000 --- a/gateway/src/stdb/bindings/game_package_config_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::package_config_type::PackageConfig; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_package_config`. -/// -/// Obtain a handle from the [`GamePackageConfigTableAccess::game_package_config`] method on [`super::RemoteTables`], -/// like `ctx.db.game_package_config()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_package_config().on_insert(...)`. -pub struct GamePackageConfigTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_package_config`. -pub struct GamePackageConfigTableAccessor; - -impl __sdk::TableAccessor for GamePackageConfigTableAccessor { - type Row = PackageConfig; - type Handle<'db> = GamePackageConfigTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_package_config() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_package_config`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePackageConfigTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePackageConfigTableHandle`], which mediates access to the table `game_package_config`. - fn game_package_config(&self) -> GamePackageConfigTableHandle<'_>; -} - -impl GamePackageConfigTableAccess for super::RemoteTables { - fn game_package_config(&self) -> GamePackageConfigTableHandle<'_> { - GamePackageConfigTableHandle { - imp: self.imp.get_table::("game_package_config"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePackageConfigInsertCallbackId(__sdk::CallbackId); -pub struct GamePackageConfigDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePackageConfigTableHandle<'ctx> { - type Row = PackageConfig; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePackageConfigTableHandle<'ctx> { - type Row = PackageConfig; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePackageConfigInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageConfigInsertCallbackId { - GamePackageConfigInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePackageConfigInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePackageConfigDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageConfigDeleteCallbackId { - GamePackageConfigDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePackageConfigDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePackageConfigTableHandle<'ctx> { - type InsertCallbackId = GamePackageConfigInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageConfigInsertCallbackId { - GamePackageConfigInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePackageConfigInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePackageConfigTableHandle<'ctx> { - type DeleteCallbackId = GamePackageConfigDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageConfigDeleteCallbackId { - GamePackageConfigDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePackageConfigDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePackageConfigUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePackageConfigTableHandle<'ctx> { - type UpdateCallbackId = GamePackageConfigUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePackageConfigUpdateCallbackId { - GamePackageConfigUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePackageConfigUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePackageConfigTableHandle<'ctx> { - type UpdateCallbackId = GamePackageConfigUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePackageConfigUpdateCallbackId { - GamePackageConfigUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePackageConfigUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_package_config`, -/// which allows point queries on the field of the same name -/// via the [`GamePackageConfigIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_package_config().id().find(...)`. -pub struct GamePackageConfigIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePackageConfigTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_package_config`. - pub fn id(&self) -> GamePackageConfigIdUnique<'ctx> { - GamePackageConfigIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePackageConfigIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_package_config"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PackageConfig`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_package_configQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PackageConfig`. - fn game_package_config(&self) -> __sdk::__query_builder::Table; -} - -impl game_package_configQueryTableAccess for __sdk::QueryTableAccessor { - fn game_package_config(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_package_config") - } -} diff --git a/gateway/src/stdb/bindings/game_package_import_table.rs b/gateway/src/stdb/bindings/game_package_import_table.rs deleted file mode 100644 index c5006ebf8..000000000 --- a/gateway/src/stdb/bindings/game_package_import_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::package_import_type::PackageImport; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_package_import`. -/// -/// Obtain a handle from the [`GamePackageImportTableAccess::game_package_import`] method on [`super::RemoteTables`], -/// like `ctx.db.game_package_import()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_package_import().on_insert(...)`. -pub struct GamePackageImportTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_package_import`. -pub struct GamePackageImportTableAccessor; - -impl __sdk::TableAccessor for GamePackageImportTableAccessor { - type Row = PackageImport; - type Handle<'db> = GamePackageImportTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_package_import() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_package_import`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePackageImportTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePackageImportTableHandle`], which mediates access to the table `game_package_import`. - fn game_package_import(&self) -> GamePackageImportTableHandle<'_>; -} - -impl GamePackageImportTableAccess for super::RemoteTables { - fn game_package_import(&self) -> GamePackageImportTableHandle<'_> { - GamePackageImportTableHandle { - imp: self.imp.get_table::("game_package_import"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePackageImportInsertCallbackId(__sdk::CallbackId); -pub struct GamePackageImportDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePackageImportTableHandle<'ctx> { - type Row = PackageImport; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePackageImportTableHandle<'ctx> { - type Row = PackageImport; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePackageImportInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageImportInsertCallbackId { - GamePackageImportInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePackageImportInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePackageImportDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageImportDeleteCallbackId { - GamePackageImportDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePackageImportDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePackageImportTableHandle<'ctx> { - type InsertCallbackId = GamePackageImportInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageImportInsertCallbackId { - GamePackageImportInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePackageImportInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePackageImportTableHandle<'ctx> { - type DeleteCallbackId = GamePackageImportDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageImportDeleteCallbackId { - GamePackageImportDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePackageImportDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePackageImportUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePackageImportTableHandle<'ctx> { - type UpdateCallbackId = GamePackageImportUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePackageImportUpdateCallbackId { - GamePackageImportUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePackageImportUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePackageImportTableHandle<'ctx> { - type UpdateCallbackId = GamePackageImportUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePackageImportUpdateCallbackId { - GamePackageImportUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePackageImportUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_package_import`, -/// which allows point queries on the field of the same name -/// via the [`GamePackageImportIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_package_import().id().find(...)`. -pub struct GamePackageImportIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePackageImportTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_package_import`. - pub fn id(&self) -> GamePackageImportIdUnique<'ctx> { - GamePackageImportIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePackageImportIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_package_import"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PackageImport`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_package_importQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PackageImport`. - fn game_package_import(&self) -> __sdk::__query_builder::Table; -} - -impl game_package_importQueryTableAccess for __sdk::QueryTableAccessor { - fn game_package_import(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_package_import") - } -} diff --git a/gateway/src/stdb/bindings/game_package_teardown_table.rs b/gateway/src/stdb/bindings/game_package_teardown_table.rs deleted file mode 100644 index 16bc9e7e7..000000000 --- a/gateway/src/stdb/bindings/game_package_teardown_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::package_teardown_type::PackageTeardown; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_package_teardown`. -/// -/// Obtain a handle from the [`GamePackageTeardownTableAccess::game_package_teardown`] method on [`super::RemoteTables`], -/// like `ctx.db.game_package_teardown()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_package_teardown().on_insert(...)`. -pub struct GamePackageTeardownTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_package_teardown`. -pub struct GamePackageTeardownTableAccessor; - -impl __sdk::TableAccessor for GamePackageTeardownTableAccessor { - type Row = PackageTeardown; - type Handle<'db> = GamePackageTeardownTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_package_teardown() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_package_teardown`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePackageTeardownTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePackageTeardownTableHandle`], which mediates access to the table `game_package_teardown`. - fn game_package_teardown(&self) -> GamePackageTeardownTableHandle<'_>; -} - -impl GamePackageTeardownTableAccess for super::RemoteTables { - fn game_package_teardown(&self) -> GamePackageTeardownTableHandle<'_> { - GamePackageTeardownTableHandle { - imp: self - .imp - .get_table::("game_package_teardown"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePackageTeardownInsertCallbackId(__sdk::CallbackId); -pub struct GamePackageTeardownDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePackageTeardownTableHandle<'ctx> { - type Row = PackageTeardown; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePackageTeardownTableHandle<'ctx> { - type Row = PackageTeardown; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePackageTeardownInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageTeardownInsertCallbackId { - GamePackageTeardownInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePackageTeardownInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePackageTeardownDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageTeardownDeleteCallbackId { - GamePackageTeardownDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePackageTeardownDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePackageTeardownTableHandle<'ctx> { - type InsertCallbackId = GamePackageTeardownInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageTeardownInsertCallbackId { - GamePackageTeardownInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePackageTeardownInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePackageTeardownTableHandle<'ctx> { - type DeleteCallbackId = GamePackageTeardownDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePackageTeardownDeleteCallbackId { - GamePackageTeardownDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePackageTeardownDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePackageTeardownUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePackageTeardownTableHandle<'ctx> { - type UpdateCallbackId = GamePackageTeardownUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePackageTeardownUpdateCallbackId { - GamePackageTeardownUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePackageTeardownUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePackageTeardownTableHandle<'ctx> { - type UpdateCallbackId = GamePackageTeardownUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePackageTeardownUpdateCallbackId { - GamePackageTeardownUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePackageTeardownUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `package_name` unique index on the table `game_package_teardown`, -/// which allows point queries on the field of the same name -/// via the [`GamePackageTeardownPackageNameUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_package_teardown().package_name().find(...)`. -pub struct GamePackageTeardownPackageNameUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePackageTeardownTableHandle<'ctx> { - /// Get a handle on the `package_name` unique index on the table `game_package_teardown`. - pub fn package_name(&self) -> GamePackageTeardownPackageNameUnique<'ctx> { - GamePackageTeardownPackageNameUnique { - imp: self.imp.get_unique_constraint::("package_name"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePackageTeardownPackageNameUnique<'ctx> { - /// Find the subscribed row whose `package_name` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_package_teardown"); - _table.add_unique_constraint::("package_name", |row| &row.package_name); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PackageTeardown`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_package_teardownQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PackageTeardown`. - fn game_package_teardown(&self) -> __sdk::__query_builder::Table; -} - -impl game_package_teardownQueryTableAccess for __sdk::QueryTableAccessor { - fn game_package_teardown(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_package_teardown") - } -} diff --git a/gateway/src/stdb/bindings/game_party_command_dispatch_lane_table.rs b/gateway/src/stdb/bindings/game_party_command_dispatch_lane_table.rs deleted file mode 100644 index a321ddeb2..000000000 --- a/gateway/src/stdb/bindings/game_party_command_dispatch_lane_table.rs +++ /dev/null @@ -1,235 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::party_command_dispatch_lane_type::PartyCommandDispatchLane; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_party_command_dispatch_lane`. -/// -/// Obtain a handle from the [`GamePartyCommandDispatchLaneTableAccess::game_party_command_dispatch_lane`] method on [`super::RemoteTables`], -/// like `ctx.db.game_party_command_dispatch_lane()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_dispatch_lane().on_insert(...)`. -pub struct GamePartyCommandDispatchLaneTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_party_command_dispatch_lane`. -pub struct GamePartyCommandDispatchLaneTableAccessor; - -impl __sdk::TableAccessor for GamePartyCommandDispatchLaneTableAccessor { - type Row = PartyCommandDispatchLane; - type Handle<'db> = GamePartyCommandDispatchLaneTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_party_command_dispatch_lane() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_party_command_dispatch_lane`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePartyCommandDispatchLaneTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePartyCommandDispatchLaneTableHandle`], which mediates access to the table `game_party_command_dispatch_lane`. - fn game_party_command_dispatch_lane(&self) -> GamePartyCommandDispatchLaneTableHandle<'_>; -} - -impl GamePartyCommandDispatchLaneTableAccess for super::RemoteTables { - fn game_party_command_dispatch_lane(&self) -> GamePartyCommandDispatchLaneTableHandle<'_> { - GamePartyCommandDispatchLaneTableHandle { - imp: self - .imp - .get_table::("game_party_command_dispatch_lane"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePartyCommandDispatchLaneInsertCallbackId(__sdk::CallbackId); -pub struct GamePartyCommandDispatchLaneDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePartyCommandDispatchLaneTableHandle<'ctx> { - type Row = PartyCommandDispatchLane; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePartyCommandDispatchLaneTableHandle<'ctx> { - type Row = PartyCommandDispatchLane; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePartyCommandDispatchLaneInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandDispatchLaneInsertCallbackId { - GamePartyCommandDispatchLaneInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePartyCommandDispatchLaneInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePartyCommandDispatchLaneDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandDispatchLaneDeleteCallbackId { - GamePartyCommandDispatchLaneDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePartyCommandDispatchLaneDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePartyCommandDispatchLaneTableHandle<'ctx> { - type InsertCallbackId = GamePartyCommandDispatchLaneInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandDispatchLaneInsertCallbackId { - GamePartyCommandDispatchLaneInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePartyCommandDispatchLaneInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePartyCommandDispatchLaneTableHandle<'ctx> { - type DeleteCallbackId = GamePartyCommandDispatchLaneDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandDispatchLaneDeleteCallbackId { - GamePartyCommandDispatchLaneDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePartyCommandDispatchLaneDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePartyCommandDispatchLaneUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePartyCommandDispatchLaneTableHandle<'ctx> { - type UpdateCallbackId = GamePartyCommandDispatchLaneUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePartyCommandDispatchLaneUpdateCallbackId { - GamePartyCommandDispatchLaneUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePartyCommandDispatchLaneUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePartyCommandDispatchLaneTableHandle<'ctx> { - type UpdateCallbackId = GamePartyCommandDispatchLaneUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePartyCommandDispatchLaneUpdateCallbackId { - GamePartyCommandDispatchLaneUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePartyCommandDispatchLaneUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `lane` unique index on the table `game_party_command_dispatch_lane`, -/// which allows point queries on the field of the same name -/// via the [`GamePartyCommandDispatchLaneLaneUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_dispatch_lane().lane().find(...)`. -pub struct GamePartyCommandDispatchLaneLaneUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePartyCommandDispatchLaneTableHandle<'ctx> { - /// Get a handle on the `lane` unique index on the table `game_party_command_dispatch_lane`. - pub fn lane(&self) -> GamePartyCommandDispatchLaneLaneUnique<'ctx> { - GamePartyCommandDispatchLaneLaneUnique { - imp: self.imp.get_unique_constraint::("lane"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePartyCommandDispatchLaneLaneUnique<'ctx> { - /// Find the subscribed row whose `lane` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u8) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("game_party_command_dispatch_lane"); - _table.add_unique_constraint::("lane", |row| &row.lane); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PartyCommandDispatchLane`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_party_command_dispatch_laneQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PartyCommandDispatchLane`. - fn game_party_command_dispatch_lane( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl game_party_command_dispatch_laneQueryTableAccess for __sdk::QueryTableAccessor { - fn game_party_command_dispatch_lane( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_party_command_dispatch_lane") - } -} diff --git a/gateway/src/stdb/bindings/game_party_command_intent_table.rs b/gateway/src/stdb/bindings/game_party_command_intent_table.rs deleted file mode 100644 index cf6d1ba27..000000000 --- a/gateway/src/stdb/bindings/game_party_command_intent_table.rs +++ /dev/null @@ -1,232 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::command_intent_state_type::CommandIntentState; -use super::parsed_client_command_type::ParsedClientCommand; -use super::party_command_intent_type::PartyCommandIntent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_party_command_intent`. -/// -/// Obtain a handle from the [`GamePartyCommandIntentTableAccess::game_party_command_intent`] method on [`super::RemoteTables`], -/// like `ctx.db.game_party_command_intent()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_intent().on_insert(...)`. -pub struct GamePartyCommandIntentTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_party_command_intent`. -pub struct GamePartyCommandIntentTableAccessor; - -impl __sdk::TableAccessor for GamePartyCommandIntentTableAccessor { - type Row = PartyCommandIntent; - type Handle<'db> = GamePartyCommandIntentTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_party_command_intent() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_party_command_intent`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePartyCommandIntentTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePartyCommandIntentTableHandle`], which mediates access to the table `game_party_command_intent`. - fn game_party_command_intent(&self) -> GamePartyCommandIntentTableHandle<'_>; -} - -impl GamePartyCommandIntentTableAccess for super::RemoteTables { - fn game_party_command_intent(&self) -> GamePartyCommandIntentTableHandle<'_> { - GamePartyCommandIntentTableHandle { - imp: self - .imp - .get_table::("game_party_command_intent"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePartyCommandIntentInsertCallbackId(__sdk::CallbackId); -pub struct GamePartyCommandIntentDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePartyCommandIntentTableHandle<'ctx> { - type Row = PartyCommandIntent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePartyCommandIntentTableHandle<'ctx> { - type Row = PartyCommandIntent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePartyCommandIntentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIntentInsertCallbackId { - GamePartyCommandIntentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePartyCommandIntentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePartyCommandIntentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIntentDeleteCallbackId { - GamePartyCommandIntentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePartyCommandIntentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePartyCommandIntentTableHandle<'ctx> { - type InsertCallbackId = GamePartyCommandIntentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIntentInsertCallbackId { - GamePartyCommandIntentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePartyCommandIntentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePartyCommandIntentTableHandle<'ctx> { - type DeleteCallbackId = GamePartyCommandIntentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIntentDeleteCallbackId { - GamePartyCommandIntentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePartyCommandIntentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePartyCommandIntentUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePartyCommandIntentTableHandle<'ctx> { - type UpdateCallbackId = GamePartyCommandIntentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIntentUpdateCallbackId { - GamePartyCommandIntentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePartyCommandIntentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePartyCommandIntentTableHandle<'ctx> { - type UpdateCallbackId = GamePartyCommandIntentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIntentUpdateCallbackId { - GamePartyCommandIntentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePartyCommandIntentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_party_command_intent`, -/// which allows point queries on the field of the same name -/// via the [`GamePartyCommandIntentIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_intent().id().find(...)`. -pub struct GamePartyCommandIntentIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePartyCommandIntentTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_party_command_intent`. - pub fn id(&self) -> GamePartyCommandIntentIdUnique<'ctx> { - GamePartyCommandIntentIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePartyCommandIntentIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_party_command_intent"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PartyCommandIntent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_party_command_intentQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PartyCommandIntent`. - fn game_party_command_intent(&self) -> __sdk::__query_builder::Table; -} - -impl game_party_command_intentQueryTableAccess for __sdk::QueryTableAccessor { - fn game_party_command_intent(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_party_command_intent") - } -} diff --git a/gateway/src/stdb/bindings/game_party_command_issuer_table.rs b/gateway/src/stdb/bindings/game_party_command_issuer_table.rs deleted file mode 100644 index 63c6e1398..000000000 --- a/gateway/src/stdb/bindings/game_party_command_issuer_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::party_command_issuer_type::PartyCommandIssuer; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_party_command_issuer`. -/// -/// Obtain a handle from the [`GamePartyCommandIssuerTableAccess::game_party_command_issuer`] method on [`super::RemoteTables`], -/// like `ctx.db.game_party_command_issuer()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_issuer().on_insert(...)`. -pub struct GamePartyCommandIssuerTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_party_command_issuer`. -pub struct GamePartyCommandIssuerTableAccessor; - -impl __sdk::TableAccessor for GamePartyCommandIssuerTableAccessor { - type Row = PartyCommandIssuer; - type Handle<'db> = GamePartyCommandIssuerTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_party_command_issuer() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_party_command_issuer`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePartyCommandIssuerTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePartyCommandIssuerTableHandle`], which mediates access to the table `game_party_command_issuer`. - fn game_party_command_issuer(&self) -> GamePartyCommandIssuerTableHandle<'_>; -} - -impl GamePartyCommandIssuerTableAccess for super::RemoteTables { - fn game_party_command_issuer(&self) -> GamePartyCommandIssuerTableHandle<'_> { - GamePartyCommandIssuerTableHandle { - imp: self - .imp - .get_table::("game_party_command_issuer"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePartyCommandIssuerInsertCallbackId(__sdk::CallbackId); -pub struct GamePartyCommandIssuerDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePartyCommandIssuerTableHandle<'ctx> { - type Row = PartyCommandIssuer; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePartyCommandIssuerTableHandle<'ctx> { - type Row = PartyCommandIssuer; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePartyCommandIssuerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIssuerInsertCallbackId { - GamePartyCommandIssuerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePartyCommandIssuerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePartyCommandIssuerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIssuerDeleteCallbackId { - GamePartyCommandIssuerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePartyCommandIssuerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePartyCommandIssuerTableHandle<'ctx> { - type InsertCallbackId = GamePartyCommandIssuerInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIssuerInsertCallbackId { - GamePartyCommandIssuerInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePartyCommandIssuerInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePartyCommandIssuerTableHandle<'ctx> { - type DeleteCallbackId = GamePartyCommandIssuerDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIssuerDeleteCallbackId { - GamePartyCommandIssuerDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePartyCommandIssuerDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePartyCommandIssuerUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePartyCommandIssuerTableHandle<'ctx> { - type UpdateCallbackId = GamePartyCommandIssuerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIssuerUpdateCallbackId { - GamePartyCommandIssuerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePartyCommandIssuerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePartyCommandIssuerTableHandle<'ctx> { - type UpdateCallbackId = GamePartyCommandIssuerUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePartyCommandIssuerUpdateCallbackId { - GamePartyCommandIssuerUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePartyCommandIssuerUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `character_guid` unique index on the table `game_party_command_issuer`, -/// which allows point queries on the field of the same name -/// via the [`GamePartyCommandIssuerCharacterGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_issuer().character_guid().find(...)`. -pub struct GamePartyCommandIssuerCharacterGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePartyCommandIssuerTableHandle<'ctx> { - /// Get a handle on the `character_guid` unique index on the table `game_party_command_issuer`. - pub fn character_guid(&self) -> GamePartyCommandIssuerCharacterGuidUnique<'ctx> { - GamePartyCommandIssuerCharacterGuidUnique { - imp: self.imp.get_unique_constraint::("character_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePartyCommandIssuerCharacterGuidUnique<'ctx> { - /// Find the subscribed row whose `character_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_party_command_issuer"); - _table.add_unique_constraint::("character_guid", |row| &row.character_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PartyCommandIssuer`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_party_command_issuerQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PartyCommandIssuer`. - fn game_party_command_issuer(&self) -> __sdk::__query_builder::Table; -} - -impl game_party_command_issuerQueryTableAccess for __sdk::QueryTableAccessor { - fn game_party_command_issuer(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_party_command_issuer") - } -} diff --git a/gateway/src/stdb/bindings/game_party_command_receipt_table.rs b/gateway/src/stdb/bindings/game_party_command_receipt_table.rs deleted file mode 100644 index 4365585d1..000000000 --- a/gateway/src/stdb/bindings/game_party_command_receipt_table.rs +++ /dev/null @@ -1,263 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::command_outcome_type::CommandOutcome; -use super::party_command_receipt_type::PartyCommandReceipt; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_party_command_receipt`. -/// -/// Obtain a handle from the [`GamePartyCommandReceiptTableAccess::game_party_command_receipt`] method on [`super::RemoteTables`], -/// like `ctx.db.game_party_command_receipt()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_receipt().on_insert(...)`. -pub struct GamePartyCommandReceiptTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_party_command_receipt`. -pub struct GamePartyCommandReceiptTableAccessor; - -impl __sdk::TableAccessor for GamePartyCommandReceiptTableAccessor { - type Row = PartyCommandReceipt; - type Handle<'db> = GamePartyCommandReceiptTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_party_command_receipt() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_party_command_receipt`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePartyCommandReceiptTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePartyCommandReceiptTableHandle`], which mediates access to the table `game_party_command_receipt`. - fn game_party_command_receipt(&self) -> GamePartyCommandReceiptTableHandle<'_>; -} - -impl GamePartyCommandReceiptTableAccess for super::RemoteTables { - fn game_party_command_receipt(&self) -> GamePartyCommandReceiptTableHandle<'_> { - GamePartyCommandReceiptTableHandle { - imp: self - .imp - .get_table::("game_party_command_receipt"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePartyCommandReceiptInsertCallbackId(__sdk::CallbackId); -pub struct GamePartyCommandReceiptDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePartyCommandReceiptTableHandle<'ctx> { - type Row = PartyCommandReceipt; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePartyCommandReceiptTableHandle<'ctx> { - type Row = PartyCommandReceipt; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePartyCommandReceiptInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandReceiptInsertCallbackId { - GamePartyCommandReceiptInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePartyCommandReceiptInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePartyCommandReceiptDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandReceiptDeleteCallbackId { - GamePartyCommandReceiptDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePartyCommandReceiptDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePartyCommandReceiptTableHandle<'ctx> { - type InsertCallbackId = GamePartyCommandReceiptInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandReceiptInsertCallbackId { - GamePartyCommandReceiptInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePartyCommandReceiptInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePartyCommandReceiptTableHandle<'ctx> { - type DeleteCallbackId = GamePartyCommandReceiptDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePartyCommandReceiptDeleteCallbackId { - GamePartyCommandReceiptDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePartyCommandReceiptDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePartyCommandReceiptUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePartyCommandReceiptTableHandle<'ctx> { - type UpdateCallbackId = GamePartyCommandReceiptUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePartyCommandReceiptUpdateCallbackId { - GamePartyCommandReceiptUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePartyCommandReceiptUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePartyCommandReceiptTableHandle<'ctx> { - type UpdateCallbackId = GamePartyCommandReceiptUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePartyCommandReceiptUpdateCallbackId { - GamePartyCommandReceiptUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePartyCommandReceiptUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_party_command_receipt`, -/// which allows point queries on the field of the same name -/// via the [`GamePartyCommandReceiptIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_receipt().id().find(...)`. -pub struct GamePartyCommandReceiptIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePartyCommandReceiptTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_party_command_receipt`. - pub fn id(&self) -> GamePartyCommandReceiptIdUnique<'ctx> { - GamePartyCommandReceiptIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePartyCommandReceiptIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -/// Access to the `receipt_key` unique index on the table `game_party_command_receipt`, -/// which allows point queries on the field of the same name -/// via the [`GamePartyCommandReceiptReceiptKeyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_party_command_receipt().receipt_key().find(...)`. -pub struct GamePartyCommandReceiptReceiptKeyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePartyCommandReceiptTableHandle<'ctx> { - /// Get a handle on the `receipt_key` unique index on the table `game_party_command_receipt`. - pub fn receipt_key(&self) -> GamePartyCommandReceiptReceiptKeyUnique<'ctx> { - GamePartyCommandReceiptReceiptKeyUnique { - imp: self.imp.get_unique_constraint::("receipt_key"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePartyCommandReceiptReceiptKeyUnique<'ctx> { - /// Find the subscribed row whose `receipt_key` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_party_command_receipt"); - _table.add_unique_constraint::("id", |row| &row.id); - _table.add_unique_constraint::("receipt_key", |row| &row.receipt_key); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PartyCommandReceipt`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_party_command_receiptQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PartyCommandReceipt`. - fn game_party_command_receipt(&self) -> __sdk::__query_builder::Table; -} - -impl game_party_command_receiptQueryTableAccess for __sdk::QueryTableAccessor { - fn game_party_command_receipt(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_party_command_receipt") - } -} diff --git a/gateway/src/stdb/bindings/game_pending_cast_table.rs b/gateway/src/stdb/bindings/game_pending_cast_table.rs deleted file mode 100644 index 1438c0d7b..000000000 --- a/gateway/src/stdb/bindings/game_pending_cast_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::pending_cast_type::PendingCast; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_pending_cast`. -/// -/// Obtain a handle from the [`GamePendingCastTableAccess::game_pending_cast`] method on [`super::RemoteTables`], -/// like `ctx.db.game_pending_cast()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pending_cast().on_insert(...)`. -pub struct GamePendingCastTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_pending_cast`. -pub struct GamePendingCastTableAccessor; - -impl __sdk::TableAccessor for GamePendingCastTableAccessor { - type Row = PendingCast; - type Handle<'db> = GamePendingCastTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_pending_cast() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_pending_cast`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePendingCastTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePendingCastTableHandle`], which mediates access to the table `game_pending_cast`. - fn game_pending_cast(&self) -> GamePendingCastTableHandle<'_>; -} - -impl GamePendingCastTableAccess for super::RemoteTables { - fn game_pending_cast(&self) -> GamePendingCastTableHandle<'_> { - GamePendingCastTableHandle { - imp: self.imp.get_table::("game_pending_cast"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePendingCastInsertCallbackId(__sdk::CallbackId); -pub struct GamePendingCastDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePendingCastTableHandle<'ctx> { - type Row = PendingCast; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePendingCastTableHandle<'ctx> { - type Row = PendingCast; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePendingCastInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePendingCastInsertCallbackId { - GamePendingCastInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePendingCastInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePendingCastDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePendingCastDeleteCallbackId { - GamePendingCastDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePendingCastDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePendingCastTableHandle<'ctx> { - type InsertCallbackId = GamePendingCastInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePendingCastInsertCallbackId { - GamePendingCastInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePendingCastInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePendingCastTableHandle<'ctx> { - type DeleteCallbackId = GamePendingCastDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePendingCastDeleteCallbackId { - GamePendingCastDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePendingCastDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePendingCastUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePendingCastTableHandle<'ctx> { - type UpdateCallbackId = GamePendingCastUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePendingCastUpdateCallbackId { - GamePendingCastUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePendingCastUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePendingCastTableHandle<'ctx> { - type UpdateCallbackId = GamePendingCastUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePendingCastUpdateCallbackId { - GamePendingCastUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePendingCastUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_pending_cast`, -/// which allows point queries on the field of the same name -/// via the [`GamePendingCastScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pending_cast().scheduled_id().find(...)`. -pub struct GamePendingCastScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePendingCastTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_pending_cast`. - pub fn scheduled_id(&self) -> GamePendingCastScheduledIdUnique<'ctx> { - GamePendingCastScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePendingCastScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_pending_cast"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PendingCast`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_pending_castQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PendingCast`. - fn game_pending_cast(&self) -> __sdk::__query_builder::Table; -} - -impl game_pending_castQueryTableAccess for __sdk::QueryTableAccessor { - fn game_pending_cast(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_pending_cast") - } -} diff --git a/gateway/src/stdb/bindings/game_pending_spell_impact_table.rs b/gateway/src/stdb/bindings/game_pending_spell_impact_table.rs deleted file mode 100644 index 8960f7bf6..000000000 --- a/gateway/src/stdb/bindings/game_pending_spell_impact_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::pending_spell_impact_type::PendingSpellImpact; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_pending_spell_impact`. -/// -/// Obtain a handle from the [`GamePendingSpellImpactTableAccess::game_pending_spell_impact`] method on [`super::RemoteTables`], -/// like `ctx.db.game_pending_spell_impact()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pending_spell_impact().on_insert(...)`. -pub struct GamePendingSpellImpactTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_pending_spell_impact`. -pub struct GamePendingSpellImpactTableAccessor; - -impl __sdk::TableAccessor for GamePendingSpellImpactTableAccessor { - type Row = PendingSpellImpact; - type Handle<'db> = GamePendingSpellImpactTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_pending_spell_impact() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_pending_spell_impact`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePendingSpellImpactTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePendingSpellImpactTableHandle`], which mediates access to the table `game_pending_spell_impact`. - fn game_pending_spell_impact(&self) -> GamePendingSpellImpactTableHandle<'_>; -} - -impl GamePendingSpellImpactTableAccess for super::RemoteTables { - fn game_pending_spell_impact(&self) -> GamePendingSpellImpactTableHandle<'_> { - GamePendingSpellImpactTableHandle { - imp: self - .imp - .get_table::("game_pending_spell_impact"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePendingSpellImpactInsertCallbackId(__sdk::CallbackId); -pub struct GamePendingSpellImpactDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePendingSpellImpactTableHandle<'ctx> { - type Row = PendingSpellImpact; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePendingSpellImpactTableHandle<'ctx> { - type Row = PendingSpellImpact; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePendingSpellImpactInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePendingSpellImpactInsertCallbackId { - GamePendingSpellImpactInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePendingSpellImpactInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePendingSpellImpactDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePendingSpellImpactDeleteCallbackId { - GamePendingSpellImpactDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePendingSpellImpactDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePendingSpellImpactTableHandle<'ctx> { - type InsertCallbackId = GamePendingSpellImpactInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePendingSpellImpactInsertCallbackId { - GamePendingSpellImpactInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePendingSpellImpactInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePendingSpellImpactTableHandle<'ctx> { - type DeleteCallbackId = GamePendingSpellImpactDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePendingSpellImpactDeleteCallbackId { - GamePendingSpellImpactDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePendingSpellImpactDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePendingSpellImpactUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePendingSpellImpactTableHandle<'ctx> { - type UpdateCallbackId = GamePendingSpellImpactUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePendingSpellImpactUpdateCallbackId { - GamePendingSpellImpactUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePendingSpellImpactUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePendingSpellImpactTableHandle<'ctx> { - type UpdateCallbackId = GamePendingSpellImpactUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePendingSpellImpactUpdateCallbackId { - GamePendingSpellImpactUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePendingSpellImpactUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_pending_spell_impact`, -/// which allows point queries on the field of the same name -/// via the [`GamePendingSpellImpactScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pending_spell_impact().scheduled_id().find(...)`. -pub struct GamePendingSpellImpactScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePendingSpellImpactTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_pending_spell_impact`. - pub fn scheduled_id(&self) -> GamePendingSpellImpactScheduledIdUnique<'ctx> { - GamePendingSpellImpactScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePendingSpellImpactScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_pending_spell_impact"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PendingSpellImpact`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_pending_spell_impactQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PendingSpellImpact`. - fn game_pending_spell_impact(&self) -> __sdk::__query_builder::Table; -} - -impl game_pending_spell_impactQueryTableAccess for __sdk::QueryTableAccessor { - fn game_pending_spell_impact(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_pending_spell_impact") - } -} diff --git a/gateway/src/stdb/bindings/game_pet_care_schedule_table.rs b/gateway/src/stdb/bindings/game_pet_care_schedule_table.rs deleted file mode 100644 index a5704a10a..000000000 --- a/gateway/src/stdb/bindings/game_pet_care_schedule_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::pet_care_schedule_type::PetCareSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_pet_care_schedule`. -/// -/// Obtain a handle from the [`GamePetCareScheduleTableAccess::game_pet_care_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_pet_care_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pet_care_schedule().on_insert(...)`. -pub struct GamePetCareScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_pet_care_schedule`. -pub struct GamePetCareScheduleTableAccessor; - -impl __sdk::TableAccessor for GamePetCareScheduleTableAccessor { - type Row = PetCareSchedule; - type Handle<'db> = GamePetCareScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_pet_care_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_pet_care_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePetCareScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePetCareScheduleTableHandle`], which mediates access to the table `game_pet_care_schedule`. - fn game_pet_care_schedule(&self) -> GamePetCareScheduleTableHandle<'_>; -} - -impl GamePetCareScheduleTableAccess for super::RemoteTables { - fn game_pet_care_schedule(&self) -> GamePetCareScheduleTableHandle<'_> { - GamePetCareScheduleTableHandle { - imp: self - .imp - .get_table::("game_pet_care_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePetCareScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GamePetCareScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePetCareScheduleTableHandle<'ctx> { - type Row = PetCareSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePetCareScheduleTableHandle<'ctx> { - type Row = PetCareSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePetCareScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePetCareScheduleInsertCallbackId { - GamePetCareScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePetCareScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePetCareScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePetCareScheduleDeleteCallbackId { - GamePetCareScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePetCareScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePetCareScheduleTableHandle<'ctx> { - type InsertCallbackId = GamePetCareScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePetCareScheduleInsertCallbackId { - GamePetCareScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePetCareScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePetCareScheduleTableHandle<'ctx> { - type DeleteCallbackId = GamePetCareScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePetCareScheduleDeleteCallbackId { - GamePetCareScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePetCareScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePetCareScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePetCareScheduleTableHandle<'ctx> { - type UpdateCallbackId = GamePetCareScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePetCareScheduleUpdateCallbackId { - GamePetCareScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePetCareScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePetCareScheduleTableHandle<'ctx> { - type UpdateCallbackId = GamePetCareScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePetCareScheduleUpdateCallbackId { - GamePetCareScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePetCareScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_pet_care_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GamePetCareScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pet_care_schedule().scheduled_id().find(...)`. -pub struct GamePetCareScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePetCareScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_pet_care_schedule`. - pub fn scheduled_id(&self) -> GamePetCareScheduleScheduledIdUnique<'ctx> { - GamePetCareScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePetCareScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_pet_care_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PetCareSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_pet_care_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PetCareSchedule`. - fn game_pet_care_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_pet_care_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_pet_care_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_pet_care_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_pet_command_table.rs b/gateway/src/stdb/bindings/game_pet_command_table.rs deleted file mode 100644 index 32e68d131..000000000 --- a/gateway/src/stdb/bindings/game_pet_command_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::pet_command_type::PetCommand; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_pet_command`. -/// -/// Obtain a handle from the [`GamePetCommandTableAccess::game_pet_command`] method on [`super::RemoteTables`], -/// like `ctx.db.game_pet_command()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pet_command().on_insert(...)`. -pub struct GamePetCommandTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_pet_command`. -pub struct GamePetCommandTableAccessor; - -impl __sdk::TableAccessor for GamePetCommandTableAccessor { - type Row = PetCommand; - type Handle<'db> = GamePetCommandTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_pet_command() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_pet_command`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePetCommandTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePetCommandTableHandle`], which mediates access to the table `game_pet_command`. - fn game_pet_command(&self) -> GamePetCommandTableHandle<'_>; -} - -impl GamePetCommandTableAccess for super::RemoteTables { - fn game_pet_command(&self) -> GamePetCommandTableHandle<'_> { - GamePetCommandTableHandle { - imp: self.imp.get_table::("game_pet_command"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePetCommandInsertCallbackId(__sdk::CallbackId); -pub struct GamePetCommandDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePetCommandTableHandle<'ctx> { - type Row = PetCommand; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePetCommandTableHandle<'ctx> { - type Row = PetCommand; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePetCommandInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePetCommandInsertCallbackId { - GamePetCommandInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePetCommandInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePetCommandDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePetCommandDeleteCallbackId { - GamePetCommandDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePetCommandDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePetCommandTableHandle<'ctx> { - type InsertCallbackId = GamePetCommandInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePetCommandInsertCallbackId { - GamePetCommandInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePetCommandInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePetCommandTableHandle<'ctx> { - type DeleteCallbackId = GamePetCommandDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePetCommandDeleteCallbackId { - GamePetCommandDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePetCommandDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePetCommandUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePetCommandTableHandle<'ctx> { - type UpdateCallbackId = GamePetCommandUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePetCommandUpdateCallbackId { - GamePetCommandUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePetCommandUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePetCommandTableHandle<'ctx> { - type UpdateCallbackId = GamePetCommandUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePetCommandUpdateCallbackId { - GamePetCommandUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePetCommandUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `owner_guid` unique index on the table `game_pet_command`, -/// which allows point queries on the field of the same name -/// via the [`GamePetCommandOwnerGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pet_command().owner_guid().find(...)`. -pub struct GamePetCommandOwnerGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePetCommandTableHandle<'ctx> { - /// Get a handle on the `owner_guid` unique index on the table `game_pet_command`. - pub fn owner_guid(&self) -> GamePetCommandOwnerGuidUnique<'ctx> { - GamePetCommandOwnerGuidUnique { - imp: self.imp.get_unique_constraint::("owner_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePetCommandOwnerGuidUnique<'ctx> { - /// Find the subscribed row whose `owner_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_pet_command"); - _table.add_unique_constraint::("owner_guid", |row| &row.owner_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PetCommand`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_pet_commandQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PetCommand`. - fn game_pet_command(&self) -> __sdk::__query_builder::Table; -} - -impl game_pet_commandQueryTableAccess for __sdk::QueryTableAccessor { - fn game_pet_command(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_pet_command") - } -} diff --git a/gateway/src/stdb/bindings/game_pickpocket_loot_table.rs b/gateway/src/stdb/bindings/game_pickpocket_loot_table.rs deleted file mode 100644 index 2e61d2e31..000000000 --- a/gateway/src/stdb/bindings/game_pickpocket_loot_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::game_pickpocket_loot_type::GamePickpocketLoot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_pickpocket_loot`. -/// -/// Obtain a handle from the [`GamePickpocketLootTableAccess::game_pickpocket_loot`] method on [`super::RemoteTables`], -/// like `ctx.db.game_pickpocket_loot()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pickpocket_loot().on_insert(...)`. -pub struct GamePickpocketLootTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_pickpocket_loot`. -pub struct GamePickpocketLootTableAccessor; - -impl __sdk::TableAccessor for GamePickpocketLootTableAccessor { - type Row = GamePickpocketLoot; - type Handle<'db> = GamePickpocketLootTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_pickpocket_loot() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_pickpocket_loot`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePickpocketLootTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePickpocketLootTableHandle`], which mediates access to the table `game_pickpocket_loot`. - fn game_pickpocket_loot(&self) -> GamePickpocketLootTableHandle<'_>; -} - -impl GamePickpocketLootTableAccess for super::RemoteTables { - fn game_pickpocket_loot(&self) -> GamePickpocketLootTableHandle<'_> { - GamePickpocketLootTableHandle { - imp: self - .imp - .get_table::("game_pickpocket_loot"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePickpocketLootInsertCallbackId(__sdk::CallbackId); -pub struct GamePickpocketLootDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePickpocketLootTableHandle<'ctx> { - type Row = GamePickpocketLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePickpocketLootTableHandle<'ctx> { - type Row = GamePickpocketLoot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePickpocketLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePickpocketLootInsertCallbackId { - GamePickpocketLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePickpocketLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePickpocketLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePickpocketLootDeleteCallbackId { - GamePickpocketLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePickpocketLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePickpocketLootTableHandle<'ctx> { - type InsertCallbackId = GamePickpocketLootInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePickpocketLootInsertCallbackId { - GamePickpocketLootInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePickpocketLootInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePickpocketLootTableHandle<'ctx> { - type DeleteCallbackId = GamePickpocketLootDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePickpocketLootDeleteCallbackId { - GamePickpocketLootDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePickpocketLootDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePickpocketLootUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePickpocketLootTableHandle<'ctx> { - type UpdateCallbackId = GamePickpocketLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePickpocketLootUpdateCallbackId { - GamePickpocketLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePickpocketLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePickpocketLootTableHandle<'ctx> { - type UpdateCallbackId = GamePickpocketLootUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePickpocketLootUpdateCallbackId { - GamePickpocketLootUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePickpocketLootUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_pickpocket_loot`, -/// which allows point queries on the field of the same name -/// via the [`GamePickpocketLootIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_pickpocket_loot().id().find(...)`. -pub struct GamePickpocketLootIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePickpocketLootTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_pickpocket_loot`. - pub fn id(&self) -> GamePickpocketLootIdUnique<'ctx> { - GamePickpocketLootIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePickpocketLootIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_pickpocket_loot"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `GamePickpocketLoot`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_pickpocket_lootQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `GamePickpocketLoot`. - fn game_pickpocket_loot(&self) -> __sdk::__query_builder::Table; -} - -impl game_pickpocket_lootQueryTableAccess for __sdk::QueryTableAccessor { - fn game_pickpocket_loot(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_pickpocket_loot") - } -} diff --git a/gateway/src/stdb/bindings/game_pickpocket_loot_type.rs b/gateway/src/stdb/bindings/game_pickpocket_loot_type.rs deleted file mode 100644 index b05bb7c5e..000000000 --- a/gateway/src/stdb/bindings/game_pickpocket_loot_type.rs +++ /dev/null @@ -1,69 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GamePickpocketLoot { - pub id: u64, - pub creature_entry: u32, - pub item_entry: u32, - pub chance_bp: u32, - pub count: u32, - pub group_id: u32, - pub quest_only: bool, -} - -impl __sdk::InModule for GamePickpocketLoot { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `GamePickpocketLoot`. -/// -/// Provides typed access to columns for query building. -pub struct GamePickpocketLootCols { - pub id: __sdk::__query_builder::Col, - pub creature_entry: __sdk::__query_builder::Col, - pub item_entry: __sdk::__query_builder::Col, - pub chance_bp: __sdk::__query_builder::Col, - pub count: __sdk::__query_builder::Col, - pub group_id: __sdk::__query_builder::Col, - pub quest_only: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for GamePickpocketLoot { - type Cols = GamePickpocketLootCols; - fn cols(table_name: &'static str) -> Self::Cols { - GamePickpocketLootCols { - id: __sdk::__query_builder::Col::new(table_name, "id"), - creature_entry: __sdk::__query_builder::Col::new(table_name, "creature_entry"), - item_entry: __sdk::__query_builder::Col::new(table_name, "item_entry"), - chance_bp: __sdk::__query_builder::Col::new(table_name, "chance_bp"), - count: __sdk::__query_builder::Col::new(table_name, "count"), - group_id: __sdk::__query_builder::Col::new(table_name, "group_id"), - quest_only: __sdk::__query_builder::Col::new(table_name, "quest_only"), - } - } -} - -/// Indexed column accessor struct for the table `GamePickpocketLoot`. -/// -/// Provides typed access to indexed columns for query building. -pub struct GamePickpocketLootIxCols { - pub creature_entry: __sdk::__query_builder::IxCol, - pub id: __sdk::__query_builder::IxCol, -} - -impl __sdk::__query_builder::HasIxCols for GamePickpocketLoot { - type IxCols = GamePickpocketLootIxCols; - fn ix_cols(table_name: &'static str) -> Self::IxCols { - GamePickpocketLootIxCols { - creature_entry: __sdk::__query_builder::IxCol::new(table_name, "creature_entry"), - id: __sdk::__query_builder::IxCol::new(table_name, "id"), - } - } -} - -impl __sdk::__query_builder::CanBeLookupTable for GamePickpocketLoot {} diff --git a/gateway/src/stdb/bindings/game_player_action_table.rs b/gateway/src/stdb/bindings/game_player_action_table.rs deleted file mode 100644 index 2f0b789b0..000000000 --- a/gateway/src/stdb/bindings/game_player_action_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::player_action_type::PlayerAction; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_player_action`. -/// -/// Obtain a handle from the [`GamePlayerActionTableAccess::game_player_action`] method on [`super::RemoteTables`], -/// like `ctx.db.game_player_action()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_player_action().on_insert(...)`. -pub struct GamePlayerActionTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_player_action`. -pub struct GamePlayerActionTableAccessor; - -impl __sdk::TableAccessor for GamePlayerActionTableAccessor { - type Row = PlayerAction; - type Handle<'db> = GamePlayerActionTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_player_action() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_player_action`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePlayerActionTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePlayerActionTableHandle`], which mediates access to the table `game_player_action`. - fn game_player_action(&self) -> GamePlayerActionTableHandle<'_>; -} - -impl GamePlayerActionTableAccess for super::RemoteTables { - fn game_player_action(&self) -> GamePlayerActionTableHandle<'_> { - GamePlayerActionTableHandle { - imp: self.imp.get_table::("game_player_action"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePlayerActionInsertCallbackId(__sdk::CallbackId); -pub struct GamePlayerActionDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePlayerActionTableHandle<'ctx> { - type Row = PlayerAction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePlayerActionTableHandle<'ctx> { - type Row = PlayerAction; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePlayerActionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerActionInsertCallbackId { - GamePlayerActionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePlayerActionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePlayerActionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerActionDeleteCallbackId { - GamePlayerActionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePlayerActionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePlayerActionTableHandle<'ctx> { - type InsertCallbackId = GamePlayerActionInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerActionInsertCallbackId { - GamePlayerActionInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePlayerActionInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePlayerActionTableHandle<'ctx> { - type DeleteCallbackId = GamePlayerActionDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerActionDeleteCallbackId { - GamePlayerActionDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePlayerActionDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePlayerActionUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePlayerActionTableHandle<'ctx> { - type UpdateCallbackId = GamePlayerActionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePlayerActionUpdateCallbackId { - GamePlayerActionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePlayerActionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePlayerActionTableHandle<'ctx> { - type UpdateCallbackId = GamePlayerActionUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePlayerActionUpdateCallbackId { - GamePlayerActionUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePlayerActionUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_player_action`, -/// which allows point queries on the field of the same name -/// via the [`GamePlayerActionIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_player_action().id().find(...)`. -pub struct GamePlayerActionIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePlayerActionTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_player_action`. - pub fn id(&self) -> GamePlayerActionIdUnique<'ctx> { - GamePlayerActionIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePlayerActionIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_player_action"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PlayerAction`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_player_actionQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PlayerAction`. - fn game_player_action(&self) -> __sdk::__query_builder::Table; -} - -impl game_player_actionQueryTableAccess for __sdk::QueryTableAccessor { - fn game_player_action(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_player_action") - } -} diff --git a/gateway/src/stdb/bindings/game_player_reputation_table.rs b/gateway/src/stdb/bindings/game_player_reputation_table.rs deleted file mode 100644 index 98742fe7c..000000000 --- a/gateway/src/stdb/bindings/game_player_reputation_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::player_reputation_type::PlayerReputation; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_player_reputation`. -/// -/// Obtain a handle from the [`GamePlayerReputationTableAccess::game_player_reputation`] method on [`super::RemoteTables`], -/// like `ctx.db.game_player_reputation()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_player_reputation().on_insert(...)`. -pub struct GamePlayerReputationTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_player_reputation`. -pub struct GamePlayerReputationTableAccessor; - -impl __sdk::TableAccessor for GamePlayerReputationTableAccessor { - type Row = PlayerReputation; - type Handle<'db> = GamePlayerReputationTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_player_reputation() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_player_reputation`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePlayerReputationTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePlayerReputationTableHandle`], which mediates access to the table `game_player_reputation`. - fn game_player_reputation(&self) -> GamePlayerReputationTableHandle<'_>; -} - -impl GamePlayerReputationTableAccess for super::RemoteTables { - fn game_player_reputation(&self) -> GamePlayerReputationTableHandle<'_> { - GamePlayerReputationTableHandle { - imp: self - .imp - .get_table::("game_player_reputation"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePlayerReputationInsertCallbackId(__sdk::CallbackId); -pub struct GamePlayerReputationDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePlayerReputationTableHandle<'ctx> { - type Row = PlayerReputation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePlayerReputationTableHandle<'ctx> { - type Row = PlayerReputation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePlayerReputationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerReputationInsertCallbackId { - GamePlayerReputationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePlayerReputationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePlayerReputationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerReputationDeleteCallbackId { - GamePlayerReputationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePlayerReputationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePlayerReputationTableHandle<'ctx> { - type InsertCallbackId = GamePlayerReputationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerReputationInsertCallbackId { - GamePlayerReputationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePlayerReputationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePlayerReputationTableHandle<'ctx> { - type DeleteCallbackId = GamePlayerReputationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerReputationDeleteCallbackId { - GamePlayerReputationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePlayerReputationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePlayerReputationUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePlayerReputationTableHandle<'ctx> { - type UpdateCallbackId = GamePlayerReputationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePlayerReputationUpdateCallbackId { - GamePlayerReputationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePlayerReputationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePlayerReputationTableHandle<'ctx> { - type UpdateCallbackId = GamePlayerReputationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePlayerReputationUpdateCallbackId { - GamePlayerReputationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePlayerReputationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_player_reputation`, -/// which allows point queries on the field of the same name -/// via the [`GamePlayerReputationIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_player_reputation().id().find(...)`. -pub struct GamePlayerReputationIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePlayerReputationTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_player_reputation`. - pub fn id(&self) -> GamePlayerReputationIdUnique<'ctx> { - GamePlayerReputationIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePlayerReputationIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_player_reputation"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PlayerReputation`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_player_reputationQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PlayerReputation`. - fn game_player_reputation(&self) -> __sdk::__query_builder::Table; -} - -impl game_player_reputationQueryTableAccess for __sdk::QueryTableAccessor { - fn game_player_reputation(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_player_reputation") - } -} diff --git a/gateway/src/stdb/bindings/game_player_skill_table.rs b/gateway/src/stdb/bindings/game_player_skill_table.rs deleted file mode 100644 index 3080d4b42..000000000 --- a/gateway/src/stdb/bindings/game_player_skill_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::player_skill_type::PlayerSkill; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_player_skill`. -/// -/// Obtain a handle from the [`GamePlayerSkillTableAccess::game_player_skill`] method on [`super::RemoteTables`], -/// like `ctx.db.game_player_skill()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_player_skill().on_insert(...)`. -pub struct GamePlayerSkillTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_player_skill`. -pub struct GamePlayerSkillTableAccessor; - -impl __sdk::TableAccessor for GamePlayerSkillTableAccessor { - type Row = PlayerSkill; - type Handle<'db> = GamePlayerSkillTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_player_skill() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_player_skill`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePlayerSkillTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePlayerSkillTableHandle`], which mediates access to the table `game_player_skill`. - fn game_player_skill(&self) -> GamePlayerSkillTableHandle<'_>; -} - -impl GamePlayerSkillTableAccess for super::RemoteTables { - fn game_player_skill(&self) -> GamePlayerSkillTableHandle<'_> { - GamePlayerSkillTableHandle { - imp: self.imp.get_table::("game_player_skill"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePlayerSkillInsertCallbackId(__sdk::CallbackId); -pub struct GamePlayerSkillDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePlayerSkillTableHandle<'ctx> { - type Row = PlayerSkill; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePlayerSkillTableHandle<'ctx> { - type Row = PlayerSkill; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePlayerSkillInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerSkillInsertCallbackId { - GamePlayerSkillInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePlayerSkillInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePlayerSkillDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerSkillDeleteCallbackId { - GamePlayerSkillDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePlayerSkillDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePlayerSkillTableHandle<'ctx> { - type InsertCallbackId = GamePlayerSkillInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerSkillInsertCallbackId { - GamePlayerSkillInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePlayerSkillInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePlayerSkillTableHandle<'ctx> { - type DeleteCallbackId = GamePlayerSkillDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerSkillDeleteCallbackId { - GamePlayerSkillDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePlayerSkillDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePlayerSkillUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePlayerSkillTableHandle<'ctx> { - type UpdateCallbackId = GamePlayerSkillUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePlayerSkillUpdateCallbackId { - GamePlayerSkillUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePlayerSkillUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePlayerSkillTableHandle<'ctx> { - type UpdateCallbackId = GamePlayerSkillUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePlayerSkillUpdateCallbackId { - GamePlayerSkillUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePlayerSkillUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_player_skill`, -/// which allows point queries on the field of the same name -/// via the [`GamePlayerSkillIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_player_skill().id().find(...)`. -pub struct GamePlayerSkillIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePlayerSkillTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_player_skill`. - pub fn id(&self) -> GamePlayerSkillIdUnique<'ctx> { - GamePlayerSkillIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePlayerSkillIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_player_skill"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PlayerSkill`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_player_skillQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PlayerSkill`. - fn game_player_skill(&self) -> __sdk::__query_builder::Table; -} - -impl game_player_skillQueryTableAccess for __sdk::QueryTableAccessor { - fn game_player_skill(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_player_skill") - } -} diff --git a/gateway/src/stdb/bindings/game_player_spell_table.rs b/gateway/src/stdb/bindings/game_player_spell_table.rs deleted file mode 100644 index 62482c03d..000000000 --- a/gateway/src/stdb/bindings/game_player_spell_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::player_spell_type::PlayerSpell; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_player_spell`. -/// -/// Obtain a handle from the [`GamePlayerSpellTableAccess::game_player_spell`] method on [`super::RemoteTables`], -/// like `ctx.db.game_player_spell()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_player_spell().on_insert(...)`. -pub struct GamePlayerSpellTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_player_spell`. -pub struct GamePlayerSpellTableAccessor; - -impl __sdk::TableAccessor for GamePlayerSpellTableAccessor { - type Row = PlayerSpell; - type Handle<'db> = GamePlayerSpellTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_player_spell() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_player_spell`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GamePlayerSpellTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GamePlayerSpellTableHandle`], which mediates access to the table `game_player_spell`. - fn game_player_spell(&self) -> GamePlayerSpellTableHandle<'_>; -} - -impl GamePlayerSpellTableAccess for super::RemoteTables { - fn game_player_spell(&self) -> GamePlayerSpellTableHandle<'_> { - GamePlayerSpellTableHandle { - imp: self.imp.get_table::("game_player_spell"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GamePlayerSpellInsertCallbackId(__sdk::CallbackId); -pub struct GamePlayerSpellDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GamePlayerSpellTableHandle<'ctx> { - type Row = PlayerSpell; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GamePlayerSpellTableHandle<'ctx> { - type Row = PlayerSpell; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GamePlayerSpellInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerSpellInsertCallbackId { - GamePlayerSpellInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePlayerSpellInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GamePlayerSpellDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerSpellDeleteCallbackId { - GamePlayerSpellDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePlayerSpellDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GamePlayerSpellTableHandle<'ctx> { - type InsertCallbackId = GamePlayerSpellInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerSpellInsertCallbackId { - GamePlayerSpellInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GamePlayerSpellInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GamePlayerSpellTableHandle<'ctx> { - type DeleteCallbackId = GamePlayerSpellDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GamePlayerSpellDeleteCallbackId { - GamePlayerSpellDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GamePlayerSpellDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GamePlayerSpellUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GamePlayerSpellTableHandle<'ctx> { - type UpdateCallbackId = GamePlayerSpellUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePlayerSpellUpdateCallbackId { - GamePlayerSpellUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePlayerSpellUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GamePlayerSpellTableHandle<'ctx> { - type UpdateCallbackId = GamePlayerSpellUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GamePlayerSpellUpdateCallbackId { - GamePlayerSpellUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GamePlayerSpellUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_player_spell`, -/// which allows point queries on the field of the same name -/// via the [`GamePlayerSpellIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_player_spell().id().find(...)`. -pub struct GamePlayerSpellIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GamePlayerSpellTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_player_spell`. - pub fn id(&self) -> GamePlayerSpellIdUnique<'ctx> { - GamePlayerSpellIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GamePlayerSpellIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_player_spell"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PlayerSpell`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_player_spellQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PlayerSpell`. - fn game_player_spell(&self) -> __sdk::__query_builder::Table; -} - -impl game_player_spellQueryTableAccess for __sdk::QueryTableAccessor { - fn game_player_spell(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_player_spell") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_cast_objective_table.rs b/gateway/src/stdb/bindings/game_quest_cast_objective_table.rs deleted file mode 100644 index 3e641038d..000000000 --- a/gateway/src/stdb/bindings/game_quest_cast_objective_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_cast_objective_type::QuestCastObjective; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_cast_objective`. -/// -/// Obtain a handle from the [`GameQuestCastObjectiveTableAccess::game_quest_cast_objective`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_cast_objective()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_cast_objective().on_insert(...)`. -pub struct GameQuestCastObjectiveTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_cast_objective`. -pub struct GameQuestCastObjectiveTableAccessor; - -impl __sdk::TableAccessor for GameQuestCastObjectiveTableAccessor { - type Row = QuestCastObjective; - type Handle<'db> = GameQuestCastObjectiveTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_cast_objective() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_cast_objective`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestCastObjectiveTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestCastObjectiveTableHandle`], which mediates access to the table `game_quest_cast_objective`. - fn game_quest_cast_objective(&self) -> GameQuestCastObjectiveTableHandle<'_>; -} - -impl GameQuestCastObjectiveTableAccess for super::RemoteTables { - fn game_quest_cast_objective(&self) -> GameQuestCastObjectiveTableHandle<'_> { - GameQuestCastObjectiveTableHandle { - imp: self - .imp - .get_table::("game_quest_cast_objective"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestCastObjectiveInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestCastObjectiveDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestCastObjectiveTableHandle<'ctx> { - type Row = QuestCastObjective; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestCastObjectiveTableHandle<'ctx> { - type Row = QuestCastObjective; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestCastObjectiveInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestCastObjectiveInsertCallbackId { - GameQuestCastObjectiveInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestCastObjectiveInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestCastObjectiveDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestCastObjectiveDeleteCallbackId { - GameQuestCastObjectiveDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestCastObjectiveDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestCastObjectiveTableHandle<'ctx> { - type InsertCallbackId = GameQuestCastObjectiveInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestCastObjectiveInsertCallbackId { - GameQuestCastObjectiveInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestCastObjectiveInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestCastObjectiveTableHandle<'ctx> { - type DeleteCallbackId = GameQuestCastObjectiveDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestCastObjectiveDeleteCallbackId { - GameQuestCastObjectiveDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestCastObjectiveDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestCastObjectiveUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestCastObjectiveTableHandle<'ctx> { - type UpdateCallbackId = GameQuestCastObjectiveUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestCastObjectiveUpdateCallbackId { - GameQuestCastObjectiveUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestCastObjectiveUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestCastObjectiveTableHandle<'ctx> { - type UpdateCallbackId = GameQuestCastObjectiveUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestCastObjectiveUpdateCallbackId { - GameQuestCastObjectiveUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestCastObjectiveUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_quest_cast_objective`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestCastObjectiveIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_cast_objective().id().find(...)`. -pub struct GameQuestCastObjectiveIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestCastObjectiveTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_quest_cast_objective`. - pub fn id(&self) -> GameQuestCastObjectiveIdUnique<'ctx> { - GameQuestCastObjectiveIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestCastObjectiveIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_quest_cast_objective"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestCastObjective`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_cast_objectiveQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestCastObjective`. - fn game_quest_cast_objective(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_cast_objectiveQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_cast_objective(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_cast_objective") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_event_requirement_table.rs b/gateway/src/stdb/bindings/game_quest_event_requirement_table.rs deleted file mode 100644 index d3a6e9b85..000000000 --- a/gateway/src/stdb/bindings/game_quest_event_requirement_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_event_requirement_type::QuestEventRequirement; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_event_requirement`. -/// -/// Obtain a handle from the [`GameQuestEventRequirementTableAccess::game_quest_event_requirement`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_event_requirement()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_event_requirement().on_insert(...)`. -pub struct GameQuestEventRequirementTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_event_requirement`. -pub struct GameQuestEventRequirementTableAccessor; - -impl __sdk::TableAccessor for GameQuestEventRequirementTableAccessor { - type Row = QuestEventRequirement; - type Handle<'db> = GameQuestEventRequirementTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_event_requirement() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_event_requirement`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestEventRequirementTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestEventRequirementTableHandle`], which mediates access to the table `game_quest_event_requirement`. - fn game_quest_event_requirement(&self) -> GameQuestEventRequirementTableHandle<'_>; -} - -impl GameQuestEventRequirementTableAccess for super::RemoteTables { - fn game_quest_event_requirement(&self) -> GameQuestEventRequirementTableHandle<'_> { - GameQuestEventRequirementTableHandle { - imp: self - .imp - .get_table::("game_quest_event_requirement"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestEventRequirementInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestEventRequirementDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestEventRequirementTableHandle<'ctx> { - type Row = QuestEventRequirement; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestEventRequirementTableHandle<'ctx> { - type Row = QuestEventRequirement; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestEventRequirementInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestEventRequirementInsertCallbackId { - GameQuestEventRequirementInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestEventRequirementInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestEventRequirementDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestEventRequirementDeleteCallbackId { - GameQuestEventRequirementDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestEventRequirementDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestEventRequirementTableHandle<'ctx> { - type InsertCallbackId = GameQuestEventRequirementInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestEventRequirementInsertCallbackId { - GameQuestEventRequirementInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestEventRequirementInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestEventRequirementTableHandle<'ctx> { - type DeleteCallbackId = GameQuestEventRequirementDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestEventRequirementDeleteCallbackId { - GameQuestEventRequirementDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestEventRequirementDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestEventRequirementUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestEventRequirementTableHandle<'ctx> { - type UpdateCallbackId = GameQuestEventRequirementUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestEventRequirementUpdateCallbackId { - GameQuestEventRequirementUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestEventRequirementUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestEventRequirementTableHandle<'ctx> { - type UpdateCallbackId = GameQuestEventRequirementUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestEventRequirementUpdateCallbackId { - GameQuestEventRequirementUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestEventRequirementUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_quest_event_requirement`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestEventRequirementIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_event_requirement().id().find(...)`. -pub struct GameQuestEventRequirementIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestEventRequirementTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_quest_event_requirement`. - pub fn id(&self) -> GameQuestEventRequirementIdUnique<'ctx> { - GameQuestEventRequirementIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestEventRequirementIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_quest_event_requirement"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestEventRequirement`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_event_requirementQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestEventRequirement`. - fn game_quest_event_requirement(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_event_requirementQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_event_requirement(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_event_requirement") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_objective_table.rs b/gateway/src/stdb/bindings/game_quest_objective_table.rs deleted file mode 100644 index cd10f260c..000000000 --- a/gateway/src/stdb/bindings/game_quest_objective_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_objective_type::QuestObjective; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_objective`. -/// -/// Obtain a handle from the [`GameQuestObjectiveTableAccess::game_quest_objective`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_objective()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_objective().on_insert(...)`. -pub struct GameQuestObjectiveTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_objective`. -pub struct GameQuestObjectiveTableAccessor; - -impl __sdk::TableAccessor for GameQuestObjectiveTableAccessor { - type Row = QuestObjective; - type Handle<'db> = GameQuestObjectiveTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_objective() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_objective`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestObjectiveTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestObjectiveTableHandle`], which mediates access to the table `game_quest_objective`. - fn game_quest_objective(&self) -> GameQuestObjectiveTableHandle<'_>; -} - -impl GameQuestObjectiveTableAccess for super::RemoteTables { - fn game_quest_objective(&self) -> GameQuestObjectiveTableHandle<'_> { - GameQuestObjectiveTableHandle { - imp: self.imp.get_table::("game_quest_objective"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestObjectiveInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestObjectiveDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestObjectiveTableHandle<'ctx> { - type Row = QuestObjective; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestObjectiveTableHandle<'ctx> { - type Row = QuestObjective; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestObjectiveInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestObjectiveInsertCallbackId { - GameQuestObjectiveInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestObjectiveInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestObjectiveDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestObjectiveDeleteCallbackId { - GameQuestObjectiveDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestObjectiveDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestObjectiveTableHandle<'ctx> { - type InsertCallbackId = GameQuestObjectiveInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestObjectiveInsertCallbackId { - GameQuestObjectiveInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestObjectiveInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestObjectiveTableHandle<'ctx> { - type DeleteCallbackId = GameQuestObjectiveDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestObjectiveDeleteCallbackId { - GameQuestObjectiveDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestObjectiveDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestObjectiveUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestObjectiveTableHandle<'ctx> { - type UpdateCallbackId = GameQuestObjectiveUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestObjectiveUpdateCallbackId { - GameQuestObjectiveUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestObjectiveUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestObjectiveTableHandle<'ctx> { - type UpdateCallbackId = GameQuestObjectiveUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestObjectiveUpdateCallbackId { - GameQuestObjectiveUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestObjectiveUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_quest_objective`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestObjectiveIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_objective().id().find(...)`. -pub struct GameQuestObjectiveIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestObjectiveTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_quest_objective`. - pub fn id(&self) -> GameQuestObjectiveIdUnique<'ctx> { - GameQuestObjectiveIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestObjectiveIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_quest_objective"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestObjective`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_objectiveQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestObjective`. - fn game_quest_objective(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_objectiveQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_objective(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_objective") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_reward_choice_table.rs b/gateway/src/stdb/bindings/game_quest_reward_choice_table.rs deleted file mode 100644 index 981903dcd..000000000 --- a/gateway/src/stdb/bindings/game_quest_reward_choice_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_reward_choice_type::QuestRewardChoice; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_reward_choice`. -/// -/// Obtain a handle from the [`GameQuestRewardChoiceTableAccess::game_quest_reward_choice`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_reward_choice()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_reward_choice().on_insert(...)`. -pub struct GameQuestRewardChoiceTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_reward_choice`. -pub struct GameQuestRewardChoiceTableAccessor; - -impl __sdk::TableAccessor for GameQuestRewardChoiceTableAccessor { - type Row = QuestRewardChoice; - type Handle<'db> = GameQuestRewardChoiceTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_reward_choice() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_reward_choice`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestRewardChoiceTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestRewardChoiceTableHandle`], which mediates access to the table `game_quest_reward_choice`. - fn game_quest_reward_choice(&self) -> GameQuestRewardChoiceTableHandle<'_>; -} - -impl GameQuestRewardChoiceTableAccess for super::RemoteTables { - fn game_quest_reward_choice(&self) -> GameQuestRewardChoiceTableHandle<'_> { - GameQuestRewardChoiceTableHandle { - imp: self - .imp - .get_table::("game_quest_reward_choice"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestRewardChoiceInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestRewardChoiceDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestRewardChoiceTableHandle<'ctx> { - type Row = QuestRewardChoice; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestRewardChoiceTableHandle<'ctx> { - type Row = QuestRewardChoice; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestRewardChoiceInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardChoiceInsertCallbackId { - GameQuestRewardChoiceInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestRewardChoiceInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestRewardChoiceDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardChoiceDeleteCallbackId { - GameQuestRewardChoiceDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestRewardChoiceDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestRewardChoiceTableHandle<'ctx> { - type InsertCallbackId = GameQuestRewardChoiceInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardChoiceInsertCallbackId { - GameQuestRewardChoiceInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestRewardChoiceInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestRewardChoiceTableHandle<'ctx> { - type DeleteCallbackId = GameQuestRewardChoiceDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardChoiceDeleteCallbackId { - GameQuestRewardChoiceDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestRewardChoiceDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestRewardChoiceUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestRewardChoiceTableHandle<'ctx> { - type UpdateCallbackId = GameQuestRewardChoiceUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestRewardChoiceUpdateCallbackId { - GameQuestRewardChoiceUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestRewardChoiceUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestRewardChoiceTableHandle<'ctx> { - type UpdateCallbackId = GameQuestRewardChoiceUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestRewardChoiceUpdateCallbackId { - GameQuestRewardChoiceUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestRewardChoiceUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_quest_reward_choice`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestRewardChoiceIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_reward_choice().id().find(...)`. -pub struct GameQuestRewardChoiceIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestRewardChoiceTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_quest_reward_choice`. - pub fn id(&self) -> GameQuestRewardChoiceIdUnique<'ctx> { - GameQuestRewardChoiceIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestRewardChoiceIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_quest_reward_choice"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestRewardChoice`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_reward_choiceQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestRewardChoice`. - fn game_quest_reward_choice(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_reward_choiceQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_reward_choice(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_reward_choice") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_reward_item_table.rs b/gateway/src/stdb/bindings/game_quest_reward_item_table.rs deleted file mode 100644 index 55b1ba01d..000000000 --- a/gateway/src/stdb/bindings/game_quest_reward_item_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_reward_item_type::QuestRewardItem; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_reward_item`. -/// -/// Obtain a handle from the [`GameQuestRewardItemTableAccess::game_quest_reward_item`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_reward_item()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_reward_item().on_insert(...)`. -pub struct GameQuestRewardItemTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_reward_item`. -pub struct GameQuestRewardItemTableAccessor; - -impl __sdk::TableAccessor for GameQuestRewardItemTableAccessor { - type Row = QuestRewardItem; - type Handle<'db> = GameQuestRewardItemTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_reward_item() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_reward_item`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestRewardItemTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestRewardItemTableHandle`], which mediates access to the table `game_quest_reward_item`. - fn game_quest_reward_item(&self) -> GameQuestRewardItemTableHandle<'_>; -} - -impl GameQuestRewardItemTableAccess for super::RemoteTables { - fn game_quest_reward_item(&self) -> GameQuestRewardItemTableHandle<'_> { - GameQuestRewardItemTableHandle { - imp: self - .imp - .get_table::("game_quest_reward_item"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestRewardItemInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestRewardItemDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestRewardItemTableHandle<'ctx> { - type Row = QuestRewardItem; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestRewardItemTableHandle<'ctx> { - type Row = QuestRewardItem; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestRewardItemInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardItemInsertCallbackId { - GameQuestRewardItemInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestRewardItemInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestRewardItemDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardItemDeleteCallbackId { - GameQuestRewardItemDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestRewardItemDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestRewardItemTableHandle<'ctx> { - type InsertCallbackId = GameQuestRewardItemInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardItemInsertCallbackId { - GameQuestRewardItemInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestRewardItemInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestRewardItemTableHandle<'ctx> { - type DeleteCallbackId = GameQuestRewardItemDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardItemDeleteCallbackId { - GameQuestRewardItemDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestRewardItemDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestRewardItemUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestRewardItemTableHandle<'ctx> { - type UpdateCallbackId = GameQuestRewardItemUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestRewardItemUpdateCallbackId { - GameQuestRewardItemUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestRewardItemUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestRewardItemTableHandle<'ctx> { - type UpdateCallbackId = GameQuestRewardItemUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestRewardItemUpdateCallbackId { - GameQuestRewardItemUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestRewardItemUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_quest_reward_item`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestRewardItemIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_reward_item().id().find(...)`. -pub struct GameQuestRewardItemIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestRewardItemTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_quest_reward_item`. - pub fn id(&self) -> GameQuestRewardItemIdUnique<'ctx> { - GameQuestRewardItemIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestRewardItemIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_quest_reward_item"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestRewardItem`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_reward_itemQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestRewardItem`. - fn game_quest_reward_item(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_reward_itemQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_reward_item(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_reward_item") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_reward_mail_table.rs b/gateway/src/stdb/bindings/game_quest_reward_mail_table.rs deleted file mode 100644 index 85f1025d2..000000000 --- a/gateway/src/stdb/bindings/game_quest_reward_mail_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_reward_mail_type::QuestRewardMail; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_reward_mail`. -/// -/// Obtain a handle from the [`GameQuestRewardMailTableAccess::game_quest_reward_mail`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_reward_mail()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_reward_mail().on_insert(...)`. -pub struct GameQuestRewardMailTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_reward_mail`. -pub struct GameQuestRewardMailTableAccessor; - -impl __sdk::TableAccessor for GameQuestRewardMailTableAccessor { - type Row = QuestRewardMail; - type Handle<'db> = GameQuestRewardMailTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_reward_mail() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_reward_mail`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestRewardMailTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestRewardMailTableHandle`], which mediates access to the table `game_quest_reward_mail`. - fn game_quest_reward_mail(&self) -> GameQuestRewardMailTableHandle<'_>; -} - -impl GameQuestRewardMailTableAccess for super::RemoteTables { - fn game_quest_reward_mail(&self) -> GameQuestRewardMailTableHandle<'_> { - GameQuestRewardMailTableHandle { - imp: self - .imp - .get_table::("game_quest_reward_mail"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestRewardMailInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestRewardMailDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestRewardMailTableHandle<'ctx> { - type Row = QuestRewardMail; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestRewardMailTableHandle<'ctx> { - type Row = QuestRewardMail; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestRewardMailInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardMailInsertCallbackId { - GameQuestRewardMailInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestRewardMailInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestRewardMailDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardMailDeleteCallbackId { - GameQuestRewardMailDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestRewardMailDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestRewardMailTableHandle<'ctx> { - type InsertCallbackId = GameQuestRewardMailInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardMailInsertCallbackId { - GameQuestRewardMailInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestRewardMailInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestRewardMailTableHandle<'ctx> { - type DeleteCallbackId = GameQuestRewardMailDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardMailDeleteCallbackId { - GameQuestRewardMailDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestRewardMailDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestRewardMailUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestRewardMailTableHandle<'ctx> { - type UpdateCallbackId = GameQuestRewardMailUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestRewardMailUpdateCallbackId { - GameQuestRewardMailUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestRewardMailUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestRewardMailTableHandle<'ctx> { - type UpdateCallbackId = GameQuestRewardMailUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestRewardMailUpdateCallbackId { - GameQuestRewardMailUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestRewardMailUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `quest_entry` unique index on the table `game_quest_reward_mail`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestRewardMailQuestEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_reward_mail().quest_entry().find(...)`. -pub struct GameQuestRewardMailQuestEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestRewardMailTableHandle<'ctx> { - /// Get a handle on the `quest_entry` unique index on the table `game_quest_reward_mail`. - pub fn quest_entry(&self) -> GameQuestRewardMailQuestEntryUnique<'ctx> { - GameQuestRewardMailQuestEntryUnique { - imp: self.imp.get_unique_constraint::("quest_entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestRewardMailQuestEntryUnique<'ctx> { - /// Find the subscribed row whose `quest_entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_quest_reward_mail"); - _table.add_unique_constraint::("quest_entry", |row| &row.quest_entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestRewardMail`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_reward_mailQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestRewardMail`. - fn game_quest_reward_mail(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_reward_mailQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_reward_mail(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_reward_mail") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_reward_spell_table.rs b/gateway/src/stdb/bindings/game_quest_reward_spell_table.rs deleted file mode 100644 index c06df5e01..000000000 --- a/gateway/src/stdb/bindings/game_quest_reward_spell_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_reward_spell_type::QuestRewardSpell; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_reward_spell`. -/// -/// Obtain a handle from the [`GameQuestRewardSpellTableAccess::game_quest_reward_spell`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_reward_spell()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_reward_spell().on_insert(...)`. -pub struct GameQuestRewardSpellTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_reward_spell`. -pub struct GameQuestRewardSpellTableAccessor; - -impl __sdk::TableAccessor for GameQuestRewardSpellTableAccessor { - type Row = QuestRewardSpell; - type Handle<'db> = GameQuestRewardSpellTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_reward_spell() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_reward_spell`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestRewardSpellTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestRewardSpellTableHandle`], which mediates access to the table `game_quest_reward_spell`. - fn game_quest_reward_spell(&self) -> GameQuestRewardSpellTableHandle<'_>; -} - -impl GameQuestRewardSpellTableAccess for super::RemoteTables { - fn game_quest_reward_spell(&self) -> GameQuestRewardSpellTableHandle<'_> { - GameQuestRewardSpellTableHandle { - imp: self - .imp - .get_table::("game_quest_reward_spell"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestRewardSpellInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestRewardSpellDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestRewardSpellTableHandle<'ctx> { - type Row = QuestRewardSpell; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestRewardSpellTableHandle<'ctx> { - type Row = QuestRewardSpell; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestRewardSpellInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardSpellInsertCallbackId { - GameQuestRewardSpellInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestRewardSpellInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestRewardSpellDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardSpellDeleteCallbackId { - GameQuestRewardSpellDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestRewardSpellDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestRewardSpellTableHandle<'ctx> { - type InsertCallbackId = GameQuestRewardSpellInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardSpellInsertCallbackId { - GameQuestRewardSpellInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestRewardSpellInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestRewardSpellTableHandle<'ctx> { - type DeleteCallbackId = GameQuestRewardSpellDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestRewardSpellDeleteCallbackId { - GameQuestRewardSpellDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestRewardSpellDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestRewardSpellUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestRewardSpellTableHandle<'ctx> { - type UpdateCallbackId = GameQuestRewardSpellUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestRewardSpellUpdateCallbackId { - GameQuestRewardSpellUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestRewardSpellUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestRewardSpellTableHandle<'ctx> { - type UpdateCallbackId = GameQuestRewardSpellUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestRewardSpellUpdateCallbackId { - GameQuestRewardSpellUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestRewardSpellUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `quest_entry` unique index on the table `game_quest_reward_spell`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestRewardSpellQuestEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_reward_spell().quest_entry().find(...)`. -pub struct GameQuestRewardSpellQuestEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestRewardSpellTableHandle<'ctx> { - /// Get a handle on the `quest_entry` unique index on the table `game_quest_reward_spell`. - pub fn quest_entry(&self) -> GameQuestRewardSpellQuestEntryUnique<'ctx> { - GameQuestRewardSpellQuestEntryUnique { - imp: self.imp.get_unique_constraint::("quest_entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestRewardSpellQuestEntryUnique<'ctx> { - /// Find the subscribed row whose `quest_entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_quest_reward_spell"); - _table.add_unique_constraint::("quest_entry", |row| &row.quest_entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestRewardSpell`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_reward_spellQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestRewardSpell`. - fn game_quest_reward_spell(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_reward_spellQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_reward_spell(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_reward_spell") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_template_table.rs b/gateway/src/stdb/bindings/game_quest_template_table.rs deleted file mode 100644 index 562bdeaf5..000000000 --- a/gateway/src/stdb/bindings/game_quest_template_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_template_type::QuestTemplate; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_template`. -/// -/// Obtain a handle from the [`GameQuestTemplateTableAccess::game_quest_template`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_template()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_template().on_insert(...)`. -pub struct GameQuestTemplateTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_template`. -pub struct GameQuestTemplateTableAccessor; - -impl __sdk::TableAccessor for GameQuestTemplateTableAccessor { - type Row = QuestTemplate; - type Handle<'db> = GameQuestTemplateTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_template() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_template`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestTemplateTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestTemplateTableHandle`], which mediates access to the table `game_quest_template`. - fn game_quest_template(&self) -> GameQuestTemplateTableHandle<'_>; -} - -impl GameQuestTemplateTableAccess for super::RemoteTables { - fn game_quest_template(&self) -> GameQuestTemplateTableHandle<'_> { - GameQuestTemplateTableHandle { - imp: self.imp.get_table::("game_quest_template"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestTemplateInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestTemplateDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestTemplateTableHandle<'ctx> { - type Row = QuestTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestTemplateTableHandle<'ctx> { - type Row = QuestTemplate; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestTemplateInsertCallbackId { - GameQuestTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestTemplateDeleteCallbackId { - GameQuestTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestTemplateTableHandle<'ctx> { - type InsertCallbackId = GameQuestTemplateInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestTemplateInsertCallbackId { - GameQuestTemplateInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestTemplateInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestTemplateTableHandle<'ctx> { - type DeleteCallbackId = GameQuestTemplateDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestTemplateDeleteCallbackId { - GameQuestTemplateDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestTemplateDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestTemplateUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameQuestTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestTemplateUpdateCallbackId { - GameQuestTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestTemplateTableHandle<'ctx> { - type UpdateCallbackId = GameQuestTemplateUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestTemplateUpdateCallbackId { - GameQuestTemplateUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestTemplateUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `entry` unique index on the table `game_quest_template`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestTemplateEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_template().entry().find(...)`. -pub struct GameQuestTemplateEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestTemplateTableHandle<'ctx> { - /// Get a handle on the `entry` unique index on the table `game_quest_template`. - pub fn entry(&self) -> GameQuestTemplateEntryUnique<'ctx> { - GameQuestTemplateEntryUnique { - imp: self.imp.get_unique_constraint::("entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestTemplateEntryUnique<'ctx> { - /// Find the subscribed row whose `entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_quest_template"); - _table.add_unique_constraint::("entry", |row| &row.entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestTemplate`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_templateQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestTemplate`. - fn game_quest_template(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_templateQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_template(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_template") - } -} diff --git a/gateway/src/stdb/bindings/game_quest_text_table.rs b/gateway/src/stdb/bindings/game_quest_text_table.rs deleted file mode 100644 index e1c18001e..000000000 --- a/gateway/src/stdb/bindings/game_quest_text_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::quest_text_type::QuestText; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_quest_text`. -/// -/// Obtain a handle from the [`GameQuestTextTableAccess::game_quest_text`] method on [`super::RemoteTables`], -/// like `ctx.db.game_quest_text()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_text().on_insert(...)`. -pub struct GameQuestTextTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_quest_text`. -pub struct GameQuestTextTableAccessor; - -impl __sdk::TableAccessor for GameQuestTextTableAccessor { - type Row = QuestText; - type Handle<'db> = GameQuestTextTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_quest_text() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_quest_text`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameQuestTextTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameQuestTextTableHandle`], which mediates access to the table `game_quest_text`. - fn game_quest_text(&self) -> GameQuestTextTableHandle<'_>; -} - -impl GameQuestTextTableAccess for super::RemoteTables { - fn game_quest_text(&self) -> GameQuestTextTableHandle<'_> { - GameQuestTextTableHandle { - imp: self.imp.get_table::("game_quest_text"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameQuestTextInsertCallbackId(__sdk::CallbackId); -pub struct GameQuestTextDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameQuestTextTableHandle<'ctx> { - type Row = QuestText; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameQuestTextTableHandle<'ctx> { - type Row = QuestText; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameQuestTextInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestTextInsertCallbackId { - GameQuestTextInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestTextInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameQuestTextDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestTextDeleteCallbackId { - GameQuestTextDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestTextDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameQuestTextTableHandle<'ctx> { - type InsertCallbackId = GameQuestTextInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestTextInsertCallbackId { - GameQuestTextInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameQuestTextInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameQuestTextTableHandle<'ctx> { - type DeleteCallbackId = GameQuestTextDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameQuestTextDeleteCallbackId { - GameQuestTextDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameQuestTextDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameQuestTextUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameQuestTextTableHandle<'ctx> { - type UpdateCallbackId = GameQuestTextUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestTextUpdateCallbackId { - GameQuestTextUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestTextUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameQuestTextTableHandle<'ctx> { - type UpdateCallbackId = GameQuestTextUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameQuestTextUpdateCallbackId { - GameQuestTextUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameQuestTextUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `quest_entry` unique index on the table `game_quest_text`, -/// which allows point queries on the field of the same name -/// via the [`GameQuestTextQuestEntryUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_quest_text().quest_entry().find(...)`. -pub struct GameQuestTextQuestEntryUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameQuestTextTableHandle<'ctx> { - /// Get a handle on the `quest_entry` unique index on the table `game_quest_text`. - pub fn quest_entry(&self) -> GameQuestTextQuestEntryUnique<'ctx> { - GameQuestTextQuestEntryUnique { - imp: self.imp.get_unique_constraint::("quest_entry"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameQuestTextQuestEntryUnique<'ctx> { - /// Find the subscribed row whose `quest_entry` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u32) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_quest_text"); - _table.add_unique_constraint::("quest_entry", |row| &row.quest_entry); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `QuestText`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_quest_textQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `QuestText`. - fn game_quest_text(&self) -> __sdk::__query_builder::Table; -} - -impl game_quest_textQueryTableAccess for __sdk::QueryTableAccessor { - fn game_quest_text(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_quest_text") - } -} diff --git a/gateway/src/stdb/bindings/game_race_info_table.rs b/gateway/src/stdb/bindings/game_race_info_table.rs deleted file mode 100644 index 671c3f50d..000000000 --- a/gateway/src/stdb/bindings/game_race_info_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::race_info_type::RaceInfo; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_race_info`. -/// -/// Obtain a handle from the [`GameRaceInfoTableAccess::game_race_info`] method on [`super::RemoteTables`], -/// like `ctx.db.game_race_info()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_race_info().on_insert(...)`. -pub struct GameRaceInfoTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_race_info`. -pub struct GameRaceInfoTableAccessor; - -impl __sdk::TableAccessor for GameRaceInfoTableAccessor { - type Row = RaceInfo; - type Handle<'db> = GameRaceInfoTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_race_info() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_race_info`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameRaceInfoTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameRaceInfoTableHandle`], which mediates access to the table `game_race_info`. - fn game_race_info(&self) -> GameRaceInfoTableHandle<'_>; -} - -impl GameRaceInfoTableAccess for super::RemoteTables { - fn game_race_info(&self) -> GameRaceInfoTableHandle<'_> { - GameRaceInfoTableHandle { - imp: self.imp.get_table::("game_race_info"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameRaceInfoInsertCallbackId(__sdk::CallbackId); -pub struct GameRaceInfoDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameRaceInfoTableHandle<'ctx> { - type Row = RaceInfo; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameRaceInfoTableHandle<'ctx> { - type Row = RaceInfo; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameRaceInfoInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRaceInfoInsertCallbackId { - GameRaceInfoInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRaceInfoInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameRaceInfoDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRaceInfoDeleteCallbackId { - GameRaceInfoDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRaceInfoDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameRaceInfoTableHandle<'ctx> { - type InsertCallbackId = GameRaceInfoInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRaceInfoInsertCallbackId { - GameRaceInfoInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRaceInfoInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameRaceInfoTableHandle<'ctx> { - type DeleteCallbackId = GameRaceInfoDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRaceInfoDeleteCallbackId { - GameRaceInfoDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRaceInfoDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameRaceInfoUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameRaceInfoTableHandle<'ctx> { - type UpdateCallbackId = GameRaceInfoUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRaceInfoUpdateCallbackId { - GameRaceInfoUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRaceInfoUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameRaceInfoTableHandle<'ctx> { - type UpdateCallbackId = GameRaceInfoUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRaceInfoUpdateCallbackId { - GameRaceInfoUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRaceInfoUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `race` unique index on the table `game_race_info`, -/// which allows point queries on the field of the same name -/// via the [`GameRaceInfoRaceUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_race_info().race().find(...)`. -pub struct GameRaceInfoRaceUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameRaceInfoTableHandle<'ctx> { - /// Get a handle on the `race` unique index on the table `game_race_info`. - pub fn race(&self) -> GameRaceInfoRaceUnique<'ctx> { - GameRaceInfoRaceUnique { - imp: self.imp.get_unique_constraint::("race"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameRaceInfoRaceUnique<'ctx> { - /// Find the subscribed row whose `race` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u8) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_race_info"); - _table.add_unique_constraint::("race", |row| &row.race); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RaceInfo`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_race_infoQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RaceInfo`. - fn game_race_info(&self) -> __sdk::__query_builder::Table; -} - -impl game_race_infoQueryTableAccess for __sdk::QueryTableAccessor { - fn game_race_info(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_race_info") - } -} diff --git a/gateway/src/stdb/bindings/game_ranged_impact_schedule_table.rs b/gateway/src/stdb/bindings/game_ranged_impact_schedule_table.rs deleted file mode 100644 index bf065e670..000000000 --- a/gateway/src/stdb/bindings/game_ranged_impact_schedule_table.rs +++ /dev/null @@ -1,231 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::ranged_impact_schedule_type::RangedImpactSchedule; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_ranged_impact_schedule`. -/// -/// Obtain a handle from the [`GameRangedImpactScheduleTableAccess::game_ranged_impact_schedule`] method on [`super::RemoteTables`], -/// like `ctx.db.game_ranged_impact_schedule()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_ranged_impact_schedule().on_insert(...)`. -pub struct GameRangedImpactScheduleTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_ranged_impact_schedule`. -pub struct GameRangedImpactScheduleTableAccessor; - -impl __sdk::TableAccessor for GameRangedImpactScheduleTableAccessor { - type Row = RangedImpactSchedule; - type Handle<'db> = GameRangedImpactScheduleTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_ranged_impact_schedule() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_ranged_impact_schedule`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameRangedImpactScheduleTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameRangedImpactScheduleTableHandle`], which mediates access to the table `game_ranged_impact_schedule`. - fn game_ranged_impact_schedule(&self) -> GameRangedImpactScheduleTableHandle<'_>; -} - -impl GameRangedImpactScheduleTableAccess for super::RemoteTables { - fn game_ranged_impact_schedule(&self) -> GameRangedImpactScheduleTableHandle<'_> { - GameRangedImpactScheduleTableHandle { - imp: self - .imp - .get_table::("game_ranged_impact_schedule"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameRangedImpactScheduleInsertCallbackId(__sdk::CallbackId); -pub struct GameRangedImpactScheduleDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameRangedImpactScheduleTableHandle<'ctx> { - type Row = RangedImpactSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameRangedImpactScheduleTableHandle<'ctx> { - type Row = RangedImpactSchedule; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameRangedImpactScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRangedImpactScheduleInsertCallbackId { - GameRangedImpactScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRangedImpactScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameRangedImpactScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRangedImpactScheduleDeleteCallbackId { - GameRangedImpactScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRangedImpactScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameRangedImpactScheduleTableHandle<'ctx> { - type InsertCallbackId = GameRangedImpactScheduleInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRangedImpactScheduleInsertCallbackId { - GameRangedImpactScheduleInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRangedImpactScheduleInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameRangedImpactScheduleTableHandle<'ctx> { - type DeleteCallbackId = GameRangedImpactScheduleDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRangedImpactScheduleDeleteCallbackId { - GameRangedImpactScheduleDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRangedImpactScheduleDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameRangedImpactScheduleUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameRangedImpactScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameRangedImpactScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRangedImpactScheduleUpdateCallbackId { - GameRangedImpactScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRangedImpactScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameRangedImpactScheduleTableHandle<'ctx> { - type UpdateCallbackId = GameRangedImpactScheduleUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRangedImpactScheduleUpdateCallbackId { - GameRangedImpactScheduleUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRangedImpactScheduleUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `game_ranged_impact_schedule`, -/// which allows point queries on the field of the same name -/// via the [`GameRangedImpactScheduleScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_ranged_impact_schedule().scheduled_id().find(...)`. -pub struct GameRangedImpactScheduleScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameRangedImpactScheduleTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `game_ranged_impact_schedule`. - pub fn scheduled_id(&self) -> GameRangedImpactScheduleScheduledIdUnique<'ctx> { - GameRangedImpactScheduleScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameRangedImpactScheduleScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("game_ranged_impact_schedule"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RangedImpactSchedule`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_ranged_impact_scheduleQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RangedImpactSchedule`. - fn game_ranged_impact_schedule(&self) -> __sdk::__query_builder::Table; -} - -impl game_ranged_impact_scheduleQueryTableAccess for __sdk::QueryTableAccessor { - fn game_ranged_impact_schedule(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_ranged_impact_schedule") - } -} diff --git a/gateway/src/stdb/bindings/game_realm_chat_event_table.rs b/gateway/src/stdb/bindings/game_realm_chat_event_table.rs deleted file mode 100644 index 89308ff5c..000000000 --- a/gateway/src/stdb/bindings/game_realm_chat_event_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::realm_chat_event_type::RealmChatEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_realm_chat_event`. -/// -/// Obtain a handle from the [`GameRealmChatEventTableAccess::game_realm_chat_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_realm_chat_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_realm_chat_event().on_insert(...)`. -pub struct GameRealmChatEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_realm_chat_event`. -pub struct GameRealmChatEventTableAccessor; - -impl __sdk::TableAccessor for GameRealmChatEventTableAccessor { - type Row = RealmChatEvent; - type Handle<'db> = GameRealmChatEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_realm_chat_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_realm_chat_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameRealmChatEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameRealmChatEventTableHandle`], which mediates access to the table `game_realm_chat_event`. - fn game_realm_chat_event(&self) -> GameRealmChatEventTableHandle<'_>; -} - -impl GameRealmChatEventTableAccess for super::RemoteTables { - fn game_realm_chat_event(&self) -> GameRealmChatEventTableHandle<'_> { - GameRealmChatEventTableHandle { - imp: self - .imp - .get_table::("game_realm_chat_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameRealmChatEventInsertCallbackId(__sdk::CallbackId); -pub struct GameRealmChatEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameRealmChatEventTableHandle<'ctx> { - type Row = RealmChatEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameRealmChatEventTableHandle<'ctx> { - type Row = RealmChatEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameRealmChatEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRealmChatEventInsertCallbackId { - GameRealmChatEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRealmChatEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameRealmChatEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRealmChatEventDeleteCallbackId { - GameRealmChatEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRealmChatEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameRealmChatEventTableHandle<'ctx> { - type InsertCallbackId = GameRealmChatEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRealmChatEventInsertCallbackId { - GameRealmChatEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRealmChatEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameRealmChatEventTableHandle<'ctx> { - type DeleteCallbackId = GameRealmChatEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRealmChatEventDeleteCallbackId { - GameRealmChatEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRealmChatEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameRealmChatEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameRealmChatEventTableHandle<'ctx> { - type UpdateCallbackId = GameRealmChatEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRealmChatEventUpdateCallbackId { - GameRealmChatEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRealmChatEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameRealmChatEventTableHandle<'ctx> { - type UpdateCallbackId = GameRealmChatEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRealmChatEventUpdateCallbackId { - GameRealmChatEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRealmChatEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_realm_chat_event`, -/// which allows point queries on the field of the same name -/// via the [`GameRealmChatEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_realm_chat_event().id().find(...)`. -pub struct GameRealmChatEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameRealmChatEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_realm_chat_event`. - pub fn id(&self) -> GameRealmChatEventIdUnique<'ctx> { - GameRealmChatEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameRealmChatEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_realm_chat_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RealmChatEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_realm_chat_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RealmChatEvent`. - fn game_realm_chat_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_realm_chat_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_realm_chat_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_realm_chat_event") - } -} diff --git a/gateway/src/stdb/bindings/game_realm_table.rs b/gateway/src/stdb/bindings/game_realm_table.rs deleted file mode 100644 index 4436bb7c5..000000000 --- a/gateway/src/stdb/bindings/game_realm_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::realm_type::Realm; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_realm`. -/// -/// Obtain a handle from the [`GameRealmTableAccess::game_realm`] method on [`super::RemoteTables`], -/// like `ctx.db.game_realm()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_realm().on_insert(...)`. -pub struct GameRealmTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_realm`. -pub struct GameRealmTableAccessor; - -impl __sdk::TableAccessor for GameRealmTableAccessor { - type Row = Realm; - type Handle<'db> = GameRealmTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_realm() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_realm`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameRealmTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameRealmTableHandle`], which mediates access to the table `game_realm`. - fn game_realm(&self) -> GameRealmTableHandle<'_>; -} - -impl GameRealmTableAccess for super::RemoteTables { - fn game_realm(&self) -> GameRealmTableHandle<'_> { - GameRealmTableHandle { - imp: self.imp.get_table::("game_realm"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameRealmInsertCallbackId(__sdk::CallbackId); -pub struct GameRealmDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameRealmTableHandle<'ctx> { - type Row = Realm; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameRealmTableHandle<'ctx> { - type Row = Realm; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameRealmInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRealmInsertCallbackId { - GameRealmInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRealmInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameRealmDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRealmDeleteCallbackId { - GameRealmDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRealmDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameRealmTableHandle<'ctx> { - type InsertCallbackId = GameRealmInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRealmInsertCallbackId { - GameRealmInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRealmInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameRealmTableHandle<'ctx> { - type DeleteCallbackId = GameRealmDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRealmDeleteCallbackId { - GameRealmDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRealmDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameRealmUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameRealmTableHandle<'ctx> { - type UpdateCallbackId = GameRealmUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRealmUpdateCallbackId { - GameRealmUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRealmUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameRealmTableHandle<'ctx> { - type UpdateCallbackId = GameRealmUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRealmUpdateCallbackId { - GameRealmUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRealmUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_realm`, -/// which allows point queries on the field of the same name -/// via the [`GameRealmIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_realm().id().find(...)`. -pub struct GameRealmIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameRealmTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_realm`. - pub fn id(&self) -> GameRealmIdUnique<'ctx> { - GameRealmIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameRealmIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u8) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_realm"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Realm`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_realmQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Realm`. - fn game_realm(&self) -> __sdk::__query_builder::Table; -} - -impl game_realmQueryTableAccess for __sdk::QueryTableAccessor { - fn game_realm(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_realm") - } -} diff --git a/gateway/src/stdb/bindings/game_region_assignment_table.rs b/gateway/src/stdb/bindings/game_region_assignment_table.rs deleted file mode 100644 index f045bb505..000000000 --- a/gateway/src/stdb/bindings/game_region_assignment_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::region_assignment_type::RegionAssignment; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_region_assignment`. -/// -/// Obtain a handle from the [`GameRegionAssignmentTableAccess::game_region_assignment`] method on [`super::RemoteTables`], -/// like `ctx.db.game_region_assignment()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_region_assignment().on_insert(...)`. -pub struct GameRegionAssignmentTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_region_assignment`. -pub struct GameRegionAssignmentTableAccessor; - -impl __sdk::TableAccessor for GameRegionAssignmentTableAccessor { - type Row = RegionAssignment; - type Handle<'db> = GameRegionAssignmentTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_region_assignment() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_region_assignment`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameRegionAssignmentTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameRegionAssignmentTableHandle`], which mediates access to the table `game_region_assignment`. - fn game_region_assignment(&self) -> GameRegionAssignmentTableHandle<'_>; -} - -impl GameRegionAssignmentTableAccess for super::RemoteTables { - fn game_region_assignment(&self) -> GameRegionAssignmentTableHandle<'_> { - GameRegionAssignmentTableHandle { - imp: self - .imp - .get_table::("game_region_assignment"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameRegionAssignmentInsertCallbackId(__sdk::CallbackId); -pub struct GameRegionAssignmentDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameRegionAssignmentTableHandle<'ctx> { - type Row = RegionAssignment; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameRegionAssignmentTableHandle<'ctx> { - type Row = RegionAssignment; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameRegionAssignmentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRegionAssignmentInsertCallbackId { - GameRegionAssignmentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRegionAssignmentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameRegionAssignmentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRegionAssignmentDeleteCallbackId { - GameRegionAssignmentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRegionAssignmentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameRegionAssignmentTableHandle<'ctx> { - type InsertCallbackId = GameRegionAssignmentInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRegionAssignmentInsertCallbackId { - GameRegionAssignmentInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRegionAssignmentInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameRegionAssignmentTableHandle<'ctx> { - type DeleteCallbackId = GameRegionAssignmentDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRegionAssignmentDeleteCallbackId { - GameRegionAssignmentDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRegionAssignmentDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameRegionAssignmentUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameRegionAssignmentTableHandle<'ctx> { - type UpdateCallbackId = GameRegionAssignmentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRegionAssignmentUpdateCallbackId { - GameRegionAssignmentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRegionAssignmentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameRegionAssignmentTableHandle<'ctx> { - type UpdateCallbackId = GameRegionAssignmentUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRegionAssignmentUpdateCallbackId { - GameRegionAssignmentUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRegionAssignmentUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `key` unique index on the table `game_region_assignment`, -/// which allows point queries on the field of the same name -/// via the [`GameRegionAssignmentKeyUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_region_assignment().key().find(...)`. -pub struct GameRegionAssignmentKeyUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameRegionAssignmentTableHandle<'ctx> { - /// Get a handle on the `key` unique index on the table `game_region_assignment`. - pub fn key(&self) -> GameRegionAssignmentKeyUnique<'ctx> { - GameRegionAssignmentKeyUnique { - imp: self.imp.get_unique_constraint::("key"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameRegionAssignmentKeyUnique<'ctx> { - /// Find the subscribed row whose `key` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_region_assignment"); - _table.add_unique_constraint::("key", |row| &row.key); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RegionAssignment`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_region_assignmentQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RegionAssignment`. - fn game_region_assignment(&self) -> __sdk::__query_builder::Table; -} - -impl game_region_assignmentQueryTableAccess for __sdk::QueryTableAccessor { - fn game_region_assignment(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_region_assignment") - } -} diff --git a/gateway/src/stdb/bindings/game_region_load_table.rs b/gateway/src/stdb/bindings/game_region_load_table.rs deleted file mode 100644 index c8bc74d81..000000000 --- a/gateway/src/stdb/bindings/game_region_load_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::region_load_type::RegionLoad; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_region_load`. -/// -/// Obtain a handle from the [`GameRegionLoadTableAccess::game_region_load`] method on [`super::RemoteTables`], -/// like `ctx.db.game_region_load()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_region_load().on_insert(...)`. -pub struct GameRegionLoadTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_region_load`. -pub struct GameRegionLoadTableAccessor; - -impl __sdk::TableAccessor for GameRegionLoadTableAccessor { - type Row = RegionLoad; - type Handle<'db> = GameRegionLoadTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_region_load() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_region_load`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameRegionLoadTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameRegionLoadTableHandle`], which mediates access to the table `game_region_load`. - fn game_region_load(&self) -> GameRegionLoadTableHandle<'_>; -} - -impl GameRegionLoadTableAccess for super::RemoteTables { - fn game_region_load(&self) -> GameRegionLoadTableHandle<'_> { - GameRegionLoadTableHandle { - imp: self.imp.get_table::("game_region_load"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameRegionLoadInsertCallbackId(__sdk::CallbackId); -pub struct GameRegionLoadDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameRegionLoadTableHandle<'ctx> { - type Row = RegionLoad; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameRegionLoadTableHandle<'ctx> { - type Row = RegionLoad; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameRegionLoadInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRegionLoadInsertCallbackId { - GameRegionLoadInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRegionLoadInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameRegionLoadDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRegionLoadDeleteCallbackId { - GameRegionLoadDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRegionLoadDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameRegionLoadTableHandle<'ctx> { - type InsertCallbackId = GameRegionLoadInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRegionLoadInsertCallbackId { - GameRegionLoadInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRegionLoadInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameRegionLoadTableHandle<'ctx> { - type DeleteCallbackId = GameRegionLoadDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRegionLoadDeleteCallbackId { - GameRegionLoadDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRegionLoadDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameRegionLoadUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameRegionLoadTableHandle<'ctx> { - type UpdateCallbackId = GameRegionLoadUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRegionLoadUpdateCallbackId { - GameRegionLoadUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRegionLoadUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameRegionLoadTableHandle<'ctx> { - type UpdateCallbackId = GameRegionLoadUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRegionLoadUpdateCallbackId { - GameRegionLoadUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRegionLoadUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_region_load`, -/// which allows point queries on the field of the same name -/// via the [`GameRegionLoadIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_region_load().id().find(...)`. -pub struct GameRegionLoadIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameRegionLoadTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_region_load`. - pub fn id(&self) -> GameRegionLoadIdUnique<'ctx> { - GameRegionLoadIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameRegionLoadIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_region_load"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RegionLoad`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_region_loadQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RegionLoad`. - fn game_region_load(&self) -> __sdk::__query_builder::Table; -} - -impl game_region_loadQueryTableAccess for __sdk::QueryTableAccessor { - fn game_region_load(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_region_load") - } -} diff --git a/gateway/src/stdb/bindings/game_rest_state_event_table.rs b/gateway/src/stdb/bindings/game_rest_state_event_table.rs deleted file mode 100644 index daa583a8a..000000000 --- a/gateway/src/stdb/bindings/game_rest_state_event_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::rest_state_event_type::RestStateEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_rest_state_event`. -/// -/// Obtain a handle from the [`GameRestStateEventTableAccess::game_rest_state_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_rest_state_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_rest_state_event().on_insert(...)`. -pub struct GameRestStateEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_rest_state_event`. -pub struct GameRestStateEventTableAccessor; - -impl __sdk::TableAccessor for GameRestStateEventTableAccessor { - type Row = RestStateEvent; - type Handle<'db> = GameRestStateEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_rest_state_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_rest_state_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameRestStateEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameRestStateEventTableHandle`], which mediates access to the table `game_rest_state_event`. - fn game_rest_state_event(&self) -> GameRestStateEventTableHandle<'_>; -} - -impl GameRestStateEventTableAccess for super::RemoteTables { - fn game_rest_state_event(&self) -> GameRestStateEventTableHandle<'_> { - GameRestStateEventTableHandle { - imp: self - .imp - .get_table::("game_rest_state_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameRestStateEventInsertCallbackId(__sdk::CallbackId); -pub struct GameRestStateEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameRestStateEventTableHandle<'ctx> { - type Row = RestStateEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameRestStateEventTableHandle<'ctx> { - type Row = RestStateEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameRestStateEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRestStateEventInsertCallbackId { - GameRestStateEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRestStateEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameRestStateEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRestStateEventDeleteCallbackId { - GameRestStateEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRestStateEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameRestStateEventTableHandle<'ctx> { - type InsertCallbackId = GameRestStateEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRestStateEventInsertCallbackId { - GameRestStateEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRestStateEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameRestStateEventTableHandle<'ctx> { - type DeleteCallbackId = GameRestStateEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRestStateEventDeleteCallbackId { - GameRestStateEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRestStateEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameRestStateEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameRestStateEventTableHandle<'ctx> { - type UpdateCallbackId = GameRestStateEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRestStateEventUpdateCallbackId { - GameRestStateEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRestStateEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameRestStateEventTableHandle<'ctx> { - type UpdateCallbackId = GameRestStateEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRestStateEventUpdateCallbackId { - GameRestStateEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRestStateEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_rest_state_event`, -/// which allows point queries on the field of the same name -/// via the [`GameRestStateEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_rest_state_event().id().find(...)`. -pub struct GameRestStateEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameRestStateEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_rest_state_event`. - pub fn id(&self) -> GameRestStateEventIdUnique<'ctx> { - GameRestStateEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameRestStateEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_rest_state_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RestStateEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_rest_state_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RestStateEvent`. - fn game_rest_state_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_rest_state_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_rest_state_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_rest_state_event") - } -} diff --git a/gateway/src/stdb/bindings/game_resurrect_request_table.rs b/gateway/src/stdb/bindings/game_resurrect_request_table.rs deleted file mode 100644 index c1716bcee..000000000 --- a/gateway/src/stdb/bindings/game_resurrect_request_table.rs +++ /dev/null @@ -1,230 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::resurrect_request_type::ResurrectRequest; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_resurrect_request`. -/// -/// Obtain a handle from the [`GameResurrectRequestTableAccess::game_resurrect_request`] method on [`super::RemoteTables`], -/// like `ctx.db.game_resurrect_request()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_resurrect_request().on_insert(...)`. -pub struct GameResurrectRequestTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_resurrect_request`. -pub struct GameResurrectRequestTableAccessor; - -impl __sdk::TableAccessor for GameResurrectRequestTableAccessor { - type Row = ResurrectRequest; - type Handle<'db> = GameResurrectRequestTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_resurrect_request() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_resurrect_request`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameResurrectRequestTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameResurrectRequestTableHandle`], which mediates access to the table `game_resurrect_request`. - fn game_resurrect_request(&self) -> GameResurrectRequestTableHandle<'_>; -} - -impl GameResurrectRequestTableAccess for super::RemoteTables { - fn game_resurrect_request(&self) -> GameResurrectRequestTableHandle<'_> { - GameResurrectRequestTableHandle { - imp: self - .imp - .get_table::("game_resurrect_request"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameResurrectRequestInsertCallbackId(__sdk::CallbackId); -pub struct GameResurrectRequestDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameResurrectRequestTableHandle<'ctx> { - type Row = ResurrectRequest; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameResurrectRequestTableHandle<'ctx> { - type Row = ResurrectRequest; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameResurrectRequestInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameResurrectRequestInsertCallbackId { - GameResurrectRequestInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameResurrectRequestInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameResurrectRequestDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameResurrectRequestDeleteCallbackId { - GameResurrectRequestDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameResurrectRequestDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameResurrectRequestTableHandle<'ctx> { - type InsertCallbackId = GameResurrectRequestInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameResurrectRequestInsertCallbackId { - GameResurrectRequestInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameResurrectRequestInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameResurrectRequestTableHandle<'ctx> { - type DeleteCallbackId = GameResurrectRequestDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameResurrectRequestDeleteCallbackId { - GameResurrectRequestDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameResurrectRequestDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameResurrectRequestUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameResurrectRequestTableHandle<'ctx> { - type UpdateCallbackId = GameResurrectRequestUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameResurrectRequestUpdateCallbackId { - GameResurrectRequestUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameResurrectRequestUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameResurrectRequestTableHandle<'ctx> { - type UpdateCallbackId = GameResurrectRequestUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameResurrectRequestUpdateCallbackId { - GameResurrectRequestUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameResurrectRequestUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `target_guid` unique index on the table `game_resurrect_request`, -/// which allows point queries on the field of the same name -/// via the [`GameResurrectRequestTargetGuidUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_resurrect_request().target_guid().find(...)`. -pub struct GameResurrectRequestTargetGuidUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameResurrectRequestTableHandle<'ctx> { - /// Get a handle on the `target_guid` unique index on the table `game_resurrect_request`. - pub fn target_guid(&self) -> GameResurrectRequestTargetGuidUnique<'ctx> { - GameResurrectRequestTargetGuidUnique { - imp: self.imp.get_unique_constraint::("target_guid"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameResurrectRequestTargetGuidUnique<'ctx> { - /// Find the subscribed row whose `target_guid` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_resurrect_request"); - _table.add_unique_constraint::("target_guid", |row| &row.target_guid); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ResurrectRequest`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_resurrect_requestQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ResurrectRequest`. - fn game_resurrect_request(&self) -> __sdk::__query_builder::Table; -} - -impl game_resurrect_requestQueryTableAccess for __sdk::QueryTableAccessor { - fn game_resurrect_request(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_resurrect_request") - } -} diff --git a/gateway/src/stdb/bindings/game_roll_event_table.rs b/gateway/src/stdb/bindings/game_roll_event_table.rs deleted file mode 100644 index 0fa3841ef..000000000 --- a/gateway/src/stdb/bindings/game_roll_event_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::roll_event_type::RollEvent; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_roll_event`. -/// -/// Obtain a handle from the [`GameRollEventTableAccess::game_roll_event`] method on [`super::RemoteTables`], -/// like `ctx.db.game_roll_event()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_roll_event().on_insert(...)`. -pub struct GameRollEventTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_roll_event`. -pub struct GameRollEventTableAccessor; - -impl __sdk::TableAccessor for GameRollEventTableAccessor { - type Row = RollEvent; - type Handle<'db> = GameRollEventTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_roll_event() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_roll_event`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameRollEventTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameRollEventTableHandle`], which mediates access to the table `game_roll_event`. - fn game_roll_event(&self) -> GameRollEventTableHandle<'_>; -} - -impl GameRollEventTableAccess for super::RemoteTables { - fn game_roll_event(&self) -> GameRollEventTableHandle<'_> { - GameRollEventTableHandle { - imp: self.imp.get_table::("game_roll_event"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameRollEventInsertCallbackId(__sdk::CallbackId); -pub struct GameRollEventDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameRollEventTableHandle<'ctx> { - type Row = RollEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameRollEventTableHandle<'ctx> { - type Row = RollEvent; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameRollEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRollEventInsertCallbackId { - GameRollEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRollEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameRollEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRollEventDeleteCallbackId { - GameRollEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRollEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameRollEventTableHandle<'ctx> { - type InsertCallbackId = GameRollEventInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRollEventInsertCallbackId { - GameRollEventInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameRollEventInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameRollEventTableHandle<'ctx> { - type DeleteCallbackId = GameRollEventDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameRollEventDeleteCallbackId { - GameRollEventDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameRollEventDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameRollEventUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameRollEventTableHandle<'ctx> { - type UpdateCallbackId = GameRollEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRollEventUpdateCallbackId { - GameRollEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRollEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameRollEventTableHandle<'ctx> { - type UpdateCallbackId = GameRollEventUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameRollEventUpdateCallbackId { - GameRollEventUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameRollEventUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_roll_event`, -/// which allows point queries on the field of the same name -/// via the [`GameRollEventIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_roll_event().id().find(...)`. -pub struct GameRollEventIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameRollEventTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_roll_event`. - pub fn id(&self) -> GameRollEventIdUnique<'ctx> { - GameRollEventIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameRollEventIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_roll_event"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `RollEvent`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_roll_eventQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `RollEvent`. - fn game_roll_event(&self) -> __sdk::__query_builder::Table; -} - -impl game_roll_eventQueryTableAccess for __sdk::QueryTableAccessor { - fn game_roll_event(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_roll_event") - } -} diff --git a/gateway/src/stdb/bindings/game_school_lockout_table.rs b/gateway/src/stdb/bindings/game_school_lockout_table.rs deleted file mode 100644 index 3a01f5981..000000000 --- a/gateway/src/stdb/bindings/game_school_lockout_table.rs +++ /dev/null @@ -1,228 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::school_lockout_type::SchoolLockout; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_school_lockout`. -/// -/// Obtain a handle from the [`GameSchoolLockoutTableAccess::game_school_lockout`] method on [`super::RemoteTables`], -/// like `ctx.db.game_school_lockout()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_school_lockout().on_insert(...)`. -pub struct GameSchoolLockoutTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -/// Lifetime-aware accessor marker for the table `game_school_lockout`. -pub struct GameSchoolLockoutTableAccessor; - -impl __sdk::TableAccessor for GameSchoolLockoutTableAccessor { - type Row = SchoolLockout; - type Handle<'db> = GameSchoolLockoutTableHandle<'db>; - - fn get<'db>(db: &'db super::RemoteTables) -> Self::Handle<'db> { - db.game_school_lockout() - } -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `game_school_lockout`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait GameSchoolLockoutTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`GameSchoolLockoutTableHandle`], which mediates access to the table `game_school_lockout`. - fn game_school_lockout(&self) -> GameSchoolLockoutTableHandle<'_>; -} - -impl GameSchoolLockoutTableAccess for super::RemoteTables { - fn game_school_lockout(&self) -> GameSchoolLockoutTableHandle<'_> { - GameSchoolLockoutTableHandle { - imp: self.imp.get_table::("game_school_lockout"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct GameSchoolLockoutInsertCallbackId(__sdk::CallbackId); -pub struct GameSchoolLockoutDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableLike for GameSchoolLockoutTableHandle<'ctx> { - type Row = SchoolLockout; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } -} - -impl<'ctx> __sdk::Table for GameSchoolLockoutTableHandle<'ctx> { - type Row = SchoolLockout; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = GameSchoolLockoutInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameSchoolLockoutInsertCallbackId { - GameSchoolLockoutInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameSchoolLockoutInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = GameSchoolLockoutDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameSchoolLockoutDeleteCallbackId { - GameSchoolLockoutDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameSchoolLockoutDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -impl<'ctx> __sdk::WithInsert for GameSchoolLockoutTableHandle<'ctx> { - type InsertCallbackId = GameSchoolLockoutInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameSchoolLockoutInsertCallbackId { - GameSchoolLockoutInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: GameSchoolLockoutInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } -} - -impl<'ctx> __sdk::WithDelete for GameSchoolLockoutTableHandle<'ctx> { - type DeleteCallbackId = GameSchoolLockoutDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> GameSchoolLockoutDeleteCallbackId { - GameSchoolLockoutDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: GameSchoolLockoutDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct GameSchoolLockoutUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for GameSchoolLockoutTableHandle<'ctx> { - type UpdateCallbackId = GameSchoolLockoutUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameSchoolLockoutUpdateCallbackId { - GameSchoolLockoutUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameSchoolLockoutUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -impl<'ctx> __sdk::WithUpdate for GameSchoolLockoutTableHandle<'ctx> { - type UpdateCallbackId = GameSchoolLockoutUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> GameSchoolLockoutUpdateCallbackId { - GameSchoolLockoutUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: GameSchoolLockoutUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `id` unique index on the table `game_school_lockout`, -/// which allows point queries on the field of the same name -/// via the [`GameSchoolLockoutIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_school_lockout().id().find(...)`. -pub struct GameSchoolLockoutIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> GameSchoolLockoutTableHandle<'ctx> { - /// Get a handle on the `id` unique index on the table `game_school_lockout`. - pub fn id(&self) -> GameSchoolLockoutIdUnique<'ctx> { - GameSchoolLockoutIdUnique { - imp: self.imp.get_unique_constraint::("id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> GameSchoolLockoutIdUnique<'ctx> { - /// Find the subscribed row whose `id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("game_school_lockout"); - _table.add_unique_constraint::("id", |row| &row.id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `SchoolLockout`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait game_school_lockoutQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `SchoolLockout`. - fn game_school_lockout(&self) -> __sdk::__query_builder::Table; -} - -impl game_school_lockoutQueryTableAccess for __sdk::QueryTableAccessor { - fn game_school_lockout(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("game_school_lockout") - } -} diff --git a/gateway/src/stdb/bindings/game_script_table.rs b/gateway/src/stdb/bindings/game_script_table.rs deleted file mode 100644 index ec7431cca..000000000 --- a/gateway/src/stdb/bindings/game_script_table.rs +++ /dev/null @@ -1,259 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::script_type::Script; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `game_script`. -/// -/// Obtain a handle from the [`GameScriptTableAccess::game_script`] method on [`super::RemoteTables`], -/// like `ctx.db.game_script()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.game_script().on_insert(...)`. -pub struct GameScriptTableHandle<'ctx> { - imp: __sdk::TableHandle