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
↓ 5 callers
Function
purge_inventory_from
(ctx: &ReducerContext, mut inventory: InventoryState, item_id: i32, is_cargo: bool)
BitCraftServer/packages/game/src/game/handlers/admin/admin_delete_all_items_of_type.rs:71
↓ 5 callers
Function
reduce
(ctx: &ReducerContext, title: String, message: String, sign_out: bool)
BitCraftServer/packages/game/src/game/handlers/admin/admin_broadcast.rs:18
↓ 5 callers
Method
remove_at
(&mut self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:569
↓ 5 callers
Function
sanitize_user_inputs
Sample Input -> Sample Output a<style=color>b -> ab <#ff0000>Text</color>
BitCraftServer/packages/global_module/src/game/reducer_helpers/user_text_input_helpers.rs:52
↓ 5 callers
Function
send_message
(ctx: &ReducerContext, region_id: u8)
BitCraftServer/packages/global_module/src/inter_module/player_create.rs:10
↓ 5 callers
Method
set_location
(&mut self, location: OffsetCoordinatesSmall)
BitCraftServer/packages/game/src/game/entities/location.rs:36
↓ 5 callers
Method
update
(self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:74
↓ 5 callers
Function
update_health_and_check_death
( ctx: &ReducerContext, _terrain_cache: &mut TerrainChunkCache, mut health_state: HealthState,
BitCraftServer/packages/game/src/game/reducer_helpers/health_helpers.rs:29
↓ 5 callers
Method
validate_distance
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/trade_session_state.rs:10
↓ 5 callers
Function
world_loaded
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/lib.rs:261
↓ 5 callers
Method
world_position
(&self)
BitCraftServer/packages/game/src/game/world_gen/world_generation/entity_node.rs:36
↓ 5 callers
Function
write_contents
(contents,file_path,encoding,newline_type)
BitCraftServer/packages/game/utility/refactor_client.py:45
↓ 5 callers
Function
write_if_file_changed
(path: &str, content: String)
BitCraftServer/packages/global_module/build_shared.rs:369
↓ 4 callers
Method
add_energy
(&mut self, ctx: &ReducerContext, energy: i32, params: Option<ParametersDesc>)
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:53
↓ 4 callers
Method
add_multiple
(&mut self, ctx: &ReducerContext, item_stacks: &Vec<ItemStack>)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:216
↓ 4 callers
Method
add_stamina_delta_clamped
(&mut self, delta: f32, min: f32, max: f32, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/stamina_state.rs:21
↓ 4 callers
Function
allow_sign_in
(ctx: &ReducerContext, mut user_state: UserState)
BitCraftServer/packages/game/src/game/handlers/queue/player_queue.rs:92
↓ 4 callers
Method
biome
(&self)
BitCraftServer/packages/game/src/game/entities/terrain_cell.rs:18
↓ 4 callers
Function
building_id_at_coordinates
(ctx: &ReducerContext, coordinates: &SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:85
↓ 4 callers
Function
can_run_cheat
(ctx: &ReducerContext, identity: &Identity, cheat_type: CheatType)
BitCraftServer/packages/global_module/src/game/handlers/cheats/cheat_type.rs:15
↓ 4 callers
Method
cancel_session_and_update
(mut self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/trade_session_state.rs:27
↓ 4 callers
Method
cancel_siege
(self, ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:812
↓ 4 callers
Method
convert
Change ownership of an EmpireNode.
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:98
↓ 4 callers
Function
create_building_claim
(ctx: &ReducerContext, building_entity_id: u64, neutral: bool)
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:237
↓ 4 callers
Function
create_nodes
()
BitCraftServer/packages/game/src/game/generic/pathfinder_tests.rs:4
↓ 4 callers
Method
create_trade_orders
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/npc_state.rs:66
↓ 4 callers
Function
day_duration
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/agents/day_night_agent.rs:83
↓ 4 callers
Method
delete_trade_orders
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/npc_state.rs:116
↓ 4 callers
Method
discover_achievement
(&mut self, ctx: &ReducerContext, achievement_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:334
↓ 4 callers
Method
discover_craft
(&mut self, ctx: &ReducerContext, craft_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:812
↓ 4 callers
Method
discover_deployable
(&mut self, ctx: &ReducerContext, deployable_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:893
↓ 4 callers
Method
discover_enemy
(&mut self, ctx: &ReducerContext, enemy_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:972
↓ 4 callers
Method
discover_npc
(&mut self, ctx: &ReducerContext, npc_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1291
↓ 4 callers
Method
discover_paving
(&mut self, ctx: &ReducerContext, paving_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1370
↓ 4 callers
Method
discover_pillar_shaping
(&mut self, ctx: &ReducerContext, pillar_shaping_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1450
↓ 4 callers
Function
dismount_deployable_and_set_deployable_position
( ctx: &ReducerContext, player_entity_id: u64, skip_deployable_icon: bool, deployable_coordina
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:441
↓ 4 callers
Method
distance_to_footprint
(&self, footprint: Vec<(SmallHexTile, FootprintType)>)
BitCraftServer/packages/game/src/game/coordinates/small_hex_tile.rs:264
↓ 4 callers
Function
ensure_signed_in
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/mod.rs:82
↓ 4 callers
Method
evaluate_construction_discoveries
(&mut self, ctx: &ReducerContext, recipes: I)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:344
↓ 4 callers
Method
evaluate_craft_discoveries
(&mut self, ctx: &ReducerContext, recipes: I)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:286
↓ 4 callers
Method
evaluate_paving_discoveries
(&mut self, ctx: &ReducerContext, recipes: I)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:541
↓ 4 callers
Method
evaluate_pillar_shaping_discoveries
(&mut self, ctx: &ReducerContext, recipes: I)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:404
↓ 4 callers
Method
evaluate_resource_placement_discoveries
(&mut self, ctx: &ReducerContext, recipes: I)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:462
↓ 4 callers
Method
fix_durability
(&self)
BitCraftServer/packages/game/src/game/entities/item_stack.rs:200
↓ 4 callers
Method
full_maintenance
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:453
↓ 4 callers
Method
get_final_crit_multiplier
(&self, ctx: &ReducerContext, skill: Option<SkillType>)
BitCraftServer/packages/game/src/game/entities/character_stats.rs:70
↓ 4 callers
Function
get_partial_claims_under_footprint
(ctx: &ReducerContext, footprint: &Vec<(SmallHexTile, FootprintType)>)
BitCraftServer/packages/game/src/game/claim_helper.rs:120
↓ 4 callers
Function
has_hitbox_footprint
(ctx: &ReducerContext, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:119
↓ 4 callers
Method
has_officer_permissions
(&self, ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:98
↓ 4 callers
Method
hashcode
(&self)
BitCraftServer/packages/game/src/game/coordinates/chunk_coordinates.rs:57
↓ 4 callers
Method
insert
(self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:78
↓ 4 callers
Function
interior_trigger_collapse
(ctx: &ReducerContext, dimension_network_entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/interior_helpers.rs:40
↓ 4 callers
Method
inventory
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:92
↓ 4 callers
Function
is_interior_tile_walkable
(ctx: &ReducerContext, coord: SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:376
↓ 4 callers
Method
is_pocket_empty
(&self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:391
↓ 4 callers
Function
is_submerged
(ctx: &ReducerContext, terrain_cache: &mut TerrainChunkCache, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:144
↓ 4 callers
Function
log_quantity
(ctx: &ReducerContext, item_id: i32, is_cargo: bool, player_entity_id: u64, min_quantity: Option<u64>)
BitCraftServer/packages/game/src/game/handlers/admin/admin_find_players_with_item.rs:59
↓ 4 callers
Method
max_supplies
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_tech_state.rs:8
↓ 4 callers
Method
on_inventory_updated
(mut self, ctx: &ReducerContext, actor_id: u64, self_inventory: InventoryState)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:254
↓ 4 callers
Function
on_item_taken_from_loot_chest
(ctx: &ReducerContext, owner_entity_id: u64, from_inventory_empty: bool)
BitCraftServer/packages/game/src/game/reducer_helpers/loot_chest_helpers.rs:105
↓ 4 callers
Method
parent_small_and_large_tile
(&self)
BitCraftServer/packages/game/src/game/coordinates/float_hex_tile.rs:124
↓ 4 callers
Method
player_should_swim
(&self)
BitCraftServer/packages/game/src/game/entities/terrain_cell.rs:56
↓ 4 callers
Function
read_file
(file_path)
BitCraftServer/packages/game/utility/refactor_client.py:31
↓ 4 callers
Function
reduce
( ctx: &ReducerContext, actor_id: u64, recipe_id: i32, building_entity_id: u64, mut progre
BitCraftServer/packages/game/src/game/handlers/player_craft/craft.rs:218
↓ 4 callers
Function
region_index_from_entity_id
(entity_id: u64)
BitCraftServer/packages/global_module/src/game/game_state/mod.rs:84
↓ 4 callers
Function
scale_item_stacks
(ctx: &ReducerContext, item_stacks: &Vec<ItemStack>, amount: i32)
BitCraftServer/packages/game/src/game/handlers/player_trade/barter_stall_order_accept.rs:423
↓ 4 callers
Method
set_loser
(&mut self, ctx: &ReducerContext, player_index: usize)
BitCraftServer/packages/game/src/game/entities/duel_state.rs:71
↓ 4 callers
Function
store_deployable
(ctx: &ReducerContext, actor_id: u64, deployable_entity_id: u64, dry_run: bool)
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:491
↓ 4 callers
Function
test_coordinates
(ctx: &ReducerContext, dismount_coord: FloatHexTile, deployable_coord: FloatHexTile)
BitCraftServer/packages/game/src/game/handlers/player/deployable_dismount.rs:104
↓ 4 callers
Method
to_str
(&self)
BitCraftServer/packages/game/src/game/coordinates/hex_direction.rs:145
↓ 4 callers
Method
unlock_pocket
(&mut self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:708
↓ 4 callers
Function
validate_move_timestamp
(prev_timestamp: u64, received_timestamp: u64, now: Timestamp)
BitCraftServer/packages/game/src/game/reducer_helpers/move_validation_helpers.rs:278
↓ 4 callers
Method
world_width_chunks
(&self)
BitCraftServer/packages/game/src/messages/generic.rs:151
↓ 4 callers
Method
y
(&self)
BitCraftServer/packages/game/src/game/coordinates/hex_coordinates.rs:97
↓ 3 callers
Method
achievement_explored_chunks_count
(&self)
BitCraftServer/packages/game/src/game/entities/exploration_chunks_state.rs:47
↓ 3 callers
Method
acquire_building
(&mut self, ctx: &ReducerContext, building_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:515
↓ 3 callers
Method
acquire_cargo
(&mut self, ctx: &ReducerContext, cargo_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:594
↓ 3 callers
Method
acquire_construction
(&mut self, ctx: &ReducerContext, construction_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:755
↓ 3 callers
Method
acquire_deployable
(&mut self, ctx: &ReducerContext, deployable_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:915
↓ 3 callers
Method
acquire_extract
(&mut self, ctx: &ReducerContext, extract_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1074
↓ 3 callers
Method
acquire_lore
(&mut self, ctx: &ReducerContext, lore_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1234
↓ 3 callers
Method
acquire_paving
(&mut self, ctx: &ReducerContext, paving_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1393
↓ 3 callers
Method
acquire_resource
(&mut self, ctx: &ReducerContext, resource_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1632
↓ 3 callers
Method
active_buff_of_category
(&self, ctx: &ReducerContext, buff_category: BuffCategory)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:173
↓ 3 callers
Method
active_buff_of_type
(&self, ctx: &ReducerContext, buff_type: i32)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:150
↓ 3 callers
Method
add_member
( &self, ctx: &ReducerContext, player_entity_id: u64, build_permission: bool,
BitCraftServer/packages/game/src/game/entities/claim_description.rs:145
↓ 3 callers
Method
add_quantity
(&mut self, quantity: i32)
BitCraftServer/packages/game/src/game/entities/pocket.rs:49
↓ 3 callers
Function
base_checks
( ctx: &ReducerContext, attacker_entity_id: u64, defender_entity_id: u64, combat_action_id: i3
BitCraftServer/packages/game/src/game/handlers/attack.rs:770
↓ 3 callers
Function
camel_to_snake
(str: &String)
BitCraftServer/packages/game/build_shared.rs:192
↓ 3 callers
Function
camel_to_snake
(str: &String)
BitCraftServer/packages/global_module/build_shared.rs:192
↓ 3 callers
Method
can_attack
(&self, other: &TargetingMatrixDesc)
BitCraftServer/packages/game/src/game/entities/targeting_matrix.rs:23
↓ 3 callers
Function
can_sleep
(ctx: &ReducerContext, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/handlers/player/sleep.rs:47
↓ 3 callers
Function
claim_tile
( ctx: &ReducerContext, claim_entity_id: u64, coord: SmallHexTile, claim_buildings: bool,
BitCraftServer/packages/game/src/game/claim_helper.rs:143
↓ 3 callers
Function
claim_tile_buildings
(ctx: &ReducerContext, claim_entity_id: u64, coord: SmallHexTile, claim_cache: &mut ClaimTileStateCache)
BitCraftServer/packages/game/src/game/claim_helper.rs:179
↓ 3 callers
Function
clear_resources_under_footprint
(ctx: &ReducerContext, footprint: &[(SmallHexTile, FootprintType)], clear_all: bool)
BitCraftServer/packages/game/src/game/reducer_helpers/footprint_helpers.rs:125
↓ 3 callers
Function
collect_output
( ctx: &ReducerContext, actor_id: u64, progressive_action_state: &ProgressiveActionState, craf
BitCraftServer/packages/game/src/game/handlers/player_craft/craft_collect.rs:165
↓ 3 callers
Function
commit_generated_world
(ctx: &ReducerContext, generated_world: GeneratedWorld)
BitCraftServer/packages/game/src/lib.rs:551
↓ 3 callers
Function
create_building_interior
(ctx: &ReducerContext, building_entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/interior_helpers.rs:307
↓ 3 callers
Function
days_since_unix_epoch
(now: Timestamp)
BitCraftServer/packages/game/src/game/game_state/mod.rs:25
↓ 3 callers
Function
delete_dimension_network
( ctx: &ReducerContext, dimension_network_entity_id: u64, interior_teleport_destination: OffsetCoo
BitCraftServer/packages/game/src/game/reducer_helpers/interior_helpers.rs:115
← previous
next →
201–300 of 3,290, ranked by callers