-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor application and move all parts into separate creates
- Loading branch information
Showing
118 changed files
with
656 additions
and
654 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,2 @@ | ||
[package] | ||
name = "L2Shablya" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[[bin]] | ||
name = "login" | ||
path = "src/login.rs" | ||
|
||
[[bin]] | ||
name = "game" | ||
path = "src/game.rs" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[lints.rust] | ||
unsafe_code = "forbid" | ||
unused = { level = "allow", priority = -1 } | ||
|
||
[workspace] | ||
members = [".", "entities", "migration"] | ||
|
||
[profile.dev] | ||
debug = true | ||
|
||
|
||
[dependencies] | ||
migration = { path = "migration" } | ||
entities = { path = "entities" } | ||
encoding = "^0.2.33" | ||
rand = "^0.8.5" | ||
rand_core = "^0.6.4" | ||
anyhow = "^1.0.92" | ||
thiserror = "2.0.6" | ||
log = "^0.4.22" | ||
serde = { version = "^1.0.214", features = ["derive"] } | ||
num = "^0.4.3" | ||
num-traits = "^0.2.19" | ||
openssl = "^0.10.68" | ||
tokio = { version = "^1.41.0", features = ["full"] } | ||
sqlx = { version = "^0.8.2", features = [ | ||
"postgres", | ||
"sqlite", | ||
"runtime-tokio-rustls", | ||
"sqlx-macros", | ||
"chrono" | ||
] } | ||
futures = "^0.3.31" | ||
async-trait = "^0.1.83" | ||
argon2 = "^0.5.3" | ||
serde_yaml = "^0.9.34" | ||
strum = { version = "^0.26.3", features = ["derive"] } | ||
dotenvy = "^0.15.7" | ||
blowfish = "^0.9.1" | ||
num_enum = "^0.7.3" | ||
uuid = { version = "^1.11.0", features = ["v4"] } | ||
dashmap = "6.1.0" | ||
chrono = "0.4.38" | ||
pnet = "0.35.0" | ||
reqwest = { version = "0.12.9", features = ["blocking"] } | ||
tracing = "0.1.41" | ||
tracing-subscriber = "0.3.19" | ||
sea-orm = { version = "1.1.2" } | ||
members = ["entities", "game", "l2-core", "login", "migration"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
pub mod entities; | ||
use sea_orm::DatabaseConnection; | ||
|
||
pub mod entities; | ||
|
||
pub type DBPool = DatabaseConnection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[package] | ||
name = "game" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
[[bin]] | ||
name = "game" | ||
path = "src/main.rs" | ||
[dependencies] | ||
entities = { path = "../entities" } | ||
l2-core = { path = "../l2-core" } | ||
anyhow = "^1.0.92" | ||
num = "^0.4.3" | ||
num-traits = "^0.2.19" | ||
tokio = { version = "^1.41.0", features = ["full"] } | ||
async-trait = "^0.1.83" | ||
tracing = "0.1.41" | ||
tracing-subscriber = "0.3.19" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use l2_core::packets::{error::PacketRun, gs_2_ls::ChangePassword}; | ||
use crate::{ | ||
handlers::LoginHandler, | ||
}; | ||
use async_trait::async_trait; | ||
use crate::packets::HandleablePacket; | ||
|
||
#[async_trait] | ||
impl HandleablePacket for ChangePassword { | ||
type HandlerType = LoginHandler; | ||
async fn handle(&self, _: &mut Self::HandlerType) -> Result<(), PacketRun> { | ||
todo!() | ||
} | ||
} |
15 changes: 6 additions & 9 deletions
15
...er/packets/handleable/gs_auth_response.rs → ...rc/packets/handleable/gs_auth_response.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...erver/packets/handleable/gs_login_fail.rs → game/src/packets/handleable/gs_login_fail.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.