对对对
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.Loader;
|
||||
|
||||
namespace Fantasy
|
||||
namespace NB
|
||||
{
|
||||
public static class AssemblyHelper
|
||||
{
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
namespace Fantasy;
|
||||
using Fantasy.Entitas;
|
||||
|
||||
public sealed class AuthenticationComponent : Entitas.Entity
|
||||
namespace NB;
|
||||
|
||||
public sealed class AuthenticationComponent : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 代表当前服务器在鉴权服务器中的位置
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB;
|
||||
|
||||
public sealed class AuthenticationJwtComponent : Entity
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB;
|
||||
|
||||
public sealed class Account : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB;
|
||||
|
||||
public class AccountCacheInfo : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB;
|
||||
|
||||
public class AccountCacheInfoTimeOut : Entity
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB;
|
||||
|
||||
public class AccountTimeOut : Entity
|
||||
{
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Battle\" />
|
||||
<Folder Include="Game\" />
|
||||
<Folder Include="Gate\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB;
|
||||
|
||||
public class EntityTimeOutComponent : Entity
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class Activity : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class BasicInfo : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class Currency : Entity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class DayFlags
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class GamingInfo : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class Guide : Entity
|
||||
{
|
||||
@@ -1,21 +1,21 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class Item : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置id
|
||||
/// </summary>
|
||||
public int ConfigId;
|
||||
|
||||
/// <summary>
|
||||
/// 拥有的数量
|
||||
/// </summary>
|
||||
public int Count;
|
||||
|
||||
/// <summary>
|
||||
/// 耐久度
|
||||
/// 配置id
|
||||
/// </summary>
|
||||
public int Durability;
|
||||
public int ConfigId;
|
||||
|
||||
/// <summary>
|
||||
/// 是否绑定
|
||||
/// </summary>
|
||||
public bool IsBind;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class MapMatter : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class Mission : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class Skill : Entity
|
||||
{
|
||||
@@ -1,6 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
using NB.Game;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB;
|
||||
|
||||
public class UserInfo : Entity
|
||||
{
|
||||
@@ -28,12 +29,7 @@ public class UserInfo : Entity
|
||||
/// 拥有的物品
|
||||
/// </summary>
|
||||
public List<Item> Items;
|
||||
|
||||
/// <summary>
|
||||
/// 鱼护
|
||||
/// </summary>
|
||||
public List<Fish> Fishes;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 参与的活动
|
||||
/// </summary>
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
namespace NB.Game;
|
||||
|
||||
public class UserStatisticsInfo : Entity
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace Fantasy.Gate;
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class GameAccount : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy.Gate;
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class GameAccountFlagComponent : Entity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy.Gate;
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class GameAccountManageComponent : Entity
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Fantasy.Entitas;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
namespace Fantasy.Gate;
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class GateJWTComponent : Entity
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Fantasy;
|
||||
namespace NB;
|
||||
|
||||
public enum LockType
|
||||
{
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class Fish : Entity
|
||||
{
|
||||
}
|
||||
32
Entity/Model/Def/ErrorCode.cs
Normal file
32
Entity/Model/Def/ErrorCode.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
namespace Fantasy;
|
||||
|
||||
public class ErrorCode
|
||||
{
|
||||
public const uint Successful = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 参数有误
|
||||
/// </summary>
|
||||
public const uint ErrArgs = 10001;
|
||||
|
||||
/// <summary>
|
||||
/// 服务器有误
|
||||
/// </summary>
|
||||
public const uint ErrServer = 10002;
|
||||
|
||||
/// <summary>
|
||||
/// 操作太频繁
|
||||
/// </summary>
|
||||
public const uint ErrFrequent = 10003;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 账号已被注册
|
||||
/// </summary>
|
||||
public const uint ErrAccountHave = 11001;
|
||||
|
||||
/// <summary>
|
||||
/// 账号或密码有误
|
||||
/// </summary>
|
||||
public const uint ErrAccountOrPass = 11002;
|
||||
}
|
||||
Reference in New Issue
Block a user