MCPcopy Create free account

hub / github.com/clockworklabs/BitCraftPublic / functions

Functions3,290 in github.com/clockworklabs/BitCraftPublic

↓ 3 callersFunctiondelete_loot_chest
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/reducer_helpers/loot_chest_helpers.rs:22
↓ 3 callersMethoddelete_previous_timer
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:104
↓ 3 callersFunctiondequeue
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/queue/player_queue.rs:135
↓ 3 callersMethoddespawn
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/placeable_state.rs:59
↓ 3 callersMethoddiscover_extract
(&mut self, ctx: &ReducerContext, extract_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1051
↓ 3 callersMethoddiscover_item
(&mut self, ctx: &ReducerContext, item_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1131
↓ 3 callersMethoddiscover_lore
(&mut self, ctx: &ReducerContext, lore_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1212
↓ 3 callersMethoddiscover_secondary
(&mut self, ctx: &ReducerContext, secondary_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1769
↓ 3 callersMethoddiscover_vault
(&mut self, ctx: &ReducerContext, vault_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1849
↓ 3 callersMethoddistance_to
(&self, other: SmallHexTile)
BitCraftServer/packages/game/src/game/coordinates/small_hex_tile.rs:257
↓ 3 callersMethodexplore_chunk
(&mut self, ctx: &ReducerContext, chunk: &ChunkCoordinates, world_width: Option<i32>)
BitCraftServer/packages/game/src/game/entities/exploration_chunks_state.rs:21
↓ 3 callersFunctionfail_action
(actor_id: u64, layer: PlayerActionLayer, error: String)
BitCraftServer/packages/game/src/game/reducer_helpers/player_action_helpers.rs:120
↓ 3 callersMethodfilter_by_chunk_index
Retrieves the state corresponding to the index. If it is not available in the cache, it will first be loaded into it. NOTE: This provides mutable acc
BitCraftServer/packages/game/src/game/terrain_chunk.rs:68
↓ 3 callersFunctiongenerate
()
BitCraftServer/packages/game/src/game/world_gen/flat_world/mod.rs:10
↓ 3 callersMethodget
(ctx: &ReducerContext, actor_id: u64)
BitCraftServer/packages/game/src/game/entities/teleportation_energy_state.rs:15
↓ 3 callersMethodget_at
(&self, pocket_index: usize)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:581
↓ 3 callersFunctionget_dimension_bounds
(ctx: &ReducerContext, dimension: &u32)
BitCraftServer/packages/game/src/game/reducer_helpers/dimension_helpers.rs:28
↓ 3 callersMethodget_from_chunk_coordinates
Retrieves the state corresponding to the given `chunk_coords`. If it is not available in the cache, it will first be loaded into it. NOTE: This provi
BitCraftServer/packages/game/src/game/terrain_chunk.rs:80
↓ 3 callersFunctionget_recipe
(ctx: &ReducerContext, building_description_id: i32)
BitCraftServer/packages/game/src/game/handlers/buildings/building_deconstruct.rs:218
↓ 3 callersMethodhas_discovered_construction
(&self, construction_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:716
↓ 3 callersMethodhas_discovered_craft
(&self, craft_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:796
↓ 3 callersMethodhas_discovered_extract
(&self, extract_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1035
↓ 3 callersMethodhas_discovered_paving
(&self, paving_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1354
↓ 3 callersMethodhas_discovered_pillar_shaping
(&self, pillar_shaping_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1434
↓ 3 callersMethodhas_discovered_resource_placement
(&self, resource_placement_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1514
↓ 3 callersMethodhas_only_one_buff
(self)
BitCraftServer/packages/game/src/messages/extensions.rs:61
↓ 3 callersFunctioninit
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/agents/mod.rs:36
↓ 3 callersMethodinsert_despawn_timer
(&mut self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/dropped_inventory_state.rs:150
↓ 3 callersMethodis_acquired
(&self, secondary_id: i32)
BitCraftServer/packages/game/src/game/entities/knowledge_secondary_state.rs:4
↓ 3 callersMethodis_tenant
(&self, player_entity_id: u64)
BitCraftServer/packages/game/src/game/entities/rent_state.rs:16
↓ 3 callersMethodis_under_cooldown
(&self, ctx: &ReducerContext, check_global: bool)
BitCraftServer/packages/game/src/game/entities/ability_state.rs:39
↓ 3 callersMethodmeets
(self, target: Permission)
BitCraftServer/packages/game/src/game/entities/permission.rs:4
↓ 3 callersFunctionmove_deployable
( ctx: &ReducerContext, deployable_entity_id: u64, origin: OffsetCoordinatesFloat, destination
BitCraftServer/packages/game/src/game/reducer_helpers/deployable_helpers.rs:611
↓ 3 callersMethodneighbor_n
(&self, direction: HexDirection, n: i32)
BitCraftServer/packages/game/src/game/coordinates/hex_coordinates.rs:122
↓ 3 callersMethodneighbors_direct
(&self)
BitCraftServer/packages/game/src/game/coordinates/small_hex_tile.rs:243
↓ 3 callersFunctionnext_tick
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/agents/traveler_task_agent.rs:23
↓ 3 callersFunctionnow_plus_millis
(millis: u64, now: Timestamp)
BitCraftServer/packages/game/src/game/reducer_helpers/timer_helpers.rs:9
↓ 3 callersFunctionnow_plus_secs
(secs: u64, now: Timestamp)
BitCraftServer/packages/global_module/src/game/reducer_helpers/timer_helpers.rs:5
↓ 3 callersFunctionplayer_region
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/global_module/src/game/game_state/mod.rs:88
↓ 3 callersFunctionprocess_queue
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/handlers/queue/player_queue.rs:104
↓ 3 callersFunctionrandom
()
BitCraftServer/packages/game/src/game/world_gen/noise_helper.rs:117
↓ 3 callersFunctionreduce
(ctx: &ReducerContext, actor_id: u64, dry_run: bool)
BitCraftServer/packages/game/src/game/handlers/player/player_teleport_home.rs:61
↓ 3 callersFunctionreduce
(ctx: &ReducerContext, actor_id: u64, entity_id_from: u64, entity_id_to: u64, dry_run: bool)
BitCraftServer/packages/game/src/game/handlers/player/player_teleport_waystone.rs:69
↓ 3 callersFunctionreduce
(ctx: &ReducerContext, entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/server/enemy_despawn.rs:78
↓ 3 callersFunctionreduce
(ctx: &ReducerContext, _region: u8, title: String, message: String, sign_out: bool)
BitCraftServer/packages/global_module/src/game/handlers/admin/admin_broadcast.rs:20
↓ 3 callersFunctionreduce
(ctx: &ReducerContext, identity: Identity)
BitCraftServer/packages/global_module/src/game/handlers/admin/admin_skip_queue.rs:50
↓ 3 callersMethodremove_active_buff
Sets the timestamp and duration of the buff index to 0, effectively making it non-persistent and expired.
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:104
↓ 3 callersMethodremove_active_buff_internal
(&mut self, buff_id: i32)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:109
↓ 3 callersMethodroll
( &self, ctx: &ReducerContext, player_entity_id: u64, num_rolls: i32, )
BitCraftServer/packages/game/src/game/entities/quest_drop_desc.rs:68
↓ 3 callersFunctionsample_wind_vec2
Returns direction in radians [0..2PI]
BitCraftServer/packages/game/src/game/game_state/wind_system.rs:40
↓ 3 callersMethodset_combat_action_cooldown
( &mut self, combat_action: &CombatActionDesc, cooldown_multiplier: f32, weapo
BitCraftServer/packages/game/src/game/entities/ability_state.rs:149
↓ 3 callersMethodset_destination
(&mut self, location: OffsetCoordinatesFloat)
BitCraftServer/packages/game/src/game/entities/location.rs:132
↓ 3 callersMethodset_permissions
( mut self, ctx: &ReducerContext, build_permission: bool, inventory_permission
BitCraftServer/packages/game/src/game/entities/claim_description.rs:208
↓ 3 callersFunctionshould_run
(ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/agents/mod.rs:11
↓ 3 callersFunctionspawn_cargo
(ctx: &ReducerContext, owner_entity_id: u64, coordinates: SmallHexTile, cargo_id: i32, quantity: i32)
BitCraftServer/packages/game/src/game/reducer_helpers/cargo_helpers.rs:9
↓ 3 callersFunctionspawn_loot_chest
( ctx: &ReducerContext, loot_chests: &Vec<i32>, entity_id: u64, spawn_location: SmallHexTile,
BitCraftServer/packages/game/src/game/reducer_helpers/loot_chest_helpers.rs:29
↓ 3 callersMethodsub
(self, other: &Vector2)
BitCraftServer/packages/game/src/game/unity_helpers/vector2.rs:30
↓ 3 callersFunctiontime_of_day
(ctx: &ReducerContext)
BitCraftServer/packages/game/src/agents/day_night_agent.rs:87
↓ 3 callersFunctiontry_spawn_resource
( ctx: &ReducerContext, terrain_cache: &mut TerrainChunkCache, clump_info: &ResourceClumpInfo,
BitCraftServer/packages/game/src/agents/resources_regen.rs:428
↓ 3 callersMethodunlock_all_pockets
(&mut self)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:712
↓ 3 callersMethodunstamp_influence
Unstamp the empire influence from all chunks assigned to this watchtower. Returns a list of all empires whose territory size changed
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:186
↓ 3 callersFunctionunstuck_entity
(ctx: &ReducerContext, entity_id: &u64, offset_coordinates: &OffsetCoordinatesFloat)
BitCraftServer/packages/game/src/game/reducer_helpers/restore_player_helpers.rs:119
↓ 3 callersFunctionupdate_claim_building_health
(ctx: &ReducerContext, buildings: &Vec<(u64, i32)>, decrease_health: bool)
BitCraftServer/packages/game/src/agents/building_decay_agent.rs:126
↓ 3 callersMethodupdate_is_empty_flag_self
(&mut self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/player_housing_state.rs:362
↓ 3 callersFunctionupdate_portal_position
(ctx: &ReducerContext, mut portal_state: PortalState)
BitCraftServer/packages/game/src/game/handlers/player/player_housing_change_entrance.rs:117
↓ 3 callersFunctionupdate_timer
(ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/agents/chat_cleanup_agent.rs:24
↓ 3 callersMethodusize_range
(&mut self, min: usize, max: usize)
BitCraftServer/packages/game/src/game/unity_helpers/common_rng.rs:58
↓ 3 callersFunctionvalidate_building
(ctx: &ReducerContext, actor_id: u64, player_location: SmallHexTile, building: &BuildingState)
BitCraftServer/packages/game/src/game/handlers/inventory/inventory_helper.rs:14
↓ 3 callersFunctionvalidate_co_owner_permissions
(ctx: &ReducerContext, actor_id: u64, rent_entity_id: u64)
BitCraftServer/packages/game/src/game/handlers/rentals/rentals.rs:13
↓ 3 callersFunctionvalidate_equip_on_toolbelt
(ctx: &ReducerContext, actor_id: u64, item_id: i32, to_index: i32)
BitCraftServer/packages/game/src/game/handlers/player/pocket_swap_contents.rs:427
↓ 2 callersMethodacquire_enemy
(&mut self, ctx: &ReducerContext, enemy_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:994
↓ 2 callersMethodacquire_npc
(&mut self, ctx: &ReducerContext, npc_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1313
↓ 2 callersMethodacquire_pillar_shaping
(&mut self, ctx: &ReducerContext, pillar_shaping_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1473
↓ 2 callersMethodacquire_resource_placement
(&mut self, ctx: &ReducerContext, resource_placement_id: i32)
BitCraftServer/packages/game/src/game/discovery/autogen/_discovery.rs:1553
↓ 2 callersMethodadd
(self, other: &Vector2)
BitCraftServer/packages/global_module/src/game/unity_helpers/vector2.rs:8
↓ 2 callersMethodadd_energy
(&mut self, ctx: &ReducerContext, energy_gain: f32)
BitCraftServer/packages/game/src/game/entities/teleportation_energy_state.rs:40
↓ 2 callersFunctionadd_player_to_claim
(ctx: &ReducerContext, actor_id: u64, claim: &mut ClaimState)
BitCraftServer/packages/game/src/game/handlers/claim/claim_take_ownership.rs:75
↓ 2 callersMethodadd_stamina_delta
(&mut self, delta: f32, now: Timestamp)
BitCraftServer/packages/game/src/game/entities/stamina_state.rs:14
↓ 2 callersFunctionadmin_rename_building_entity
(ctx: &ReducerContext, entity_id: u64, new_name: String)
BitCraftServer/packages/game/src/game/handlers/admin/admin_rename_building.rs:59
↓ 2 callersFunctionadmin_set_sign_text_entity
(ctx: &ReducerContext, entity_id: u64, new_name: String)
BitCraftServer/packages/game/src/game/handlers/admin/admin_set_sign_text.rs:55
↓ 2 callersFunctionany_claim_totems_in_radius
(ctx: &ReducerContext, coord: SmallHexTile, radius: i32)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:197
↓ 2 callersFunctionany_claims_in_radius
(ctx: &ReducerContext, coord: SmallHexTile, radius: i32)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:193
↓ 2 callersMethodapply_stat_to_value_unclamped
(&self, val: f32, stat_type: CharacterStatType)
BitCraftServer/packages/game/src/game/entities/paving_tile_desc.rs:36
↓ 2 callersMethodapply_transaction
(self, ctx: &ReducerContext)
BitCraftServer/packages/global_module/src/game/handlers/empires/empire_entities.rs:642
↓ 2 callersMethodas_item_stacks
(&self)
BitCraftServer/packages/game/src/game/entities/inventory_state.rs:1635
↓ 2 callersFunctionauto_unstuck_player_and_deployable
DAB Note: This is a temporary hack for 5.0
BitCraftServer/packages/game/src/game/reducer_helpers/restore_player_helpers.rs:14
↓ 2 callersMethodbuff_index_or_add
(&mut self, buff_id: i32)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:17
↓ 2 callersMethodbuff_remaining_time
Returns the number of seconds left for the buff, or -1 if it's persistent.
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:127
↓ 2 callersMethodbuild_enemy_spawn_locations
(&mut self, ctx: &ReducerContext, terrain_cache: &mut TerrainChunkCache)
BitCraftServer/packages/game/src/game/location_cache.rs:92
↓ 2 callersFunctionbuild_handlers_mod
(dir: &str)
BitCraftServer/packages/game/build_shared.rs:54
↓ 2 callersFunctionbuild_handlers_mod
(dir: &str)
BitCraftServer/packages/global_module/build_shared.rs:54
↓ 2 callersFunctioncan_place_claim_totem
( ctx: &ReducerContext, coordinates: SmallHexTile, claim_info: &BuildingClaimDesc, terrain_cac
BitCraftServer/packages/game/src/game/claim_helper.rs:315
↓ 2 callersMethodcancel_buy_order
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/auction_listing_state.rs:24
↓ 2 callersMethodcancel_sell_order
(&self, ctx: &ReducerContext)
BitCraftServer/packages/game/src/game/entities/auction_listing_state.rs:12
↓ 2 callersFunctioncancel_trade
(ctx: &ReducerContext, mut trade: TradeSessionState)
BitCraftServer/packages/game/src/game/handlers/player/sign_out.rs:187
↓ 2 callersMethodchunk_coordinates
(&self)
BitCraftServer/packages/game/src/game/coordinates/float_hex_tile.rs:130
↓ 2 callersFunctionchunk_indexes_in_radius
(coord: SmallHexTile, radius: i32)
BitCraftServer/packages/game/src/game/game_state/game_state_filters.rs:172
↓ 2 callersFunctionclamp_within_dimension_bounds
( offset_coordinates_float: &mut OffsetCoordinatesFloat, bounds: (OffsetCoordinatesLarge, OffsetCoordi
BitCraftServer/packages/game/src/game/reducer_helpers/dimension_helpers.rs:87
↓ 2 callersFunctionclear_resources_under_building
(ctx: &ReducerContext, coordinates: SmallHexTile, building: &BuildingDesc, facing_direction: i32)
BitCraftServer/packages/game/src/game/reducer_helpers/building_helpers.rs:606
↓ 2 callersMethodcollect_buff_stats
(&self, ctx: &ReducerContext, bonuses: &mut HashMap<CharacterStatType, (f32, f32)>)
BitCraftServer/packages/game/src/game/entities/active_buff_state.rs:242
← previousnext →301–400 of 3,290, ranked by callers