Created
August 14, 2012 07:19
-
-
Save zulman/3347152 to your computer and use it in GitHub Desktop.
ConditionHelper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static int Condition_Dialog_CastleTutorial_Conditions_m11_0( IScriptData data ) | |
| { | |
| var Heroes = data.Heroes; | |
| var Buildings = data.Buildings; | |
| var Lord = data.Lord; | |
| int result = 0; | |
| foreach(var building in Buildings) | |
| { | |
| if(building.PersistentId=="Production_Resource2") | |
| { | |
| result+=1; | |
| }; | |
| }; | |
| return result; | |
| } | |
| private static int Condition_Dialog_CastleTutorial_Conditions_m11_1( IScriptData data ) | |
| { | |
| var Heroes = data.Heroes; | |
| var Buildings = data.Buildings; | |
| var Lord = data.Lord; | |
| int result = 0; | |
| return Lord.Resources.Resource2; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment