Compare commits
3 Commits
fbeaf5e93e
...
6ac3ad50dc
Author | SHA1 | Date | |
---|---|---|---|
6ac3ad50dc | |||
fc62be05e2 | |||
5bf9ef59bf |
@ -8,7 +8,6 @@ edition = "2021"
|
|||||||
members = [
|
members = [
|
||||||
"entity",
|
"entity",
|
||||||
"maps",
|
"maps",
|
||||||
"common",
|
|
||||||
"networking",
|
"networking",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -16,7 +15,6 @@ members = [
|
|||||||
libpso = { git = "http://git.sharnoth.com/jake/libpso" }
|
libpso = { git = "http://git.sharnoth.com/jake/libpso" }
|
||||||
entity = { path = "./entity" }
|
entity = { path = "./entity" }
|
||||||
maps = { path = "./maps" }
|
maps = { path = "./maps" }
|
||||||
common = { path = "./common" }
|
|
||||||
networking = { path = "./networking" }
|
networking = { path = "./networking" }
|
||||||
async-std = { version = "1.9.0", features = ["unstable", "attributes"] }
|
async-std = { version = "1.9.0", features = ["unstable", "attributes"] }
|
||||||
futures = "0.3.5"
|
futures = "0.3.5"
|
||||||
@ -50,7 +48,6 @@ anyhow = { version = "1.0.68", features = ["backtrace"] }
|
|||||||
libpso = { git = "http://git.sharnoth.com/jake/libpso" }
|
libpso = { git = "http://git.sharnoth.com/jake/libpso" }
|
||||||
entity = { path = "./entity" }
|
entity = { path = "./entity" }
|
||||||
maps = { path = "./maps" }
|
maps = { path = "./maps" }
|
||||||
common = { path = "./common" }
|
|
||||||
networking = { path = "./networking" }
|
networking = { path = "./networking" }
|
||||||
async-std = { version = "1.9.0", features = ["unstable", "attributes"] }
|
async-std = { version = "1.9.0", features = ["unstable", "attributes"] }
|
||||||
futures = "0.3.5"
|
futures = "0.3.5"
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
[package]
|
|
||||||
name = "common"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
derive_more = { workspace = true }
|
|
@ -21,37 +21,3 @@ futures = { workspace = true }
|
|||||||
strum = { workspace = true }
|
strum = { workspace = true }
|
||||||
strum_macros = { workspace = true }
|
strum_macros = { workspace = true }
|
||||||
toml = { workspace = true }
|
toml = { workspace = true }
|
||||||
|
|
||||||
|
|
||||||
#libpso = { git = "http://git.sharnoth.com/jake/libpso" }
|
|
||||||
#async-std = { version = "1.9.0", features = ["unstable", "attributes"] }
|
|
||||||
#futures = "0.3.5"
|
|
||||||
#rand = "0.7.3"
|
|
||||||
#rand_chacha = "0.2.2"
|
|
||||||
#crc = "^1.0.0"
|
|
||||||
#bcrypt = "0.10"
|
|
||||||
#chrono = "0.4.11"
|
|
||||||
#serde = "*"
|
|
||||||
#serde_json = "*"
|
|
||||||
#ron = "*"
|
|
||||||
#toml = "*"
|
|
||||||
#log = "*"
|
|
||||||
#fern = { version = "0.5", features = ["colored"] }
|
|
||||||
#byteorder = "1"
|
|
||||||
#enum-utils = "0.1.2"
|
|
||||||
#derive_more = { version = "0.99.3", features = ["display"]}
|
|
||||||
#thiserror = "1.0.37"
|
|
||||||
#ages-prs = "0.1"
|
|
||||||
#async-trait = "0.1.51"
|
|
||||||
#async-recursion= "1.0.0"
|
|
||||||
#lazy_static = "1.4.0"
|
|
||||||
#barrel = { version = "0.6.5", features = ["pg"] }
|
|
||||||
#refinery = { version = "0.5.0", features = ["postgres"] }
|
|
||||||
#sqlx = { version = "0.6.2", features = ["runtime-async-std-native-tls", "postgres", "json", "chrono"] }
|
|
||||||
#strum = "0.19.5"
|
|
||||||
#strum_macros = "0.19"
|
|
||||||
#anyhow = { version = "1.0.68", features = ["backtrace"] }
|
|
||||||
|
|
||||||
#[lib]
|
|
||||||
#name = "entity"
|
|
||||||
#path = "lib.rs"
|
|
@ -4,7 +4,6 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
common = { workspace = true }
|
|
||||||
byteorder = { workspace = true }
|
byteorder = { workspace = true }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
|
@ -336,8 +336,8 @@ impl std::cmp::Ord for BankItemDetail {
|
|||||||
self_bytes.copy_from_slice(&self.as_client_bytes()[0..4]);
|
self_bytes.copy_from_slice(&self.as_client_bytes()[0..4]);
|
||||||
other_bytes.copy_from_slice(&other.as_client_bytes()[0..4]);
|
other_bytes.copy_from_slice(&other.as_client_bytes()[0..4]);
|
||||||
|
|
||||||
let self_value = u32::from_le_bytes(self_bytes);
|
let self_value = u32::from_be_bytes(self_bytes);
|
||||||
let other_value = u32::from_le_bytes(other_bytes);
|
let other_value = u32::from_be_bytes(other_bytes);
|
||||||
|
|
||||||
self_value.cmp(&other_value)
|
self_value.cmp(&other_value)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user