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;
|
|
|
|
int32 character_id = 2;
|
|
|
|
}
|
|
|
|
|
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-10 14:04:07 +00:00
|
|
|
CharacterIdentifier id = 1;
|
|
|
|
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 {
|
|
|
|
string character_username = 1;
|
|
|
|
int32 character_id = 2;
|
|
|
|
string attribute_name = 3;
|
|
|
|
int32 attribute_value = 4;
|
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 {
|
|
|
|
string character_username = 1;
|
|
|
|
int32 character_id = 2;
|
|
|
|
CofdSheet.Skill skill = 3;
|
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 {
|
|
|
|
string character_username = 1;
|
|
|
|
int32 character_id = 2;
|
|
|
|
string skill_name = 3;
|
|
|
|
int32 skill_value = 4;
|
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;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|