添加竞赛proto定义0.1版

This commit is contained in:
thesai 2024-02-02 15:30:26 +08:00
parent a26a896bc9
commit 34d0e6d71b
2 changed files with 42 additions and 0 deletions

13
src/scoring_rule.proto Normal file
View File

@ -0,0 +1,13 @@
syntax = "proto3";
package task;
message Rule {
repeated Unit units = 1;
}
//
message Unit {
string text = 1; //
uint32 sceneStepId = 2; //ID
uint32 score = 3; //
}

29
src/task_setting.proto Normal file
View File

@ -0,0 +1,29 @@
syntax = "proto3";
package task;
message TaskSetting {
// repeated RandomItem randoms = 1;
repeated TimeItem timeItems = 1;
repeated GroupItem groupItems = 2;
}
//
message RandomItem {
string name = 1; //
repeated uint64 taskIds = 2; //
uint32 number = 3; //
}
//
message TimeItem {
repeated uint64 taskIds = 1; //
repeated RandomItem randomItems = 2; //
uint32 time = 3; //
}
//
message GroupItem {
repeated uint64 taskIds = 1; //
string name = 2; //
}