{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments/53552809","id":53552809,"diff_hunk":"@@ -0,0 +1,125 @@\n+#region Copyright & License Information\n+/*\n+ * Copyright 2007-2015 The OpenRA Developers (see AUTHORS)\n+ * This file is part of OpenRA, which is free software. It is made\n+ * available to you under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation. For more information,\n+ * see COPYING.\n+ */\n+#endregion\n+\n+using System.Collections.Generic;\n+using System.Linq;\n+using OpenRA.Graphics;\n+using OpenRA.Mods.Common.Traits;\n+using OpenRA.Traits;\n+\n+namespace OpenRA.Mods.TS.Traits\n+{\n+\t[Desc(\"Attach this to the world layer for regrowable ice terrain.\")]\n+\tclass IceLayerInfo : ITraitInfo\n+\t{\n+\t\t[Desc(\"Tileset IDs where the trait is activated.\")]\n+\t\tpublic readonly string[] Tilesets = { \"SNOW\" };\n+\n+\t\tpublic readonly string ImpassableTerrainType = \"Water\";\n+\n+\t\tpublic readonly Dictionary<ushort, int> StrengthPerTile = new Dictionary<ushort, int>\n+\t\t{\n+\t\t\t// Ice 01\n+\t\t\t{ 439, 5 },\n+\n+\t\t\t{ 440, 4 }, { 441, 4 }, { 442, 4 }, { 443, 4 }, { 444, 4 }, { 445, 4 }, { 446, 4 }, { 447, 4 },\n+\t\t\t{ 448, 4 }, { 449, 4 }, { 450, 4 }, { 451, 4 }, { 452, 4 }, { 453, 4 }, { 454, 4 }, { 455, 4 },\n+\n+\t\t\t{ 456, 3 }, { 457, 3 }, { 458, 3 }, { 459, 3 }, { 460, 3 }, { 461, 3 }, { 462, 3 }, { 463, 3 },\n+\t\t\t{ 464, 3 }, { 465, 3 }, { 466, 3 }, { 467, 3 }, { 468, 3 }, { 469, 3 }, { 470, 3 }, { 471, 3 },\n+\t\t\t{ 472, 3 }, { 473, 3 }, { 474, 3 }, { 475, 3 }, { 476, 3 }, { 477, 3 }, { 478, 3 }, { 479, 3 },\n+\t\t\t{ 480, 3 }, { 481, 3 }, { 482, 3 }, { 483, 3 }, { 484, 3 }, { 485, 3 }, { 486, 3 },\n+\n+\t\t\t{ 487, 2 }, { 488, 2 }, { 489, 2 }, { 490, 2 }, { 491, 2 }, { 492, 2 }, { 493, 2 }, { 494, 2 },\n+\t\t\t{ 495, 2 }, { 496, 2 }, { 497, 2 }, { 498, 2 }, { 499, 2 }, { 500, 2 }, { 501, 2 },\n+\n+\t\t\t{ 502, 1 },\n+\n+\t\t\t// Ice 02\n+\t\t\t{ 503, 5 },\n+\n+\t\t\t{ 504, 4 }, { 505, 4 }, { 506, 4 }, { 507, 4 }, { 508, 4 }, { 509, 4 }, { 510, 4 }, { 511, 4 },\n+\t\t\t{ 512, 4 }, { 513, 4 }, { 514, 4 }, { 515, 4 }, { 516, 4 }, { 517, 4 }, { 518, 4 }, { 519, 4 },\n+\n+\t\t\t{ 520, 3 }, { 521, 3 }, { 522, 3 }, { 523, 3 }, { 524, 3 }, { 525, 3 }, { 526, 3 }, { 527, 3 },\n+\t\t\t{ 528, 3 }, { 529, 3 }, { 530, 3 }, { 531, 3 }, { 532, 3 }, { 533, 3 }, { 534, 3 }, { 535, 3 },\n+\t\t\t{ 536, 3 }, { 537, 3 }, { 538, 3 }, { 539, 3 }, { 540, 3 }, { 541, 3 }, { 542, 3 }, { 543, 3 },\n+\t\t\t{ 544, 3 }, { 545, 3 }, { 546, 3 }, { 547, 3 }, { 548, 3 }, { 549, 3 }, { 550, 3 },\n+\n+\t\t\t{ 551, 2 }, { 552, 2 }, { 553, 2 }, { 554, 2 }, { 555, 2 }, { 556, 2 }, { 557, 2 }, { 558, 2 },\n+\t\t\t{ 559, 2 }, { 560, 2 }, { 561, 2 }, { 562, 2 }, { 563, 2 }, { 564, 2 }, { 565, 2 },\n+\n+\t\t\t{ 566, 1 },\n+\n+\t\t\t// Ice 03\n+\t\t\t{ 567, 5 },\n+\n+\t\t\t{ 568, 4 }, { 569, 4 }, { 570, 4 }, { 571, 4 }, { 572, 4 }, { 573, 4 }, { 574, 4 }, { 575, 4 },\n+\t\t\t{ 576, 4 }, { 577, 4 }, { 578, 4 }, { 579, 4 }, { 580, 4 }, { 581, 4 }, { 582, 4 }, { 583, 4 },\n+\n+\t\t\t{ 584, 3 }, { 585, 3 }, { 586, 3 }, { 587, 3 }, { 588, 3 }, { 589, 3 }, { 590, 3 }, { 591, 3 },\n+\t\t\t{ 592, 3 }, { 593, 3 }, { 594, 3 }, { 595, 3 }, { 596, 3 }, { 597, 3 }, { 598, 3 }, { 599, 3 },\n+\t\t\t{ 600, 3 }, { 601, 3 }, { 602, 3 }, { 603, 3 }, { 604, 3 }, { 605, 3 }, { 606, 3 }, { 607, 3 },\n+\t\t\t{ 608, 3 }, { 609, 3 }, { 610, 3 }, { 611, 3 }, { 612, 3 }, { 613, 3 }, { 614, 3 },\n+\n+\t\t\t{ 615, 2 }, { 616, 2 }, { 617, 2 }, { 618, 2 }, { 619, 2 }, { 620, 2 }, { 621, 2 }, { 622, 2 },\n+\t\t\t{ 623, 2 }, { 624, 2 }, { 625, 2 }, { 626, 2 }, { 627, 2 }, { 628, 2 }, { 629, 2 },\n+\n+\t\t\t{ 630, 1 }\n+\t\t};\n+\n+\t\tpublic object Create(ActorInitializer init) { return new IceLayer(init.Self, this); }\n+\t}\n+\n+\tclass IceLayer : IWorldLoaded\n+\t{\n+\t\treadonly IceLayerInfo info;\n+\n+\t\tpublic CellLayer<int> Strength;","path":"OpenRA.Mods.TS/Traits/World/IceLayer.cs","position":85,"original_position":85,"commit_id":"20086609f5312fdda62db01c3e99b048a29ba777","original_commit_id":"20086609f5312fdda62db01c3e99b048a29ba777","user":{"login":"pchote","id":167819,"avatar_url":"https://avatars.githubusercontent.com/u/167819?v=3","gravatar_id":"","url":"https://api.github.com/users/pchote","html_url":"https://github.com/pchote","followers_url":"https://api.github.com/users/pchote/followers","following_url":"https://api.github.com/users/pchote/following{/other_user}","gists_url":"https://api.github.com/users/pchote/gists{/gist_id}","starred_url":"https://api.github.com/users/pchote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchote/subscriptions","organizations_url":"https://api.github.com/users/pchote/orgs","repos_url":"https://api.github.com/users/pchote/repos","events_url":"https://api.github.com/users/pchote/events{/privacy}","received_events_url":"https://api.github.com/users/pchote/received_events","type":"User","site_admin":false},"body":"You can initialize this in the constructor and then make it readonly.","created_at":"2016-02-20T16:19:38Z","updated_at":"2016-02-20T16:19:38Z","html_url":"https://github.com/OpenRA/OpenRA/pull/10760#discussion_r53552809","pull_request_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10760","_links":{"self":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments/53552809"},"html":{"href":"https://github.com/OpenRA/OpenRA/pull/10760#discussion_r53552809"},"pull_request":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10760"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10760","id":59304050,"html_url":"https://github.com/OpenRA/OpenRA/pull/10760","diff_url":"https://github.com/OpenRA/OpenRA/pull/10760.diff","patch_url":"https://github.com/OpenRA/OpenRA/pull/10760.patch","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/10760","number":10760,"state":"open","locked":false,"title":"Fixed Tiberian Sun units walking over icy water","user":{"login":"Mailaender","id":756669,"avatar_url":"https://avatars.githubusercontent.com/u/756669?v=3","gravatar_id":"","url":"https://api.github.com/users/Mailaender","html_url":"https://github.com/Mailaender","followers_url":"https://api.github.com/users/Mailaender/followers","following_url":"https://api.github.com/users/Mailaender/following{/other_user}","gists_url":"https://api.github.com/users/Mailaender/gists{/gist_id}","starred_url":"https://api.github.com/users/Mailaender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mailaender/subscriptions","organizations_url":"https://api.github.com/users/Mailaender/orgs","repos_url":"https://api.github.com/users/Mailaender/repos","events_url":"https://api.github.com/users/Mailaender/events{/privacy}","received_events_url":"https://api.github.com/users/Mailaender/received_events","type":"User","site_admin":false},"body":"First steps towards https://github.com/OpenRA/OpenRA/issues/8918. This sets the initial state correctly. Also adds a `/debugice` chat command.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/756669/13035996/1177fda8-d35c-11e5-9673-936d0f1bb2bc.png)","created_at":"2016-02-14T19:53:53Z","updated_at":"2016-02-20T16:19:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"068b7fc9430be671557255e0b4629bd82b6a8b1c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10760/commits","review_comments_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10760/comments","review_comment_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/10760/comments","statuses_url":"https://api.github.com/repos/OpenRA/OpenRA/statuses/20086609f5312fdda62db01c3e99b048a29ba777","head":{"label":"Mailaender:icelayer","ref":"icelayer","sha":"20086609f5312fdda62db01c3e99b048a29ba777","user":{"login":"Mailaender","id":756669,"avatar_url":"https://avatars.githubusercontent.com/u/756669?v=3","gravatar_id":"","url":"https://api.github.com/users/Mailaender","html_url":"https://github.com/Mailaender","followers_url":"https://api.github.com/users/Mailaender/followers","following_url":"https://api.github.com/users/Mailaender/following{/other_user}","gists_url":"https://api.github.com/users/Mailaender/gists{/gist_id}","starred_url":"https://api.github.com/users/Mailaender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mailaender/subscriptions","organizations_url":"https://api.github.com/users/Mailaender/orgs","repos_url":"https://api.github.com/users/Mailaender/repos","events_url":"https://api.github.com/users/Mailaender/events{/privacy}","received_events_url":"https://api.github.com/users/Mailaender/received_events","type":"User","site_admin":false},"repo":{"id":3886414,"name":"OpenRA","full_name":"Mailaender/OpenRA","owner":{"login":"Mailaender","id":756669,"avatar_url":"https://avatars.githubusercontent.com/u/756669?v=3","gravatar_id":"","url":"https://api.github.com/users/Mailaender","html_url":"https://github.com/Mailaender","followers_url":"https://api.github.com/users/Mailaender/followers","following_url":"https://api.github.com/users/Mailaender/following{/other_user}","gists_url":"https://api.github.com/users/Mailaender/gists{/gist_id}","starred_url":"https://api.github.com/users/Mailaender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mailaender/subscriptions","organizations_url":"https://api.github.com/users/Mailaender/orgs","repos_url":"https://api.github.com/users/Mailaender/repos","events_url":"https://api.github.com/users/Mailaender/events{/privacy}","received_events_url":"https://api.github.com/users/Mailaender/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mailaender/OpenRA","description":"An open-source implementation of the Red Alert engine using .NET/mono and OpenGL. Runs on Windows, Linux and OSX.","fork":true,"url":"https://api.github.com/repos/Mailaender/OpenRA","forks_url":"https://api.github.com/repos/Mailaender/OpenRA/forks","keys_url":"https://api.github.com/repos/Mailaender/OpenRA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mailaender/OpenRA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mailaender/OpenRA/teams","hooks_url":"https://api.github.com/repos/Mailaender/OpenRA/hooks","issue_events_url":"https://api.github.com/repos/Mailaender/OpenRA/issues/events{/number}","events_url":"https://api.github.com/repos/Mailaender/OpenRA/events","assignees_url":"https://api.github.com/repos/Mailaender/OpenRA/assignees{/user}","branches_url":"https://api.github.com/repos/Mailaender/OpenRA/branches{/branch}","tags_url":"https://api.github.com/repos/Mailaender/OpenRA/tags","blobs_url":"https://api.github.com/repos/Mailaender/OpenRA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mailaender/OpenRA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mailaender/OpenRA/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mailaender/OpenRA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mailaender/OpenRA/statuses/{sha}","languages_url":"https://api.github.com/repos/Mailaender/OpenRA/languages","stargazers_url":"https://api.github.com/repos/Mailaender/OpenRA/stargazers","contributors_url":"https://api.github.com/repos/Mailaender/OpenRA/contributors","subscribers_url":"https://api.github.com/repos/Mailaender/OpenRA/subscribers","subscription_url":"https://api.github.com/repos/Mailaender/OpenRA/subscription","commits_url":"https://api.github.com/repos/Mailaender/OpenRA/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mailaender/OpenRA/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mailaender/OpenRA/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mailaender/OpenRA/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mailaender/OpenRA/contents/{+path}","compare_url":"https://api.github.com/repos/Mailaender/OpenRA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mailaender/OpenRA/merges","archive_url":"https://api.github.com/repos/Mailaender/OpenRA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mailaender/OpenRA/downloads","issues_url":"https://api.github.com/repos/Mailaender/OpenRA/issues{/number}","pulls_url":"https://api.github.com/repos/Mailaender/OpenRA/pulls{/number}","milestones_url":"https://api.github.com/repos/Mailaender/OpenRA/milestones{/number}","notifications_url":"https://api.github.com/repos/Mailaender/OpenRA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mailaender/OpenRA/labels{/name}","releases_url":"https://api.github.com/repos/Mailaender/OpenRA/releases{/id}","deployments_url":"https://api.github.com/repos/Mailaender/OpenRA/deployments","created_at":"2012-03-31T15:36:43Z","updated_at":"2016-01-06T18:28:18Z","pushed_at":"2016-02-20T14:45:55Z","git_url":"git://github.com/Mailaender/OpenRA.git","ssh_url":"git@github.com:Mailaender/OpenRA.git","clone_url":"https://github.com/Mailaender/OpenRA.git","svn_url":"https://github.com/Mailaender/OpenRA","homepage":"http://www.openra.net","size":133261,"stargazers_count":6,"watchers_count":6,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":0,"forks":4,"open_issues":0,"watchers":6,"default_branch":"bleed"}},"base":{"label":"OpenRA:bleed","ref":"bleed","sha":"b28d03049b24c573471c96c68c72de3ad38531c9","user":{"login":"OpenRA","id":409046,"avatar_url":"https://avatars.githubusercontent.com/u/409046?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"repo":{"id":959908,"name":"OpenRA","full_name":"OpenRA/OpenRA","owner":{"login":"OpenRA","id":409046,"avatar_url":"https://avatars.githubusercontent.com/u/409046?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRA/OpenRA","description":"Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.","fork":false,"url":"https://api.github.com/repos/OpenRA/OpenRA","forks_url":"https://api.github.com/repos/OpenRA/OpenRA/forks","keys_url":"https://api.github.com/repos/OpenRA/OpenRA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRA/OpenRA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRA/OpenRA/teams","hooks_url":"https://api.github.com/repos/OpenRA/OpenRA/hooks","issue_events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRA/OpenRA/events","assignees_url":"https://api.github.com/repos/OpenRA/OpenRA/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRA/OpenRA/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRA/OpenRA/tags","blobs_url":"https://api.github.com/repos/OpenRA/OpenRA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRA/OpenRA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRA/OpenRA/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRA/OpenRA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRA/OpenRA/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRA/OpenRA/languages","stargazers_url":"https://api.github.com/repos/OpenRA/OpenRA/stargazers","contributors_url":"https://api.github.com/repos/OpenRA/OpenRA/contributors","subscribers_url":"https://api.github.com/repos/OpenRA/OpenRA/subscribers","subscription_url":"https://api.github.com/repos/OpenRA/OpenRA/subscription","commits_url":"https://api.github.com/repos/OpenRA/OpenRA/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRA/OpenRA/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRA/OpenRA/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRA/OpenRA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRA/OpenRA/merges","archive_url":"https://api.github.com/repos/OpenRA/OpenRA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRA/OpenRA/downloads","issues_url":"https://api.github.com/repos/OpenRA/OpenRA/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRA/OpenRA/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRA/OpenRA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/labels{/name}","releases_url":"https://api.github.com/repos/OpenRA/OpenRA/releases{/id}","deployments_url":"https://api.github.com/repos/OpenRA/OpenRA/deployments","created_at":"2010-10-04T07:38:05Z","updated_at":"2016-02-19T16:44:26Z","pushed_at":"2016-02-20T16:19:06Z","git_url":"git://github.com/OpenRA/OpenRA.git","ssh_url":"git@github.com:OpenRA/OpenRA.git","clone_url":"https://github.com/OpenRA/OpenRA.git","svn_url":"https://github.com/OpenRA/OpenRA","homepage":"http://www.openra.net","size":142423,"stargazers_count":2597,"watchers_count":2597,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":883,"mirror_url":null,"open_issues_count":971,"forks":883,"open_issues":971,"watchers":2597,"default_branch":"bleed"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10760"},"html":{"href":"https://github.com/OpenRA/OpenRA/pull/10760"},"issue":{"href":"https://api.github.com/repos/OpenRA/OpenRA/issues/10760"},"comments":{"href":"https://api.github.com/repos/OpenRA/OpenRA/issues/10760/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10760/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10760/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRA/OpenRA/statuses/20086609f5312fdda62db01c3e99b048a29ba777"}}}}