syntax = "proto3"; import "action.proto"; import "map.proto"; import "user.proto"; option go_package = "git.reya.zone/reya/hexmap/server/websocket"; message ServerState { HexMap map = 1; UserState user = 2; } message ServerHello { uint32 version = 1; ServerState state = 2; } message ServerRefresh { ServerState state = 1; } message ServerOK { repeated uint32 ids = 1; } message ServerFailed { repeated uint32 ids = 1; string error = 2; } message ServerAction { oneof action { CellSetColor cell_set_color = 1; UserSetActiveColor user_set_active_color = 2; } } message ServerAct { repeated ServerAction actions = 1; }