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
↓ 764 callers
Method
delete
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/entities/herd_state.rs:51
↓ 529 callers
Method
delete
(self, ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:131
↓ 502 callers
Method
update
(self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/ability_state.rs:78
↓ 423 callers
Function
has_role
(ctx: &ReducerContext, identity: &Identity, role: Role)
BitCraftServer/packages/game/src/game/handlers/authentication.rs:30
↓ 417 callers
Method
insert
(self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:24
↓ 353 callers
Function
has_role
(ctx: &ReducerContext, identity: &Identity, role: Role)
BitCraftServer/packages/global_module/src/game/handlers/authentication.rs:142
↓ 265 callers
Method
count
(&self)
BitCraftServer/packages/game/src/game/world_gen/resource_definition.rs:13
↓ 221 callers
Function
actor_id
(ctx: &ReducerContext, must_be_signed_in: bool)
BitCraftServer/packages/game/src/game/game_state/mod.rs:70
↓ 136 callers
Method
distance_to
(&self, ctx: &ReducerContext, coordinates: &SmallHexTile)
BitCraftServer/packages/game/src/game/entities/building_state.rs:20
↓ 134 callers
Method
next
(&mut self)
BitCraftServer/packages/game/src/game/unity_helpers/common_rng.rs:30
↓ 106 callers
Function
collect_table
(table: &T)
BitCraftServer/packages/game/src/import_reducers.rs:4247
↓ 100 callers
Method
coordinates
(&self)
BitCraftServer/packages/game/src/game/entities/location.rs:20
↓ 94 callers
Function
create_entity
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/game_state/mod.rs:51
↓ 81 callers
Function
collect_table
(table: &T)
BitCraftServer/packages/global_module/src/import_reducers.rs:3320
↓ 68 callers
Method
chunk_index
(self)
BitCraftServer/packages/game/src/game/coordinates/chunk_coordinates.rs:84
↓ 62 callers
Method
commit
(&mut self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:142
↓ 58 callers
Method
item_id
(&self)
BitCraftServer/packages/game/src/game/entities/equipment_slot.rs:4
↓ 57 callers
Method
remove
(&mut self, item_stacks: &Vec<ItemStack>)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:507
↓ 53 callers
Method
has_category
(&self, ctx: &ReducerContext, category: BuildingCategory)
BitCraftServer/packages/game/src/game/static_data/building.rs:35
↓ 50 callers
Function
coordinates_any
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:47
↓ 50 callers
Method
parent_large_tile
(&self)
BitCraftServer/packages/game/src/game/coordinates/small_hex_tile.rs:210
↓ 49 callers
Method
get
(&self, index: i32)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:41
↓ 49 callers
Function
unix_ms
(now: Timestamp)
BitCraftServer/packages/game/src/game/game_state/mod.rs:21
↓ 46 callers
Function
actor_id
(ctx: &ReducerContext, must_be_signed_in: bool)
BitCraftServer/packages/global_module/src/game/game_state/mod.rs:65
↓ 46 callers
Function
post_reducer_update_cargo
(ctx: &ReducerContext, player_entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/player_action_helpers.rs:163
↓ 45 callers
Function
can_run_cheat
(ctx: &ReducerContext, identity: &Identity, cheat_type: CheatType)
BitCraftServer/packages/game/src/game/handlers/cheats/cheat_type.rs:53
↓ 45 callers
Method
get_layer
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/player_action_type.rs:6
↓ 43 callers
Method
get
(ctx: &ReducerContext, building_entity_id: u64, empire_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/empires/empires_shared.rs:57
↓ 42 callers
Method
is_empty
(&self)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:457
↓ 41 callers
Method
initialize
(&mut self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:96
↓ 39 callers
Function
coordinates_float
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:33
↓ 39 callers
Function
get
(position: Vector2, scale: f32, octaves: i32, persistance: f32, lacunarity: f32, offset: Vector2)
BitCraftServer/packages/game/src/game/world_gen/noise_helper.rs:74
↓ 36 callers
Method
to_offset_coordinates
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:156
↓ 35 callers
Method
cmp
(&self, other: &Self)
BitCraftServer/packages/game/src/game/generic/pathfinder.rs:148
↓ 35 callers
Method
get_mut
(&mut self, index: i32)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:48
↓ 35 callers
Method
get_terrain_cell
Retrieves a [`TerrainCell`] corresponding to the given `coords`, deriving it from some [`TerrainChunkState`]. If this state is not available in the ca
BitCraftServer/packages/game/src/game/terrain_chunk.rs:87
↓ 32 callers
Function
insert_location
(ctx: &ReducerContext, entity_id: u64, offset_coordinates: OffsetCoordinatesSmall)
BitCraftServer/packages/game/src/game/game_state/mod.rs:29
↓ 30 callers
Function
unix
(now: Timestamp)
BitCraftServer/packages/game/src/game/game_state/mod.rs:17
↓ 29 callers
Function
start_action
( ctx: &ReducerContext, actor_id: u64, action_type: PlayerActionType, target: Option<u64>,
BitCraftServer/packages/game/src/game/reducer_helpers/player_action_helpers.rs:52
↓ 28 callers
Function
can_interact_with_building
(ctx: &ReducerContext, actor_id: &u64, building_entity_id: &u64)
BitCraftServer/packages/game/src/game/handlers/player_craft/craft_collect.rs:130
↓ 28 callers
Function
coordinates
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:19
↓ 28 callers
Function
send_inter_module_message
( ctx: &ReducerContext, contents: crate::messages::inter_module::MessageContentsV4, dst: crate::in
BitCraftServer/packages/game/src/inter_module/mod.rs:192
↓ 26 callers
Method
local_state
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:63
↓ 25 callers
Method
chunk_coordinates
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:152
↓ 25 callers
Method
get_footprint
(&self, coordinates: &SmallHexTile, direction: i32)
BitCraftServer/packages/game/src/game/static_data/resource.rs:5
↓ 25 callers
Method
is_submerged
(&self)
BitCraftServer/packages/game/src/game/entities/terrain_cell.rs:6
↓ 24 callers
Function
can_interact_with_tile
(ctx: &ReducerContext, coordinates: SmallHexTile, player_entity_id: u64, permission: ClaimPermission)
BitCraftServer/packages/game/src/game/permission_helper.rs:9
↓ 24 callers
Method
count
(&self)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:37
↓ 24 callers
Method
get_index_from_hex_coordinates
(&self, coordinates: HexCoordinates)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:58
↓ 23 callers
Function
create_entity
(ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/game/game_state/mod.rs:47
↓ 22 callers
Method
coordinates_float
(&self)
BitCraftServer/packages/game/src/game/entities/location.rs:164
↓ 22 callers
Method
rotate_around
(&self, center: &LargeHexTile, steps: i32)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:185
↓ 22 callers
Function
schedule_clear_player_action
(actor_id: u64, layer: PlayerActionLayer, result: Result<(), String>)
BitCraftServer/packages/game/src/game/reducer_helpers/player_action_helpers.rs:140
↓ 21 callers
Method
acquire_item_stack
(&mut self, ctx: &ReducerContext, item_stack: &ItemStack)
BitCraftServer/packages/game/src/game/discovery/mod.rs:44
↓ 21 callers
Method
add_multiple_with_overflow
(&mut self, ctx: &ReducerContext, item_stacks: &Vec<ItemStack>)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:949
↓ 21 callers
Method
enemy_type
(&self)
BitCraftServer/packages/game/src/game/entities/enemy_state.rs:25
↓ 20 callers
Method
clear
(&mut self)
BitCraftServer/packages/game/src/game/entities/rent_state.rs:77
↓ 20 callers
Function
process_message_on_destination
(ctx: &ReducerContext, request: EmpireCreateMsg)
BitCraftServer/packages/global_module/src/inter_module/empire_create.rs:15
↓ 20 callers
Function
should_run
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/agents/mod.rs:28
↓ 19 callers
Method
get
(&self, x: f32, y: f32)
BitCraftServer/packages/game/src/game/world_gen/noise_map.rs:50
↓ 18 callers
Function
has_permission
( ctx: &ReducerContext, player_entity_id: u64, dimension: u32, claim_entity_id: u64, permi
BitCraftServer/packages/game/src/game/permission_helper.rs:161
↓ 18 callers
Function
send_inter_module_message
( ctx: &ReducerContext, contents: crate::messages::inter_module::MessageContentsV4, dst: crate::in
BitCraftServer/packages/global_module/src/inter_module/mod.rs:157
↓ 18 callers
Function
validate_interact
( ctx: &ReducerContext, actor_id: u64, player_location: SmallHexTile, owner_entity_id: u64,
BitCraftServer/packages/game/src/game/handlers/inventory/inventory_helper.rs:99
↓ 17 callers
Method
add
(&mut self, ctx: &ReducerContext, item_stack: ItemStack)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:179
↓ 17 callers
Method
discover_cargo
(&mut self, ctx: &ReducerContext, cargo_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:572
↓ 17 callers
Method
discover_item_and_item_list
(&mut self, ctx: &ReducerContext, item_id: i32)
BitCraftServer/packages/game/src/game/discovery/discovery_setters.rs:620
↓ 17 callers
Method
get
(ctx: &ReducerContext, alert_type: AlertType, player_entity_id: u64, target_entity_id: u64)
BitCraftServer/packages/game/src/game/entities/alert_state.rs:34
↓ 17 callers
Method
get
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/messages/extensions.rs:223
↓ 17 callers
Function
now_plus_secs
(secs: u64, now: Timestamp)
BitCraftServer/packages/game/src/game/reducer_helpers/timer_helpers.rs:5
↓ 16 callers
Function
get_claim_on_tile
(ctx: &ReducerContext, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/claim_helper.rs:357
↓ 16 callers
Method
has_co_owner_permissions
(&self, ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:90
↓ 16 callers
Method
neighbor
(&self, direction: HexDirection)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:177
↓ 16 callers
Function
process_message_on_destination
(ctx: &ReducerContext, player_create_request: PlayerCreateMsg)
BitCraftServer/packages/game/src/inter_module/player_create.rs:35
↓ 16 callers
Method
remove_quantity_at
(&mut self, pocket_index: usize, quantity: i32)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:591
↓ 16 callers
Method
to_world_position
(&self)
BitCraftServer/packages/game/src/game/coordinates/float_hex_tile.rs:86
↓ 15 callers
Method
get_biome
(&self, index: i32)
BitCraftServer/packages/game/src/game/world_gen/resource_definition.rs:17
↓ 15 callers
Method
has_category
(&self, ctx: &ReducerContext, category: BuildingCategory)
BitCraftServer/packages/game/src/game/entities/building_function.rs:5
↓ 15 callers
Method
scale
(&self, s: f32)
BitCraftServer/packages/game/src/game/coordinates/hex_coordinates.rs:114
↓ 15 callers
Method
set_at
(&mut self, pocket_index: usize, contents: Option<ItemStack>)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:666
↓ 14 callers
Method
biome
(&self)
BitCraftServer/packages/game/src/game/world_gen/world_generation/terrain_node.rs:60
↓ 14 callers
Function
handle_destination_result_on_sender
(ctx: &ReducerContext, request: ClaimSetNameMsg, error: Option<String>)
BitCraftServer/packages/game/src/inter_module/claim_set_name.rs:22
↓ 14 callers
Function
lerp
(a: f32, b: f32, t: f32)
BitCraftServer/packages/game/src/game/unity_helpers/float_helper.rs:24
↓ 14 callers
Function
unlock_claim_tech
(ctx: &ReducerContext, claim_tech: &mut ClaimTechState, tech_id: i32, ignore_if_already_learned: bool)
BitCraftServer/packages/game/src/game/handlers/claim/claim_tech_unlock_tech.rs:52
↓ 13 callers
Function
reduce
(ctx: &ReducerContext, actor_id: u64)
BitCraftServer/packages/game/src/game/handlers/player/sleep.rs:29
↓ 13 callers
Method
to_center_position_xz
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:237
↓ 13 callers
Function
unix
(now: Timestamp)
BitCraftServer/packages/global_module/src/game/game_state/mod.rs:17
↓ 13 callers
Method
update
(self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:20
↓ 12 callers
Method
clone_with_quantity
(&self, quantity: i32)
BitCraftServer/packages/game/src/game/entities/item_stack.rs:86
↓ 12 callers
Function
delete_building
( ctx: &ReducerContext, actor_id: u64, // for dropped inventory ownership entity_id: u64, inte
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:347
↓ 12 callers
Method
despawn_self
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/resource_deposit.rs:185
↓ 12 callers
Method
get_skill_type
(&self)
BitCraftServer/packages/game/src/messages/extensions.rs:123
↓ 12 callers
Method
has_acquired_secondary
(&self, secondary_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1761
↓ 12 callers
Method
parent_small_tile
(&self)
BitCraftServer/packages/game/src/game/coordinates/float_hex_tile.rs:120
↓ 12 callers
Method
player_surface_elevation
Returns elevation that player should walk/swim on. Takes care of all elevation vs water level checks
BitCraftServer/packages/game/src/game/entities/terrain_cell.rs:46
↓ 12 callers
Function
send_message
( ctx: &ReducerContext, player_entity_id: u64, building_entity_id: u64, deployable_entity_id:
BitCraftServer/packages/game/src/game/handlers/empires/empire_start_siege.rs:143
↓ 11 callers
Method
add_health_delta
(&mut self, delta: f32, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/health_state.rs:39
↓ 11 callers
Method
auto_collect
(&mut self, ctx: &ReducerContext, discovery: &mut Discovery, player_entity_id: u64)
BitCraftServer/packages/game/src/game/entities/item_stack.rs:165
↓ 11 callers
Method
center_small_tile
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:148
↓ 11 callers
Method
get_level
(&self, skill_id: i32)
BitCraftServer/packages/game/src/game/entities/experience_state.rs:9
↓ 11 callers
Method
get_member
(&self, ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:67
next →
1–100 of 3,290, ranked by callers