Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/almetica/almetica
/ functions
Functions
372 in github.com/almetica/almetica
⨍
Functions
372
◇
Types & classes
110
↓ 1 callers
Function
create_test_data
Creates some testdata in the same structure as the TERA datacenter files. Write down the size of the original data as u32. Then use zlib deflate to c
src/dataloader.rs:143
↓ 1 callers
Method
database_exists
(&self)
src/model/migrations.rs:132
↓ 1 callers
Function
delete_by_id
Deletes an account with the given id.
src/model/repository/account.rs:57
↓ 1 callers
Function
delete_by_name
Deletes an account with the given name.
src/model/repository/account.rs:66
↓ 1 callers
Method
deserialize
(deserializer: D)
src/model.rs:148
↓ 1 callers
Method
deserialize_str
(self, visitor: V)
src/protocol/serde/de.rs:117
↓ 1 callers
Method
execute_migration
(&mut self, migration_sql: &str)
src/model/migrations.rs:202
↓ 1 callers
Method
get_migrations
(&self)
src/model/migrations.rs:146
↓ 1 callers
Function
get_new_entity_with_connection_component
()
src/protocol.rs:401
↓ 1 callers
Function
get_opcode_tables
()
src/protocol.rs:384
↓ 1 callers
Function
handle_can_create_user
( connection_global_world_id: EntityId, account_id: i64, connections: &View<GlobalConnection>,
src/ecs/system/global/user_manager.rs:203
↓ 1 callers
Function
handle_change_user_lobby_slot_id
( packet: &CChangeUserLobbySlotId, account_id: i64, pool: &UniqueView<PgPool>, )
src/ecs/system/global/user_manager.rs:233
↓ 1 callers
Function
handle_check_user_name
( packet: &CCheckUserName, connection_global_world_id: EntityId, connections: &View<GlobalConnecti
src/ecs/system/global/user_manager.rs:376
↓ 1 callers
Method
handle_connection
Handles the writing / sending on the TCP stream.
src/protocol.rs:151
↓ 1 callers
Function
handle_connection_registration
( connection_channel: Sender<EcsMessage>, connections: &mut ViewMut<GlobalConnection>, entities: &
src/ecs/system/global/connection_manager.rs:139
↓ 1 callers
Function
handle_create_user
( packet: &CCreateUser, connection_global_world_id: EntityId, account_id: i64, connections: &V
src/ecs/system/global/user_manager.rs:276
↓ 1 callers
Function
handle_delete_user
( packet: &CDeleteUser, connection_global_world_id: EntityId, account_id: i64, connections: &V
src/ecs/system/global/user_manager.rs:316
↓ 1 callers
Function
handle_load_topo_fin
( connection_global_world_id: EntityId, connection_local_world_id: EntityId, connections: &mut Vie
src/ecs/system/local/user_gateway.rs:146
↓ 1 callers
Function
handle_local_world_loaded
TODO use a type alias for the EntityID to differentiate between "local world id" and "global world id"
src/ecs/system/global/local_world_manager.rs:213
↓ 1 callers
Method
handle_message
Handles the incoming messages from the global or local ECS.
src/protocol.rs:222
↓ 1 callers
Method
handle_packet
Decodes a packet from the given `Vec<u8>` and sends it to game server logic.
src/protocol.rs:303
↓ 1 callers
Function
handle_ping
Returns true if connection didn't return a ping in time.
src/ecs/system/global/connection_manager.rs:261
↓ 1 callers
Function
handle_pong
( connection_global_world_id: EntityId, mut connections: &mut ViewMut<GlobalConnection>, )
src/ecs/system/global/connection_manager.rs:286
↓ 1 callers
Function
handle_prepare_user_spawn
( user_initializer: &UserInitializer, connections: &mut ViewMut<LocalConnection>, user_spawns: &mu
src/ecs/system/local/user_gateway.rs:89
↓ 1 callers
Function
handle_request_check_version
( connection_global_world_id: EntityId, packet: &CCheckVersion, mut connections: &mut ViewMut<Glob
src/ecs/system/global/connection_manager.rs:168
↓ 1 callers
Function
handle_request_login_arbiter
( connection_global_world_id: EntityId, packet: &CLoginArbiter, accounts: &mut ViewMut<Account>,
src/ecs/system/global/connection_manager.rs:196
↓ 1 callers
Function
handle_select_user
( packet: &CSelectUser, connection_global_world_id: EntityId, account_id: i64, spawns: &mut Vi
src/ecs/system/global/user_spawner.rs:173
↓ 1 callers
Function
handle_set_visible_range
( connection_global_world_id: EntityId, packet: &CSetVisibleRange, mut settings: &mut ViewMut<Sett
src/ecs/system/global/settings_manager.rs:33
↓ 1 callers
Function
handle_user_despawn
( connection_local_world_id: EntityId, user_spawns: &mut ViewMut<LocalUserSpawn>, locations: &mut
src/ecs/system/local/user_gateway.rs:188
↓ 1 callers
Function
handle_user_despawn
( spawn: &GlobalUserSpawn, connection_global_world_id: EntityId, local_worlds: &mut ViewMut<LocalW
src/ecs/system/global/local_world_manager.rs:168
↓ 1 callers
Function
handle_user_despawned
(user_finalizer: &UserFinalizer, pool: &UniqueView<PgPool>)
src/ecs/system/global/user_spawner.rs:154
↓ 1 callers
Function
handle_user_list
( connection_global_world_id: EntityId, account_id: i64, connections: &View<GlobalConnection>,
src/ecs/system/global/user_manager.rs:149
↓ 1 callers
Function
handle_user_ready_to_connect
( connection_local_world_id: EntityId, user_spawns: &mut ViewMut<LocalUserSpawn>, )
src/ecs/system/local/user_gateway.rs:129
↓ 1 callers
Function
handle_user_requesting_spawn
( mut spawn: &mut GlobalUserSpawn, connection_global_world_id: EntityId, local_worlds: &mut ViewMu
src/ecs/system/global/local_world_manager.rs:97
↓ 1 callers
Function
handle_user_spawn_prepared
( connection_global_world_id: EntityId, connection_local_world_id: EntityId, spawns: &mut ViewMut<
src/ecs/system/global/user_spawner.rs:223
↓ 1 callers
Function
handle_user_spawned
( connection_global_world_id: EntityId, spawns: &mut ViewMut<GlobalUserSpawn>, )
src/ecs/system/global/user_spawner.rs:139
↓ 1 callers
Method
init_crypt_session
(&mut self, is_server: usize, mut payload: &[u8])
src/bin/almetica-parse-stream.rs:206
↓ 1 callers
Function
init_logging
(matches: &ArgMatches)
src/bin/almetica.rs:88
↓ 1 callers
Function
init_logging
()
src/bin/almetica-parse-stream.rs:40
↓ 1 callers
Method
is_applied
(&mut self, migration_file_name: &str)
src/model/migrations.rs:188
↓ 1 callers
Function
is_ticket_valid
Tests if the given ticket is valid. A ticket can only be used one time. Should be called in a transaction.
src/model/repository/loginticket.rs:26
↓ 1 callers
Function
is_user_name_taken
Checks if an user with the given name already exists.
src/model/repository/user.rs:136
↓ 1 callers
Function
is_valid_user_name
Only alphanumeric characters are currently allowed. The client in rather limited with it's font.
src/ecs/system/global/user_manager.rs:485
↓ 1 callers
Function
login
TODO write a test for the login() function Tries to login with the given credentials. Returns the login ticket if successful.
src/webserver.rs:100
↓ 1 callers
Method
pad_message
(&mut self)
src/crypt/sha1.rs:99
↓ 1 callers
Method
parse_packet
Parses a packet in the payload. Handles the crypt session initialization.
src/bin/almetica-parse-stream.rs:131
↓ 1 callers
Function
prepare_local_spawn
( spawn: &GlobalUserSpawn, connection_global_world_id: EntityId, connections: &View<GlobalConnecti
src/ecs/system/global/user_spawner.rs:102
↓ 1 callers
Method
pretty_data_print
(&self, data: Vec<u8>)
src/bin/almetica-parse-stream.rs:191
↓ 1 callers
Method
rad
FIXME: Use TAU once in stable
src/model.rs:114
↓ 1 callers
Function
read_datacenter_file
Read the encrypted data of a data center file and decrypt/decompress it.
src/dataloader.rs:16
↓ 1 callers
Function
reject_check_version
(connection_global_world_id: EntityId)
src/ecs/system/global/connection_manager.rs:421
↓ 1 callers
Function
reject_login_arbiter
TODO read PVP option out of configuration
src/ecs/system/global/connection_manager.rs:451
↓ 1 callers
Method
rollback
(self: Box<Self>)
src/model/migrations.rs:182
↓ 1 callers
Function
run_command
(matches: &ArgMatches)
src/bin/almetica.rs:115
↓ 1 callers
Method
save_applied_migration
(&mut self, migration_file_name: &str)
src/model/migrations.rs:208
↓ 1 callers
Method
send_packet
Send packet to client.
src/protocol.rs:273
↓ 1 callers
Function
setup
()
benches/crypt.rs:6
↓ 1 callers
Function
setup
()
src/ecs/system/common/cleaner.rs:44
↓ 1 callers
Function
setup_db
Creates a randomly named test database.
src/model.rs:499
↓ 1 callers
Function
setup_with_connection
( pool: PgPool, )
src/ecs/system/global/user_spawner.rs:560
↓ 1 callers
Function
setup_with_connection
()
src/ecs/system/global/settings_manager.rs:60
↓ 1 callers
Function
spawn_dummy_server
()
src/protocol.rs:422
↓ 1 callers
Function
start_global_world
Starts the global world on a new thread and returns a channel into the global world.
src/bin/almetica.rs:187
↓ 1 callers
Function
start_network_server
Starts the network server that handles all TCP game client connections.
src/bin/almetica.rs:211
↓ 1 callers
Function
start_server
(_matches: &ArgMatches, config: &Configuration)
src/bin/almetica.rs:130
↓ 1 callers
Function
start_web_server
Starts the web server handling all HTTP requests.
src/bin/almetica.rs:202
↓ 1 callers
Function
teardown_db
Deletes the randomly named test database.
src/model.rs:518
↓ 1 callers
Function
update
Updates the location of a user.
src/model/repository/user_location.rs:46
↓ 1 callers
Function
update_password
Updates the password of an account.
src/model/repository/account.rs:21
↓ 1 callers
Function
valid_login_response
(ticket: Vec<u8>)
src/webserver.rs:140
↓ 1 callers
Function
verify_hash
Verifies the given password hash, password and algorithm. Returns true if the password can produce the given hash.
src/crypt/password_hash.rs:33
Function
auth_endpoint
Handles the client authentication.
src/webserver.rs:64
Function
cleaner_system
The message cleaner cleans up all incoming messages amd other entities marked for deletion.
src/ecs/system/common/cleaner.rs:7
Function
connection_manager_system
Connection manager handles the connection components.
src/ecs/system/global/connection_manager.rs:22
Function
crypt_benchmark
Tests the crypto performance. Data in the TERA network procotol is at least 4 bytes in size (u16 length, u16 opcode).
benches/crypt.rs:16
Method
custom
(desc: T)
src/protocol/serde/error.rs:63
Method
default
()
src/config.rs:51
Method
default
()
src/model.rs:127
Method
default
()
src/crypt/sha1.rs:129
Method
deg
(&self)
src/model.rs:117
Method
deserialize_any
(self, _visitor: V)
src/protocol/serde/de.rs:61
Method
deserialize_bool
(self, visitor: V)
src/protocol/serde/de.rs:69
Method
deserialize_byte_buf
(self, visitor: V)
src/protocol/serde/de.rs:165
Method
deserialize_bytes
(self, _visitor: V)
src/protocol/serde/de.rs:157
Method
deserialize_char
(self, _visitor: V)
src/protocol/serde/de.rs:110
Method
deserialize_enum
( self, _enum: &'static str, _variants: &'static [&'static str], visitor: V,
src/protocol/serde/de.rs:362
Method
deserialize_i8
(self, visitor: V)
src/protocol/serde/de.rs:83
Method
deserialize_identifier
(self, _visitor: V)
src/protocol/serde/de.rs:389
Method
deserialize_ignored_any
(self, _visitor: V)
src/protocol/serde/de.rs:396
Method
deserialize_map
(self, _visitor: V)
src/protocol/serde/de.rs:343
Method
deserialize_newtype_struct
(self, _name: &str, visitor: V)
src/protocol/serde/de.rs:206
Method
deserialize_option
(self, _visitor: V)
src/protocol/serde/de.rs:184
Method
deserialize_seq
(self, visitor: V)
src/protocol/serde/de.rs:213
Method
deserialize_string
(self, visitor: V)
src/protocol/serde/de.rs:150
Method
deserialize_struct
( self, _name: &str, fields: &'static [&'static str], visitor: V, )
src/protocol/serde/de.rs:350
Method
deserialize_tuple_struct
( self, _name: &'static str, len: usize, visitor: V, )
src/protocol/serde/de.rs:331
Method
deserialize_u8
(self, visitor: V)
src/protocol/serde/de.rs:92
Method
deserialize_unit
(self, visitor: V)
src/protocol/serde/de.rs:192
Method
deserialize_unit_struct
(self, _name: &'static str, visitor: V)
src/protocol/serde/de.rs:199
Function
digest_to_hex
Helper function
src/crypt/sha1.rs:164
← previous
next →
101–200 of 372, ranked by callers