{"action":"created","comment":{"url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/comments/30906717","id":30906717,"diff_hunk":"@@ -100,6 +100,13 @@ public MyGameLogicComponent GameLogic\n             set { Components.Add<MyGameLogicComponent>(value); }\n         }\n \n+\t\tprivate HashSet<MyGameLogicComponent> m_gameLogicSet = null;","path":"Sources/Sandbox.Game/Game/Entities/MyEntity.cs","position":4,"original_position":4,"commit_id":"2f2d6b97e8e9c38eb0402c141f47ea5ac6ce70b1","original_commit_id":"2f2d6b97e8e9c38eb0402c141f47ea5ac6ce70b1","user":{"login":"Tyrsis","id":8304731,"avatar_url":"https://avatars.githubusercontent.com/u/8304731?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyrsis","html_url":"https://github.com/Tyrsis","followers_url":"https://api.github.com/users/Tyrsis/followers","following_url":"https://api.github.com/users/Tyrsis/following{/other_user}","gists_url":"https://api.github.com/users/Tyrsis/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyrsis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyrsis/subscriptions","organizations_url":"https://api.github.com/users/Tyrsis/orgs","repos_url":"https://api.github.com/users/Tyrsis/repos","events_url":"https://api.github.com/users/Tyrsis/events{/privacy}","received_events_url":"https://api.github.com/users/Tyrsis/received_events","type":"User","site_admin":false},"body":"I felt there was no need to needlessly enumerate when gamelogic had nothing attached to it.  ","created_at":"2015-05-22T15:49:35Z","updated_at":"2015-05-22T15:49:35Z","html_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers/pull/142#discussion_r30906717","pull_request_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/142","_links":{"self":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/comments/30906717"},"html":{"href":"https://github.com/KeenSoftwareHouse/SpaceEngineers/pull/142#discussion_r30906717"},"pull_request":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/142","id":36030451,"html_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers/pull/142","diff_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers/pull/142.diff","patch_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers/pull/142.patch","issue_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/142","number":142,"state":"open","locked":false,"title":"Attach GameLogic to Blocks multiple times","user":{"login":"Tyrsis","id":8304731,"avatar_url":"https://avatars.githubusercontent.com/u/8304731?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyrsis","html_url":"https://github.com/Tyrsis","followers_url":"https://api.github.com/users/Tyrsis/followers","following_url":"https://api.github.com/users/Tyrsis/following{/other_user}","gists_url":"https://api.github.com/users/Tyrsis/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyrsis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyrsis/subscriptions","organizations_url":"https://api.github.com/users/Tyrsis/orgs","repos_url":"https://api.github.com/users/Tyrsis/repos","events_url":"https://api.github.com/users/Tyrsis/events{/privacy}","received_events_url":"https://api.github.com/users/Tyrsis/received_events","type":"User","site_admin":false},"body":"This allows multiple scripts to attach to blocks without collisions.  If a block already has gamelogic attached, it will keep track of new gamelogic attachments and run those as well.\r\n\r\nThis also allows scripts to attach only to subtypes that they care about, so their logic only runs on the blocks they care about by SubTypeName.  Added a new attribute MyEntitySubIdComponentDescriptor which allows you to specify the subtypename of the block you want to attach to.  Scripts can use it multiple times to attach the same gamelogic to different subtypes (large and small for example).\r\n\r\nShould be completely backwards compatible.  If new attributes are not used, it defaults to old behavior.  This also enhances old behavior in that multiple mods won't collide anymore if they want to attach logic to the same block.","created_at":"2015-05-22T13:26:51Z","updated_at":"2015-05-22T15:49:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41c6f04df3997a7a984a76b4978ba3a93af4c347","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/142/commits","review_comments_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/142/comments","review_comment_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/142/comments","statuses_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/statuses/2f2d6b97e8e9c38eb0402c141f47ea5ac6ce70b1","head":{"label":"Tyrsis:Attach-multi-gamelogic","ref":"Attach-multi-gamelogic","sha":"2f2d6b97e8e9c38eb0402c141f47ea5ac6ce70b1","user":{"login":"Tyrsis","id":8304731,"avatar_url":"https://avatars.githubusercontent.com/u/8304731?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyrsis","html_url":"https://github.com/Tyrsis","followers_url":"https://api.github.com/users/Tyrsis/followers","following_url":"https://api.github.com/users/Tyrsis/following{/other_user}","gists_url":"https://api.github.com/users/Tyrsis/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyrsis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyrsis/subscriptions","organizations_url":"https://api.github.com/users/Tyrsis/orgs","repos_url":"https://api.github.com/users/Tyrsis/repos","events_url":"https://api.github.com/users/Tyrsis/events{/privacy}","received_events_url":"https://api.github.com/users/Tyrsis/received_events","type":"User","site_admin":false},"repo":{"id":36053017,"name":"SpaceEngineers-1","full_name":"Tyrsis/SpaceEngineers-1","owner":{"login":"Tyrsis","id":8304731,"avatar_url":"https://avatars.githubusercontent.com/u/8304731?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyrsis","html_url":"https://github.com/Tyrsis","followers_url":"https://api.github.com/users/Tyrsis/followers","following_url":"https://api.github.com/users/Tyrsis/following{/other_user}","gists_url":"https://api.github.com/users/Tyrsis/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyrsis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyrsis/subscriptions","organizations_url":"https://api.github.com/users/Tyrsis/orgs","repos_url":"https://api.github.com/users/Tyrsis/repos","events_url":"https://api.github.com/users/Tyrsis/events{/privacy}","received_events_url":"https://api.github.com/users/Tyrsis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tyrsis/SpaceEngineers-1","description":"","fork":true,"url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1","forks_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/forks","keys_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/teams","hooks_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/hooks","issue_events_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/issues/events{/number}","events_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/events","assignees_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/assignees{/user}","branches_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/branches{/branch}","tags_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/tags","blobs_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/languages","stargazers_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/stargazers","contributors_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/contributors","subscribers_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/subscribers","subscription_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/subscription","commits_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/contents/{+path}","compare_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/merges","archive_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/downloads","issues_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/issues{/number}","pulls_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/labels{/name}","releases_url":"https://api.github.com/repos/Tyrsis/SpaceEngineers-1/releases{/id}","created_at":"2015-05-22T04:56:50Z","updated_at":"2015-05-22T04:57:05Z","pushed_at":"2015-05-22T13:20:08Z","git_url":"git://github.com/Tyrsis/SpaceEngineers-1.git","ssh_url":"git@github.com:Tyrsis/SpaceEngineers-1.git","clone_url":"https://github.com/Tyrsis/SpaceEngineers-1.git","svn_url":"https://github.com/Tyrsis/SpaceEngineers-1","homepage":null,"size":41388,"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":"KeenSoftwareHouse:master","ref":"master","sha":"f26850d9b3a13c824581332f58e623e9dfb93dc5","user":{"login":"KeenSoftwareHouse","id":3799021,"avatar_url":"https://avatars.githubusercontent.com/u/3799021?v=3","gravatar_id":"","url":"https://api.github.com/users/KeenSoftwareHouse","html_url":"https://github.com/KeenSoftwareHouse","followers_url":"https://api.github.com/users/KeenSoftwareHouse/followers","following_url":"https://api.github.com/users/KeenSoftwareHouse/following{/other_user}","gists_url":"https://api.github.com/users/KeenSoftwareHouse/gists{/gist_id}","starred_url":"https://api.github.com/users/KeenSoftwareHouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeenSoftwareHouse/subscriptions","organizations_url":"https://api.github.com/users/KeenSoftwareHouse/orgs","repos_url":"https://api.github.com/users/KeenSoftwareHouse/repos","events_url":"https://api.github.com/users/KeenSoftwareHouse/events{/privacy}","received_events_url":"https://api.github.com/users/KeenSoftwareHouse/received_events","type":"Organization","site_admin":false},"repo":{"id":35555089,"name":"SpaceEngineers","full_name":"KeenSoftwareHouse/SpaceEngineers","owner":{"login":"KeenSoftwareHouse","id":3799021,"avatar_url":"https://avatars.githubusercontent.com/u/3799021?v=3","gravatar_id":"","url":"https://api.github.com/users/KeenSoftwareHouse","html_url":"https://github.com/KeenSoftwareHouse","followers_url":"https://api.github.com/users/KeenSoftwareHouse/followers","following_url":"https://api.github.com/users/KeenSoftwareHouse/following{/other_user}","gists_url":"https://api.github.com/users/KeenSoftwareHouse/gists{/gist_id}","starred_url":"https://api.github.com/users/KeenSoftwareHouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeenSoftwareHouse/subscriptions","organizations_url":"https://api.github.com/users/KeenSoftwareHouse/orgs","repos_url":"https://api.github.com/users/KeenSoftwareHouse/repos","events_url":"https://api.github.com/users/KeenSoftwareHouse/events{/privacy}","received_events_url":"https://api.github.com/users/KeenSoftwareHouse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers","description":"","fork":false,"url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers","forks_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/forks","keys_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/teams","hooks_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/hooks","issue_events_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/events{/number}","events_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/events","assignees_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/assignees{/user}","branches_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/branches{/branch}","tags_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/tags","blobs_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/git/refs{/sha}","trees_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/statuses/{sha}","languages_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/languages","stargazers_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/stargazers","contributors_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/contributors","subscribers_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/subscribers","subscription_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/subscription","commits_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/commits{/sha}","git_commits_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/git/commits{/sha}","comments_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/comments{/number}","issue_comment_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/comments{/number}","contents_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/contents/{+path}","compare_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/merges","archive_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/downloads","issues_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues{/number}","pulls_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls{/number}","milestones_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/milestones{/number}","notifications_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/labels{/name}","releases_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/releases{/id}","created_at":"2015-05-13T14:50:13Z","updated_at":"2015-05-22T15:48:04Z","pushed_at":"2015-05-22T15:25:28Z","git_url":"git://github.com/KeenSoftwareHouse/SpaceEngineers.git","ssh_url":"git@github.com:KeenSoftwareHouse/SpaceEngineers.git","clone_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers.git","svn_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers","homepage":null,"size":45072,"stargazers_count":1520,"watchers_count":1520,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":412,"mirror_url":null,"open_issues_count":85,"forks":412,"open_issues":85,"watchers":1520,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/142"},"html":{"href":"https://github.com/KeenSoftwareHouse/SpaceEngineers/pull/142"},"issue":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/142"},"comments":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/statuses/2f2d6b97e8e9c38eb0402c141f47ea5ac6ce70b1"}}}}