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
↓ 11 callers
Method
get_pocket_contents
(&self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:398
↓ 11 callers
Method
has_owner_permissions
(&self, entity_id: u64)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:86
↓ 11 callers
Method
hashcode
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:165
↓ 10 callers
Function
activate
(ctx: &ReducerContext, entity_id: u64, buff_id: i32, duration: Option<i32>, values: Option<Vec<f32>>)
BitCraftServer/packages/game/src/game/entities/buff.rs:40
↓ 10 callers
Method
chunk_coordinates
(&self, ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:29
↓ 10 callers
Method
coordinates
(&self)
BitCraftServer/packages/global_module/src/game/entities/location.rs:18
↓ 10 callers
Function
delete_entity
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/autogen/_delete_entity.rs:137
↓ 10 callers
Function
despawn
(ctx: &ReducerContext, deployable_entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:574
↓ 10 callers
Method
dimension_filter
(&self, dimension: u32)
BitCraftServer/packages/game/src/game/entities/location.rs:279
↓ 10 callers
Method
is_pocket_cargo
(&self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:28
↓ 10 callers
Method
location_cache
(&mut self)
BitCraftServer/packages/game/src/table_caches/claim_tile_state_cache.rs:21
↓ 10 callers
Function
now_plus_secs_f32
(secs: f32, now: Timestamp)
BitCraftServer/packages/game/src/game/reducer_helpers/timer_helpers.rs:13
↓ 9 callers
Method
acquire_item
(&mut self, ctx: &ReducerContext, item_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1153
↓ 9 callers
Method
add_at
(&mut self, ctx: &ReducerContext, pocket_index: usize, contents: ItemStack)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:610
↓ 9 callers
Method
get_terrain_coordinates
(&self)
BitCraftServer/packages/game/src/game/coordinates/small_hex_tile.rs:351
↓ 9 callers
Method
group_by_and_count
(self, f_key: FKey)
BitCraftServer/packages/game/src/utils/iter_utils.rs:41
↓ 9 callers
Function
half_to_even
(f: f32)
BitCraftServer/packages/game/src/game/unity_helpers/float_helper.rs:2
↓ 9 callers
Method
is_water
(&self)
BitCraftServer/packages/game/src/game/world_gen/world_generation/terrain_node.rs:56
↓ 9 callers
Function
sign_out_internal
(ctx: &ReducerContext, identity: Identity, insert_grace_period: bool)
BitCraftServer/packages/game/src/game/handlers/player/sign_out.rs:27
↓ 9 callers
Method
water_depth
(&self)
BitCraftServer/packages/game/src/game/entities/terrain_cell.rs:41
↓ 8 callers
Method
acquire_secondary
(&mut self, ctx: &ReducerContext, secondary_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1791
↓ 8 callers
Method
add_collectible
(&mut self, ctx: &ReducerContext, collectible_id: i32, add_if_locked: bool)
BitCraftServer/packages/game/src/game/entities/vault_state.rs:32
↓ 8 callers
Method
coordinates
(&self)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:188
↓ 8 callers
Method
evaluate
(&self, x: f64, y: f64)
BitCraftServer/packages/game/src/game/world_gen/open_simplex_noise.rs:631
↓ 8 callers
Method
get_claim_on_tile
(&mut self, ctx: &ReducerContext, coord: SmallHexTile)
BitCraftServer/packages/game/src/table_caches/claim_tile_state_cache.rs:25
↓ 8 callers
Method
get_spawn_coordinates
(&self, building_coordinates: &SmallHexTile, building_direction_index: i32)
BitCraftServer/packages/game/src/game/entities/building_spawn.rs:20
↓ 8 callers
Method
magnitude
(&self)
BitCraftServer/packages/game/src/game/unity_helpers/vector2.rs:89
↓ 8 callers
Method
offset_coordinates
(&self)
BitCraftServer/packages/game/src/game/entities/location.rs:28
↓ 8 callers
Method
roll
(&self, ctx: &ReducerContext, num_rolls: i32, mut item_stacks: Vec<ItemStack>, rolling_player_id: Option<u64>)
BitCraftServer/packages/game/src/game/entities/item_list.rs:57
↓ 8 callers
Function
schedule_clear_player_action_on_err
(actor_id: u64, layer: PlayerActionLayer, result: Result<(), String>)
BitCraftServer/packages/game/src/game/reducer_helpers/player_action_helpers.rs:150
↓ 8 callers
Function
update_timer
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/agents/duel_agent.rs:24
↓ 7 callers
Function
add_interior_collapse_trigger
(ctx: &ReducerContext, spawn: &InteriorSpawnDesc, entity_id: u64, dimension_network_descriptor_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/interior_helpers.rs:712
↓ 7 callers
Method
biome_percentage
(&self, biome: Biome)
BitCraftServer/packages/game/src/game/entities/terrain_cell.rs:22
↓ 7 callers
Method
can_fit_quantity
(&self, ctx: &ReducerContext, volume: i32, is_cargo: bool)
BitCraftServer/packages/game/src/game/entities/pocket.rs:25
↓ 7 callers
Method
get_entity
(&self, offset: &OffsetCoordinatesLarge)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:120
↓ 7 callers
Function
get_h_costs
(current: &(usize, usize), target: (usize, usize))
BitCraftServer/packages/game/src/game/generic/pathfinder_tests.rs:20
↓ 7 callers
Method
get_neighbor
(&self, index: i32, neighbour_index: i32)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:71
↓ 7 callers
Method
get_required_supplies_for_seconds
(&self, ctx: &ReducerContext, seconds: i32)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:457
↓ 7 callers
Method
has
(&self, item_stacks: &Vec<ItemStack>)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:422
↓ 7 callers
Method
members
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:180
↓ 7 callers
Method
set
(&mut self, item_id: i32, item_type: ItemType, quantity: i32, durability: Option<i32>)
BitCraftServer/packages/game/src/game/entities/pocket.rs:55
↓ 7 callers
Method
set_entity
(&mut self, offset: OffsetCoordinatesLarge, entity: TerrainCell)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:152
↓ 7 callers
Method
sqr_magnitude
(&self)
BitCraftServer/packages/game/src/game/unity_helpers/vector2.rs:85
↓ 7 callers
Function
validate_cargo_target
( ctx: &ReducerContext, target_inventory: &InventoryState, item_stack: &ItemStack, )
BitCraftServer/packages/game/src/game/handlers/inventory/inventory_helper.rs:147
↓ 7 callers
Method
wallet_pocket_target
(&self, ctx: &ReducerContext, item_stack: &ItemStack)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:730
↓ 6 callers
Method
add_active_buff_with_data
Alternative way to start an active buff providing possible overrides for duration, param1 and param2 (None to leave the default)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:42
↓ 6 callers
Method
add_health_delta_clamped
(&mut self, delta: f32, min: f32, max: f32, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/health_state.rs:46
↓ 6 callers
Method
add_partial
(&mut self, ctx: &ReducerContext, item_stack: &mut ItemStack)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:233
↓ 6 callers
Function
building_at_coordinates
(ctx: &ReducerContext, coordinates: &SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:77
↓ 6 callers
Function
clear_and_flatten_terrain_under_footprint
( ctx: &ReducerContext, footprint: &[(SmallHexTile, FootprintType)], flatten_terrain: bool, )
BitCraftServer/packages/game/src/game/reducer_helpers/footprint_helpers.rs:145
↓ 6 callers
Function
compile_error
(err: &str)
BitCraftServer/packages/game/bitcraft-macro/src/lib.rs:398
↓ 6 callers
Function
create_building_spawns
(ctx: &ReducerContext, building_entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:215
↓ 6 callers
Function
create_building_unsafe
( ctx: &ReducerContext, actor_id: u64, entity_id: Option<u64>, location: SmallHexTile, dir
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:44
↓ 6 callers
Method
delete
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:96
↓ 6 callers
Function
delete_footprint
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/footprint_helpers.rs:137
↓ 6 callers
Method
distance_to
(&mut self, target: V, getter: W, setter: X)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:148
↓ 6 callers
Function
get_edges
(nodes: &Vec<Vec<i32>>, current: &(usize, usize))
BitCraftServer/packages/game/src/game/generic/pathfinder_tests.rs:25
↓ 6 callers
Method
get_skill_speed
(&self, skill: SkillType)
BitCraftServer/packages/game/src/game/entities/character_stats.rs:42
↓ 6 callers
Method
has_acquired_cargo
(&self, cargo_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:564
↓ 6 callers
Method
has_acquired_item
(&self, item_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1123
↓ 6 callers
Method
has_unlocked_tech
(&self, tech_id: i32)
BitCraftServer/packages/game/src/game/entities/claim_tech_state.rs:56
↓ 6 callers
Method
hashcode_long
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:169
↓ 6 callers
Function
insert_location_float
(ctx: &ReducerContext, entity_id: u64, coordinates: OffsetCoordinatesFloat)
BitCraftServer/packages/game/src/game/game_state/mod.rs:40
↓ 6 callers
Function
quantity_of_item
(inventory: &InventoryState, item_id: i32, item_type: ItemType)
BitCraftServer/packages/game/src/game/handlers/admin/admin_find_players_with_item.rs:114
↓ 6 callers
Method
score_permissions
(&self, member: &ClaimMemberState)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:122
↓ 6 callers
Method
set_innerlight_buff
(&mut self, ctx: &ReducerContext, duration: i32)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:233
↓ 6 callers
Method
shortest_path_to_target
( &mut self, source: T, target: T, get_h_costs: impl Fn(&T) -> f32, ge
BitCraftServer/packages/game/src/game/generic/pathfinder.rs:33
↓ 6 callers
Function
teleport_to
( ctx: &ReducerContext, actor_id: u64, teleport_location: OffsetCoordinatesFloat, dismount_dep
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:517
↓ 6 callers
Function
untarget
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:310
↓ 6 callers
Method
update_supplies_and_commit
(mut self, ctx: &ReducerContext, supplies_delta: f32, check_threshold: bool)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:229
↓ 6 callers
Function
write_if_file_changed
(path: &str, content: String)
BitCraftServer/packages/game/build_shared.rs:369
↓ 5 callers
Function
coordinates_any_float
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:67
↓ 5 callers
Function
create_building_component
( ctx: &ReducerContext, owning_claim_entity_id: u64, building_entity_id: u64, direction: i32,
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:94
↓ 5 callers
Function
create_building_footprint
( ctx: &ReducerContext, entity_id: u64, direction: i32, building: &BuildingDesc, override_
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:224
↓ 5 callers
Function
deactivate
(ctx: &ReducerContext, entity_id: u64, buff_id: i32)
BitCraftServer/packages/game/src/game/entities/buff.rs:51
↓ 5 callers
Function
delete_empire_building
(ctx: &ReducerContext, player_entity_id: u64, building_entity_id: u64, block_inter_module_messages: bool)
BitCraftServer/packages/global_module/src/game/handlers/empires/empires.rs:1022
↓ 5 callers
Method
discover_building
(&mut self, ctx: &ReducerContext, building_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:493
↓ 5 callers
Method
discover_construction
(&mut self, ctx: &ReducerContext, construction_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:732
↓ 5 callers
Method
discover_resource
(&mut self, ctx: &ReducerContext, resource_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1610
↓ 5 callers
Method
discover_resource_placement
(&mut self, ctx: &ReducerContext, resource_placement_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1530
↓ 5 callers
Function
dismount_deployable
(ctx: &ReducerContext, player_entity_id: u64, skip_deployable_icon: bool)
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:418
↓ 5 callers
Function
expel_passengers
(ctx: &ReducerContext, deployable_entity_id: u64, skip_deployable_icon: bool, expel_driver: bool)
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:477
↓ 5 callers
Method
expel_players_and_entities
(&self, ctx: &ReducerContext, reason: ServerTeleportReason)
BitCraftServer/packages/game/src/game/entities/player_housing_state.rs:287
↓ 5 callers
Method
f32
(&mut self, min: f32, max: f32)
BitCraftServer/packages/game/src/game/unity_helpers/common_rng.rs:66
↓ 5 callers
Method
fix_durability_self
(&mut self)
BitCraftServer/packages/game/src/game/entities/item_stack.rs:206
↓ 5 callers
Method
get
(&self, type_index: CharacterStatType)
BitCraftServer/packages/game/src/game/entities/character_stats.rs:36
↓ 5 callers
Function
get_claim_under_footprint
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:88
↓ 5 callers
Method
get_index
(&self, x: i32, z: i32)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:64
↓ 5 callers
Method
get_skill_power
(&self, skill: SkillType)
BitCraftServer/packages/game/src/game/entities/character_stats.rs:49
↓ 5 callers
Method
get_status_from_recipe
(&self, recipe: &CraftingRecipeDesc, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/progressive_action_state.rs:50
↓ 5 callers
Method
has_active_buff
(&self, buff_id: i32, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:198
↓ 5 callers
Function
inverse_lerp
(a: f32, b: f32, value: f32)
BitCraftServer/packages/game/src/game/world_gen/noise_helper.rs:100
↓ 5 callers
Method
is_corner
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:198
↓ 5 callers
Function
is_flat_corner
(ctx: &ReducerContext, terrain_cache: &mut TerrainChunkCache, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:137
↓ 5 callers
Method
is_incapacitated_self
(&self)
BitCraftServer/packages/game/src/game/entities/health_state.rs:26
↓ 5 callers
Function
is_npc_empire
Returns true if the given empire entity ID belongs to an NPC empire.
BitCraftServer/packages/global_module/src/game/handlers/empires/npc_empire.rs:151
↓ 5 callers
Function
is_user_text_input_valid
Sanitize player text input https://www.notion.so/clockworklabs/Sanitize-player-text-input-776195ca4b304ca386abf5e56a4ffb45
BitCraftServer/packages/game/src/game/reducer_helpers/user_text_input_helpers.rs:7
↓ 5 callers
Function
is_user_text_input_valid
Sanitize player text input https://www.notion.so/clockworklabs/Sanitize-player-text-input-776195ca4b304ca386abf5e56a4ffb45
BitCraftServer/packages/global_module/src/game/reducer_helpers/user_text_input_helpers.rs:7
↓ 5 callers
Method
offset_coordinates_float
(&self)
BitCraftServer/packages/game/src/game/entities/location.rs:168
↓ 5 callers
Function
place_entities
( generated_world: &mut GeneratedWorld, entities: &[T], add_fn: impl Fn(&mut GeneratedWorld, &T, S
BitCraftServer/packages/game/src/game/world_gen/dev_island/mod.rs:562
← previous
next →
101–200 of 3,290, ranked by callers