예제 #1
0
        public List <Attack> GetAttacksByGameId(Guid gameId, EZoneFunction zoneFilter)
        {
            List <Attack> attacks = new List <Attack>(myGameDbManager.GetFullAttackForGame(gameId));

            if (zoneFilter == EZoneFunction.None)
            {
                return(attacks);
            }
            string zoneStartFunctionFilter = zoneFilter == EZoneFunction.Attack ? "A" : "D";

            return(attacks.Where(a => a.DbAttack.ZoneStartFunction.Equals(zoneStartFunctionFilter)).ToList());
        }