{"action":"created","comment":{"url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/comments/77443389","id":77443389,"diff_hunk":"@@ -0,0 +1,354 @@\n+﻿#region License\n+// ====================================================\n+// Project Porcupine Copyright(C) 2016 Team Porcupine\n+// This program comes with ABSOLUTELY NO WARRANTY; This is free software, \n+// and you are welcome to redistribute it under certain conditions; See \n+// file LICENSE, which is part of this source code package, for details.\n+// ====================================================\n+#endregion\n+using System;\n+using System.Collections;\n+using System.Collections.Generic;\n+\n+public class RoomManager: IEnumerable<Room>\n+{\n+    public event Action<Room> Adding;\n+\n+    public event Action<Room> Added;\n+\n+    public event Action<Room, Room> Split;\n+\n+    public event Action<Room, Room> Joined;\n+\n+    public event Action<Room> Removing;\n+\n+    public event Action<Room> Removed;\n+\n+    private List<Room> rooms;\n+\n+    public RoomManager()\n+    {\n+        rooms = new List<Room>();\n+    }\n+\n+    public int Rooms {\n+        get { \n+            return rooms.Count;\n+        }\n+    }\n+\n+    public Room GetOutsideRoom()\n+    {\n+        // TODO maybe find some other way of knowing what the outside is?\n+        // or perhaps have it not just be a 0 here, maybe a const?\n+        return rooms[0];","path":"Assets/Scripts/Models/RoomManager.cs","position":46,"original_position":44,"commit_id":"35a0015d5b4414e6c0515b996372102fedd9bd3a","original_commit_id":"2e5562484cc9f8e3ecda7c635b3db5d61639a867","user":{"login":"svmnotn","id":12618337,"avatar_url":"https://avatars.githubusercontent.com/u/12618337?v=3","gravatar_id":"","url":"https://api.github.com/users/svmnotn","html_url":"https://github.com/svmnotn","followers_url":"https://api.github.com/users/svmnotn/followers","following_url":"https://api.github.com/users/svmnotn/following{/other_user}","gists_url":"https://api.github.com/users/svmnotn/gists{/gist_id}","starred_url":"https://api.github.com/users/svmnotn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svmnotn/subscriptions","organizations_url":"https://api.github.com/users/svmnotn/orgs","repos_url":"https://api.github.com/users/svmnotn/repos","events_url":"https://api.github.com/users/svmnotn/events{/privacy}","received_events_url":"https://api.github.com/users/svmnotn/received_events","type":"User","site_admin":false},"body":"Is that the only place? I thought I might be missing one or two..","created_at":"2016-09-03T21:22:55Z","updated_at":"2016-09-03T21:22:55Z","html_url":"https://github.com/TeamPorcupine/ProjectPorcupine/pull/1072#discussion_r77443389","pull_request_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/1072","_links":{"self":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/comments/77443389"},"html":{"href":"https://github.com/TeamPorcupine/ProjectPorcupine/pull/1072#discussion_r77443389"},"pull_request":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/1072"}}},"pull_request":{"url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/1072","id":83557937,"html_url":"https://github.com/TeamPorcupine/ProjectPorcupine/pull/1072","diff_url":"https://github.com/TeamPorcupine/ProjectPorcupine/pull/1072.diff","patch_url":"https://github.com/TeamPorcupine/ProjectPorcupine/pull/1072.patch","issue_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1072","number":1072,"state":"open","locked":false,"title":"[WIP] RoomEvents as per #1071","user":{"login":"svmnotn","id":12618337,"avatar_url":"https://avatars.githubusercontent.com/u/12618337?v=3","gravatar_id":"","url":"https://api.github.com/users/svmnotn","html_url":"https://github.com/svmnotn","followers_url":"https://api.github.com/users/svmnotn/followers","following_url":"https://api.github.com/users/svmnotn/following{/other_user}","gists_url":"https://api.github.com/users/svmnotn/gists{/gist_id}","starred_url":"https://api.github.com/users/svmnotn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svmnotn/subscriptions","organizations_url":"https://api.github.com/users/svmnotn/orgs","repos_url":"https://api.github.com/users/svmnotn/repos","events_url":"https://api.github.com/users/svmnotn/events{/privacy}","received_events_url":"https://api.github.com/users/svmnotn/received_events","type":"User","site_admin":false},"body":"Please feel free to tear this apart as it has a few hacks that I simply can not think of better ways to do them.","created_at":"2016-09-01T01:46:42Z","updated_at":"2016-09-03T21:22:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e8d48e5dc420120936f091abd01cb99de1c8731","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/1072/commits","review_comments_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/1072/comments","review_comment_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1072/comments","statuses_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/statuses/35a0015d5b4414e6c0515b996372102fedd9bd3a","head":{"label":"svmnotn:feature/room-events","ref":"feature/room-events","sha":"35a0015d5b4414e6c0515b996372102fedd9bd3a","user":{"login":"svmnotn","id":12618337,"avatar_url":"https://avatars.githubusercontent.com/u/12618337?v=3","gravatar_id":"","url":"https://api.github.com/users/svmnotn","html_url":"https://github.com/svmnotn","followers_url":"https://api.github.com/users/svmnotn/followers","following_url":"https://api.github.com/users/svmnotn/following{/other_user}","gists_url":"https://api.github.com/users/svmnotn/gists{/gist_id}","starred_url":"https://api.github.com/users/svmnotn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svmnotn/subscriptions","organizations_url":"https://api.github.com/users/svmnotn/orgs","repos_url":"https://api.github.com/users/svmnotn/repos","events_url":"https://api.github.com/users/svmnotn/events{/privacy}","received_events_url":"https://api.github.com/users/svmnotn/received_events","type":"User","site_admin":false},"repo":{"id":66315201,"name":"ProjectPorcupine","full_name":"svmnotn/ProjectPorcupine","owner":{"login":"svmnotn","id":12618337,"avatar_url":"https://avatars.githubusercontent.com/u/12618337?v=3","gravatar_id":"","url":"https://api.github.com/users/svmnotn","html_url":"https://github.com/svmnotn","followers_url":"https://api.github.com/users/svmnotn/followers","following_url":"https://api.github.com/users/svmnotn/following{/other_user}","gists_url":"https://api.github.com/users/svmnotn/gists{/gist_id}","starred_url":"https://api.github.com/users/svmnotn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svmnotn/subscriptions","organizations_url":"https://api.github.com/users/svmnotn/orgs","repos_url":"https://api.github.com/users/svmnotn/repos","events_url":"https://api.github.com/users/svmnotn/events{/privacy}","received_events_url":"https://api.github.com/users/svmnotn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/svmnotn/ProjectPorcupine","description":"Project Porcupine: A Base-Building Game...in Space!","fork":true,"url":"https://api.github.com/repos/svmnotn/ProjectPorcupine","forks_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/forks","keys_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/teams","hooks_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/hooks","issue_events_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/issues/events{/number}","events_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/events","assignees_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/assignees{/user}","branches_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/branches{/branch}","tags_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/tags","blobs_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/git/refs{/sha}","trees_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/statuses/{sha}","languages_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/languages","stargazers_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/stargazers","contributors_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/contributors","subscribers_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/subscribers","subscription_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/subscription","commits_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/commits{/sha}","git_commits_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/git/commits{/sha}","comments_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/comments{/number}","issue_comment_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/issues/comments{/number}","contents_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/contents/{+path}","compare_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/merges","archive_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/downloads","issues_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/issues{/number}","pulls_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/pulls{/number}","milestones_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/milestones{/number}","notifications_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/labels{/name}","releases_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/releases{/id}","deployments_url":"https://api.github.com/repos/svmnotn/ProjectPorcupine/deployments","created_at":"2016-08-22T23:19:13Z","updated_at":"2016-08-22T23:19:15Z","pushed_at":"2016-09-03T21:22:18Z","git_url":"git://github.com/svmnotn/ProjectPorcupine.git","ssh_url":"git@github.com:svmnotn/ProjectPorcupine.git","clone_url":"https://github.com/svmnotn/ProjectPorcupine.git","svn_url":"https://github.com/svmnotn/ProjectPorcupine","homepage":null,"size":24443,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TeamPorcupine:master","ref":"master","sha":"6a7054969f62d8b1c5e7c04257514713af3154d0","user":{"login":"TeamPorcupine","id":1299665,"avatar_url":"https://avatars.githubusercontent.com/u/1299665?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamPorcupine","html_url":"https://github.com/TeamPorcupine","followers_url":"https://api.github.com/users/TeamPorcupine/followers","following_url":"https://api.github.com/users/TeamPorcupine/following{/other_user}","gists_url":"https://api.github.com/users/TeamPorcupine/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamPorcupine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamPorcupine/subscriptions","organizations_url":"https://api.github.com/users/TeamPorcupine/orgs","repos_url":"https://api.github.com/users/TeamPorcupine/repos","events_url":"https://api.github.com/users/TeamPorcupine/events{/privacy}","received_events_url":"https://api.github.com/users/TeamPorcupine/received_events","type":"Organization","site_admin":false},"repo":{"id":65837532,"name":"ProjectPorcupine","full_name":"TeamPorcupine/ProjectPorcupine","owner":{"login":"TeamPorcupine","id":1299665,"avatar_url":"https://avatars.githubusercontent.com/u/1299665?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamPorcupine","html_url":"https://github.com/TeamPorcupine","followers_url":"https://api.github.com/users/TeamPorcupine/followers","following_url":"https://api.github.com/users/TeamPorcupine/following{/other_user}","gists_url":"https://api.github.com/users/TeamPorcupine/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamPorcupine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamPorcupine/subscriptions","organizations_url":"https://api.github.com/users/TeamPorcupine/orgs","repos_url":"https://api.github.com/users/TeamPorcupine/repos","events_url":"https://api.github.com/users/TeamPorcupine/events{/privacy}","received_events_url":"https://api.github.com/users/TeamPorcupine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamPorcupine/ProjectPorcupine","description":"Project Porcupine: A Base-Building Game...in Space!","fork":false,"url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine","forks_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/forks","keys_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/teams","hooks_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/hooks","issue_events_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/events{/number}","events_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/events","assignees_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/assignees{/user}","branches_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/branches{/branch}","tags_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/tags","blobs_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/languages","stargazers_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/stargazers","contributors_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/contributors","subscribers_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/subscribers","subscription_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/subscription","commits_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/contents/{+path}","compare_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/merges","archive_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/downloads","issues_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues{/number}","pulls_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/labels{/name}","releases_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/releases{/id}","deployments_url":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/deployments","created_at":"2016-08-16T16:52:06Z","updated_at":"2016-09-03T18:06:47Z","pushed_at":"2016-09-03T21:22:18Z","git_url":"git://github.com/TeamPorcupine/ProjectPorcupine.git","ssh_url":"git@github.com:TeamPorcupine/ProjectPorcupine.git","clone_url":"https://github.com/TeamPorcupine/ProjectPorcupine.git","svn_url":"https://github.com/TeamPorcupine/ProjectPorcupine","homepage":null,"size":59000,"stargazers_count":292,"watchers_count":292,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":357,"mirror_url":null,"open_issues_count":154,"forks":357,"open_issues":154,"watchers":292,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/1072"},"html":{"href":"https://github.com/TeamPorcupine/ProjectPorcupine/pull/1072"},"issue":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1072"},"comments":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/issues/1072/comments"},"review_comments":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/1072/comments"},"review_comment":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/pulls/1072/commits"},"statuses":{"href":"https://api.github.com/repos/TeamPorcupine/ProjectPorcupine/statuses/35a0015d5b4414e6c0515b996372102fedd9bd3a"}}}}
{"actor":{"display_login":"svmnotn"}}