implement the activity system

This commit is contained in:
Akka
2022-06-25 11:27:45 +08:00
committed by Melledy
parent 1e948b7e79
commit 154224066b
38 changed files with 868 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "ActivityInfo.proto";
// CmdId: 2125
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message ActivityInfoNotify {
ActivityInfo activity_info = 11;
}

View File

@@ -0,0 +1,11 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message ActivityScheduleInfo {
uint32 activity_id = 1;
bool is_open = 2;
uint32 schedule_id = 3;
uint32 begin_time = 4;
uint32 end_time = 5;
}

View File

@@ -0,0 +1,14 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "ActivityScheduleInfo.proto";
// CmdId: 2033
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message ActivityScheduleInfoNotify {
repeated ActivityScheduleInfo activity_schedule_list = 8;
uint32 remain_fly_sea_lamp_num = 12;
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 2090
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message ActivityTakeWatcherRewardReq {
uint32 activity_id = 11;
uint32 watcher_id = 7;
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 2025
// EnetChannelId: 0
// EnetIsReliable: true
message ActivityTakeWatcherRewardRsp {
int32 retcode = 10;
uint32 activity_id = 8;
uint32 watcher_id = 7;
}

View File

@@ -0,0 +1,14 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "ActivityWatcherInfo.proto";
// CmdId: 2172
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message ActivityUpdateWatcherNotify {
uint32 activity_id = 10;
ActivityWatcherInfo watcher_info = 7;
}

View File

@@ -0,0 +1,11 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 2067
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message GetActivityInfoReq {
repeated uint32 activity_id_list = 14;
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
//import "MusicBriefInfo.proto";
//import "MusicGameRecord.proto";
//
//message MusicGameActivityDetailInfo {
// map<uint32, MusicGameRecord> music_game_record_map = 1;
// repeated MusicBriefInfo LGNAAPPDLGG = 2;
// repeated MusicBriefInfo HHHIDFPPPFK = 3;
//}

View File

@@ -0,0 +1,28 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 8745
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message MusicGameSettleReq {
uint32 music_basic_id = 14;
uint32 score = 2;
uint32 combo = 10;
uint32 correct_hit = 8;
uint64 KKONDPNGBJD = 11;
bool KJNDJLBOJLM = 4;
uint32 FBELCAFFGIJ = 3;
uint32 OOFMAKIDFOL = 15;
uint32 HJPDEIMECHB = 1;
repeated uint32 MNCMGANHCFI = 13;
uint32 max_combo = 9;
uint32 JJADNMELLAH = 1975;
repeated uint32 EIAGEEFABPO = 1171;
uint32 CPIFLFBHNJP = 1104;
bool DJCKOHKLIOB = 998;
uint32 GGHBOMGJGFP = 268;
bool PFHCIHKCJFJ = 238;
float speed = 887;
}

View File

@@ -0,0 +1,14 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 8288
// EnetChannelId: 0
// EnetIsReliable: true
message MusicGameSettleRsp {
int32 retcode = 7;
uint32 music_basic_id = 9;
bool is_unlock_next_level = 1;
bool is_new_record = 3;
uint64 KKONDPNGBJD = 11;
}

View File

@@ -0,0 +1,13 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 8927
// EnetChannelId: 0
// EnetIsReliable: true
// IsAllowClient: true
message MusicGameStartReq {
uint32 music_basic_id = 10;
uint64 KKONDPNGBJD = 8;
bool KJNDJLBOJLM = 5;
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 8101
// EnetChannelId: 0
// EnetIsReliable: true
message MusicGameStartRsp {
int32 retcode = 5;
uint32 music_basic_id = 14;
uint64 KKONDPNGBJD = 12;
}