//an until-condition will provide its own selector for the source public string ToString(GameRuleSelector sourceSelector) { return sourceSelector.ToString() + GameRuleEvent.getEventText(eventType) + (targetType == typeof(FieldObject) ? param : GameRuleSourceSelector.selectorIdentifier(targetType, sourceSelector).ToString()); }
public void addIcons(List<GameObject> iconList, GameRuleSelector sourceSelector) { sourceSelector.addIcons(iconList); iconList.Add(GameRuleEvent.getEventIcon(eventType)); if (targetType == typeof(FieldObject)) addFieldObjectIcon(param, iconList); else GameRuleSourceSelector.selectorIdentifier(targetType, sourceSelector).addIcons(iconList); }
public GameRuleDesignComponentSelectorDescriptor(GameRuleSelector sd) : base(null, 0, null) { List<GameObject> iconList = new List<GameObject>(); sd.addIcons(iconList); displayIcon = iconList[0]; selectorDescribed = sd; }
public static GameRuleSelector selectorIdentifier(System.Type type, GameRuleSelector otherSelector) { return selectorIdentifier(type, !(otherSelector is GameRuleOpponentSelector || otherSelector is GameRuleBallShooterOpponentSelector)); }
public GameRuleEffectAction(GameRuleSelector sos, GameRuleEffect ie) { selector = sos; innerEffect = ie; }
public GameRuleActionUntilConditionDuration(GameRuleSelector ts, GameRuleEventHappenedCondition uc) { triggerSelector = ts; untilCondition = uc; }