Exemplo n.º 1
0
        public static IEnumerable <DbStaticEffect> GetAllStaticEffects()
        {
            IDbStaticEffectRepository effectRepo = new EFDbStaticEffectRepository();

            return(effectRepo.DbStaticEffects);
        }
Exemplo n.º 2
0
        public static DbStaticEffect GetDbStaticEffect(int effectSourceId)
        {
            IDbStaticEffectRepository effectRepo = new EFDbStaticEffectRepository();

            return(effectRepo.DbStaticEffects.FirstOrDefault(s => s.Id == effectSourceId));
        }
Exemplo n.º 3
0
        public static IEnumerable <DbStaticEffect> GetEffectGainedAtLocation(string location)
        {
            IDbStaticEffectRepository effectRepo = new EFDbStaticEffectRepository();

            return(effectRepo.DbStaticEffects.Where(e => e.ObtainedAtLocation == location));
        }