{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls/8","id":89903022,"html_url":"https://github.com/R3dNW/ProjectSpell/pull/8","diff_url":"https://github.com/R3dNW/ProjectSpell/pull/8.diff","patch_url":"https://github.com/R3dNW/ProjectSpell/pull/8.patch","issue_url":"https://api.github.com/repos/R3dNW/ProjectSpell/issues/8","number":8,"state":"open","locked":false,"title":"Component orientated statistics","user":{"login":"R3dNW","id":21262983,"avatar_url":"https://avatars.githubusercontent.com/u/21262983?v=3","gravatar_id":"","url":"https://api.github.com/users/R3dNW","html_url":"https://github.com/R3dNW","followers_url":"https://api.github.com/users/R3dNW/followers","following_url":"https://api.github.com/users/R3dNW/following{/other_user}","gists_url":"https://api.github.com/users/R3dNW/gists{/gist_id}","starred_url":"https://api.github.com/users/R3dNW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R3dNW/subscriptions","organizations_url":"https://api.github.com/users/R3dNW/orgs","repos_url":"https://api.github.com/users/R3dNW/repos","events_url":"https://api.github.com/users/R3dNW/events{/privacy}","received_events_url":"https://api.github.com/users/R3dNW/received_events","type":"User","site_admin":false},"body":"Changed the Statistics in game to be \"component orientated\".\r\n\r\nEach statistic can now have many \"StatComponents\" stored within it, that can be accessed in the same way that Components are accessed in Unity's GameObjects:\r\n \r\nGet these StatComponents with:\r\n - StatComponent GetComponent<Type>()\r\n - StatComponent[] GetComponents<Type>()\r\n\r\nAdd StatComponents to Statistics with:\r\n - void AddComponent(StatComponent instance)\r\n - void AddComponents(StatComponent[] instances)\r\n\r\nThis means a specific \"SmartStatistic\" class, an ugly workaround, that inherits from Statistic to gain the extra functionality that the PlayerController, for example, requires.\r\n\r\nInstead, now, more functionality can be added to a statistic using a StatComponent added to it.\r\n\r\nThis allows for more control and expandibility over what each Statistic is doing.\r\n\r\nIn general, statistics will be added to an EntityController using an OverallStatisticSystem. The Statistics can be gotten from this system directly via their name, or via the components they have added to them.\r\n\r\nThis OverallStatisticSystems also attach the components added to them to other systems that will control them, according to the StatComponents added to them. For example, any Statistic that has a RegenControllerComp or FuelControllerComp will be added to a RegenFuelSystem to control how their current value changes over time.\r\n\r\nStatComponents, much like MonoBehaviours in Unity, can require that other components be present on a statistic with them.\r\n\r\nThe StandardisedStatInfo class will ensure that any statistic that is supposed to be will be given the same regenerative rate as any other etc.\r\n\r\n\r\nSome features are still missing from this build, and although it works properly as is, some features need polishing or are missing altogether.","created_at":"2016-10-18T21:33:00Z","updated_at":"2016-10-18T21:33:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls/8/commits","review_comments_url":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls/8/comments","review_comment_url":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/R3dNW/ProjectSpell/issues/8/comments","statuses_url":"https://api.github.com/repos/R3dNW/ProjectSpell/statuses/70054646490c36454f0097292ca63a53242d7e0a","head":{"label":"R3dNW:Component-Orientated-Base-Classes","ref":"Component-Orientated-Base-Classes","sha":"70054646490c36454f0097292ca63a53242d7e0a","user":{"login":"R3dNW","id":21262983,"avatar_url":"https://avatars.githubusercontent.com/u/21262983?v=3","gravatar_id":"","url":"https://api.github.com/users/R3dNW","html_url":"https://github.com/R3dNW","followers_url":"https://api.github.com/users/R3dNW/followers","following_url":"https://api.github.com/users/R3dNW/following{/other_user}","gists_url":"https://api.github.com/users/R3dNW/gists{/gist_id}","starred_url":"https://api.github.com/users/R3dNW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R3dNW/subscriptions","organizations_url":"https://api.github.com/users/R3dNW/orgs","repos_url":"https://api.github.com/users/R3dNW/repos","events_url":"https://api.github.com/users/R3dNW/events{/privacy}","received_events_url":"https://api.github.com/users/R3dNW/received_events","type":"User","site_admin":false},"repo":{"id":66651543,"name":"ProjectSpell","full_name":"R3dNW/ProjectSpell","owner":{"login":"R3dNW","id":21262983,"avatar_url":"https://avatars.githubusercontent.com/u/21262983?v=3","gravatar_id":"","url":"https://api.github.com/users/R3dNW","html_url":"https://github.com/R3dNW","followers_url":"https://api.github.com/users/R3dNW/followers","following_url":"https://api.github.com/users/R3dNW/following{/other_user}","gists_url":"https://api.github.com/users/R3dNW/gists{/gist_id}","starred_url":"https://api.github.com/users/R3dNW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R3dNW/subscriptions","organizations_url":"https://api.github.com/users/R3dNW/orgs","repos_url":"https://api.github.com/users/R3dNW/repos","events_url":"https://api.github.com/users/R3dNW/events{/privacy}","received_events_url":"https://api.github.com/users/R3dNW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/R3dNW/ProjectSpell","description":null,"fork":false,"url":"https://api.github.com/repos/R3dNW/ProjectSpell","forks_url":"https://api.github.com/repos/R3dNW/ProjectSpell/forks","keys_url":"https://api.github.com/repos/R3dNW/ProjectSpell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/R3dNW/ProjectSpell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/R3dNW/ProjectSpell/teams","hooks_url":"https://api.github.com/repos/R3dNW/ProjectSpell/hooks","issue_events_url":"https://api.github.com/repos/R3dNW/ProjectSpell/issues/events{/number}","events_url":"https://api.github.com/repos/R3dNW/ProjectSpell/events","assignees_url":"https://api.github.com/repos/R3dNW/ProjectSpell/assignees{/user}","branches_url":"https://api.github.com/repos/R3dNW/ProjectSpell/branches{/branch}","tags_url":"https://api.github.com/repos/R3dNW/ProjectSpell/tags","blobs_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/refs{/sha}","trees_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/R3dNW/ProjectSpell/statuses/{sha}","languages_url":"https://api.github.com/repos/R3dNW/ProjectSpell/languages","stargazers_url":"https://api.github.com/repos/R3dNW/ProjectSpell/stargazers","contributors_url":"https://api.github.com/repos/R3dNW/ProjectSpell/contributors","subscribers_url":"https://api.github.com/repos/R3dNW/ProjectSpell/subscribers","subscription_url":"https://api.github.com/repos/R3dNW/ProjectSpell/subscription","commits_url":"https://api.github.com/repos/R3dNW/ProjectSpell/commits{/sha}","git_commits_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/commits{/sha}","comments_url":"https://api.github.com/repos/R3dNW/ProjectSpell/comments{/number}","issue_comment_url":"https://api.github.com/repos/R3dNW/ProjectSpell/issues/comments{/number}","contents_url":"https://api.github.com/repos/R3dNW/ProjectSpell/contents/{+path}","compare_url":"https://api.github.com/repos/R3dNW/ProjectSpell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/R3dNW/ProjectSpell/merges","archive_url":"https://api.github.com/repos/R3dNW/ProjectSpell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/R3dNW/ProjectSpell/downloads","issues_url":"https://api.github.com/repos/R3dNW/ProjectSpell/issues{/number}","pulls_url":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls{/number}","milestones_url":"https://api.github.com/repos/R3dNW/ProjectSpell/milestones{/number}","notifications_url":"https://api.github.com/repos/R3dNW/ProjectSpell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/R3dNW/ProjectSpell/labels{/name}","releases_url":"https://api.github.com/repos/R3dNW/ProjectSpell/releases{/id}","deployments_url":"https://api.github.com/repos/R3dNW/ProjectSpell/deployments","created_at":"2016-08-26T13:53:42Z","updated_at":"2016-08-30T21:16:30Z","pushed_at":"2016-10-18T21:05:30Z","git_url":"git://github.com/R3dNW/ProjectSpell.git","ssh_url":"git@github.com:R3dNW/ProjectSpell.git","clone_url":"https://github.com/R3dNW/ProjectSpell.git","svn_url":"https://github.com/R3dNW/ProjectSpell","homepage":null,"size":216493,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"R3dNW:master","ref":"master","sha":"3737f250ef52d6ed3e1ff3b5ccf8ec1cd2c1c121","user":{"login":"R3dNW","id":21262983,"avatar_url":"https://avatars.githubusercontent.com/u/21262983?v=3","gravatar_id":"","url":"https://api.github.com/users/R3dNW","html_url":"https://github.com/R3dNW","followers_url":"https://api.github.com/users/R3dNW/followers","following_url":"https://api.github.com/users/R3dNW/following{/other_user}","gists_url":"https://api.github.com/users/R3dNW/gists{/gist_id}","starred_url":"https://api.github.com/users/R3dNW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R3dNW/subscriptions","organizations_url":"https://api.github.com/users/R3dNW/orgs","repos_url":"https://api.github.com/users/R3dNW/repos","events_url":"https://api.github.com/users/R3dNW/events{/privacy}","received_events_url":"https://api.github.com/users/R3dNW/received_events","type":"User","site_admin":false},"repo":{"id":66651543,"name":"ProjectSpell","full_name":"R3dNW/ProjectSpell","owner":{"login":"R3dNW","id":21262983,"avatar_url":"https://avatars.githubusercontent.com/u/21262983?v=3","gravatar_id":"","url":"https://api.github.com/users/R3dNW","html_url":"https://github.com/R3dNW","followers_url":"https://api.github.com/users/R3dNW/followers","following_url":"https://api.github.com/users/R3dNW/following{/other_user}","gists_url":"https://api.github.com/users/R3dNW/gists{/gist_id}","starred_url":"https://api.github.com/users/R3dNW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R3dNW/subscriptions","organizations_url":"https://api.github.com/users/R3dNW/orgs","repos_url":"https://api.github.com/users/R3dNW/repos","events_url":"https://api.github.com/users/R3dNW/events{/privacy}","received_events_url":"https://api.github.com/users/R3dNW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/R3dNW/ProjectSpell","description":null,"fork":false,"url":"https://api.github.com/repos/R3dNW/ProjectSpell","forks_url":"https://api.github.com/repos/R3dNW/ProjectSpell/forks","keys_url":"https://api.github.com/repos/R3dNW/ProjectSpell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/R3dNW/ProjectSpell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/R3dNW/ProjectSpell/teams","hooks_url":"https://api.github.com/repos/R3dNW/ProjectSpell/hooks","issue_events_url":"https://api.github.com/repos/R3dNW/ProjectSpell/issues/events{/number}","events_url":"https://api.github.com/repos/R3dNW/ProjectSpell/events","assignees_url":"https://api.github.com/repos/R3dNW/ProjectSpell/assignees{/user}","branches_url":"https://api.github.com/repos/R3dNW/ProjectSpell/branches{/branch}","tags_url":"https://api.github.com/repos/R3dNW/ProjectSpell/tags","blobs_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/refs{/sha}","trees_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/R3dNW/ProjectSpell/statuses/{sha}","languages_url":"https://api.github.com/repos/R3dNW/ProjectSpell/languages","stargazers_url":"https://api.github.com/repos/R3dNW/ProjectSpell/stargazers","contributors_url":"https://api.github.com/repos/R3dNW/ProjectSpell/contributors","subscribers_url":"https://api.github.com/repos/R3dNW/ProjectSpell/subscribers","subscription_url":"https://api.github.com/repos/R3dNW/ProjectSpell/subscription","commits_url":"https://api.github.com/repos/R3dNW/ProjectSpell/commits{/sha}","git_commits_url":"https://api.github.com/repos/R3dNW/ProjectSpell/git/commits{/sha}","comments_url":"https://api.github.com/repos/R3dNW/ProjectSpell/comments{/number}","issue_comment_url":"https://api.github.com/repos/R3dNW/ProjectSpell/issues/comments{/number}","contents_url":"https://api.github.com/repos/R3dNW/ProjectSpell/contents/{+path}","compare_url":"https://api.github.com/repos/R3dNW/ProjectSpell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/R3dNW/ProjectSpell/merges","archive_url":"https://api.github.com/repos/R3dNW/ProjectSpell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/R3dNW/ProjectSpell/downloads","issues_url":"https://api.github.com/repos/R3dNW/ProjectSpell/issues{/number}","pulls_url":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls{/number}","milestones_url":"https://api.github.com/repos/R3dNW/ProjectSpell/milestones{/number}","notifications_url":"https://api.github.com/repos/R3dNW/ProjectSpell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/R3dNW/ProjectSpell/labels{/name}","releases_url":"https://api.github.com/repos/R3dNW/ProjectSpell/releases{/id}","deployments_url":"https://api.github.com/repos/R3dNW/ProjectSpell/deployments","created_at":"2016-08-26T13:53:42Z","updated_at":"2016-08-30T21:16:30Z","pushed_at":"2016-10-18T21:05:30Z","git_url":"git://github.com/R3dNW/ProjectSpell.git","ssh_url":"git@github.com:R3dNW/ProjectSpell.git","clone_url":"https://github.com/R3dNW/ProjectSpell.git","svn_url":"https://github.com/R3dNW/ProjectSpell","homepage":null,"size":216493,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls/8"},"html":{"href":"https://github.com/R3dNW/ProjectSpell/pull/8"},"issue":{"href":"https://api.github.com/repos/R3dNW/ProjectSpell/issues/8"},"comments":{"href":"https://api.github.com/repos/R3dNW/ProjectSpell/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/R3dNW/ProjectSpell/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/R3dNW/ProjectSpell/statuses/70054646490c36454f0097292ca63a53242d7e0a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":1468,"deletions":401,"changed_files":35}}
{"actor":{"display_login":"R3dNW"}}