2020-12-27 21:03:10 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
import "cofd.proto";
|
|
|
|
|
|
|
|
package models.proto.cofd.api;
|
|
|
|
|
2021-01-10 14:04:07 +00:00
|
|
|
message CharacterIdentifier {
|
|
|
|
string owner = 1;
|
2021-01-12 20:44:26 +00:00
|
|
|
int32 id = 2;
|
2021-01-10 14:04:07 +00:00
|
|
|
}
|
|
|
|
|
2020-12-27 21:03:10 +00:00
|
|
|
//Update basic information about a Chronicles of Darkness (or
|
|
|
|
//derivative system) character sheet. This is a straight overwrite of
|
|
|
|
//all basic information on the sheet.
|
2021-01-09 20:02:24 +00:00
|
|
|
message UpdateBasicInfoRequest {
|
2021-01-12 20:44:26 +00:00
|
|
|
CharacterIdentifier character = 1;
|
2021-01-10 14:04:07 +00:00
|
|
|
reserved 2;
|
|
|
|
// string owner = 1;
|
|
|
|
// int32 character_id = 2;
|
2021-01-10 13:56:44 +00:00
|
|
|
|
|
|
|
string name = 3;
|
|
|
|
string gender = 4;
|
|
|
|
string concept = 5;
|
|
|
|
string chronicle = 6;
|
|
|
|
int32 age = 7;
|
2020-12-27 21:03:10 +00:00
|
|
|
}
|
|
|
|
|
2021-01-05 21:19:47 +00:00
|
|
|
//Generic "did something succeed or not" response.
|
|
|
|
message ApiResult {
|
|
|
|
bool success = 1;
|
|
|
|
string error = 2;
|
|
|
|
}
|
|
|
|
|
2021-01-02 14:51:24 +00:00
|
|
|
//Update an attribute's dot amount. TODO rename to AttributesUpdate.
|
2021-01-02 22:11:30 +00:00
|
|
|
message UpdateAttributeRequest {
|
2021-01-12 22:01:17 +00:00
|
|
|
CharacterIdentifier character = 1;
|
|
|
|
string attribute_name = 2;
|
|
|
|
int32 attribute_value = 3;
|
2020-12-27 21:03:10 +00:00
|
|
|
}
|
|
|
|
|
2021-01-02 14:51:24 +00:00
|
|
|
//Full update of a single skill
|
2021-01-09 20:02:24 +00:00
|
|
|
message UpdateSkillRequest {
|
2021-01-12 22:01:17 +00:00
|
|
|
CharacterIdentifier character = 1;
|
|
|
|
CofdSheet.Skill skill = 2;
|
2021-01-01 00:40:48 +00:00
|
|
|
}
|
|
|
|
|
2021-01-02 14:51:24 +00:00
|
|
|
//Partial update of a single skill dot amount.
|
2021-01-02 22:03:10 +00:00
|
|
|
message UpdateSkillValueRequest {
|
2021-01-12 22:01:17 +00:00
|
|
|
CharacterIdentifier character = 1;
|
|
|
|
string skill_name = 2;
|
|
|
|
int32 skill_value = 3;
|
2021-01-02 14:51:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Partial update of only a skill's specializations. The
|
|
|
|
//specializations will be overwritten with the new values.
|
2021-01-09 20:02:24 +00:00
|
|
|
message UpdateSkillSpecializationsRequest {
|
2021-01-02 14:51:24 +00:00
|
|
|
string name = 1;
|
|
|
|
repeated string specializations = 2;
|
|
|
|
}
|
|
|
|
|
2021-01-17 13:09:17 +00:00
|
|
|
//Update all merits on the character sheet by overwriting them.
|
|
|
|
//Primarily for the web UI.
|
|
|
|
message UpdateMeritsRequest {
|
|
|
|
CharacterIdentifier character = 1;
|
|
|
|
repeated CofdSheet.Merit merits = 2;
|
|
|
|
}
|
|
|
|
|
2021-01-24 14:26:07 +00:00
|
|
|
//Update all items on the character sheet by overwriting them.
|
|
|
|
//Primarily for the web UI.
|
|
|
|
message UpdateItemsRequest {
|
|
|
|
CharacterIdentifier character = 1;
|
|
|
|
repeated CofdSheet.Item items = 2;
|
|
|
|
}
|
|
|
|
|
2020-12-27 21:03:10 +00:00
|
|
|
//Add a Condition to a Chronicles of Darkness character sheet.
|
2021-01-09 20:02:24 +00:00
|
|
|
message AddConditionRequest {
|
|
|
|
string character_username = 1;
|
|
|
|
int32 character_id = 2;
|
|
|
|
string condition_name = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
//Remove a Condition from a Chronicles of Darkness character sheet.
|
|
|
|
message RemoveConditionRequest {
|
|
|
|
string character_username = 1;
|
|
|
|
int32 character_id = 2;
|
|
|
|
string condition_name = 3;
|
2020-12-27 21:03:10 +00:00
|
|
|
}
|