Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DarkZek/RustCraft
/ functions
Functions
594 in github.com/DarkZek/RustCraft
⨍
Functions
594
◇
Types & classes
288
↓ 1 callers
Method
build_skylighting
( &self, context: &mut ChunkBuildContext, lighting_data: &mut RawLightingData )
client/src/systems/chunk/builder/skylight.rs:13
↓ 1 callers
Function
calculate_chunk_viewable
( block_states: &BlockStates, world: &ChunkDataStorage, block: &WorldBlock, pos: Vector3<usize
lib/rc_shared/src/viewable_direction.rs:150
↓ 1 callers
Function
calculate_drops
( block_states: &BlockStates, item_states: &ItemStates, block_id: u32, )
server/src/systems/connection/message.rs:195
↓ 1 callers
Method
capture
(&mut self, query: &mut Query<&mut Visibility>)
client/src/systems/ui/console/mod.rs:133
↓ 1 callers
Function
check_authorization
(token: &str)
lib/rc_networking/src/server/authorization.rs:15
↓ 1 callers
Method
cmp
(&self, other: &Self)
client/src/systems/chunk/builder/entry.rs:39
↓ 1 callers
Method
connect
(&mut self, url: Url, join_token: String)
lib/rc_networking/src/client/mod.rs:50
↓ 1 callers
Function
data
(texture: TextureAtlasIndex)
lib/rc_shared/src/block/blocks/pipe.rs:183
↓ 1 callers
Function
daylight_amount
(t: f32)
lib/rc_shared/src/time.rs:3
↓ 1 callers
Function
decorate_chunk
( seed: u32, pos: Vector3<i32>, world: &mut RawChunkData, heightmap: &RelativeChunkFlatMap<i32
server/src/game/generation/phase3.rs:8
↓ 1 callers
Method
deref
(&self)
lib/rc_shared/src/block/mod.rs:37
↓ 1 callers
Function
does_tree_intersect
(trees: &Vec<Vector3<i32>>, pos: Vector3<i32>)
server/src/game/generation/phase4.rs:58
↓ 1 callers
Method
draw
(&self, uid: BlockId)
lib/rc_shared/src/block/definition.rs:61
↓ 1 callers
Method
draw_gizmo
(&self, gizmos: &mut Gizmos, offset: Vector3<f32>)
lib/rc_shared/src/aabb.rs:211
↓ 1 callers
Method
eq
(&self, other: &Self)
client/src/systems/chunk/builder/entry.rs:14
↓ 1 callers
Method
execute_command
(&mut self, command: &str)
client/src/systems/ui/console/mod.rs:61
↓ 1 callers
Method
expire_old
(&mut self)
client/src/systems/ui/console/mod.rs:145
↓ 1 callers
Method
for_each_mut_with_chunks
Loops over every single block in every nearby chunk calling `cb` with its corresponding chunk data entry from `nearby_chunk_cache`
client/src/systems/chunk/nearby_chunk_map.rs:97
↓ 1 callers
Function
gen_invalid_texture
()
client/src/systems/asset/atlas/atlas.rs:196
↓ 1 callers
Function
generate_atlas
( textures: Vec<(String, DynamicImage)>, atlas_index: &mut HashMap<String, TextureAtlasIndex, FnvBuild
client/src/systems/asset/atlas/atlas.rs:76
↓ 1 callers
Function
generate_biome
(seed: u32, pos: Vector3<i32>, config: &EnvironmentMapConfig)
server/src/game/generation/phase1.rs:40
↓ 1 callers
Function
generate_environment_map
(seed: u32, pos: Vector3<i32>, config: &EnvironmentMapConfig)
server/src/game/generation/phase1.rs:22
↓ 1 callers
Function
generate_greybox_chunk
( seed: u32, pos: Vector3<i32>, environment: &EnvironmentMap, config: &GreyboxMapConfig )
server/src/game/generation/phase2.rs:48
↓ 1 callers
Method
get
(&self, pos: LocalBlockPosition)
lib/rc_shared/src/chunk.rs:59
↓ 1 callers
Function
get_certificates
()
lib/rc_networking/src/server/mod.rs:129
↓ 1 callers
Function
get_chunk
()
lib/rc_shared/benches/chunk.rs:3
↓ 1 callers
Method
get_definition_index_by_id
Gets the beginning of the block id's for a block definition
lib/rc_shared/src/block/mod.rs:121
↓ 1 callers
Function
get_destroy_block_providers
TODO: Move this into a more extensible system
client/src/game/world/destroy_block.rs:23
↓ 1 callers
Function
get_hotbar_keypresses
(keys: &Res<ButtonInput<KeyCode>>)
client/src/systems/ui/inventory/hotbar.rs:223
↓ 1 callers
Method
get_join_token
(&self, session_token: String)
client/src/systems/api/join_token.rs:17
↓ 1 callers
Method
get_loot
(&self)
lib/rc_shared/src/block/mod.rs:188
↓ 1 callers
Method
get_loot
(&self, uid: BlockId)
lib/rc_shared/src/block/definition.rs:65
↓ 1 callers
Method
get_mut
(&mut self, position: [i32; 2])
lib/rc_shared/src/relative_chunk_flat_map.rs:36
↓ 1 callers
Method
get_offset
(&self, i: usize)
lib/rc_particle/src/spawner/mod.rs:47
↓ 1 callers
Function
get_player_model
( entity_commands: &mut EntityCommands, meshes: &mut Assets<Mesh>, handle: Handle<TranslucentChunk
client/src/game/game_object/player.rs:49
↓ 1 callers
Method
get_position_mut
(&mut self, world_position: Vector3<i32>)
client/src/systems/chunk/nearby_chunk_map.rs:140
↓ 1 callers
Method
get_raw_chunk
(&self, pos: &Vector3<i32>)
client/src/systems/chunk/mod.rs:185
↓ 1 callers
Method
get_raw_chunk_mut
(&mut self, pos: &Vector3<i32>)
client/src/systems/chunk/mod.rs:188
↓ 1 callers
Method
get_relative_chunk
(&self, pos: Vector2<i32>)
client/src/systems/chunk/nearby_column_cache.rs:66
↓ 1 callers
Method
get_relative_chunk
(&self, pos: Vector3<i32>)
client/src/systems/chunk/nearby_cache.rs:79
↓ 1 callers
Function
get_token
()
client/src/authentication.rs:71
↓ 1 callers
Method
get_variants_len
(&self)
lib/rc_shared/src/block/definition.rs:57
↓ 1 callers
Function
hash_uid
Calculates a hash from an identifier that is `const` Const is currently super limiting so it's pretty much no-std. Lame
lib/rc_shared/src/block/uid.rs:9
↓ 1 callers
Function
init_wasm_in_worker
()
client/site/worker.js:5
↓ 1 callers
Function
init_wasm_in_worker
()
site/src/utils/worker.ts:11
↓ 1 callers
Function
invalid_texture
(x: u32, y: u32, texture_size: u32)
client/src/systems/asset/atlas/atlas.rs:204
↓ 1 callers
Function
is_neighbor_block
(relative_chunk_pos: Vector3<i32>, block_pos: Vector3<usize>)
client/src/systems/chunk/builder/build_context.rs:125
↓ 1 callers
Function
load_config
()
server/src/config.rs:30
↓ 1 callers
Function
load_resources
( archive: &mut ZipArchive<Cursor<&[u8]>>, )
client/src/systems/asset/parsing/pack.rs:42
↓ 1 callers
Method
load_spawn_chunks
( &mut self, command: &mut Commands, config: &ServerConfig, res_config: &Chunk
server/src/game/world/saving.rs:24
↓ 1 callers
Method
log_error
(&mut self, message: &str)
client/src/systems/ui/console/mod.rs:99
↓ 1 callers
Method
log_warn
(&mut self, message: &str)
client/src/systems/ui/console/mod.rs:82
↓ 1 callers
Function
new_atlas
Generate a a new texture atlas from a list of textures and a resources directory
client/src/systems/asset/atlas/atlas.rs:17
↓ 1 callers
Method
on_destroy
(&self)
lib/rc_shared/src/block/blocks/mod.rs:26
↓ 1 callers
Method
open_session
(&self, refresh_token: String)
client/src/systems/api/open_session.rs:17
↓ 1 callers
Method
optimise
Shrinks the data down to the smallest storage possible
lib/rc_shared/src/chunk.rs:90
↓ 1 callers
Method
optimise_data
(&mut self)
server/src/game/chunk.rs:40
↓ 1 callers
Function
parse_give
(command: Vec<String>, user_id: UserId, world: &mut World)
server/src/game/commands/mod.rs:110
↓ 1 callers
Function
parse_spawn
(command: Vec<String>, user_id: UserId, world: &mut World)
server/src/game/commands/mod.rs:82
↓ 1 callers
Function
parse_world_gen
( command: Vec<String>, user_id: UserId, world: &mut World )
server/src/game/commands/world_gen.rs:14
↓ 1 callers
Function
pipe
()
lib/rc_shared/src/block/blocks/pipe.rs:47
↓ 1 callers
Function
player_arm_left
( entity_commands: &mut EntityCommands, meshes: &mut Assets<Mesh>, handle: Handle<TranslucentChunk
client/src/game/game_object/player.rs:764
↓ 1 callers
Function
player_arm_right
( entity_commands: &mut EntityCommands, meshes: &mut Assets<Mesh>, handle: Handle<TranslucentChunk
client/src/game/game_object/player.rs:606
↓ 1 callers
Function
player_body
( entity_commands: &mut EntityCommands, meshes: &mut Assets<Mesh>, handle: Handle<TranslucentChunk
client/src/game/game_object/player.rs:289
↓ 1 callers
Function
player_head
( entity_commands: &mut EntityCommands, meshes: &mut Assets<Mesh>, handle: Handle<TranslucentChunk
client/src/game/game_object/player.rs:131
↓ 1 callers
Method
poll
(&mut self)
client/src/systems/chunk/builder/thread/platform/wasm.rs:81
↓ 1 callers
Method
ray_collides
Detect if a ray collides with this Aabb Returns a boolean which is true if a hit was detected, and the distance
lib/rc_shared/src/aabb.rs:51
↓ 1 callers
Method
recompute_on_edge
(&mut self, position: Vector3<i32>)
client/src/systems/chunk/edge.rs:6
↓ 1 callers
Method
recv
(&mut self)
lib/rc_networking/src/bistream/native.rs:85
↓ 1 callers
Method
remove_flag
(&mut self, flag: ChunkFlagsBitMap)
client/src/systems/chunk/flags.rs:33
↓ 1 callers
Method
remove_game_object
( &mut self, game_object_id: &GameObjectId, chunk_pos: Vector3<i32>, )
server/src/game/world/data.rs:74
↓ 1 callers
Method
rotate
(&self, yaw: f32, pitch: f32, transforms: &mut Query<&mut Transform>)
client/src/game/game_object/player.rs:28
↓ 1 callers
Method
sample_3d
Returns an index with the range 0-1
server/src/game/generation/noise.rs:31
↓ 1 callers
Function
save_surroundings
( chunk_system: &mut ChunkSystem, query: Query<&Transform, With<Player>>, save_radius: i32 )
client/src/systems/chunk/static_world_data.rs:40
↓ 1 callers
Method
save_world
( &self, config: &ServerConfig, query: &Query<(&GameObject, &GameObjectType, &Transfor
server/src/game/world/saving.rs:93
↓ 1 callers
Method
schedule
(&mut self, job: ChunkBuilderJob)
client/src/systems/chunk/builder/thread/platform/wasm.rs:72
↓ 1 callers
Method
selected_block_definition_index
Gets the block definition
client/src/game/inventory/mod.rs:23
↓ 1 callers
Method
set_block_id
(&mut self, pos: GlobalBlockPosition, block_id: BlockId)
server/src/game/world/data.rs:94
↓ 1 callers
Function
set_blocks
()
lib/rc_shared/src/block/definition.rs:20
↓ 1 callers
Function
sort_textures
( textures: &mut HashMap<String, DynamicImage, FnvBuildHasher>, )
client/src/systems/asset/atlas/atlas.rs:215
↓ 1 callers
Function
start_game
(wasm_worker, on_startup)
site/wasm/rc_client.js:7
↓ 1 callers
Method
take_selected_block
Takes one of the selected block and removes it from the inventory
client/src/game/inventory/mod.rs:35
↓ 1 callers
Method
take_selected_block
Takes one of the selected block and removes it from the inventory
server/src/game/inventory.rs:24
↓ 1 callers
Method
to_partial
(&self)
lib/rc_networking/src/protocol/clientbound/chunk_update.rs:43
↓ 1 callers
Method
update_column_pos
Block position updated at `pos`, update the column data
server/src/game/world/column/update.rs:64
↓ 1 callers
Method
update_requested_chunks
( &mut self, mut flags: EventReader<RerenderChunkRequest>, chunks: &mut ChunkSystem
client/src/systems/chunk/builder/builder.rs:35
Function
aabb_vs_aabb_move_test_neg_x
()
lib/rc_shared/src/aabb.rs:266
Function
aabb_vs_aabb_move_test_x
()
lib/rc_shared/src/aabb.rs:227
Function
aabb_vs_aabb_move_test_y
()
lib/rc_shared/src/aabb.rs:240
Function
aabb_vs_aabb_move_test_z
()
lib/rc_shared/src/aabb.rs:253
Function
aabb_vs_aabb_test_detection_1
()
lib/rc_shared/src/aabb.rs:276
Function
aabb_vs_aabb_test_detection_2
()
lib/rc_shared/src/aabb.rs:286
Function
accept_connections
Accept connections by users and begin authorisation process
server/src/transport/connection.rs:12
Function
accept_server_connection_intent
Connects to the local connection instance
client/src/systems/connection/connect.rs:33
Method
add_flag
(&mut self, flag: ViewableDirectionBitMap)
lib/rc_shared/src/viewable_direction.rs:112
Function
authorization_event
( mut event_reader: EventReader<AuthorizationEvent>, global: ResMut<WorldData>, mut transport: Res
server/src/systems/connection/authorization.rs:25
Function
bench_get_block
This tests different visualblock caching strategies
lib/rc_shared/benches/blocks.rs:19
Function
benchmark_chunk_building
()
client/src/systems/chunk/builder/lighting.rs:192
Method
blank
()
lib/rc_shared/src/atlas.rs:56
Method
blank
(position: ChunkPosition)
server/src/game/chunk.rs:30
← previous
next →
101–200 of 594, ranked by callers