Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clockworklabs/BitCraftPublic
/ functions
Functions
3,290 in github.com/clockworklabs/BitCraftPublic
⨍
Functions
3,290
◇
Types & classes
1,546
↓ 2 callers
Method
collect_paid_rent
(&mut self, ctx: &ReducerContext, player_entity_id: u64)
BitCraftServer/packages/game/src/game/entities/rent_state.rs:58
↓ 2 callers
Function
comment_all_handlers
(dir_path,conditionStr)
BitCraftServer/packages/game/utility/comment_all_handlers.py:7
↓ 2 callers
Function
complete_chain
(ctx: &ReducerContext, player_id: u64, chain_id: i32)
BitCraftServer/packages/game/src/game/handlers/migration/migrate_onboarding.rs:66
↓ 2 callers
Method
coordinates_float
(&self)
BitCraftServer/packages/global_module/src/game/entities/location.rs:154
↓ 2 callers
Method
count
(&self)
BitCraftServer/packages/game/src/game/world_gen/resources_map_definition.rs:10
↓ 2 callers
Method
count_item_quantity
(&self, item_id: i32, item_type: ItemType)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:405
↓ 2 callers
Function
create_building_interior_internal
( ctx: &ReducerContext, building_description_id: i32, external_building_entity_id: u64, dimens
BitCraftServer/packages/game/src/game/reducer_helpers/interior_helpers.rs:324
↓ 2 callers
Function
create_distant_visibile_building
(ctx: &ReducerContext, building_desc: &BuildingDesc, entity_id: u64, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:611
↓ 2 callers
Function
create_footprint
( ctx: &ReducerContext, entity_id: u64, footprint: &Vec<(SmallHexTile, FootprintType)>, overri
BitCraftServer/packages/game/src/game/reducer_helpers/footprint_helpers.rs:94
↓ 2 callers
Function
create_player_interior
(ctx: &ReducerContext, building_description_id: i32, external_building_entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/interior_helpers.rs:288
↓ 2 callers
Function
deactivate_deployable_collectible
( ctx: &ReducerContext, actor_id: u64, deployable_desc: &DeployableDesc, dry_run: bool, )
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:553
↓ 2 callers
Function
delete_crumb_trail
(ctx: &ReducerContext, crumb_trail: &CrumbTrailState)
BitCraftServer/packages/game/src/agents/crumb_trail_clean_up_agent.rs:105
↓ 2 callers
Function
delete_herds
(ctx: &ReducerContext, enemy_ai_params_desc_id: i32)
BitCraftServer/packages/game/src/game/handlers/admin/admin_reset_herd_locations.rs:60
↓ 2 callers
Function
delete_unaffiliated_enemies
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/handlers/admin/admin_reset_herd_locations.rs:83
↓ 2 callers
Function
deployables_at_coordinates
(ctx: &'a ReducerContext, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:111
↓ 2 callers
Method
destination_float
(&self)
BitCraftServer/packages/game/src/game/entities/location.rs:176
↓ 2 callers
Method
discover_claim
(&mut self, ctx: &ReducerContext, claim_entity_id: u64)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:653
↓ 2 callers
Method
discover_ruins
(&mut self, ctx: &ReducerContext, coordinates: OffsetCoordinatesSmall)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1690
↓ 2 callers
Function
dismount_deployable_and_explore_and_set_deployable_position
( ctx: &ReducerContext, player_entity_id: u64, target_coordinates: FloatHexTile, deployable_co
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:404
↓ 2 callers
Method
distance_to
(&self, ctx: &ReducerContext, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/entities/project_site_state.rs:18
↓ 2 callers
Function
dont_reformat
(s: String)
BitCraftServer/packages/global_module/src/i18n.rs:9
↓ 2 callers
Method
double
(&mut self)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:191
↓ 2 callers
Function
empire_deploy_siege_engine_reduce
( ctx: &ReducerContext, actor_id: u64, coord: OffsetCoordinatesSmallMessage, direction: i32,
BitCraftServer/packages/game/src/game/handlers/empires/empire_start_siege.rs:84
↓ 2 callers
Function
empire_player_leave_impl
(ctx: &ReducerContext, empire_entity_id: u64)
BitCraftServer/packages/global_module/src/game/handlers/empires/empires.rs:117
↓ 2 callers
Function
empire_resupply_node_reduce
( ctx: &ReducerContext, actor_id: u64, building_entity_id: u64, from_pocket: PocketKey, dr
BitCraftServer/packages/game/src/game/handlers/empires/empire_resupply_node.rs:62
↓ 2 callers
Method
ensure_claim_tech
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/building_state.rs:295
↓ 2 callers
Method
evaluate_extract_discoveries
(&mut self, ctx: &ReducerContext, recipes: I)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:522
↓ 2 callers
Function
event_delay
(recipe: &CraftingRecipeDesc, stats: &CharacterStatsState)
BitCraftServer/packages/game/src/game/handlers/player_craft/craft.rs:23
↓ 2 callers
Method
exclude_used_items
(&mut self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:1537
↓ 2 callers
Function
expel_and_despawn
( ctx: &ReducerContext, actor_id: u64, deployable_entity_id: u64, deployable_desc: DeployableD
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:515
↓ 2 callers
Method
expend_energy
(&mut self, energy_cost: f32, allow_negative: bool)
BitCraftServer/packages/game/src/game/entities/teleportation_energy_state.rs:56
↓ 2 callers
Method
explore_chunk_internal
(&mut self, (vec_index, bitmask): (usize, u64), counts_toward_achievements: bool)
BitCraftServer/packages/game/src/game/entities/exploration_chunks_state.rs:51
↓ 2 callers
Function
extract_coins
(item_stacks: &mut Vec<ItemStack>)
BitCraftServer/packages/game/src/game/handlers/player_trade/barter_stall_order_accept.rs:448
↓ 2 callers
Method
f_costs
(&self)
BitCraftServer/packages/game/src/game/generic/pathfinder.rs:175
↓ 2 callers
Function
fail_timing
(ctx: &ReducerContext, actor_id: u64, current_action: PlayerActionType, error: String)
BitCraftServer/packages/game/src/game/reducer_helpers/player_action_helpers.rs:130
↓ 2 callers
Function
finalize
(ctx: &ReducerContext, trade_session: &mut TradeSessionState)
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_accept.rs:80
↓ 2 callers
Function
find_hierarchy_root
(hierarchy: &Vec<usize>, node_index: usize)
BitCraftServer/packages/game/src/game/world_gen/world_generation/world_graph.rs:883
↓ 2 callers
Function
find_lakes
Traverse the graph looking for lake nodes that are at the border and group them by lake
BitCraftServer/packages/game/src/game/world_gen/world_generation/world_graph.rs:676
↓ 2 callers
Function
find_teleport_coordinates_for_interior_destruction
(ctx: &ReducerContext, building_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/interior_helpers.rs:88
↓ 2 callers
Method
fits
(&self, ctx: &ReducerContext, item_stack: ItemStack)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:437
↓ 2 callers
Method
fits_all
(&self, ctx: &ReducerContext, item_stacks: &Vec<ItemStack>)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:441
↓ 2 callers
Method
footprint
(&self, ctx: &ReducerContext, center: SmallHexTile)
BitCraftServer/packages/game/src/game/entities/building_state.rs:24
↓ 2 callers
Method
fulfills_function
(&self, building_type: i32, level: i32)
BitCraftServer/packages/game/src/game/static_data/building.rs:7
↓ 2 callers
Method
get_array_dimensions
(&self)
BitCraftServer/packages/game/src/game/world_gen/noise_map.rs:46
↓ 2 callers
Function
get_claim_under_building
Returns the claim_entity_id of the tiles under the building if every walkable and hitbox footprints are covered, 0 otherwise.
BitCraftServer/packages/game/src/game/claim_helper.rs:28
↓ 2 callers
Function
get_claim_under_footprint_cached
Returns the claim_entity_id of the tiles under the footprint if every walkable and hitbox footprints are covered, 0 otherwise.
BitCraftServer/packages/game/src/game/claim_helper.rs:56
↓ 2 callers
Method
get_completed_crafts
(&self, actions_required: i32)
BitCraftServer/packages/game/src/game/entities/progressive_action_state.rs:86
↓ 2 callers
Method
get_coordinates
(&self)
BitCraftServer/packages/game/src/game/world_gen/world_generation/entity_node.rs:30
↓ 2 callers
Function
get_deployable_deploybale_appearance_override
( ctx: &ReducerContext, collectible_id: i32, )
BitCraftServer/packages/game/src/game/handlers/player_vault/collectible_activate.rs:23
↓ 2 callers
Function
get_distance
( ctx: &ReducerContext, building_state: &Option<BuildingState>, deployable_location: Option<SmallH
BitCraftServer/packages/game/src/game/handlers/player_trade/barter_stall_order_accept.rs:460
↓ 2 callers
Function
get_distance
(ctx: &ReducerContext, deposit: &ResourceState, center: SmallHexTile, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/handlers/player/extract.rs:539
↓ 2 callers
Function
get_duration
(ctx: &ReducerContext, time: Vec<f32>)
BitCraftServer/packages/game/src/game/entities/growth_state.rs:36
↓ 2 callers
Method
get_elevation
(&self, terrain_graph: &HexGraph<TerrainNode>)
BitCraftServer/packages/game/src/game/world_gen/world_generation/entity_node.rs:40
↓ 2 callers
Method
get_entity_local
(&self, local_x: i32, local_z: i32, dimension: u32)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:135
↓ 2 callers
Function
get_hitbox_footprint
(ctx: &ReducerContext, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:128
↓ 2 callers
Method
get_index
(&self, coord: LargeHexTile)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:226
↓ 2 callers
Method
get_index_from_offset_coordinates
(&self, coordinates: OffsetCoordinates)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:61
↓ 2 callers
Method
get_noise
(&self, position: Vector2)
BitCraftServer/packages/game/src/game/world_gen/world_map_definition.rs:16
↓ 2 callers
Function
get_npc_empire_id
Gets the NPC empire entity ID, returning an error if it doesn't exist. Looks up by owner_type rather than name so it works regardless of what name was
BitCraftServer/packages/global_module/src/game/handlers/empires/npc_empire.rs:141
↓ 2 callers
Function
get_or_create_npc_empire
Gets the NPC empire entity ID, or creates the NPC empire if it doesn't exist. Creates EmpireState, EmpireEmblemState, and EmpireLogState (to prevent p
BitCraftServer/packages/global_module/src/game/handlers/empires/npc_empire.rs:21
↓ 2 callers
Method
get_pathfinding_costs
(&self, elevation_difference: i32)
BitCraftServer/packages/game/src/game/world_gen/river_generation_settings.rs:28
↓ 2 callers
Method
get_permission_entities
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/player_housing_state.rs:85
↓ 2 callers
Method
get_pixel_index
(&self, coordinates: Vector2Int)
BitCraftServer/packages/game/src/game/world_gen/biomes_map_definition.rs:36
↓ 2 callers
Function
get_player_location
(ctx: &ReducerContext, actor_id: u64)
BitCraftServer/packages/game/src/game/handlers/player/global_search.rs:142
↓ 2 callers
Function
get_radius
(ctx: &ReducerContext, entity_type: EntityType, entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/attack.rs:1152
↓ 2 callers
Method
get_refunded_crafts
(&self, actions_required: i32)
BitCraftServer/packages/game/src/game/entities/progressive_action_state.rs:89
↓ 2 callers
Function
get_signed_in_player_count
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/handlers/queue/player_queue.rs:76
↓ 2 callers
Function
get_speed_on_water_type
( nautical_speed: &Vec<MovementSpeed>, mut water_body_type: u8, water_depth: Option<i16>, is_p
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:640
↓ 2 callers
Function
get_terraform_building_id
(ctx: &ReducerContext, coordinates: OffsetCoordinatesLargeMessage)
BitCraftServer/packages/game/src/game/handlers/player/terraform.rs:85
↓ 2 callers
Method
get_upkeep_multiplier
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:201
↓ 2 callers
Method
get_water_body_type_index
(&self, index: usize)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:239
↓ 2 callers
Method
get_water_level
(&self, terrain_graph: &HexGraph<TerrainNode>)
BitCraftServer/packages/game/src/game/world_gen/world_generation/entity_node.rs:179
↓ 2 callers
Function
grant_collectible
(ctx: &ReducerContext, player_identity: Identity, collectible_id: i32, quantity: u32)
BitCraftServer/packages/game/src/inter_module/grant_hub_item.rs:29
↓ 2 callers
Function
grant_deconstructed_items
(ctx: &ReducerContext, actor_id: u64, recipe: &DeconstructionRecipeDesc)
BitCraftServer/packages/game/src/game/handlers/buildings/building_deconstruct.rs:233
↓ 2 callers
Function
handle_destination_result_on_sender
(ctx: &ReducerContext, request: PlayerCreateMsg, error: Option<String>)
BitCraftServer/packages/global_module/src/inter_module/player_create.rs:22
↓ 2 callers
Method
has_category
(&self, ctx: &ReducerContext, category: BuildingCategory)
BitCraftServer/packages/global_module/src/game/static_data/building.rs:35
↓ 2 callers
Method
has_collectible
(&self, id: i32)
BitCraftServer/packages/game/src/game/entities/vault_state.rs:28
↓ 2 callers
Method
has_discovered_achievement
(&self, achievement_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:318
↓ 2 callers
Method
has_discovered_battle_action
(&self, battle_action_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:398
↓ 2 callers
Method
has_discovered_building
(&self, building_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:477
↓ 2 callers
Method
has_discovered_cargo
(&self, cargo_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:556
↓ 2 callers
Method
has_discovered_claim
(&self, claim_entity_id: u64)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:637
↓ 2 callers
Method
has_discovered_deployable
(&self, deployable_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:877
↓ 2 callers
Method
has_discovered_enemy
(&self, enemy_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:956
↓ 2 callers
Method
has_discovered_item
(&self, item_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1115
↓ 2 callers
Method
has_discovered_lore
(&self, lore_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1196
↓ 2 callers
Method
has_discovered_npc
(&self, npc_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1275
↓ 2 callers
Method
has_discovered_resource
(&self, resource_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1594
↓ 2 callers
Method
has_discovered_ruins
(&self, coordinates: OffsetCoordinatesSmall)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1674
↓ 2 callers
Method
has_discovered_secondary
(&self, secondary_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1753
↓ 2 callers
Method
has_discovered_vault
(&self, vault_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1833
↓ 2 callers
Method
has_only_one_buff
(self)
BitCraftServer/packages/global_module/src/messages/extensions.rs:61
↓ 2 callers
Function
has_role_no_dev
(ctx: &ReducerContext, identity: &Identity, role: Role)
BitCraftServer/packages/game/src/game/handlers/authentication.rs:45
↓ 2 callers
Function
import_ability_custom_desc_internal
(ctx: &ReducerContext, records: Vec<AbilityCustomDesc>)
BitCraftServer/packages/game/src/import_reducers.rs:3903
↓ 2 callers
Function
import_ability_unlock_desc_internal
(ctx: &ReducerContext, records: Vec<AbilityUnlockDesc>)
BitCraftServer/packages/game/src/import_reducers.rs:3876
↓ 2 callers
Function
import_achievement_desc_internal
(ctx: &ReducerContext, records: Vec<AchievementDesc>)
BitCraftServer/packages/game/src/import_reducers.rs:63
↓ 2 callers
Function
import_achievement_desc_internal
(ctx: &ReducerContext, records: Vec<AchievementDesc>)
BitCraftServer/packages/global_module/src/import_reducers.rs:57
↓ 2 callers
Function
import_alert_desc_internal
(ctx: &ReducerContext, records: Vec<AlertDesc>)
BitCraftServer/packages/game/src/import_reducers.rs:153
↓ 2 callers
Function
import_alert_desc_internal
(ctx: &ReducerContext, records: Vec<AlertDesc>)
BitCraftServer/packages/global_module/src/import_reducers.rs:147
↓ 2 callers
Function
import_biome_desc_internal
(ctx: &ReducerContext, records: Vec<BiomeDesc>)
BitCraftServer/packages/game/src/import_reducers.rs:207
← previous
next →
401–500 of 3,290, ranked by callers