Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Thinkofname/UniverCity
/ functions
Functions
1,740 in github.com/Thinkofname/UniverCity
⨍
Functions
1,740
◇
Types & classes
884
↓ 3 callers
Function
do_clip
(ctx: &mut pipeline::Context<'_>, view_matrix: &cgmath::Matrix4<f32>, vao: &gl::VertexArray, x: f32, y: f32, w
src/render/ui/mod.rs:975
↓ 3 callers
Method
draw
(&mut self, ctx: &mut pipeline::Context<'_>, flag: PassFlag, entities: &mut Option<&mu
src/render/mod.rs:1218
↓ 3 callers
Function
entity_variant
Returns the stat variant for the given entity
server/src/entity/info.rs:344
↓ 3 callers
Method
execute_string
Loads and executes the passed string converting and returning the results of executing the string. This is works like lua's `loadstring` and will exe
lua/src/lib.rs:101
↓ 3 callers
Method
exists
(&self, name: &str)
server/src/steam.rs:92
↓ 3 callers
Function
fields
(t: &lua::TypeBuilder)
server/src/script_room.rs:590
↓ 3 callers
Function
flood_fill
(visited: &mut BitSet, tiles: &LevelTiles, rooms: &LevelRooms, x: usize, y: usize, sx: usize, sy: usize)
server/src/level/mod.rs:2028
↓ 3 callers
Method
free_id
(&mut self, id: u32)
ecs/src/storage.rs:120
↓ 3 callers
Function
gen_room_list
( instance: &mut GameInstance, state: &mut crate::GameState, ui: &ui::Node, entry: &course::Ne
src/instance/base/courses.rs:705
↓ 3 callers
Method
get_asset_manager
(&self)
server/src/level/mod.rs:166
↓ 3 callers
Method
get_float
(&mut self, name: &str)
server/src/choice/mod.rs:104
↓ 3 callers
Method
group_mask
(&'a self, components: F, op: MaskOp)
ecs/src/lib.rs:841
↓ 3 callers
Method
insert
(&mut self, key: K, val: V)
util/src/intmap.rs:30
↓ 3 callers
Method
intersects_ray
(self, ray: Ray<F>)
util/src/aabb.rs:23
↓ 3 callers
Method
iter
(self)
util/src/location.rs:121
↓ 3 callers
Method
keys
(&'a self)
util/src/intmap.rs:75
↓ 3 callers
Method
keys_for_action
Returns the matching keys for a given action
src/config/keybinds.rs:429
↓ 3 callers
Function
load_dir
(assets: &AssetManager, dir: &Path)
server/src/level/tile.rs:241
↓ 3 callers
Method
meshes
(&'a self)
model/src/main.rs:72
↓ 3 callers
Function
metatable
(t: &lua::TypeBuilder)
server/src/script_room.rs:1135
↓ 3 callers
Method
mouse_move
Calls the mouse move event on the active state Special due to the event spam it would cause
src/state.rs:235
↓ 3 callers
Method
name
(&self)
model/src/main.rs:199
↓ 3 callers
Method
next_socket
Returns a socket if a connection is queued or `None` if no additional connections have happened between now and the last call
server/src/network/udp.rs:209
↓ 3 callers
Method
pop_state
Removes the state at the top of the state list
src/state.rs:362
↓ 3 callers
Method
preload_texture
Requests that the render starts loading the texture now
src/render/mod.rs:1381
↓ 3 callers
Function
rebuild_page
( _instance: &mut GameInstance, state: &mut crate::GameState, ui: &ui::Node, tab: Tab, tim
src/instance/base/entity_info.rs:387
↓ 3 callers
Method
rebuild_pipeline
Causes the renderer to rebuild the whole pipeline with the current settings
src/render/mod.rs:277
↓ 3 callers
Method
remove_component
(&mut self, _id: u32)
server/src/choice/component.rs:235
↓ 3 callers
Method
render
( &mut self, ctx: &mut pipeline::Context<'_>, matrix: super::EntityMatrix<'_>,
src/render/static_model.rs:288
↓ 3 callers
Method
run
(&mut self, container: &mut Container)
ecs/src/lib.rs:600
↓ 3 callers
Method
seek
(&mut self, pos: SeekFrom)
server/src/assets/mod.rs:757
↓ 3 callers
Method
set_float4
(self, x: f32, y: f32, z: f32, w: f32)
src/render/gl.rs:630
↓ 3 callers
Method
set_int
(&mut self, name: &str, val: i32)
server/src/choice/mod.rs:75
↓ 3 callers
Method
set_int4
(self, x: i32, y: i32, z: i32, w: i32)
src/render/gl.rs:606
↓ 3 callers
Method
set_lowered_region
Marks a region to have its walls lowered
src/render/mod.rs:1132
↓ 3 callers
Method
set_volume
(&self, volume: f32)
audio/src/lib.rs:218
↓ 3 callers
Method
set_wall_info
(&mut self, loc: Location, dir: Direction, info: Option<WallInfo>)
server/src/level/mod.rs:229
↓ 3 callers
Method
should_lower_walls
(&mut self, flag: bool)
server/src/level/virt.rs:328
↓ 3 callers
Method
special
Flags the next part as special
server/src/msg/mod.rs:26
↓ 3 callers
Function
stencil_op
(sfail: StencilOp, dpfail: StencilOp, dppass: StencilOp)
src/render/gl.rs:258
↓ 3 callers
Method
stop
Stops the sound
src/audio.rs:260
↓ 3 callers
Method
take_image
Returns the loaded image if it has been loaded. This will take the image preventing it from taken again.
src/render/image.rs:227
↓ 3 callers
Method
take_placement
(&mut self)
server/src/level/virt.rs:343
↓ 3 callers
Method
test
Tests a tile using the check rule and returns whether it matches. `dx` and `dy` will be added to the offsets used by the checks.
server/src/level/mod.rs:1981
↓ 3 callers
Method
texture
(&self)
model/src/main.rs:122
↓ 3 callers
Method
texture_2d
(&self, fbtarget: TargetFramebuffer, attachment: Attachment, target: TextureTarget, tex: &Texture, level: i32)
src/render/gl.rs:1105
↓ 3 callers
Method
tick
(&mut self, delta: f64)
src/main.rs:660
↓ 3 callers
Method
volume
(self, volume: f32)
audio/src/lib.rs:27
↓ 3 callers
Method
write
(&self, name: &str)
server/src/steam.rs:83
↓ 3 callers
Method
write_all
(&mut self, buf: &[u8])
server/src/saving/filesystem.rs:153
↓ 3 callers
Method
write_to
(&self, w: &mut W)
model/src/lib.rs:32
↓ 2 callers
Method
add
(self, other: Angle)
util/src/angle.rs:56
↓ 2 callers
Method
add_and_get_component
(&mut self, id: u32, v: T)
ecs/src/storage.rs:102
↓ 2 callers
Method
alloc
(&mut self)
ecs/src/internal.rs:266
↓ 2 callers
Function
apply_clip
( mut obj: Rect, parent: Rect )
src/ui/layout.rs:592
↓ 2 callers
Method
as_str
Returns this direction as a string reference
util/src/direction.rs:110
↓ 2 callers
Method
attach_shader
(&self, shader: Shader)
src/render/gl.rs:461
↓ 2 callers
Method
bind_uniform_block
(&self, block: UniformBlock)
src/render/gl.rs:314
↓ 2 callers
Function
blend_func
(sfactor: BlendFunc, dfactor: BlendFunc)
src/render/gl.rs:144
↓ 2 callers
Method
bones
(&'a self)
model/src/main.rs:260
↓ 2 callers
Method
bounds
(&self)
server/src/level/virt.rs:323
↓ 2 callers
Method
buffer
(&self, target: TextureTarget, buffer: &Buffer, format: TextureFormat)
src/render/gl.rs:831
↓ 2 callers
Method
can_place_room
Returns whether the requested room can be placed at the passed location.
server/src/level/mod.rs:1072
↓ 2 callers
Method
capacity
(&self)
ecs/src/util/mod.rs:46
↓ 2 callers
Method
capture
Captures the current state of the entities and stores it as the current frame.
server/src/entity/snapshot.rs:128
↓ 2 callers
Method
change_money
(&mut self, val: UniDollar)
server/src/player/handle.rs:1510
↓ 2 callers
Method
check_requirement
Returns whether the player meets the requirement
server/src/level/room.rs:267
↓ 2 callers
Method
check_room_size
Returns whether the area is large enough for the requested room
server/src/level/mod.rs:1093
↓ 2 callers
Method
check_tile_placeable
Returns whether the tile is suitable for the room type
server/src/level/mod.rs:1100
↓ 2 callers
Function
clamp
(a: f32)
util/src/angle.rs:192
↓ 2 callers
Method
clamp_path
(&self, module: ModuleKey<'_>, name: &str)
server/src/assets/mod.rs:776
↓ 2 callers
Method
clear
(&mut self)
src/render/animated_model.rs:171
↓ 2 callers
Method
clear_room_area
Clears the area for building
server/src/level/room_placement/plan.rs:183
↓ 2 callers
Method
clear_script_engine
Changes the scripting engine to the default engine. This clears all active ui elements.
src/ui/mod.rs:793
↓ 2 callers
Function
clear_stencil
(val: i32)
src/render/gl.rs:222
↓ 2 callers
Method
client_localsocket
Returns the socket to be used by the local client
server/src/lib.rs:945
↓ 2 callers
Method
cmp
(&self, other: &PLoc<T>)
server/src/entity/pathfind.rs:497
↓ 2 callers
Function
color_mask
(red: bool, green: bool, blue: bool, alpha: bool)
src/render/gl.rs:210
↓ 2 callers
Method
compile
(&self)
src/render/gl.rs:547
↓ 2 callers
Method
disconnect
Disconnects the client from the current server
src/instance/mod.rs:353
↓ 2 callers
Method
do_notification
(&mut self, state: &mut crate::GameState, not: server::notify::Notification)
src/instance/mod.rs:549
↓ 2 callers
Function
draw_elements_instanced
(ty: DrawType, count: usize, ety: Type, prim_count: usize)
src/render/gl.rs:246
↓ 2 callers
Function
draw_money
(instance: &mut crate::GameInstance, state: &mut crate::GameState, ui: &ui::Node)
src/instance/base/stats.rs:24
↓ 2 callers
Method
drop_capture
Drops a capture if it hasn't been colllected
src/state.rs:174
↓ 2 callers
Function
ensure_packet
(state: &Mutex<UdpSocketState>, packet: packet::Packet)
server/src/network/udp.rs:506
↓ 2 callers
Function
entity_variant
(ty: &Type<entity::ClientComponent>)
src/instance/base/staff.rs:465
↓ 2 callers
Method
faces
(&'a self)
model/src/main.rs:248
↓ 2 callers
Function
factor
()
server/src/choice/parse.rs:225
↓ 2 callers
Method
fetch_component
(&self, id: u32)
ecs/src/lib.rs:1553
↓ 2 callers
Method
files
(&self)
server/src/steam.rs:106
↓ 2 callers
Function
find_entity_at
(renderer: &render::Renderer, entities: &mut Container, pos: (i32, i32))
src/instance/base/mod.rs:764
↓ 2 callers
Function
find_object_at
Returns the object id of the object at the cursor's location if any. Walls are only checked if they aren't lowered
src/instance/build.rs:1656
↓ 2 callers
Function
find_remove_target
(objects: &[Option<(ObjectPlacement, ReverseObjectPlacement)>], loc: Location)
server/src/level/placement.rs:541
↓ 2 callers
Method
free
(&mut self, e: Entity)
ecs/src/internal.rs:286
↓ 2 callers
Method
free_all_components
(&mut self, id: u32)
ecs/src/internal.rs:384
↓ 2 callers
Function
from_table
(tbl: &Ref<Table>)
lua/src/lib.rs:991
↓ 2 callers
Function
gen_spawn
(level: &Level, rng: &mut R)
server/src/spawning.rs:226
↓ 2 callers
Function
generate_user_list
(ui: &ui::Node, steam: &steamworks::Client, renderer: &mut render::Renderer)
src/multiplayer/mod.rs:59
↓ 2 callers
Method
get
(&self, i: usize)
util/src/bit.rs:39
↓ 2 callers
Method
get_choice_index_by_name
(&self, name: ResourceKey<'_>)
server/src/choice/mod.rs:229
← previous
next →
301–400 of 1,740, ranked by callers