Adding some missing files for website.

This commit is contained in:
Jonathan Williams 2014-05-28 11:20:13 -07:00
parent d5ea6c5377
commit 48975d02c7
7 changed files with 86 additions and 3 deletions

2
.gitignore vendored
View File

@ -21,4 +21,6 @@ Reference
BungeeCord BungeeCord
/Plugins/Mineplex.Bungee.Mineplexer/*.gitignore /Plugins/Mineplex.Bungee.Mineplexer/*.gitignore
Reference_1_7 Reference_1_7
Website/LOC.Website.Web/obj/Debug
Servers Servers
Debug

View File

@ -52,8 +52,8 @@ public class ChampionsDominate extends Domination
Manager.GetDamage().UseSimpleWeaponDamage = false; Manager.GetDamage().UseSimpleWeaponDamage = false;
//EloRanking = true; EloRanking = true;
//EloStart = 1000; EloStart = 1000;
} }
@Override @Override

View File

@ -53,7 +53,7 @@ public class Domination extends TeamGame
private ArrayList<String> _lastScoreboard = new ArrayList<String>(); private ArrayList<String> _lastScoreboard = new ArrayList<String>();
//Scores //Scores
private int _victoryScore = 15000; private int _victoryScore = 1000;
private int _redScore = 0; private int _redScore = 0;
private int _blueScore = 0; private int _blueScore = 0;

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LOC.Core.Tokens
{
public class AccountBatchToken
{
public int Start { get; set; }
public int End { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LOC.Core.Tokens
{
public class AccountNameToken
{
public string Name { get; set; }
public string UUID { get; set; }
}
}

View File

@ -0,0 +1,19 @@
namespace LOC.Website.Web.DependencyResolution
{
using StructureMap;
public static class IoC {
public static IContainer Initialize()
{
ObjectFactory.Initialize(
x => x.Scan(
scan =>
{
scan.TheCallingAssembly();
scan.AssembliesFromApplicationBaseDirectory();
scan.WithDefaultConventions();
}));
return ObjectFactory.Container;
}
}
}

View File

@ -0,0 +1,34 @@
namespace LOC.Website.Web.DependencyResolution
{
using StructureMap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
public class SmDependencyResolver : IDependencyResolver {
private readonly IContainer _container;
public SmDependencyResolver(IContainer container) {
_container = container;
}
public object GetService(Type serviceType) {
if (serviceType == null) return null;
try {
return serviceType.IsAbstract || serviceType.IsInterface
? _container.TryGetInstance(serviceType)
: _container.GetInstance(serviceType);
}
catch {
return null;
}
}
public IEnumerable<object> GetServices(Type serviceType) {
return _container.GetAllInstances(serviceType).Cast<object>();
}
}
}