{"action":"created","comment":{"url":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/comments/158265382","pull_request_review_id":85047490,"id":158265382,"diff_hunk":"@@ -0,0 +1,285 @@\n+/* Copyright (C) 2017 Roman Koshelev */\r\n+#pragma once\r\n+#include <type_traits>\r\n+#include <utility>\r\n+#include \"../game-mechanics/game.h\"\r\n+\r\n+struct Start_room\r\n+{\r\n+\tStart_room() = default;\r\n+\tStart_room(const uint32_t count_players, const char* room_name)\r\n+\t\t: count_players_(count_players)\r\n+\t{\r\n+\t\troom_name_[0] = '\\0';\r\n+\t\tstrcat(room_name_, room_name);\r\n+\t}\r\n+\tuint32_t count_players_;\r\n+\tchar room_name_[32];\r\n+};\r\n+\r\n+struct join_room {\r\n+\tstd::uint32_t id_;\r\n+};\r\n+\r\n+struct get_list_room {\r\n+};\r\n+\r\n+struct list_room_package {\r\n+\tstd::vector<std::pair<std::int32_t, std::string>> vec;\r\n+};\r\n+\r\n+REGISTER_TYPE_1(ShowTurn, 10)\r","path":"netw/server/network/codes.hpp","position":31,"original_position":31,"commit_id":"3bec6ce78ad29f203766509149afa43ee1dba9fd","original_commit_id":"3bec6ce78ad29f203766509149afa43ee1dba9fd","user":{"login":"Roman-Koshelev","id":34384083,"avatar_url":"https://avatars2.githubusercontent.com/u/34384083?v=4","gravatar_id":"","url":"https://api.github.com/users/Roman-Koshelev","html_url":"https://github.com/Roman-Koshelev","followers_url":"https://api.github.com/users/Roman-Koshelev/followers","following_url":"https://api.github.com/users/Roman-Koshelev/following{/other_user}","gists_url":"https://api.github.com/users/Roman-Koshelev/gists{/gist_id}","starred_url":"https://api.github.com/users/Roman-Koshelev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roman-Koshelev/subscriptions","organizations_url":"https://api.github.com/users/Roman-Koshelev/orgs","repos_url":"https://api.github.com/users/Roman-Koshelev/repos","events_url":"https://api.github.com/users/Roman-Koshelev/events{/privacy}","received_events_url":"https://api.github.com/users/Roman-Koshelev/received_events","type":"User","site_admin":false},"body":"нужно точное соответствие этих констант на клиенте и на сервере (а вдруг их будут собирать разными компиляторами?). Константы это просто id  которые должны быть уникальны.  ","created_at":"2017-12-21T12:28:42Z","updated_at":"2017-12-21T12:28:43Z","html_url":"https://github.com/TeamInTeam/Labyrinth/pull/3#discussion_r158265382","pull_request_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/comments/158265382"},"html":{"href":"https://github.com/TeamInTeam/Labyrinth/pull/3#discussion_r158265382"},"pull_request":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/3"}},"in_reply_to_id":158235305},"pull_request":{"url":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/3","id":159606869,"html_url":"https://github.com/TeamInTeam/Labyrinth/pull/3","diff_url":"https://github.com/TeamInTeam/Labyrinth/pull/3.diff","patch_url":"https://github.com/TeamInTeam/Labyrinth/pull/3.patch","issue_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues/3","number":3,"state":"open","locked":false,"title":"Server-network","user":{"login":"Roman-Koshelev","id":34384083,"avatar_url":"https://avatars2.githubusercontent.com/u/34384083?v=4","gravatar_id":"","url":"https://api.github.com/users/Roman-Koshelev","html_url":"https://github.com/Roman-Koshelev","followers_url":"https://api.github.com/users/Roman-Koshelev/followers","following_url":"https://api.github.com/users/Roman-Koshelev/following{/other_user}","gists_url":"https://api.github.com/users/Roman-Koshelev/gists{/gist_id}","starred_url":"https://api.github.com/users/Roman-Koshelev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roman-Koshelev/subscriptions","organizations_url":"https://api.github.com/users/Roman-Koshelev/orgs","repos_url":"https://api.github.com/users/Roman-Koshelev/repos","events_url":"https://api.github.com/users/Roman-Koshelev/events{/privacy}","received_events_url":"https://api.github.com/users/Roman-Koshelev/received_events","type":"User","site_admin":false},"body":"Сетевая часть клиента и сервера","created_at":"2017-12-21T09:07:50Z","updated_at":"2017-12-21T12:28:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d3621672a6d06822a81bfc4295ccf97bc9c9887","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kupihleba","id":19506468,"avatar_url":"https://avatars2.githubusercontent.com/u/19506468?v=4","gravatar_id":"","url":"https://api.github.com/users/kupihleba","html_url":"https://github.com/kupihleba","followers_url":"https://api.github.com/users/kupihleba/followers","following_url":"https://api.github.com/users/kupihleba/following{/other_user}","gists_url":"https://api.github.com/users/kupihleba/gists{/gist_id}","starred_url":"https://api.github.com/users/kupihleba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kupihleba/subscriptions","organizations_url":"https://api.github.com/users/kupihleba/orgs","repos_url":"https://api.github.com/users/kupihleba/repos","events_url":"https://api.github.com/users/kupihleba/events{/privacy}","received_events_url":"https://api.github.com/users/kupihleba/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/3/commits","review_comments_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/3/comments","review_comment_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues/3/comments","statuses_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/statuses/3bec6ce78ad29f203766509149afa43ee1dba9fd","head":{"label":"TeamInTeam:server","ref":"server","sha":"3bec6ce78ad29f203766509149afa43ee1dba9fd","user":{"login":"TeamInTeam","id":32882777,"avatar_url":"https://avatars2.githubusercontent.com/u/32882777?v=4","gravatar_id":"","url":"https://api.github.com/users/TeamInTeam","html_url":"https://github.com/TeamInTeam","followers_url":"https://api.github.com/users/TeamInTeam/followers","following_url":"https://api.github.com/users/TeamInTeam/following{/other_user}","gists_url":"https://api.github.com/users/TeamInTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamInTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamInTeam/subscriptions","organizations_url":"https://api.github.com/users/TeamInTeam/orgs","repos_url":"https://api.github.com/users/TeamInTeam/repos","events_url":"https://api.github.com/users/TeamInTeam/events{/privacy}","received_events_url":"https://api.github.com/users/TeamInTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":107833992,"name":"Labyrinth","full_name":"TeamInTeam/Labyrinth","owner":{"login":"TeamInTeam","id":32882777,"avatar_url":"https://avatars2.githubusercontent.com/u/32882777?v=4","gravatar_id":"","url":"https://api.github.com/users/TeamInTeam","html_url":"https://github.com/TeamInTeam","followers_url":"https://api.github.com/users/TeamInTeam/followers","following_url":"https://api.github.com/users/TeamInTeam/following{/other_user}","gists_url":"https://api.github.com/users/TeamInTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamInTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamInTeam/subscriptions","organizations_url":"https://api.github.com/users/TeamInTeam/orgs","repos_url":"https://api.github.com/users/TeamInTeam/repos","events_url":"https://api.github.com/users/TeamInTeam/events{/privacy}","received_events_url":"https://api.github.com/users/TeamInTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamInTeam/Labyrinth","description":"Turn-based strategy with RPG elements","fork":false,"url":"https://api.github.com/repos/TeamInTeam/Labyrinth","forks_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/forks","keys_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/teams","hooks_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/hooks","issue_events_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues/events{/number}","events_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/events","assignees_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/assignees{/user}","branches_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/branches{/branch}","tags_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/tags","blobs_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/languages","stargazers_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/stargazers","contributors_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/contributors","subscribers_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/subscribers","subscription_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/subscription","commits_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/contents/{+path}","compare_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/merges","archive_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/downloads","issues_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues{/number}","pulls_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/labels{/name}","releases_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/releases{/id}","deployments_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/deployments","created_at":"2017-10-22T03:20:50Z","updated_at":"2017-12-20T21:55:50Z","pushed_at":"2017-12-21T09:07:50Z","git_url":"git://github.com/TeamInTeam/Labyrinth.git","ssh_url":"git@github.com:TeamInTeam/Labyrinth.git","clone_url":"https://github.com/TeamInTeam/Labyrinth.git","svn_url":"https://github.com/TeamInTeam/Labyrinth","homepage":null,"size":857,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"TeamInTeam:master","ref":"master","sha":"eb3c2bf0660fc8c3609ab53ad33dbd1d9b2c0fc4","user":{"login":"TeamInTeam","id":32882777,"avatar_url":"https://avatars2.githubusercontent.com/u/32882777?v=4","gravatar_id":"","url":"https://api.github.com/users/TeamInTeam","html_url":"https://github.com/TeamInTeam","followers_url":"https://api.github.com/users/TeamInTeam/followers","following_url":"https://api.github.com/users/TeamInTeam/following{/other_user}","gists_url":"https://api.github.com/users/TeamInTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamInTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamInTeam/subscriptions","organizations_url":"https://api.github.com/users/TeamInTeam/orgs","repos_url":"https://api.github.com/users/TeamInTeam/repos","events_url":"https://api.github.com/users/TeamInTeam/events{/privacy}","received_events_url":"https://api.github.com/users/TeamInTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":107833992,"name":"Labyrinth","full_name":"TeamInTeam/Labyrinth","owner":{"login":"TeamInTeam","id":32882777,"avatar_url":"https://avatars2.githubusercontent.com/u/32882777?v=4","gravatar_id":"","url":"https://api.github.com/users/TeamInTeam","html_url":"https://github.com/TeamInTeam","followers_url":"https://api.github.com/users/TeamInTeam/followers","following_url":"https://api.github.com/users/TeamInTeam/following{/other_user}","gists_url":"https://api.github.com/users/TeamInTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamInTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamInTeam/subscriptions","organizations_url":"https://api.github.com/users/TeamInTeam/orgs","repos_url":"https://api.github.com/users/TeamInTeam/repos","events_url":"https://api.github.com/users/TeamInTeam/events{/privacy}","received_events_url":"https://api.github.com/users/TeamInTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamInTeam/Labyrinth","description":"Turn-based strategy with RPG elements","fork":false,"url":"https://api.github.com/repos/TeamInTeam/Labyrinth","forks_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/forks","keys_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/teams","hooks_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/hooks","issue_events_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues/events{/number}","events_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/events","assignees_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/assignees{/user}","branches_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/branches{/branch}","tags_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/tags","blobs_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/languages","stargazers_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/stargazers","contributors_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/contributors","subscribers_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/subscribers","subscription_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/subscription","commits_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/contents/{+path}","compare_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/merges","archive_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/downloads","issues_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues{/number}","pulls_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/labels{/name}","releases_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/releases{/id}","deployments_url":"https://api.github.com/repos/TeamInTeam/Labyrinth/deployments","created_at":"2017-10-22T03:20:50Z","updated_at":"2017-12-20T21:55:50Z","pushed_at":"2017-12-21T09:07:50Z","git_url":"git://github.com/TeamInTeam/Labyrinth.git","ssh_url":"git@github.com:TeamInTeam/Labyrinth.git","clone_url":"https://github.com/TeamInTeam/Labyrinth.git","svn_url":"https://github.com/TeamInTeam/Labyrinth","homepage":null,"size":857,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/3"},"html":{"href":"https://github.com/TeamInTeam/Labyrinth/pull/3"},"issue":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues/3"},"comments":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/TeamInTeam/Labyrinth/statuses/3bec6ce78ad29f203766509149afa43ee1dba9fd"}},"author_association":"NONE"}}
{"actor":{"display_login":"Roman-Koshelev"}}