add: half baked

This commit is contained in:
Charles
2025-03-21 20:49:49 -07:00
commit 54fc371f05
13 changed files with 1702 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
namespace mmo.beacon;
enum Verb:byte {
Join = 0,
Leave,
List
}
union Request {
JoinRequest,
LeaveRequest,
ListRequest
}
table Call {
request:Request;
}
table JoinRequest {
uid:string (required);
contact:string (required);
clock:long;
}
table LeaveRequest {
uid:string (required);
}
table ListRequest {}
union Response {
JoinResponse,
LeaveResponse,
ListResponse
}
table CallResp {
response:Response;
}
table JoinResponse {}
table LeaveResponse {}
table ListResponse {
entities:[Entity];
}
table Entity {
uid:string (required);
// vector clock representing the state of this thing
clock:long;
}
+6
View File
@@ -0,0 +1,6 @@
namespace mmo.util;
enum Error:short {
BadRequest = 0,
NotFound,
}