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
↓ 2 callers
Method
get_component_mut
(&mut self, id: u32)
ecs/src/storage.rs:92
↓ 2 callers
Method
get_data
(&self, target: TextureTarget, level: i32, format: TextureFormat, ty: Type, pix: &mut [u8])
src/render/gl.rs:913
↓ 2 callers
Method
get_entities
Returns a list of entities that were created when then `ObjectPlacement` belonging to this was applied
server/src/level/object.rs:177
↓ 2 callers
Method
get_int
(&mut self, name: &str)
server/src/choice/mod.rs:95
↓ 2 callers
Method
get_lowered_region
Gets the currently lowered region if any
src/render/mod.rs:1138
↓ 2 callers
Method
get_money
(&self)
server/src/player/handle.rs:1506
↓ 2 callers
Method
get_name_key
Returns the resource key pointing used to reference this mission
server/src/common/mod.rs:69
↓ 2 callers
Method
get_script_engine
Returns the current scripting engine
src/ui/mod.rs:802
↓ 2 callers
Method
handle_event
( &mut self, evt: &mut event::EventHandler, )
src/instance/base/courses.rs:327
↓ 2 callers
Method
handle_events
Creates a handler that can be used to register and execute event handlers. Events are not consumed until `exec` is called on the handler
server/src/event/mod.rs:35
↓ 2 callers
Method
handle_key_action
(&mut self, action: keybinds::KeyAction)
src/main.rs:696
↓ 2 callers
Function
handle_packet
(state: &Mutex<UdpSocketState>, send: &mpsc::Sender<(bool, packet::Packet)>, pck: packet::Packet)
server/src/network/udp.rs:579
↓ 2 callers
Function
handle_reloads
Handles files that need reloading
server/src/script/mod.rs:218
↓ 2 callers
Function
hsl_to_rgb
(h: f64, s: f64, l: f64)
util/src/color.rs:35
↓ 2 callers
Method
id
Returns the unique id for this connection
server/src/network/udp.rs:281
↓ 2 callers
Method
image_2d_any
(&self, target: TextureTarget, level: i32, width: u32, height: u32, internal_format: TextureFo
src/render/gl.rs:855
↓ 2 callers
Method
inactive
Called when the state stops being active. May be called multiple times but will always have `active` before once between calls. Will be called befor
src/state.rs:469
↓ 2 callers
Method
includes_set
(&self, other: &BitSet)
util/src/bit.rs:64
↓ 2 callers
Function
init_commandlib
Sets up a interface for scripts to interface with
server/src/mission.rs:146
↓ 2 callers
Method
init_pack
Loads and inits the named pack's scripts. Currently panics when it fails to load
src/script/mod.rs:81
↓ 2 callers
Function
init_unilib
Provides a basic standard library to the passed state
server/src/script/mod.rs:36
↓ 2 callers
Method
invoke
Invokes the stored function passing the parameters to the function and converting the result to the requested type.
lua/src/lib.rs:1195
↓ 2 callers
Method
is_connection_open
Returns whether a connection with the given id exists
server/src/network/mod.rs:81
↓ 2 callers
Method
is_placeable_scaled
Returns whether the scaled (* 4) coordinates collide with an object's placement bound
server/src/level/room.rs:811
↓ 2 callers
Method
key_action
Calls the key action event on the active state
src/state.rs:298
↓ 2 callers
Method
layout
(&mut self, manager: &mut Manager<UniverCityUI>, width: u32, height: u32)
src/render/ui/mod.rs:158
↓ 2 callers
Method
lerp
(self, other: Self, t: f32)
src/render/animated_model.rs:816
↓ 2 callers
Method
linked_action
Linked actions automatically set the other one when set via the ui but inversed.
src/config/keybinds.rs:175
↓ 2 callers
Function
load_font
(assets: &AssetManager, fonts: &'a mut FNVMap<String, Font>, font_key: &str)
src/render/ui/mod.rs:399
↓ 2 callers
Method
load_styles
Loads the named style rules
src/ui/mod.rs:575
↓ 2 callers
Function
log_panics
Logs panics to a log file before
util/src/lib.rs:94
↓ 2 callers
Method
make_sound
(&mut self, sound: ResourceKey<'_>)
src/audio.rs:296
↓ 2 callers
Method
modified_time
Returns the modified time of the named file if the pack supports it. This is case sensitive and paths should not start with `/` (or any other prefix)
server/src/assets/mod.rs:627
↓ 2 callers
Method
monitor
Resends packets that the other side hasn't ack'd yet.
server/src/network/udp.rs:424
↓ 2 callers
Method
mouse_move_ui
Calls the mouse move ui event on the active state. This is called when the UI takes control of the mouse to allow states to release control where pos
src/state.rs:269
↓ 2 callers
Method
name
(self)
src/instance/base/stats.rs:378
↓ 2 callers
Method
new
()
src/instance/mod.rs:1044
↓ 2 callers
Method
new
Creates a new server that listens for connects on the passed address
server/src/lib.rs:401
↓ 2 callers
Method
normals
(&'a self)
model/src/main.rs:224
↓ 2 callers
Method
open
Opens the door for 1 second If the door is already open then this will reset the timer back to 1 second
server/src/entity/mod.rs:320
↓ 2 callers
Method
packets
Returns a collection of packets that need to be sent
server/src/network/mod.rs:430
↓ 2 callers
Method
parse_request
Handles incoming request packets
server/src/network/mod.rs:425
↓ 2 callers
Method
partial_cmp
(&self, other: &PLoc<T>)
server/src/entity/pathfind.rs:502
↓ 2 callers
Method
raw_storage_loc
(&mut self, _name: &str)
server/src/choice/rule.rs:306
↓ 2 callers
Method
rebuild_player_list
(&mut self, #[cfg(feature = "steam")] steam: &steamworks::Client, renderer: &mut render::Renderer)
src/multiplayer/mod.rs:407
↓ 2 callers
Function
register_loaders
Registers the loaders required by the server
server/src/lib.rs:112
↓ 2 callers
Function
register_systems
Registers systems required by the client
src/entity/mod.rs:36
↓ 2 callers
Method
resampled
(self, output: u32)
audio/src/lib.rs:15
↓ 2 callers
Method
reverse
(self)
util/src/direction.rs:37
↓ 2 callers
Method
root_transform
(&self)
model/src/main.rs:52
↓ 2 callers
Method
run_internal
(&mut self, container: &mut Container)
ecs/src/lib.rs:607
↓ 2 callers
Method
runtime_enable
(mut self, name: &'static str)
src/render/pipeline.rs:708
↓ 2 callers
Function
save_game
Saves the game's state with the given name in the default location
server/src/saving/mod.rs:145
↓ 2 callers
Method
set_boolean
(&self, name: &str, val: bool)
server/src/choice/component.rs:176
↓ 2 callers
Method
set_camera
Sets the position of the camera.
src/render/mod.rs:1842
↓ 2 callers
Method
set_integer
(&self, name: &str, val: i32)
server/src/choice/component.rs:154
↓ 2 callers
Method
set_level
Sets the level currently being rendered by this renderer.
src/render/mod.rs:1104
↓ 2 callers
Method
set_placement
(&mut self, placement: TempObjectPlacement)
server/src/level/virt.rs:333
↓ 2 callers
Method
set_playlist
Starts playing random songs from the named playlist
src/audio.rs:133
↓ 2 callers
Method
set_script_engine
Changes the scripting engine to the passed engine. This clears all active ui elements.
src/ui/mod.rs:761
↓ 2 callers
Method
set_source
(&self, src: &str)
src/render/gl.rs:540
↓ 2 callers
Method
set_state
(&mut self, state: State)
src/instance/mod.rs:1067
↓ 2 callers
Method
set_tile
Lua requirements
server/src/level/room_placement/plan.rs:240
↓ 2 callers
Method
set_tile_flags
Sets the flags set on the tile
server/src/level/virt.rs:127
↓ 2 callers
Method
set_tile_raw
(&mut self, loc: Location, tile: TileData)
server/src/level/mod.rs:223
↓ 2 callers
Method
set_volume_sides
(&mut self, left: f32, right: f32)
audio/src/lib.rs:74
↓ 2 callers
Method
source
(&self)
audio/src/lib.rs:90
↓ 2 callers
Method
standard_direction
The standard 'direction' for the action. The lack of a direction means that its considered normal to allow both `up`(true) and `down`(false) directio
src/config/keybinds.rs:147
↓ 2 callers
Method
stop_selection
Ends the selection area and stops drawing it.
src/render/mod.rs:1184
↓ 2 callers
Method
storage_loc
(&mut self, _ty: Type, _name: &str)
server/src/choice/rule.rs:301
↓ 2 callers
Method
storage_ty
(&mut self, _name: &str)
server/src/choice/rule.rs:311
↓ 2 callers
Function
tag_object_entity
( log: &Logger, assets: &assets::AssetManager, key: assets::ResourceKey<'_>, entities: &mut Contai
server/src/level/object.rs:426
↓ 2 callers
Function
take_screenshot
(log: &Logger, width: u32, height: u32)
src/main.rs:747
↓ 2 callers
Method
tick
(&mut self)
server/src/lib.rs:640
↓ 2 callers
Method
timestamp
(&self, name: &str)
server/src/steam.rs:96
↓ 2 callers
Method
ui_event
Calls the ui event on the active state
src/state.rs:327
↓ 2 callers
Method
update_level
Updates the internal state of the level for the renderer.
src/render/mod.rs:1116
↓ 2 callers
Method
update_positioned
(&mut self)
src/audio.rs:336
↓ 2 callers
Function
update_room_ui
(log: &Logger, assets: &AssetManager, instance: &mut GameInstance, ui: &ui::Node, room_id: Option<RoomId>)
src/instance/base/edit_room.rs:25
↓ 2 callers
Method
update_staff
(&mut self, instance: &mut GameInstance)
src/instance/base/staff.rs:501
↓ 2 callers
Function
update_window
(state: &mut GameState)
src/main.rs:276
↓ 2 callers
Function
upload_font_data
(texture: &gl::Texture, tex: CharData, atlas: i32, rect: atlas::Rect)
src/render/ui/mod.rs:261
↓ 2 callers
Method
use_program
(&self)
src/render/pipeline.rs:1143
↓ 2 callers
Method
uvcoords
(&'a self)
model/src/main.rs:236
↓ 2 callers
Method
verts
(&'a self)
model/src/main.rs:212
↓ 2 callers
Method
wait_take_image
(&self)
src/render/image.rs:245
↓ 2 callers
Method
y_range
(self)
util/src/location.rs:115
↓ 1 callers
Method
ack_entities
Updates the state with the ack (if usable)
server/src/entity/snapshot.rs:1074
↓ 1 callers
Method
active
Called when the state becomes active. May be called multiple times but will always have `inactive` called once between calls (excluding the first tim
src/state.rs:458
↓ 1 callers
Method
active_req
(&mut self, _req: &mut CaptureRequester, instance: &mut Option<GameInstance>, state: &mut crate::GameState)
src/state.rs:459
↓ 1 callers
Method
add_component
(&mut self, id: u32, val: T)
ecs/src/storage.rs:78
↓ 1 callers
Method
added
Called once when initially added. Called at most once.
src/state.rs:440
↓ 1 callers
Method
added_req
(&mut self, _req: &mut CaptureRequester, instance: &mut Option<GameInstance>, state: &mut crate::GameState)
src/state.rs:441
↓ 1 callers
Method
and_mask
(mut self, other: EntityMask)
ecs/src/lib.rs:912
↓ 1 callers
Method
and_not_mask
(&self, mut mask: EntityMask)
ecs/src/lib.rs:1177
↓ 1 callers
Method
animations
(&'a self)
model/src/main.rs:84
↓ 1 callers
Method
apply
Applies the components described by this creator.
server/src/entity/info.rs:277
↓ 1 callers
Method
as_lua_table
(&self, lua: &lua::Lua)
src/ui/mod.rs:1200
↓ 1 callers
Method
as_u32
(self)
server/src/saving/mod.rs:53
↓ 1 callers
Method
as_u8
(self)
server/src/entity/snapshot.rs:962
← previous
next →
401–500 of 1,740, ranked by callers