对对对

This commit is contained in:
bob
2025-07-26 17:58:25 +08:00
parent 4d8748e866
commit 6311c7cb12
57 changed files with 458 additions and 317 deletions

View File

@@ -1,7 +1,7 @@
using System.Reflection;
using System.Runtime.Loader;
namespace Fantasy
namespace NB
{
public static class AssemblyHelper
{

View File

@@ -1,6 +1,8 @@
namespace Fantasy;
using Fantasy.Entitas;
public sealed class AuthenticationComponent : Entitas.Entity
namespace NB;
public sealed class AuthenticationComponent : Entity
{
/// <summary>
/// 代表当前服务器在鉴权服务器中的位置

View File

@@ -1,7 +1,7 @@
using Fantasy.Entitas;
using Microsoft.IdentityModel.Tokens;
namespace Fantasy;
namespace NB;
public sealed class AuthenticationJwtComponent : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB;
public sealed class Account : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB;
public class AccountCacheInfo : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB;
public class AccountCacheInfoTimeOut : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB;
public class AccountTimeOut : Entity
{

View File

@@ -27,8 +27,6 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Battle\" />
<Folder Include="Game\" />
<Folder Include="Gate\" />
</ItemGroup>

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB;
public class EntityTimeOutComponent : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class Activity : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class BasicInfo : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class Currency : Entity
{

View File

@@ -1,4 +1,4 @@
namespace Fantasy;
namespace NB.Game;
public class DayFlags
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class GamingInfo : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class Guide : Entity
{

View File

@@ -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;
}

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class MapMatter : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class Mission : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class Skill : Entity
{

View File

@@ -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>

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy;
namespace NB.Game;
public class UserStatisticsInfo : Entity
{

View File

@@ -1,7 +1,7 @@
using Fantasy.Entitas;
using MongoDB.Bson.Serialization.Attributes;
namespace Fantasy.Gate;
namespace NB.Gate;
public sealed class GameAccount : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy.Gate;
namespace NB.Gate;
public sealed class GameAccountFlagComponent : Entity
{

View File

@@ -1,6 +1,6 @@
using Fantasy.Entitas;
namespace Fantasy.Gate;
namespace NB.Gate;
public sealed class GameAccountManageComponent : Entity
{

View File

@@ -1,7 +1,7 @@
using Fantasy.Entitas;
using Microsoft.IdentityModel.Tokens;
namespace Fantasy.Gate;
namespace NB.Gate;
public sealed class GateJWTComponent : Entity
{

View File

@@ -1,4 +1,4 @@
namespace Fantasy;
namespace NB;
public enum LockType
{

View File

@@ -1,7 +0,0 @@
using Fantasy.Entitas;
namespace Fantasy;
public class Fish : Entity
{
}

View 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;
}