-
-
Notifications
You must be signed in to change notification settings - Fork 150
Abstract scoreboard display position #286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abstract scoreboard display position #286
Conversation
I'd recommend checking out the game's source and matching the structure there (within reason). My goal is to make |
pub score_name: &'a str, | ||
} | ||
|
||
#[derive(Copy, Clone, PartialEq, Debug)] | ||
pub enum Position { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this name is going to collide with the Position
component in #266
List, | ||
Sidebar, | ||
BelowName, | ||
Team(u8), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to not leave this as a byte if there is a better abstraction. There should also be a short doc comment to explain it.
….com/AviiNL/valence into abstract-scoreboard-display-position
Description
The scoreboard display packet has a position field that can contain one of the following:
I'm not really sure how team specific sidebars are supposed to work, so left that as a byte, maybe that can have some more abstraction?
Test Plan
Playground