Skip to content

Commit

Permalink
Release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechdan committed Jan 1, 2024
2 parents ddf4ed3 + cc72720 commit 4a56bbf
Show file tree
Hide file tree
Showing 19 changed files with 456 additions and 190 deletions.
81 changes: 41 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.1.1"
version = "0.2.0"
description = "W2.Rust is a set of tools and GameServer made using the Rust language."
readme = "README.md"
repository = "https://github.com/Rechdan/W2.Rust"
Expand Down
1 change: 1 addition & 0 deletions apps/editors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ edition.workspace = true
eframe = "0.24.1"
egui = "0.24.1"
egui_extras = "0.24.2"
encoding_rs = "0.8.33"
fixedstr = { version = "0.5.4", features = ["serde"] }
once_cell = "1.19.0"
rfd = "0.12.1"
9 changes: 7 additions & 2 deletions apps/editors/src/consts.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
use std::mem::size_of;

use crate::structs::{ServerList, ServerName};
use crate::structs::{server_list::ServerList, server_name::ServerName, strdef::Strdef};

pub const LANGS_FOLDER: &str = "Lang";

pub const SERVER_LIST_FILE: &str = "serverlist.bin";
pub const SERVER_NAME_FILE: &str = "sn.bin";
pub const STRDEF_FILE: &str = "strdef.bin";

pub const SERVER_LIST_KEY_LEN: usize = 63;

pub const SERVER_LIST_KEY: [u8; SERVER_LIST_KEY_LEN] = [
0xc1, 0xb6, 0xc0, 0xcc, 0xc0, 0xd3, 0xc6, 0xd1, 0xc6, 0xae, 0xbe, 0xcf, 0xc8, 0xa3, 0xc8, 0xad,
0xc0, 0xdb, 0xbe, 0xf7, 0xc0, 0xbb, 0xc0, 0xa7, 0xc7, 0xd1, 0xbd, 0xba, 0xc5, 0xa9, 0xb8, 0xb3,
0xc6, 0xae, 0xc0, 0xd4, 0xb4, 0xcf, 0xb4, 0xd9, 0xb8, 0xb8, 0xc7, 0xd1, 0xb1, 0xdb, 0xb7, 0xce,
0xbe, 0xcf, 0xc8, 0xad, 0xc8, 0xad, 0xc7, 0xd2, 0xc1, 0xd9, 0xa4, 0xbb, 0xa4, 0xbb, 0x00,
];

pub const STRDEF_MESSAGES_LEN: usize = 2000;

pub const SERVER_LIST_SIZE: usize = size_of::<ServerList>();
pub const SERVER_NAME_SIZE: usize = size_of::<ServerName>();
pub const STRDEF_SIZE: usize = size_of::<Strdef>();
Loading

0 comments on commit 4a56bbf

Please sign in to comment.