Skip to content
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

Server message to apply player's vetoes #201

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class MatchmakerQueue extends AbstractEntity<MatchmakerQueue> {
private String technicalName;
@ToString.Include
private String nameKey;
@ToString.Include
private Integer teamSize;

@Relationship("featuredMod")
private FeaturedMod featuredMod;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ data class NoticeInfo(
val text: String?,
) : ServerMessage

/**
* A message from the server (automated) to update vetoes of the user.
*/
data class VetoesChangedInfo(
val vetoesData: List <VetoData>
) : ServerMessage


/**
* The server assigns us a session id, onto which we will authorize.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ interface ClientMessage : LobbyProtocolMessage
JsonSubTypes.Type(value = SocialInfo::class, name = "social"),
JsonSubTypes.Type(value = LoginFailedResponse::class, name = "authentication_failed"),
JsonSubTypes.Type(value = NoticeInfo::class, name = "notice"),
JsonSubTypes.Type(value = VetoesChangedInfo::class, name = "vetoes_changed"),
JsonSubTypes.Type(value = IceServerListResponse::class, name = "ice_servers"),
JsonSubTypes.Type(value = AvatarListInfo::class, name = "avatar"),
JsonSubTypes.Type(value = PartyInfo::class, name = "update_party"),
Expand Down