Beispiel #1
0
 public TypeChart(IDictionary <int, Matchup> Effectivenesses, SpiritContext context)
 {
     Matchups = new Dictionary <Tuple <int, int>, double>();
     foreach (KeyValuePair <int, Matchup> matchup in Effectivenesses)
     {
         Matchup MatchupInfo = context.Matchups.Include(m => m.Effectiveness).
                               SingleOrDefault(m => m.MatchupId == matchup.Key);
         Matchups.Add(new Tuple <int, int>(MatchupInfo.AttackingElementalTypeId, MatchupInfo.DefendingElementalTypeId),
                      MatchupInfo.Effectiveness.Multiplier);
     }
 }
 public GameplayController(SpiritContext c)
 {
     context = c;
 }
 public AdminHomeController(SpiritContext c) : base(c)
 {
 }
 public ContactController(SpiritContext c)
 {
     context = c;
 }
Beispiel #5
0
 public AdminCombatController(SpiritContext c, IHostingEnvironment env) : base(c)
 {
     _env = env;
 }
Beispiel #6
0
 public InventoryController(SpiritContext c) : base(c)
 {
 }
 public SocialController(SpiritContext c)
 {
     context = c;
 }
 public AdminUserController(SpiritContext c) : base(c)
 {
 }
Beispiel #9
0
 public BasecampController(SpiritContext c) : base(c)
 {
 }
Beispiel #10
0
 public DataController(SpiritContext c)
 {
     context = c;
 }
Beispiel #11
0
 public AccountController(SpiritContext c)
 {
     context = c;
 }
 public AdminAbyssimalController(SpiritContext c) : base(c)
 {
 }
Beispiel #13
0
 public ShopsController(SpiritContext c) : base(c)
 {
 }
Beispiel #14
0
 public AdminController(SpiritContext c)
 {
     context = c;
 }