{"action":"created","comment":{"url":"https://api.github.com/repos/eharris93/ELB/pulls/comments/46972272","id":46972272,"diff_hunk":"@@ -0,0 +1,95 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using UnityEngine;\n+\n+public abstract class PurchasableItem : ScriptableObject\n+{\n+    public int Cost { get; set; }\n+}\n+\n+public class PurchasableUnit : PurchasableItem\n+{\n+    //Change to UnitType once units are in\n+    public int Id { get; set; }\n+\n+    //This is 0-4, and depends on how many \n+    //castle pieces player has\n+    public int PurchaseLevel { get; set; }\n+}\n+\n+public class PurchasbleCard : PurchasableItem\n+{\n+    public int Id { get; set; }\n+}\n+\n+public class PurchasbleCastlePiece : PurchasableItem\n+{\n+    public int Id { get; set; }\n+}\n+\n+public class Armoury : MonoBehaviour\n+{\n+    public List<PurchasableUnit> PurchasbleUnits { get; set; }\n+    public List<PurchasbleCard> PurchasbleCards { get; set; }\n+    public List<PurchasbleCastlePiece> PurchasableCastlePieces { get; set; }\n+\n+    public delegate void PurchasedItemCallback(PurchasableItem purchasedItem);\n+    public event PurchasedItemCallback OnPurchasedItem = delegate { };\n+\n+    void Initialise()","path":"Empire - The Last Battle/Assets/Unity/Scripts/MonoBehaviours/Armoury.cs","position":39,"original_position":39,"commit_id":"8ff8fd7c8b77028a4d76c7cc7ca898a5cd398404","original_commit_id":"8ff8fd7c8b77028a4d76c7cc7ca898a5cd398404","user":{"login":"alasdairhurst","id":8441810,"avatar_url":"https://avatars.githubusercontent.com/u/8441810?v=3","gravatar_id":"","url":"https://api.github.com/users/alasdairhurst","html_url":"https://github.com/alasdairhurst","followers_url":"https://api.github.com/users/alasdairhurst/followers","following_url":"https://api.github.com/users/alasdairhurst/following{/other_user}","gists_url":"https://api.github.com/users/alasdairhurst/gists{/gist_id}","starred_url":"https://api.github.com/users/alasdairhurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alasdairhurst/subscriptions","organizations_url":"https://api.github.com/users/alasdairhurst/orgs","repos_url":"https://api.github.com/users/alasdairhurst/repos","events_url":"https://api.github.com/users/alasdairhurst/events{/privacy}","received_events_url":"https://api.github.com/users/alasdairhurst/received_events","type":"User","site_admin":false},"body":"Public please ","created_at":"2015-12-08T16:03:21Z","updated_at":"2015-12-08T16:03:21Z","html_url":"https://github.com/eharris93/ELB/pull/15#discussion_r46972272","pull_request_url":"https://api.github.com/repos/eharris93/ELB/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/eharris93/ELB/pulls/comments/46972272"},"html":{"href":"https://github.com/eharris93/ELB/pull/15#discussion_r46972272"},"pull_request":{"href":"https://api.github.com/repos/eharris93/ELB/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/eharris93/ELB/pulls/15","id":52791798,"html_url":"https://github.com/eharris93/ELB/pull/15","diff_url":"https://github.com/eharris93/ELB/pull/15.diff","patch_url":"https://github.com/eharris93/ELB/pull/15.patch","issue_url":"https://api.github.com/repos/eharris93/ELB/issues/15","number":15,"state":"open","locked":false,"title":"[P32] Armoury Functionality","user":{"login":"Yoshimiii","id":15030491,"avatar_url":"https://avatars.githubusercontent.com/u/15030491?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoshimiii","html_url":"https://github.com/Yoshimiii","followers_url":"https://api.github.com/users/Yoshimiii/followers","following_url":"https://api.github.com/users/Yoshimiii/following{/other_user}","gists_url":"https://api.github.com/users/Yoshimiii/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoshimiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoshimiii/subscriptions","organizations_url":"https://api.github.com/users/Yoshimiii/orgs","repos_url":"https://api.github.com/users/Yoshimiii/repos","events_url":"https://api.github.com/users/Yoshimiii/events{/privacy}","received_events_url":"https://api.github.com/users/Yoshimiii/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/nOvTNgjy\r\nAdded basic armoury/shop, also added removepoints() function in points.cs","created_at":"2015-12-06T22:01:42Z","updated_at":"2015-12-08T16:03:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e206d690966219b23992e09cc5292c03b2b172a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eharris93/ELB/pulls/15/commits","review_comments_url":"https://api.github.com/repos/eharris93/ELB/pulls/15/comments","review_comment_url":"https://api.github.com/repos/eharris93/ELB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eharris93/ELB/issues/15/comments","statuses_url":"https://api.github.com/repos/eharris93/ELB/statuses/8ff8fd7c8b77028a4d76c7cc7ca898a5cd398404","head":{"label":"Yoshimiii:p32-armoury","ref":"p32-armoury","sha":"8ff8fd7c8b77028a4d76c7cc7ca898a5cd398404","user":{"login":"Yoshimiii","id":15030491,"avatar_url":"https://avatars.githubusercontent.com/u/15030491?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoshimiii","html_url":"https://github.com/Yoshimiii","followers_url":"https://api.github.com/users/Yoshimiii/followers","following_url":"https://api.github.com/users/Yoshimiii/following{/other_user}","gists_url":"https://api.github.com/users/Yoshimiii/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoshimiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoshimiii/subscriptions","organizations_url":"https://api.github.com/users/Yoshimiii/orgs","repos_url":"https://api.github.com/users/Yoshimiii/repos","events_url":"https://api.github.com/users/Yoshimiii/events{/privacy}","received_events_url":"https://api.github.com/users/Yoshimiii/received_events","type":"User","site_admin":false},"repo":{"id":47322847,"name":"ELB","full_name":"Yoshimiii/ELB","owner":{"login":"Yoshimiii","id":15030491,"avatar_url":"https://avatars.githubusercontent.com/u/15030491?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoshimiii","html_url":"https://github.com/Yoshimiii","followers_url":"https://api.github.com/users/Yoshimiii/followers","following_url":"https://api.github.com/users/Yoshimiii/following{/other_user}","gists_url":"https://api.github.com/users/Yoshimiii/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoshimiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoshimiii/subscriptions","organizations_url":"https://api.github.com/users/Yoshimiii/orgs","repos_url":"https://api.github.com/users/Yoshimiii/repos","events_url":"https://api.github.com/users/Yoshimiii/events{/privacy}","received_events_url":"https://api.github.com/users/Yoshimiii/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yoshimiii/ELB","description":"Empire The Last Battle","fork":true,"url":"https://api.github.com/repos/Yoshimiii/ELB","forks_url":"https://api.github.com/repos/Yoshimiii/ELB/forks","keys_url":"https://api.github.com/repos/Yoshimiii/ELB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoshimiii/ELB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoshimiii/ELB/teams","hooks_url":"https://api.github.com/repos/Yoshimiii/ELB/hooks","issue_events_url":"https://api.github.com/repos/Yoshimiii/ELB/issues/events{/number}","events_url":"https://api.github.com/repos/Yoshimiii/ELB/events","assignees_url":"https://api.github.com/repos/Yoshimiii/ELB/assignees{/user}","branches_url":"https://api.github.com/repos/Yoshimiii/ELB/branches{/branch}","tags_url":"https://api.github.com/repos/Yoshimiii/ELB/tags","blobs_url":"https://api.github.com/repos/Yoshimiii/ELB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoshimiii/ELB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoshimiii/ELB/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoshimiii/ELB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoshimiii/ELB/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoshimiii/ELB/languages","stargazers_url":"https://api.github.com/repos/Yoshimiii/ELB/stargazers","contributors_url":"https://api.github.com/repos/Yoshimiii/ELB/contributors","subscribers_url":"https://api.github.com/repos/Yoshimiii/ELB/subscribers","subscription_url":"https://api.github.com/repos/Yoshimiii/ELB/subscription","commits_url":"https://api.github.com/repos/Yoshimiii/ELB/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoshimiii/ELB/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoshimiii/ELB/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoshimiii/ELB/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoshimiii/ELB/contents/{+path}","compare_url":"https://api.github.com/repos/Yoshimiii/ELB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoshimiii/ELB/merges","archive_url":"https://api.github.com/repos/Yoshimiii/ELB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoshimiii/ELB/downloads","issues_url":"https://api.github.com/repos/Yoshimiii/ELB/issues{/number}","pulls_url":"https://api.github.com/repos/Yoshimiii/ELB/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoshimiii/ELB/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoshimiii/ELB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoshimiii/ELB/labels{/name}","releases_url":"https://api.github.com/repos/Yoshimiii/ELB/releases{/id}","created_at":"2015-12-03T09:49:04Z","updated_at":"2015-12-03T10:18:45Z","pushed_at":"2015-12-08T15:50:48Z","git_url":"git://github.com/Yoshimiii/ELB.git","ssh_url":"git@github.com:Yoshimiii/ELB.git","clone_url":"https://github.com/Yoshimiii/ELB.git","svn_url":"https://github.com/Yoshimiii/ELB","homepage":"","size":192,"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":"eharris93:master","ref":"master","sha":"da59ea001a35eacb82f938ed6b2e8e399dca9bce","user":{"login":"eharris93","id":8705251,"avatar_url":"https://avatars.githubusercontent.com/u/8705251?v=3","gravatar_id":"","url":"https://api.github.com/users/eharris93","html_url":"https://github.com/eharris93","followers_url":"https://api.github.com/users/eharris93/followers","following_url":"https://api.github.com/users/eharris93/following{/other_user}","gists_url":"https://api.github.com/users/eharris93/gists{/gist_id}","starred_url":"https://api.github.com/users/eharris93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eharris93/subscriptions","organizations_url":"https://api.github.com/users/eharris93/orgs","repos_url":"https://api.github.com/users/eharris93/repos","events_url":"https://api.github.com/users/eharris93/events{/privacy}","received_events_url":"https://api.github.com/users/eharris93/received_events","type":"User","site_admin":false},"repo":{"id":45602564,"name":"ELB","full_name":"eharris93/ELB","owner":{"login":"eharris93","id":8705251,"avatar_url":"https://avatars.githubusercontent.com/u/8705251?v=3","gravatar_id":"","url":"https://api.github.com/users/eharris93","html_url":"https://github.com/eharris93","followers_url":"https://api.github.com/users/eharris93/followers","following_url":"https://api.github.com/users/eharris93/following{/other_user}","gists_url":"https://api.github.com/users/eharris93/gists{/gist_id}","starred_url":"https://api.github.com/users/eharris93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eharris93/subscriptions","organizations_url":"https://api.github.com/users/eharris93/orgs","repos_url":"https://api.github.com/users/eharris93/repos","events_url":"https://api.github.com/users/eharris93/events{/privacy}","received_events_url":"https://api.github.com/users/eharris93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eharris93/ELB","description":"Empire The Last Battle","fork":false,"url":"https://api.github.com/repos/eharris93/ELB","forks_url":"https://api.github.com/repos/eharris93/ELB/forks","keys_url":"https://api.github.com/repos/eharris93/ELB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eharris93/ELB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eharris93/ELB/teams","hooks_url":"https://api.github.com/repos/eharris93/ELB/hooks","issue_events_url":"https://api.github.com/repos/eharris93/ELB/issues/events{/number}","events_url":"https://api.github.com/repos/eharris93/ELB/events","assignees_url":"https://api.github.com/repos/eharris93/ELB/assignees{/user}","branches_url":"https://api.github.com/repos/eharris93/ELB/branches{/branch}","tags_url":"https://api.github.com/repos/eharris93/ELB/tags","blobs_url":"https://api.github.com/repos/eharris93/ELB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eharris93/ELB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eharris93/ELB/git/refs{/sha}","trees_url":"https://api.github.com/repos/eharris93/ELB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eharris93/ELB/statuses/{sha}","languages_url":"https://api.github.com/repos/eharris93/ELB/languages","stargazers_url":"https://api.github.com/repos/eharris93/ELB/stargazers","contributors_url":"https://api.github.com/repos/eharris93/ELB/contributors","subscribers_url":"https://api.github.com/repos/eharris93/ELB/subscribers","subscription_url":"https://api.github.com/repos/eharris93/ELB/subscription","commits_url":"https://api.github.com/repos/eharris93/ELB/commits{/sha}","git_commits_url":"https://api.github.com/repos/eharris93/ELB/git/commits{/sha}","comments_url":"https://api.github.com/repos/eharris93/ELB/comments{/number}","issue_comment_url":"https://api.github.com/repos/eharris93/ELB/issues/comments{/number}","contents_url":"https://api.github.com/repos/eharris93/ELB/contents/{+path}","compare_url":"https://api.github.com/repos/eharris93/ELB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eharris93/ELB/merges","archive_url":"https://api.github.com/repos/eharris93/ELB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eharris93/ELB/downloads","issues_url":"https://api.github.com/repos/eharris93/ELB/issues{/number}","pulls_url":"https://api.github.com/repos/eharris93/ELB/pulls{/number}","milestones_url":"https://api.github.com/repos/eharris93/ELB/milestones{/number}","notifications_url":"https://api.github.com/repos/eharris93/ELB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eharris93/ELB/labels{/name}","releases_url":"https://api.github.com/repos/eharris93/ELB/releases{/id}","created_at":"2015-11-05T09:55:35Z","updated_at":"2015-11-28T16:52:13Z","pushed_at":"2015-12-08T15:50:48Z","git_url":"git://github.com/eharris93/ELB.git","ssh_url":"git@github.com:eharris93/ELB.git","clone_url":"https://github.com/eharris93/ELB.git","svn_url":"https://github.com/eharris93/ELB","homepage":"","size":815,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eharris93/ELB/pulls/15"},"html":{"href":"https://github.com/eharris93/ELB/pull/15"},"issue":{"href":"https://api.github.com/repos/eharris93/ELB/issues/15"},"comments":{"href":"https://api.github.com/repos/eharris93/ELB/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/eharris93/ELB/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/eharris93/ELB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eharris93/ELB/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/eharris93/ELB/statuses/8ff8fd7c8b77028a4d76c7cc7ca898a5cd398404"}}}}