mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-20 02:45:52 +01:00
Implement server announcement (#1420)
* implement server announcement * Update src/main/java/emu/grasscutter/command/commands/AnnounceCommand.java Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com> * Added arg numbers check Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
This commit is contained in:
15
proto/AnnounceData.proto
Normal file
15
proto/AnnounceData.proto
Normal file
@@ -0,0 +1,15 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AnnounceData {
|
||||
uint32 config_id = 1;
|
||||
uint32 begin_time = 2;
|
||||
uint32 end_time = 3;
|
||||
string center_system_text = 4;
|
||||
string count_down_text = 5;
|
||||
string dungeon_confirm_text = 6;
|
||||
uint32 center_system_frequency = 7;
|
||||
uint32 count_down_frequency = 8;
|
||||
bool is_center_system_last_5_every_minutes = 9;
|
||||
}
|
||||
12
proto/ServerAnnounceNotify.proto
Normal file
12
proto/ServerAnnounceNotify.proto
Normal file
@@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AnnounceData.proto";
|
||||
|
||||
// CmdId: 2029
|
||||
// EnetChannelId: 0
|
||||
// EnetIsReliable: true
|
||||
message ServerAnnounceNotify {
|
||||
repeated AnnounceData announce_data_list = 8;
|
||||
}
|
||||
10
proto/ServerAnnounceRevokeNotify.proto
Normal file
10
proto/ServerAnnounceRevokeNotify.proto
Normal file
@@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
// CmdId: 2141
|
||||
// EnetChannelId: 0
|
||||
// EnetIsReliable: true
|
||||
message ServerAnnounceRevokeNotify {
|
||||
repeated uint32 config_id_list = 15;
|
||||
}
|
||||
Reference in New Issue
Block a user