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
↓ 1 callers
Method
is_underwater
(&self, terrain_graph: &HexGraph<TerrainNode>)
BitCraftServer/packages/game/src/game/world_gen/world_generation/entity_node.rs:150
↓ 1 callers
Function
is_valid_cell
( ctx: &ReducerContext, hex_coordinates: SmallHexTile, spawn_priority: i32, resource_desc: &Ha
BitCraftServer/packages/game/src/agents/resources_regen.rs:837
↓ 1 callers
Function
is_valid_land_or_water
( spawns_on_land: bool, land_elevation_min: i16, land_elevation_max: i16, spawns_in_water: boo
BitCraftServer/packages/game/src/agents/resources_regen.rs:753
↓ 1 callers
Function
is_valid_resource_footprint
( graph: &HexGraph<EntityNode>, terrain_graph: &HexGraph<TerrainNode>, center_node: &EntityNode
BitCraftServer/packages/game/src/game/world_gen/world_generation/world_graph.rs:1237
↓ 1 callers
Function
is_valid_resource_node
( terrain_graph: &HexGraph<TerrainNode>, node: &EntityNode, biome_index: usize, resource:
BitCraftServer/packages/game/src/game/world_gen/world_generation/world_graph.rs:1291
↓ 1 callers
Function
is_valid_resource_node_options
( ctx: &ReducerContext, terrain_cache: &mut TerrainChunkCache, resource_clump_info: &ResourceClump
BitCraftServer/packages/game/src/agents/resources_regen.rs:667
↓ 1 callers
Method
is_water
(&self, x: f32, y: f32)
BitCraftServer/packages/game/src/game/world_gen/land_shape_definition.rs:67
↓ 1 callers
Function
is_within_dimension_bounds_small
( offset_coordinates_small: &OffsetCoordinatesSmall, bounds: (OffsetCoordinatesLarge, OffsetCoordinate
BitCraftServer/packages/game/src/game/reducer_helpers/dimension_helpers.rs:74
↓ 1 callers
Method
iter_cached_values
Iterate over all the terrain chunks loaded thus far.
BitCraftServer/packages/game/src/game/terrain_chunk.rs:28
↓ 1 callers
Method
leave_empire
(mut self, ctx: &ReducerContext, claim_name: String)
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:531
↓ 1 callers
Method
local_iter
(&self, dimension: u32)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:167
↓ 1 callers
Method
lock_pocket
(&mut self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:704
↓ 1 callers
Method
magnitude
(&self)
BitCraftServer/packages/global_module/src/game/unity_helpers/vector2.rs:89
↓ 1 callers
Function
main_shared
()
BitCraftServer/packages/game/build_shared.rs:9
↓ 1 callers
Function
main_shared
()
BitCraftServer/packages/global_module/build_shared.rs:9
↓ 1 callers
Method
mark_tile_occupied
(&mut self, tile_hashcode: i64)
BitCraftServer/packages/game/src/agents/resources_regen.rs:356
↓ 1 callers
Method
max_members
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_tech_state.rs:16
↓ 1 callers
Method
max_tier
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_tech_state.rs:32
↓ 1 callers
Method
max_tiles
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_tech_state.rs:24
↓ 1 callers
Method
merge
(&mut self, other: ItemStack)
BitCraftServer/packages/game/src/game/entities/item_stack.rs:101
↓ 1 callers
Method
merge_into
(&self, ctx: &ReducerContext, new_empire_entity_id: u64)
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:297
↓ 1 callers
Function
migrate_achievements
This is called during static data upload
BitCraftServer/packages/game/src/game/handlers/migration/migrate_achievements.rs:33
↓ 1 callers
Function
migrate_building_health
(ctx: &ReducerContext, building_id: i32, old_health: i32, new_health: i32)
BitCraftServer/packages/game/src/game/handlers/migration/migration_static_data.rs:72
↓ 1 callers
Function
migrate_health_of_existing_buildings
This is called during static data upload
BitCraftServer/packages/game/src/game/handlers/migration/migration_static_data.rs:32
↓ 1 callers
Method
min_max_elevation
(&self, terrain_graph: &HexGraph<TerrainNode>)
BitCraftServer/packages/game/src/game/world_gen/world_generation/entity_node.rs:82
↓ 1 callers
Method
min_xp_to_mint_hex_coin
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_tech_state.rs:40
↓ 1 callers
Function
mint_hex_coins
(ctx: &ReducerContext, claim_entity_id: u64, gained_xp: u32)
BitCraftServer/packages/game/src/game/claim_helper.rs:374
↓ 1 callers
Method
neighbor
(&self, direction: HexDirection)
BitCraftServer/packages/game/src/game/coordinates/small_hex_tile.rs:239
↓ 1 callers
Method
new_inventory
(&self)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:117
↓ 1 callers
Method
next
(direction: HexDirection)
BitCraftServer/packages/game/src/game/coordinates/hex_direction.rs:84
↓ 1 callers
Method
next_free_cargo_pocket
(&self)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:39
↓ 1 callers
Method
next_free_item_pocket
(&self)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:48
↓ 1 callers
Function
night_tick
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/agents/day_night_agent.rs:63
↓ 1 callers
Method
normalized
(self)
BitCraftServer/packages/game/src/game/unity_helpers/vector2.rs:101
↓ 1 callers
Function
now_plus_secs_f32
(secs: f32, now: Timestamp)
BitCraftServer/packages/global_module/src/game/reducer_helpers/timer_helpers.rs:13
↓ 1 callers
Function
offset_coordinates_float
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:40
↓ 1 callers
Method
offset_destination_float
(&self)
BitCraftServer/packages/global_module/src/game/entities/location.rs:170
↓ 1 callers
Method
on_cargo_acquired
(&mut self, ctx: &ReducerContext, cargo_id: i32)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:184
↓ 1 callers
Method
on_item_acquired
(&mut self, ctx: &ReducerContext, item_id: i32)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:134
↓ 1 callers
Method
on_secondary_acquired
(&mut self, ctx: &ReducerContext, knowledge_id: i32)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:234
↓ 1 callers
Function
parse_actionrequest_tuples
(file_path)
BitCraftServer/packages/game/utility/parse_gamestate_tables.py:71
↓ 1 callers
Function
parse_enums
(dir_path)
BitCraftServer/packages/game/utility/parse_gamestate_tables.py:102
↓ 1 callers
Function
parse_feature_gate_args
(args: TokenStream)
BitCraftServer/packages/game/bitcraft-macro/src/lib.rs:402
↓ 1 callers
Function
parse_file
(file_path)
BitCraftServer/packages/game/utility/refactor_client.py:63
↓ 1 callers
Function
parse_gamestate_tables
(file_path)
BitCraftServer/packages/game/utility/parse_gamestate_tables.py:17
↓ 1 callers
Function
parse_proto_files_members
(dir_path, custom_types)
BitCraftServer/packages/game/utility/parse_gamestate_tables.py:124
↓ 1 callers
Function
parse_staticdata_tables
(file_path)
BitCraftServer/packages/game/utility/parse_gamestate_tables.py:44
↓ 1 callers
Method
pause
(&mut self, now: Timestamp)
BitCraftServer/packages/game/src/game/static_data/online_timestamp.rs:9
↓ 1 callers
Method
pay_remaining_eviction_fee
( &self, ctx: &ReducerContext, player_entity_id: u64, initial_amount: u32,
BitCraftServer/packages/game/src/game/entities/rent_state.rs:39
↓ 1 callers
Function
pick_free_ruin_index
( ctx: &ReducerContext, moving_npc_entity_id: u64, free_ruins: &Vec<RuinsEntityValuePair>, occ
BitCraftServer/packages/game/src/agents/npc_ai_agent.rs:191
↓ 1 callers
Function
place_buildings
( ctx: &ReducerContext, generated_world: &mut GeneratedWorld, center: HexCoordinates, x_start:
BitCraftServer/packages/game/src/game/world_gen/dev_island/mod.rs:245
↓ 1 callers
Function
place_dropped_inventories
( ctx: &ReducerContext, generated_world: &mut GeneratedWorld, _center: HexCoordinates, x_start
BitCraftServer/packages/game/src/game/world_gen/dev_island/mod.rs:391
↓ 1 callers
Function
place_elements
(ctx: &ReducerContext, generated_world: &mut GeneratedWorld, center: HexCoordinates, width_half: i32, height_h
BitCraftServer/packages/game/src/game/world_gen/dev_island/mod.rs:96
↓ 1 callers
Function
place_enemies
( ctx: &ReducerContext, generated_world: &mut GeneratedWorld, _center: HexCoordinates, x_start
BitCraftServer/packages/game/src/game/world_gen/dev_island/mod.rs:510
↓ 1 callers
Function
place_npcs
( ctx: &ReducerContext, generated_world: &mut GeneratedWorld, _center: HexCoordinates, x_start
BitCraftServer/packages/game/src/game/world_gen/dev_island/mod.rs:454
↓ 1 callers
Method
play_outcome
(&mut self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/player_vote_state.rs:92
↓ 1 callers
Method
play_outcome
(&mut self, ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/game/entities/player_vote_state.rs:93
↓ 1 callers
Function
player_elevator_arrive_internal
(ctx: &ReducerContext, timer: &PlayerUseElevatorTimer)
BitCraftServer/packages/game/src/game/handlers/player/player_use_elevator.rs:127
↓ 1 callers
Function
point_on_circumference
(peak_position: Vector2, p: Vector2, center: Vector2, radius: f32)
BitCraftServer/packages/game/src/game/world_gen/world_generation/world_graph.rs:1454
↓ 1 callers
Method
process
this will be useful if we refactor inventory operations
BitCraftServer/packages/game/src/game/entities/item_stack.rs:213
↓ 1 callers
Function
project_site_at_coordinates
(ctx: &ReducerContext, coordinates: &SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:94
↓ 1 callers
Function
purchase_premium_service
( ctx: &ReducerContext, actor_id: u64, premium_service_desc: &PremiumServiceDesc, deduct_hub_s
BitCraftServer/packages/global_module/src/game/handlers/player/purchase_premium_service.rs:44
↓ 1 callers
Function
raise_lake_borders
Raise the elevation of all river nodes that are next to a lake to one below water-level, creating a waterfall
BitCraftServer/packages/game/src/game/world_gen/world_generation/world_graph.rs:1161
↓ 1 callers
Function
range_check
( ctx: &ReducerContext, combat_action: &CombatActionDesc, attacker_location: FloatHexTile, att
BitCraftServer/packages/game/src/game/handlers/attack.rs:754
↓ 1 callers
Method
rarity_probability
(&self, rarity_id: i32)
BitCraftServer/packages/game/src/game/static_data/chest_rarity.rs:9
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, target_entity_id: u64, generate_aggro: bool)
BitCraftServer/packages/game/src/game/handlers/target_update.rs:33
↓ 1 callers
Function
reduce
( ctx: &ReducerContext, entity_id: u64, shop_entity_id: u64, stock: i32, offer_items: &Vec
BitCraftServer/packages/game/src/game/handlers/player_trade/barter_stall_order_create.rs:34
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, session_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_decline_session.rs:19
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, shop_entity_id: u64, trade_order_entity_id: u64, amount: i32)
BitCraftServer/packages/game/src/game/handlers/player_trade/barter_stall_order_accept.rs:32
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, session_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_accept.rs:22
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, session_entity_id: u64, pocket_index: usize)
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_remove_item.rs:23
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, session_entity_id: u64, from_index: usize, to_index: usize)
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_swap_pockets.rs:25
↓ 1 callers
Function
reduce
( ctx: &ReducerContext, entity_id: u64, session_entity_id: u64, pocket_index: i32, invento
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_add_item.rs:30
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, shop_entity_id: u64, trade_order_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player_trade/barter_stall_order_delete.rs:19
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, session_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_decline.rs:19
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, session_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_accept_session.rs:19
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, acceptor_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player_trade/trade_initiate_session.rs:25
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, building_entity_id: u64, nickname: String)
BitCraftServer/packages/game/src/game/handlers/buildings/building_set_nickname.rs:21
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, building_entity_id: u64, text: String)
BitCraftServer/packages/game/src/game/handlers/buildings/building_set_sign_text.rs:19
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, player_entity_id: u64, item_stack: ItemStack)
BitCraftServer/packages/game/src/game/handlers/cheats/cheat_item_stack_grant.rs:31
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, player_id: u64, collectible_id: i32)
BitCraftServer/packages/game/src/game/handlers/cheats/cheat_toggle_active_collectible.rs:19
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, spawn_location: SmallHexTile, loot_chest_desc_id: i32)
BitCraftServer/packages/game/src/game/handlers/cheats/cheat_spawn_loot_chest.rs:26
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/cheats/cheat_discover_map.rs:22
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, action_bar_index: u8, local_ability_index: u8)
BitCraftServer/packages/game/src/game/handlers/player/ability_remove.rs:14
↓ 1 callers
Function
reduce
( ctx: &ReducerContext, actor_id: u64, text: String, channel_id: ChatChannel, target_id: u
BitCraftServer/packages/game/src/game/handlers/player/chat_post_message.rs:27
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, from_pocket: &PocketKey, to_pocket: &PocketKey, quantity: i32)
BitCraftServer/packages/game/src/game/handlers/player/pocket_swap_contents.rs:26
↓ 1 callers
Function
reduce
( ctx: &ReducerContext, actor_id: u64, action_bar_index: u8, local_ability_index: i8, abil
BitCraftServer/packages/game/src/game/handlers/player/ability_set.rs:14
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, alert_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player/player_dismiss_alert.rs:18
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, entity_id: u64, client_cancel: bool)
BitCraftServer/packages/game/src/game/handlers/player/player_action_cancel.rs:14
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, building_entity_id: u64, expected_time_cost: i32)
BitCraftServer/packages/game/src/game/handlers/player/player_housing_change_entrance.rs:42
↓ 1 callers
Function
reduce
( ctx: &ReducerContext, cache: &mut TerrainChunkCache, actor_id: u64, request: &PlayerTerrafor
BitCraftServer/packages/game/src/game/handlers/player/terraform_set_final_target.rs:26
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, vote_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player/player_vote_conclude.rs:22
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, vote_entity_id: u64, player_entity_id: u64, accept: bool)
BitCraftServer/packages/game/src/game/handlers/player/player_vote_answer.rs:23
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, target_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/player/set_home.rs:32
↓ 1 callers
Function
reduce
( ctx: &ReducerContext, actor_id: u64, current_action: PlayerActionType, layer: PlayerActionLa
BitCraftServer/packages/game/src/game/handlers/server/player_clear_action_state.rs:21
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, player_entity_id: u64, new_coord: OffsetCoordinatesFloat)
BitCraftServer/packages/game/src/game/handlers/server/server_teleport_player.rs:31
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, building_entity_id: u64, building_spawn_id: i32)
BitCraftServer/packages/game/src/game/handlers/server/loot_chest_spawn.rs:25
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, vault_index: i32, activated: bool, dry_run: bool)
BitCraftServer/packages/game/src/game/handlers/player_vault/collectible_activate.rs:34
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, tile: SmallHexTile)
BitCraftServer/packages/game/src/game/handlers/claim/claim_remove_tile.rs:28
↓ 1 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64, claim_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/claim/claim_take_ownership.rs:21
← previous
next →
1,101–1,200 of 3,290, ranked by callers