-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add punishment count to adminuserpopup
- Loading branch information
1 parent
9d58bfa
commit 99667e7
Showing
32 changed files
with
98 additions
and
107 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,35 @@ | ||
pub use crate::data::v13::packets::*; | ||
pub mod client; | ||
pub mod server; | ||
|
||
pub use client::*; | ||
pub use server::*; | ||
|
||
use crate::data::*; | ||
|
||
pub trait Packet: PacketMetadata {} | ||
|
||
// god i hate this | ||
pub trait PacketMetadata { | ||
const PACKET_ID: u16; | ||
const ENCRYPTED: bool; | ||
const SHOULD_USE_TCP: bool; | ||
const NAME: &'static str; | ||
} | ||
|
||
#[derive(Encodable, Decodable, StaticSize)] | ||
pub struct PacketHeader { | ||
pub packet_id: u16, | ||
pub encrypted: bool, | ||
} | ||
|
||
impl PacketHeader { | ||
#[inline] | ||
pub const fn from_packet<P: PacketMetadata>() -> Self { | ||
Self { | ||
packet_id: P::PACKET_ID, | ||
encrypted: P::ENCRYPTED, | ||
} | ||
} | ||
|
||
pub const SIZE: usize = Self::ENCODED_SIZE; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,27 @@ | ||
pub use crate::data::v13::types::*; | ||
pub mod audio_frame; | ||
pub mod cocos; | ||
pub mod crypto; | ||
pub mod game; | ||
pub mod gd; | ||
pub mod misc; | ||
pub mod room; | ||
pub mod user; | ||
|
||
use std::sync::atomic::AtomicI64; | ||
|
||
pub use audio_frame::*; | ||
pub use cocos::*; | ||
pub use crypto::*; | ||
pub use esp::types::*; | ||
pub use game::*; | ||
pub use gd::*; | ||
pub use misc::*; | ||
pub use room::*; | ||
pub use user::*; | ||
pub type LevelId = i64; | ||
pub type AtomicLevelId = AtomicI64; | ||
|
||
pub const fn is_editorcollab_level(id: LevelId) -> bool { | ||
// if changing back to i32 for whatever reason, remove this condition | ||
id > (2 as LevelId).pow(32) | ||
} |
File renamed without changes.
File renamed without changes.
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