Adding some missing files for website.
This commit is contained in:
parent
d5ea6c5377
commit
48975d02c7
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
14
Website/LOC.Core/Tokens/AccountBatchToken.cs
Normal file
14
Website/LOC.Core/Tokens/AccountBatchToken.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
14
Website/LOC.Core/Tokens/AccountNameToken.cs
Normal file
14
Website/LOC.Core/Tokens/AccountNameToken.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user