MCPcopy Create free account

hub / github.com/clockworklabs/BitCraftPublic / functions

Functions3,290 in github.com/clockworklabs/BitCraftPublic

↓ 11 callersMethodget_pocket_contents
(&self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:398
↓ 11 callersMethodhas_owner_permissions
(&self, entity_id: u64)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:86
↓ 11 callersMethodhashcode
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:165
↓ 10 callersFunctionactivate
(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 callersMethodchunk_coordinates
(&self, ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:29
↓ 10 callersMethodcoordinates
(&self)
BitCraftServer/packages/global_module/src/game/entities/location.rs:18
↓ 10 callersFunctiondelete_entity
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/autogen/_delete_entity.rs:137
↓ 10 callersFunctiondespawn
(ctx: &ReducerContext, deployable_entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:574
↓ 10 callersMethoddimension_filter
(&self, dimension: u32)
BitCraftServer/packages/game/src/game/entities/location.rs:279
↓ 10 callersMethodis_pocket_cargo
(&self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:28
↓ 10 callersMethodlocation_cache
(&mut self)
BitCraftServer/packages/game/src/table_caches/claim_tile_state_cache.rs:21
↓ 10 callersFunctionnow_plus_secs_f32
(secs: f32, now: Timestamp)
BitCraftServer/packages/game/src/game/reducer_helpers/timer_helpers.rs:13
↓ 9 callersMethodacquire_item
(&mut self, ctx: &ReducerContext, item_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1153
↓ 9 callersMethodadd_at
(&mut self, ctx: &ReducerContext, pocket_index: usize, contents: ItemStack)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:610
↓ 9 callersMethodget_terrain_coordinates
(&self)
BitCraftServer/packages/game/src/game/coordinates/small_hex_tile.rs:351
↓ 9 callersMethodgroup_by_and_count
(self, f_key: FKey)
BitCraftServer/packages/game/src/utils/iter_utils.rs:41
↓ 9 callersFunctionhalf_to_even
(f: f32)
BitCraftServer/packages/game/src/game/unity_helpers/float_helper.rs:2
↓ 9 callersMethodis_water
(&self)
BitCraftServer/packages/game/src/game/world_gen/world_generation/terrain_node.rs:56
↓ 9 callersFunctionsign_out_internal
(ctx: &ReducerContext, identity: Identity, insert_grace_period: bool)
BitCraftServer/packages/game/src/game/handlers/player/sign_out.rs:27
↓ 9 callersMethodwater_depth
(&self)
BitCraftServer/packages/game/src/game/entities/terrain_cell.rs:41
↓ 8 callersMethodacquire_secondary
(&mut self, ctx: &ReducerContext, secondary_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1791
↓ 8 callersMethodadd_collectible
(&mut self, ctx: &ReducerContext, collectible_id: i32, add_if_locked: bool)
BitCraftServer/packages/game/src/game/entities/vault_state.rs:32
↓ 8 callersMethodcoordinates
(&self)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:188
↓ 8 callersMethodevaluate
(&self, x: f64, y: f64)
BitCraftServer/packages/game/src/game/world_gen/open_simplex_noise.rs:631
↓ 8 callersMethodget_claim_on_tile
(&mut self, ctx: &ReducerContext, coord: SmallHexTile)
BitCraftServer/packages/game/src/table_caches/claim_tile_state_cache.rs:25
↓ 8 callersMethodget_spawn_coordinates
(&self, building_coordinates: &SmallHexTile, building_direction_index: i32)
BitCraftServer/packages/game/src/game/entities/building_spawn.rs:20
↓ 8 callersMethodmagnitude
(&self)
BitCraftServer/packages/game/src/game/unity_helpers/vector2.rs:89
↓ 8 callersMethodoffset_coordinates
(&self)
BitCraftServer/packages/game/src/game/entities/location.rs:28
↓ 8 callersMethodroll
(&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 callersFunctionschedule_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 callersFunctionupdate_timer
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/agents/duel_agent.rs:24
↓ 7 callersFunctionadd_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 callersMethodbiome_percentage
(&self, biome: Biome)
BitCraftServer/packages/game/src/game/entities/terrain_cell.rs:22
↓ 7 callersMethodcan_fit_quantity
(&self, ctx: &ReducerContext, volume: i32, is_cargo: bool)
BitCraftServer/packages/game/src/game/entities/pocket.rs:25
↓ 7 callersMethodget_entity
(&self, offset: &OffsetCoordinatesLarge)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:120
↓ 7 callersFunctionget_h_costs
(current: &(usize, usize), target: (usize, usize))
BitCraftServer/packages/game/src/game/generic/pathfinder_tests.rs:20
↓ 7 callersMethodget_neighbor
(&self, index: i32, neighbour_index: i32)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:71
↓ 7 callersMethodget_required_supplies_for_seconds
(&self, ctx: &ReducerContext, seconds: i32)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:457
↓ 7 callersMethodhas
(&self, item_stacks: &Vec<ItemStack>)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:422
↓ 7 callersMethodmembers
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:180
↓ 7 callersMethodset
(&mut self, item_id: i32, item_type: ItemType, quantity: i32, durability: Option<i32>)
BitCraftServer/packages/game/src/game/entities/pocket.rs:55
↓ 7 callersMethodset_entity
(&mut self, offset: OffsetCoordinatesLarge, entity: TerrainCell)
BitCraftServer/packages/game/src/game/terrain_chunk.rs:152
↓ 7 callersMethodsqr_magnitude
(&self)
BitCraftServer/packages/game/src/game/unity_helpers/vector2.rs:85
↓ 7 callersFunctionvalidate_cargo_target
( ctx: &ReducerContext, target_inventory: &InventoryState, item_stack: &ItemStack, )
BitCraftServer/packages/game/src/game/handlers/inventory/inventory_helper.rs:147
↓ 7 callersMethodwallet_pocket_target
(&self, ctx: &ReducerContext, item_stack: &ItemStack)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:730
↓ 6 callersMethodadd_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 callersMethodadd_health_delta_clamped
(&mut self, delta: f32, min: f32, max: f32, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/health_state.rs:46
↓ 6 callersMethodadd_partial
(&mut self, ctx: &ReducerContext, item_stack: &mut ItemStack)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:233
↓ 6 callersFunctionbuilding_at_coordinates
(ctx: &ReducerContext, coordinates: &SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:77
↓ 6 callersFunctionclear_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 callersFunctioncompile_error
(err: &str)
BitCraftServer/packages/game/bitcraft-macro/src/lib.rs:398
↓ 6 callersFunctioncreate_building_spawns
(ctx: &ReducerContext, building_entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:215
↓ 6 callersFunctioncreate_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 callersMethoddelete
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:96
↓ 6 callersFunctiondelete_footprint
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/footprint_helpers.rs:137
↓ 6 callersMethoddistance_to
(&mut self, target: V, getter: W, setter: X)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:148
↓ 6 callersFunctionget_edges
(nodes: &Vec<Vec<i32>>, current: &(usize, usize))
BitCraftServer/packages/game/src/game/generic/pathfinder_tests.rs:25
↓ 6 callersMethodget_skill_speed
(&self, skill: SkillType)
BitCraftServer/packages/game/src/game/entities/character_stats.rs:42
↓ 6 callersMethodhas_acquired_cargo
(&self, cargo_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:564
↓ 6 callersMethodhas_acquired_item
(&self, item_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1123
↓ 6 callersMethodhas_unlocked_tech
(&self, tech_id: i32)
BitCraftServer/packages/game/src/game/entities/claim_tech_state.rs:56
↓ 6 callersMethodhashcode_long
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:169
↓ 6 callersFunctioninsert_location_float
(ctx: &ReducerContext, entity_id: u64, coordinates: OffsetCoordinatesFloat)
BitCraftServer/packages/game/src/game/game_state/mod.rs:40
↓ 6 callersFunctionquantity_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 callersMethodscore_permissions
(&self, member: &ClaimMemberState)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:122
↓ 6 callersMethodset_innerlight_buff
(&mut self, ctx: &ReducerContext, duration: i32)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:233
↓ 6 callersMethodshortest_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 callersFunctionteleport_to
( ctx: &ReducerContext, actor_id: u64, teleport_location: OffsetCoordinatesFloat, dismount_dep
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:517
↓ 6 callersFunctionuntarget
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:310
↓ 6 callersMethodupdate_supplies_and_commit
(mut self, ctx: &ReducerContext, supplies_delta: f32, check_threshold: bool)
BitCraftServer/packages/game/src/game/entities/claim_description.rs:229
↓ 6 callersFunctionwrite_if_file_changed
(path: &str, content: String)
BitCraftServer/packages/game/build_shared.rs:369
↓ 5 callersFunctioncoordinates_any_float
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:67
↓ 5 callersFunctioncreate_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 callersFunctioncreate_building_footprint
( ctx: &ReducerContext, entity_id: u64, direction: i32, building: &BuildingDesc, override_
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:224
↓ 5 callersFunctiondeactivate
(ctx: &ReducerContext, entity_id: u64, buff_id: i32)
BitCraftServer/packages/game/src/game/entities/buff.rs:51
↓ 5 callersFunctiondelete_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 callersMethoddiscover_building
(&mut self, ctx: &ReducerContext, building_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:493
↓ 5 callersMethoddiscover_construction
(&mut self, ctx: &ReducerContext, construction_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:732
↓ 5 callersMethoddiscover_resource
(&mut self, ctx: &ReducerContext, resource_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1610
↓ 5 callersMethoddiscover_resource_placement
(&mut self, ctx: &ReducerContext, resource_placement_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1530
↓ 5 callersFunctiondismount_deployable
(ctx: &ReducerContext, player_entity_id: u64, skip_deployable_icon: bool)
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:418
↓ 5 callersFunctionexpel_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 callersMethodexpel_players_and_entities
(&self, ctx: &ReducerContext, reason: ServerTeleportReason)
BitCraftServer/packages/game/src/game/entities/player_housing_state.rs:287
↓ 5 callersMethodf32
(&mut self, min: f32, max: f32)
BitCraftServer/packages/game/src/game/unity_helpers/common_rng.rs:66
↓ 5 callersMethodfix_durability_self
(&mut self)
BitCraftServer/packages/game/src/game/entities/item_stack.rs:206
↓ 5 callersMethodget
(&self, type_index: CharacterStatType)
BitCraftServer/packages/game/src/game/entities/character_stats.rs:36
↓ 5 callersFunctionget_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 callersMethodget_index
(&self, x: i32, z: i32)
BitCraftServer/packages/game/src/game/world_gen/world_generation/hex_graph.rs:64
↓ 5 callersMethodget_skill_power
(&self, skill: SkillType)
BitCraftServer/packages/game/src/game/entities/character_stats.rs:49
↓ 5 callersMethodget_status_from_recipe
(&self, recipe: &CraftingRecipeDesc, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/progressive_action_state.rs:50
↓ 5 callersMethodhas_active_buff
(&self, buff_id: i32, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:198
↓ 5 callersFunctioninverse_lerp
(a: f32, b: f32, value: f32)
BitCraftServer/packages/game/src/game/world_gen/noise_helper.rs:100
↓ 5 callersMethodis_corner
(&self)
BitCraftServer/packages/game/src/game/coordinates/large_hex_tile.rs:198
↓ 5 callersFunctionis_flat_corner
(ctx: &ReducerContext, terrain_cache: &mut TerrainChunkCache, coordinates: SmallHexTile)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:137
↓ 5 callersMethodis_incapacitated_self
(&self)
BitCraftServer/packages/game/src/game/entities/health_state.rs:26
↓ 5 callersFunctionis_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 callersFunctionis_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 callersFunctionis_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 callersMethodoffset_coordinates_float
(&self)
BitCraftServer/packages/game/src/game/entities/location.rs:168
↓ 5 callersFunctionplace_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
← previousnext →101–200 of 3,290, ranked by callers