MCPcopy Create free account

hub / github.com/almetica/almetica / functions

Functions372 in github.com/almetica/almetica

↓ 1 callersFunctioncreate_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 callersMethoddatabase_exists
(&self)
src/model/migrations.rs:132
↓ 1 callersFunctiondelete_by_id
Deletes an account with the given id.
src/model/repository/account.rs:57
↓ 1 callersFunctiondelete_by_name
Deletes an account with the given name.
src/model/repository/account.rs:66
↓ 1 callersMethoddeserialize
(deserializer: D)
src/model.rs:148
↓ 1 callersMethoddeserialize_str
(self, visitor: V)
src/protocol/serde/de.rs:117
↓ 1 callersMethodexecute_migration
(&mut self, migration_sql: &str)
src/model/migrations.rs:202
↓ 1 callersMethodget_migrations
(&self)
src/model/migrations.rs:146
↓ 1 callersFunctionget_new_entity_with_connection_component
()
src/protocol.rs:401
↓ 1 callersFunctionget_opcode_tables
()
src/protocol.rs:384
↓ 1 callersFunctionhandle_can_create_user
( connection_global_world_id: EntityId, account_id: i64, connections: &View<GlobalConnection>,
src/ecs/system/global/user_manager.rs:203
↓ 1 callersFunctionhandle_change_user_lobby_slot_id
( packet: &CChangeUserLobbySlotId, account_id: i64, pool: &UniqueView<PgPool>, )
src/ecs/system/global/user_manager.rs:233
↓ 1 callersFunctionhandle_check_user_name
( packet: &CCheckUserName, connection_global_world_id: EntityId, connections: &View<GlobalConnecti
src/ecs/system/global/user_manager.rs:376
↓ 1 callersMethodhandle_connection
Handles the writing / sending on the TCP stream.
src/protocol.rs:151
↓ 1 callersFunctionhandle_connection_registration
( connection_channel: Sender<EcsMessage>, connections: &mut ViewMut<GlobalConnection>, entities: &
src/ecs/system/global/connection_manager.rs:139
↓ 1 callersFunctionhandle_create_user
( packet: &CCreateUser, connection_global_world_id: EntityId, account_id: i64, connections: &V
src/ecs/system/global/user_manager.rs:276
↓ 1 callersFunctionhandle_delete_user
( packet: &CDeleteUser, connection_global_world_id: EntityId, account_id: i64, connections: &V
src/ecs/system/global/user_manager.rs:316
↓ 1 callersFunctionhandle_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 callersFunctionhandle_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 callersMethodhandle_message
Handles the incoming messages from the global or local ECS.
src/protocol.rs:222
↓ 1 callersMethodhandle_packet
Decodes a packet from the given `Vec<u8>` and sends it to game server logic.
src/protocol.rs:303
↓ 1 callersFunctionhandle_ping
Returns true if connection didn't return a ping in time.
src/ecs/system/global/connection_manager.rs:261
↓ 1 callersFunctionhandle_pong
( connection_global_world_id: EntityId, mut connections: &mut ViewMut<GlobalConnection>, )
src/ecs/system/global/connection_manager.rs:286
↓ 1 callersFunctionhandle_prepare_user_spawn
( user_initializer: &UserInitializer, connections: &mut ViewMut<LocalConnection>, user_spawns: &mu
src/ecs/system/local/user_gateway.rs:89
↓ 1 callersFunctionhandle_request_check_version
( connection_global_world_id: EntityId, packet: &CCheckVersion, mut connections: &mut ViewMut<Glob
src/ecs/system/global/connection_manager.rs:168
↓ 1 callersFunctionhandle_request_login_arbiter
( connection_global_world_id: EntityId, packet: &CLoginArbiter, accounts: &mut ViewMut<Account>,
src/ecs/system/global/connection_manager.rs:196
↓ 1 callersFunctionhandle_select_user
( packet: &CSelectUser, connection_global_world_id: EntityId, account_id: i64, spawns: &mut Vi
src/ecs/system/global/user_spawner.rs:173
↓ 1 callersFunctionhandle_set_visible_range
( connection_global_world_id: EntityId, packet: &CSetVisibleRange, mut settings: &mut ViewMut<Sett
src/ecs/system/global/settings_manager.rs:33
↓ 1 callersFunctionhandle_user_despawn
( connection_local_world_id: EntityId, user_spawns: &mut ViewMut<LocalUserSpawn>, locations: &mut
src/ecs/system/local/user_gateway.rs:188
↓ 1 callersFunctionhandle_user_despawn
( spawn: &GlobalUserSpawn, connection_global_world_id: EntityId, local_worlds: &mut ViewMut<LocalW
src/ecs/system/global/local_world_manager.rs:168
↓ 1 callersFunctionhandle_user_despawned
(user_finalizer: &UserFinalizer, pool: &UniqueView<PgPool>)
src/ecs/system/global/user_spawner.rs:154
↓ 1 callersFunctionhandle_user_list
( connection_global_world_id: EntityId, account_id: i64, connections: &View<GlobalConnection>,
src/ecs/system/global/user_manager.rs:149
↓ 1 callersFunctionhandle_user_ready_to_connect
( connection_local_world_id: EntityId, user_spawns: &mut ViewMut<LocalUserSpawn>, )
src/ecs/system/local/user_gateway.rs:129
↓ 1 callersFunctionhandle_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 callersFunctionhandle_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 callersFunctionhandle_user_spawned
( connection_global_world_id: EntityId, spawns: &mut ViewMut<GlobalUserSpawn>, )
src/ecs/system/global/user_spawner.rs:139
↓ 1 callersMethodinit_crypt_session
(&mut self, is_server: usize, mut payload: &[u8])
src/bin/almetica-parse-stream.rs:206
↓ 1 callersFunctioninit_logging
(matches: &ArgMatches)
src/bin/almetica.rs:88
↓ 1 callersFunctioninit_logging
()
src/bin/almetica-parse-stream.rs:40
↓ 1 callersMethodis_applied
(&mut self, migration_file_name: &str)
src/model/migrations.rs:188
↓ 1 callersFunctionis_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 callersFunctionis_user_name_taken
Checks if an user with the given name already exists.
src/model/repository/user.rs:136
↓ 1 callersFunctionis_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 callersFunctionlogin
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 callersMethodpad_message
(&mut self)
src/crypt/sha1.rs:99
↓ 1 callersMethodparse_packet
Parses a packet in the payload. Handles the crypt session initialization.
src/bin/almetica-parse-stream.rs:131
↓ 1 callersFunctionprepare_local_spawn
( spawn: &GlobalUserSpawn, connection_global_world_id: EntityId, connections: &View<GlobalConnecti
src/ecs/system/global/user_spawner.rs:102
↓ 1 callersMethodpretty_data_print
(&self, data: Vec<u8>)
src/bin/almetica-parse-stream.rs:191
↓ 1 callersMethodrad
FIXME: Use TAU once in stable
src/model.rs:114
↓ 1 callersFunctionread_datacenter_file
Read the encrypted data of a data center file and decrypt/decompress it.
src/dataloader.rs:16
↓ 1 callersFunctionreject_check_version
(connection_global_world_id: EntityId)
src/ecs/system/global/connection_manager.rs:421
↓ 1 callersFunctionreject_login_arbiter
TODO read PVP option out of configuration
src/ecs/system/global/connection_manager.rs:451
↓ 1 callersMethodrollback
(self: Box<Self>)
src/model/migrations.rs:182
↓ 1 callersFunctionrun_command
(matches: &ArgMatches)
src/bin/almetica.rs:115
↓ 1 callersMethodsave_applied_migration
(&mut self, migration_file_name: &str)
src/model/migrations.rs:208
↓ 1 callersMethodsend_packet
Send packet to client.
src/protocol.rs:273
↓ 1 callersFunctionsetup
()
benches/crypt.rs:6
↓ 1 callersFunctionsetup
()
src/ecs/system/common/cleaner.rs:44
↓ 1 callersFunctionsetup_db
Creates a randomly named test database.
src/model.rs:499
↓ 1 callersFunctionsetup_with_connection
( pool: PgPool, )
src/ecs/system/global/user_spawner.rs:560
↓ 1 callersFunctionsetup_with_connection
()
src/ecs/system/global/settings_manager.rs:60
↓ 1 callersFunctionspawn_dummy_server
()
src/protocol.rs:422
↓ 1 callersFunctionstart_global_world
Starts the global world on a new thread and returns a channel into the global world.
src/bin/almetica.rs:187
↓ 1 callersFunctionstart_network_server
Starts the network server that handles all TCP game client connections.
src/bin/almetica.rs:211
↓ 1 callersFunctionstart_server
(_matches: &ArgMatches, config: &Configuration)
src/bin/almetica.rs:130
↓ 1 callersFunctionstart_web_server
Starts the web server handling all HTTP requests.
src/bin/almetica.rs:202
↓ 1 callersFunctionteardown_db
Deletes the randomly named test database.
src/model.rs:518
↓ 1 callersFunctionupdate
Updates the location of a user.
src/model/repository/user_location.rs:46
↓ 1 callersFunctionupdate_password
Updates the password of an account.
src/model/repository/account.rs:21
↓ 1 callersFunctionvalid_login_response
(ticket: Vec<u8>)
src/webserver.rs:140
↓ 1 callersFunctionverify_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
Functionauth_endpoint
Handles the client authentication.
src/webserver.rs:64
Functioncleaner_system
The message cleaner cleans up all incoming messages amd other entities marked for deletion.
src/ecs/system/common/cleaner.rs:7
Functionconnection_manager_system
Connection manager handles the connection components.
src/ecs/system/global/connection_manager.rs:22
Functioncrypt_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
Methodcustom
(desc: T)
src/protocol/serde/error.rs:63
Methoddefault
()
src/config.rs:51
Methoddefault
()
src/model.rs:127
Methoddefault
()
src/crypt/sha1.rs:129
Methoddeg
(&self)
src/model.rs:117
Methoddeserialize_any
(self, _visitor: V)
src/protocol/serde/de.rs:61
Methoddeserialize_bool
(self, visitor: V)
src/protocol/serde/de.rs:69
Methoddeserialize_byte_buf
(self, visitor: V)
src/protocol/serde/de.rs:165
Methoddeserialize_bytes
(self, _visitor: V)
src/protocol/serde/de.rs:157
Methoddeserialize_char
(self, _visitor: V)
src/protocol/serde/de.rs:110
Methoddeserialize_enum
( self, _enum: &'static str, _variants: &'static [&'static str], visitor: V,
src/protocol/serde/de.rs:362
Methoddeserialize_i8
(self, visitor: V)
src/protocol/serde/de.rs:83
Methoddeserialize_identifier
(self, _visitor: V)
src/protocol/serde/de.rs:389
Methoddeserialize_ignored_any
(self, _visitor: V)
src/protocol/serde/de.rs:396
Methoddeserialize_map
(self, _visitor: V)
src/protocol/serde/de.rs:343
Methoddeserialize_newtype_struct
(self, _name: &str, visitor: V)
src/protocol/serde/de.rs:206
Methoddeserialize_option
(self, _visitor: V)
src/protocol/serde/de.rs:184
Methoddeserialize_seq
(self, visitor: V)
src/protocol/serde/de.rs:213
Methoddeserialize_string
(self, visitor: V)
src/protocol/serde/de.rs:150
Methoddeserialize_struct
( self, _name: &str, fields: &'static [&'static str], visitor: V, )
src/protocol/serde/de.rs:350
Methoddeserialize_tuple_struct
( self, _name: &'static str, len: usize, visitor: V, )
src/protocol/serde/de.rs:331
Methoddeserialize_u8
(self, visitor: V)
src/protocol/serde/de.rs:92
Methoddeserialize_unit
(self, visitor: V)
src/protocol/serde/de.rs:192
Methoddeserialize_unit_struct
(self, _name: &'static str, visitor: V)
src/protocol/serde/de.rs:199
Functiondigest_to_hex
Helper function
src/crypt/sha1.rs:164
← previousnext →101–200 of 372, ranked by callers