Some namespace cleanup
This commit is contained in:
parent
8f7dd7993f
commit
9a6da5d717
|
@ -1,11 +1,5 @@
|
||||||
using System.Reflection;
|
using Config.Net;
|
||||||
using AscNet.Common.Database;
|
|
||||||
using MongoDB.Driver;
|
using MongoDB.Driver;
|
||||||
using Config.Net;
|
|
||||||
using MongoDB.Bson.Serialization;
|
|
||||||
using MongoDB.Bson.Serialization.Options;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using AscNet.Common.Util;
|
|
||||||
|
|
||||||
namespace AscNet.Common
|
namespace AscNet.Common
|
||||||
{
|
{
|
||||||
|
@ -29,6 +23,7 @@ namespace AscNet.Common
|
||||||
db = mongoClient.GetDatabase(config.Database.Name);
|
db = mongoClient.GetDatabase(config.Database.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
public static void DumpTables()
|
public static void DumpTables()
|
||||||
{
|
{
|
||||||
IEnumerable<Type> tableTypes = Assembly.GetAssembly(typeof(Table.V2.client.activity.ActivityGroupTable))!.GetTypes().Where(t => typeof(ITable).IsAssignableFrom(t));
|
IEnumerable<Type> tableTypes = Assembly.GetAssembly(typeof(Table.V2.client.activity.ActivityGroupTable))!.GetTypes().Where(t => typeof(ITable).IsAssignableFrom(t));
|
||||||
|
@ -57,7 +52,9 @@ namespace AscNet.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ServerCodeException : Exception
|
public class ServerCodeException : Exception
|
||||||
{
|
{
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
|
@ -4,7 +4,6 @@ using AscNet.Common.Util;
|
||||||
using AscNet.Table.V2.share.chat;
|
using AscNet.Table.V2.share.chat;
|
||||||
using AscNet.Table.V2.share.guide;
|
using AscNet.Table.V2.share.guide;
|
||||||
using AscNet.Table.V2.share.photomode;
|
using AscNet.Table.V2.share.photomode;
|
||||||
using AscNet.Table.V2.share.trpg;
|
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
using AscNet.Common.Database;
|
using AscNet.Common;
|
||||||
|
using AscNet.Common.Database;
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
using AscNet.Common.Util;
|
using AscNet.Common.Util;
|
||||||
using AscNet.Table.V2.share.item;
|
|
||||||
using AscNet.Table.V2.share.character;
|
using AscNet.Table.V2.share.character;
|
||||||
using AscNet.Table.V2.share.character.grade;
|
|
||||||
using MessagePack;
|
|
||||||
using AscNet.Common;
|
|
||||||
using AscNet.Table.V2.share.character.quality;
|
|
||||||
using MongoDB.Driver.Linq;
|
|
||||||
using AscNet.Table.V2.share.character.skill;
|
|
||||||
using AscNet.Table.V2.share.character.enhanceskill;
|
using AscNet.Table.V2.share.character.enhanceskill;
|
||||||
|
using AscNet.Table.V2.share.character.grade;
|
||||||
|
using AscNet.Table.V2.share.character.quality;
|
||||||
|
using AscNet.Table.V2.share.character.skill;
|
||||||
|
using AscNet.Table.V2.share.item;
|
||||||
|
using MessagePack;
|
||||||
|
using MongoDB.Driver.Linq;
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
using AscNet.Common.Database;
|
using AscNet.Common.Database;
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
using AscNet.Common.Util;
|
using AscNet.Common.Util;
|
||||||
|
using AscNet.Table.V2.share.attrib;
|
||||||
using AscNet.Table.V2.share.equip;
|
using AscNet.Table.V2.share.equip;
|
||||||
using AscNet.Table.V2.share.item;
|
using AscNet.Table.V2.share.item;
|
||||||
using AscNet.Table.V2.share.attrib;
|
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
using AscNet.Table.V2.share.exhibition;
|
|
||||||
using AscNet.Common.Util;
|
using AscNet.Common.Util;
|
||||||
|
using AscNet.Table.V2.share.exhibition;
|
||||||
using AscNet.Table.V2.share.reward;
|
using AscNet.Table.V2.share.reward;
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
using AscNet.Common.Database;
|
using AscNet.Common;
|
||||||
|
using AscNet.Common.Database;
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
using AscNet.Common.Util;
|
using AscNet.Common.Util;
|
||||||
using AscNet.Common;
|
using AscNet.GameServer.Handlers.Drops;
|
||||||
|
using AscNet.Table.V2.share.character.skill;
|
||||||
using AscNet.Table.V2.share.fuben;
|
using AscNet.Table.V2.share.fuben;
|
||||||
using AscNet.Table.V2.share.item;
|
using AscNet.Table.V2.share.item;
|
||||||
using AscNet.Table.V2.share.reward;
|
using AscNet.Table.V2.share.reward;
|
||||||
using MessagePack;
|
|
||||||
using AscNet.GameServer.Handlers.Drops;
|
|
||||||
using AscNet.Table.V2.share.robot;
|
using AscNet.Table.V2.share.robot;
|
||||||
using AscNet.Table.V2.share.character.skill;
|
using MessagePack;
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using AscNet.Common.MsgPack;
|
using MessagePack;
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
using AscNet.Common.Util;
|
using AscNet.Common.Util;
|
||||||
using AscNet.Table.V2.share.reward;
|
|
||||||
using AscNet.Table.V2.share.trpg;
|
using AscNet.Table.V2.share.trpg;
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue