void AddGoal(ResultKinds result, PlayerValue[] players, GoalCode condition) { foreach (var player in players) { _gamedef.AddGoal(result, player, condition); } }
internal void AddGoal(ResultKinds kind, PlayerValue player, GoalCode code) { Goals.Add(new GoalDef { Kind = kind, Player = player, Code = code }); }
void s_CountCondition(Maybe <PlayerValue[]> players, GoalCode condition) { var pp = (players.IsNull ? new PlayerValue[] { PlayerValue.None } : players.Value); AddGoal(ResultKinds.Count, pp, condition); }
void s_WinCondition(PlayerValue[] players, GoalCode condition) { AddGoal(ResultKinds.Win, players, condition); }
void s_LossCondition(PlayerValue[] players, GoalCode condition) { AddGoal(ResultKinds.Loss, players, condition); }
void s_DrawCondition(PlayerValue[] players, GoalCode condition) { AddGoal(ResultKinds.Draw, players, condition); }