水电费
This commit is contained in:
15
Entity/Authentication/AuthenticationComponent.cs
Normal file
15
Entity/Authentication/AuthenticationComponent.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Fantasy;
|
||||
|
||||
public sealed class AuthenticationComponent : Entitas.Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 代表当前服务器在鉴权服务器中的位置
|
||||
/// </summary>
|
||||
public int Position;
|
||||
/// <summary>
|
||||
/// 代表当前鉴权组的数量
|
||||
/// </summary>
|
||||
public int AuthenticationCount;
|
||||
public readonly Dictionary<string, Account> Accounts = new Dictionary<string, Account>();
|
||||
public readonly Dictionary<string, AccountCacheInfo> LoginAccounts = new Dictionary<string, AccountCacheInfo>();
|
||||
}
|
||||
12
Entity/Authentication/AuthenticationJwtComponent.cs
Normal file
12
Entity/Authentication/AuthenticationJwtComponent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Fantasy.Entitas;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public sealed class AuthenticationJwtComponent : Entity
|
||||
{
|
||||
public string PublicKeyPem = "MIIBCgKCAQEAqc1moV1nynBYVXhsXeTuDc/DcC7TSQ+dVmTsyeUZP+PaiZjxp/cIo0sj9OCAcAK2nCBpIjBjM7Rbg7Uslb4KvlH8eshsH8LOL9KybNsB0uFg/kPvSvIBcdWsxbbARxDGrTl+Nh1t6s2V1voK9g+OQqK/xIyhvrwFYIjc1/O6FI4uGyMag3D6MJATW2SCrwe1tKU9dfk72VrIqT4FVzbZUDQdFxEKHiQ4vcoBiGxsoYWr6lxbrrtDDNzPzVEgzDbsvaPvSCNRacFaBCJBeGCWGn/fKKBOl5NV2EfXa8oNFgw0VfC4JiRpPUjdhsKvzjtp5P3AYrnloGkTxp9HLkdDjwIDAQAB";
|
||||
public string PrivateKeyPem = "MIIEowIBAAKCAQEAqc1moV1nynBYVXhsXeTuDc/DcC7TSQ+dVmTsyeUZP+PaiZjxp/cIo0sj9OCAcAK2nCBpIjBjM7Rbg7Uslb4KvlH8eshsH8LOL9KybNsB0uFg/kPvSvIBcdWsxbbARxDGrTl+Nh1t6s2V1voK9g+OQqK/xIyhvrwFYIjc1/O6FI4uGyMag3D6MJATW2SCrwe1tKU9dfk72VrIqT4FVzbZUDQdFxEKHiQ4vcoBiGxsoYWr6lxbrrtDDNzPzVEgzDbsvaPvSCNRacFaBCJBeGCWGn/fKKBOl5NV2EfXa8oNFgw0VfC4JiRpPUjdhsKvzjtp5P3AYrnloGkTxp9HLkdDjwIDAQABAoIBAAP7djm4mBOOWPQANAJruQ2H3tyFrJzdCeKZ0VfW0KXH8Tsi5B/9Ui2KOJionzqBRckZlX2gxuLSiwbmu9nzMAtQnuw+QRLpna5PcbHN3RgWAxFThIwsas5BpaCpbY79HLu5SnV4cTh9g9Mb4B/vM3XqnTa92ZlAjZu6+fryk12iAiWKGgMIJDG1TW7PLz9bAdhvfLcJ4ipP+dDtbbYuDSkykijYS7Vq94syhD00HCnPWeNb/UQBwYoD/rsQ9j0zTVNe5SAMhNVm2vC+TX38pYDzGahNo6Y5RnKQAPC7WchEhmesuQYaxZo+2ZtquN9OC2WanaHzoT5ru9yUXY6n9ikCgYEA7FtQXFaeAI7J2pSsb5LnKoGZsWnHBhLUMVUKEGx2ORk37kAbUBY1gNsRuIysEmpkWTFfLCWoqFEca/gK/79viggrwbkjzizZOICXONEgDm5YRK+0K728FGuPWCxj6J+nrcstBKem/zPxt7gqVXeCJWw9DAjySbsWeZ8nAQtDCTMCgYEAt+oWcLQLO/J46k8HA4euavrcDYrY5qCxiq/E7CeV7h9g5Cb/oMMICqNASlzL80uynLkCaVTvs+v25ZJeZU/Pyty9jNbYDtOxnABBNZNolrrgtw2cB47m93/3X1ABn0eJ451l0AEbBu5y/MoLEDdCD7s1FtvRZ0FEOynuLKZYNDUCgYAnUGUEhu/PHfEbZ4FrKZ9D5by/0t1k+DrNXdzHsJLVmolAGu+wGZGatlWzQcrZYVMBtwGioTz1ilBU8TQ7KAeQiR1mIrp+79zN1i3RKI/Rdq899Y/derjPGLkGLJQNvIiyksoRLSXM60H4kiyQfMlsGh3pY4+RjgoF/uAI/2uOGwKBgC/uWhrVUXg2IT0vi2xoGBTZfDArV4wDpUG3vWKujmyY0O+lGkoTiiz7ju3ScXTe7ZXawb4h3LbPcHE0TFWrD0SXcu8ZrwVuNoOprVUBLejam2YZrehqXddzCk1U1JdmVZF0m+wx3ZFY467uGSQIwrbG23cxosl+QQIKU4Bfee1hAoGBAJhnrD5GJmqrTQEZta9gjIhtHPoIWxwwYCkxbq/j2N7GLudlLzAs304ByqlKNNYysT9SahPS8oGvqdRFd2bo90MQy0L7U2z6SG+gNhX7EGzDU6AnpotuVy56r/9bLRW4rXrHgwz8dUJWjqmmIBpsjAhpIykBu3HefSoiMc0s3RvJ";
|
||||
public SigningCredentials SigningCredentials;
|
||||
public TokenValidationParameters TokenValidationParameters;
|
||||
}
|
||||
11
Entity/Authentication/Model/Account.cs
Normal file
11
Entity/Authentication/Model/Account.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public sealed class Account : Entity
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public long CreateTime { get; set; }
|
||||
public long LoginTime { get; set; }
|
||||
}
|
||||
8
Entity/Authentication/Model/AccountCacheInfo.cs
Normal file
8
Entity/Authentication/Model/AccountCacheInfo.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class AccountCacheInfo : Entity
|
||||
{
|
||||
|
||||
}
|
||||
9
Entity/Authentication/TimeOut/AccountCacheInfoTimeOut.cs
Normal file
9
Entity/Authentication/TimeOut/AccountCacheInfoTimeOut.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class AccountCacheInfoTimeOut : Entity
|
||||
{
|
||||
public long TimerId;
|
||||
public string Key;
|
||||
}
|
||||
8
Entity/Authentication/TimeOut/AccountTimeOut.cs
Normal file
8
Entity/Authentication/TimeOut/AccountTimeOut.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class AccountTimeOut : Entity
|
||||
{
|
||||
public long TimerId;
|
||||
}
|
||||
@@ -21,4 +21,15 @@
|
||||
<ProjectReference Include="..\Fantasy\Fantasy.Packages\Fantasy.ConfigTable\Net\Fantasy.ConfigTable.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.12.1" />
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.12.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Battle\" />
|
||||
<Folder Include="Game\" />
|
||||
<Folder Include="Gate\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
21
Entity/EntityTimeOutComponent.cs
Normal file
21
Entity/EntityTimeOutComponent.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public class EntityTimeOutComponent : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 主要是用于检测每次请求的间隔,这里存放是下一次能正常通信时间
|
||||
/// </summary>
|
||||
public long NextTime;
|
||||
|
||||
/// <summary>
|
||||
/// 用来设置检查的间隔时间
|
||||
/// </summary>
|
||||
public int Interval;
|
||||
|
||||
/// <summary>
|
||||
/// 用于记录时间计划任务的ID,后面可以通过这个ID随时取消这个任务
|
||||
/// </summary>
|
||||
public long TimerId;
|
||||
}
|
||||
8
Entity/Gate/GameAccountManageComponent.cs
Normal file
8
Entity/Gate/GameAccountManageComponent.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy.Gate;
|
||||
|
||||
public sealed class GameAccountManageComponent : Entity
|
||||
{
|
||||
public readonly Dictionary<long, GameAccount> Accounts = new();
|
||||
}
|
||||
11
Entity/Gate/GateJWTComponent.cs
Normal file
11
Entity/Gate/GateJWTComponent.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Fantasy.Entitas;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
namespace Fantasy.Gate;
|
||||
|
||||
public sealed class GateJWTComponent : Entity
|
||||
{
|
||||
public string PublicKeyPem = "MIIBCgKCAQEAqc1moV1nynBYVXhsXeTuDc/DcC7TSQ+dVmTsyeUZP+PaiZjxp/cIo0sj9OCAcAK2nCBpIjBjM7Rbg7Uslb4KvlH8eshsH8LOL9KybNsB0uFg/kPvSvIBcdWsxbbARxDGrTl+Nh1t6s2V1voK9g+OQqK/xIyhvrwFYIjc1/O6FI4uGyMag3D6MJATW2SCrwe1tKU9dfk72VrIqT4FVzbZUDQdFxEKHiQ4vcoBiGxsoYWr6lxbrrtDDNzPzVEgzDbsvaPvSCNRacFaBCJBeGCWGn/fKKBOl5NV2EfXa8oNFgw0VfC4JiRpPUjdhsKvzjtp5P3AYrnloGkTxp9HLkdDjwIDAQAB";
|
||||
public SigningCredentials SigningCredentials;
|
||||
public TokenValidationParameters TokenValidationParameters;
|
||||
}
|
||||
16
Entity/Gate/Model/GameAccount.cs
Normal file
16
Entity/Gate/Model/GameAccount.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Fantasy.Entitas;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace Fantasy.Gate;
|
||||
|
||||
public sealed class GameAccount : Entity
|
||||
{
|
||||
// 1、可以拿ToKen的传递过来的AId来当这个组件的Id.
|
||||
// 2、让这个Id自动生成、在组件里做一个变量来记录ToKen的AId。 public long AuthenticationId;
|
||||
public long CreateTime;
|
||||
public long LoginTime;
|
||||
|
||||
[BsonIgnore]
|
||||
// BsonIgnore特性是让Bson保存到数据库中忽略掉这个字段。
|
||||
public long SessionRunTimeId;
|
||||
}
|
||||
13
Entity/Gate/Model/GameAccountFlagComponent.cs
Normal file
13
Entity/Gate/Model/GameAccountFlagComponent.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy.Gate;
|
||||
|
||||
public sealed class GameAccountFlagComponent : Entity
|
||||
{
|
||||
public long AccountID;
|
||||
|
||||
// 有一种可能,当在Account在其他地方被销毁
|
||||
// 这时候因为这个Account是会回收到池子中,所以这个引用还是有效的
|
||||
// 那这时候就会出现这个引用的Account可能是其他用户的了。
|
||||
public EntityReference<GameAccount> Account;
|
||||
}
|
||||
@@ -17,6 +17,220 @@ using Fantasy.Serialize;
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
[ProtoContract]
|
||||
public partial class C2A_RegisterRequest : AMessage, IRequest, IProto
|
||||
{
|
||||
public static C2A_RegisterRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2A_RegisterRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Username = default;
|
||||
Password = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2A_RegisterRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public A2C_RegisterResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2A_RegisterRequest; }
|
||||
[ProtoMember(1)]
|
||||
public string Username { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string Password { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class A2C_RegisterResponse : AMessage, IResponse, IProto
|
||||
{
|
||||
public static A2C_RegisterResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<A2C_RegisterResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<A2C_RegisterResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.A2C_RegisterResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2A_LoginRequest : AMessage, IRequest, IProto
|
||||
{
|
||||
public static C2A_LoginRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2A_LoginRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Username = default;
|
||||
Password = default;
|
||||
LoginType = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2A_LoginRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public A2C_LoginResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2A_LoginRequest; }
|
||||
[ProtoMember(1)]
|
||||
public string Username { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public string Password { get; set; }
|
||||
[ProtoMember(3)]
|
||||
public int LoginType { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class A2C_LoginResponse : AMessage, IResponse, IProto
|
||||
{
|
||||
public static A2C_LoginResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<A2C_LoginResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
ToKen = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<A2C_LoginResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.A2C_LoginResponse; }
|
||||
[ProtoMember(1)]
|
||||
public string ToKen { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端登录到Gate服务器
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_LoginRequest : AMessage, IRequest, IProto
|
||||
{
|
||||
public static C2G_LoginRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_LoginRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ToKen = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_LoginRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public G2C_LoginResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2G_LoginRequest; }
|
||||
[ProtoMember(1)]
|
||||
public string ToKen { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class G2C_LoginResponse : AMessage, IResponse, IProto
|
||||
{
|
||||
public static G2C_LoginResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_LoginResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
GameAccountInfo = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_LoginResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_LoginResponse; }
|
||||
[ProtoMember(1)]
|
||||
public GameAccountInfo GameAccountInfo { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 通知客户端重复登录
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class G2C_RepeatLogin : AMessage, IMessage, IProto
|
||||
{
|
||||
public static G2C_RepeatLogin Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_RepeatLogin>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_RepeatLogin>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_RepeatLogin; }
|
||||
}
|
||||
/// <summary>
|
||||
/// GameAccount实体类
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class GameAccountInfo : AMessage, IProto
|
||||
{
|
||||
public static GameAccountInfo Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<GameAccountInfo>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
CreateTime = default;
|
||||
LoginTime = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<GameAccountInfo>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public long CreateTime { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long LoginTime { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 拿到当前账号的信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_GetAccountInfoRequest : AMessage, IRequest, IProto
|
||||
{
|
||||
public static C2G_GetAccountInfoRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_GetAccountInfoRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_GetAccountInfoRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public G2C_GetAccountInfoResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2G_GetAccountInfoRequest; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class G2C_GetAccountInfoResponse : AMessage, IResponse, IProto
|
||||
{
|
||||
public static G2C_GetAccountInfoResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_GetAccountInfoResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
GameAccountInfo = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_GetAccountInfoResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_GetAccountInfoResponse; }
|
||||
[ProtoMember(1)]
|
||||
public GameAccountInfo GameAccountInfo { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2G_TestMessage : AMessage, IMessage, IProto
|
||||
{
|
||||
@@ -77,42 +291,6 @@ namespace Fantasy
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2G_TestRequestPushMessage : AMessage, IMessage, IProto
|
||||
{
|
||||
public static C2G_TestRequestPushMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_TestRequestPushMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_TestRequestPushMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2G_TestRequestPushMessage; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Gate服务器推送一个消息给客户端
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class G2C_PushMessage : AMessage, IMessage, IProto
|
||||
{
|
||||
public static G2C_PushMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_PushMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_PushMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_PushMessage; }
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class C2G_CreateAddressableRequest : AMessage, IRequest, IProto
|
||||
{
|
||||
public static C2G_CreateAddressableRequest Create(Scene scene)
|
||||
@@ -313,475 +491,4 @@ namespace Fantasy
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送一个RPC消息给Map,让Map里的Entity转移到另外一个Map上
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2M_MoveToMapRequest : AMessage, IAddressableRouteRequest, IProto
|
||||
{
|
||||
public static C2M_MoveToMapRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2M_MoveToMapRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2M_MoveToMapRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public M2C_MoveToMapResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2M_MoveToMapRequest; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class M2C_MoveToMapResponse : AMessage, IAddressableRouteResponse, IProto
|
||||
{
|
||||
public static M2C_MoveToMapResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<M2C_MoveToMapResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<M2C_MoveToMapResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.M2C_MoveToMapResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送一个消息给Gate,让Gate发送一个Addressable消息给MAP
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_SendAddressableToMap : AMessage, IMessage, IProto
|
||||
{
|
||||
public static C2G_SendAddressableToMap Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_SendAddressableToMap>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_SendAddressableToMap>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2G_SendAddressableToMap; }
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送一个消息给Chat,让Chat服务器主动推送一个RouteMessage消息给客户端
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Chat_TestRequestPushMessage : AMessage, ICustomRouteMessage, IProto
|
||||
{
|
||||
public static C2Chat_TestRequestPushMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Chat_TestRequestPushMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Chat_TestRequestPushMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Chat_TestRequestPushMessage; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.ChatRoute;
|
||||
}
|
||||
/// <summary>
|
||||
/// Chat服务器主动推送一个消息给客户端
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Chat2C_PushMessage : AMessage, ICustomRouteMessage, IProto
|
||||
{
|
||||
public static Chat2C_PushMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Chat2C_PushMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Chat2C_PushMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Chat2C_PushMessage; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RouteType.ChatRoute;
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端发送给Gate服务器通知map服务器创建一个SubScene
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_CreateSubSceneRequest : AMessage, IRequest, IProto
|
||||
{
|
||||
public static C2G_CreateSubSceneRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_CreateSubSceneRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_CreateSubSceneRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public G2C_CreateSubSceneResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2G_CreateSubSceneRequest; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class G2C_CreateSubSceneResponse : AMessage, IResponse, IProto
|
||||
{
|
||||
public static G2C_CreateSubSceneResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_CreateSubSceneResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_CreateSubSceneResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_CreateSubSceneResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端通知Gate服务器给SubScene发送一个消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_SendToSubSceneMessage : AMessage, IMessage, IProto
|
||||
{
|
||||
public static C2G_SendToSubSceneMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_SendToSubSceneMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_SendToSubSceneMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2G_SendToSubSceneMessage; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端通知Gate服务器创建一个SubScene的Address消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_CreateSubSceneAddressableRequest : AMessage, IRequest, IProto
|
||||
{
|
||||
public static C2G_CreateSubSceneAddressableRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_CreateSubSceneAddressableRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_CreateSubSceneAddressableRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public G2C_CreateSubSceneAddressableResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2G_CreateSubSceneAddressableRequest; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class G2C_CreateSubSceneAddressableResponse : AMessage, IResponse, IProto
|
||||
{
|
||||
public static G2C_CreateSubSceneAddressableResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_CreateSubSceneAddressableResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_CreateSubSceneAddressableResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_CreateSubSceneAddressableResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端向SubScene发送一个测试消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2SubScene_TestMessage : AMessage, IAddressableRouteMessage, IProto
|
||||
{
|
||||
public static C2SubScene_TestMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2SubScene_TestMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2SubScene_TestMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2SubScene_TestMessage; }
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端向SubScene发送一个销毁测试消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2SubScene_TestDisposeMessage : AMessage, IAddressableRouteMessage, IProto
|
||||
{
|
||||
public static C2SubScene_TestDisposeMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2SubScene_TestDisposeMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2SubScene_TestDisposeMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2SubScene_TestDisposeMessage; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端向服务器发送连接消息(Roaming)
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2G_ConnectRoamingRequest : AMessage, IRequest, IProto
|
||||
{
|
||||
public static C2G_ConnectRoamingRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2G_ConnectRoamingRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2G_ConnectRoamingRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public G2C_ConnectRoamingResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2G_ConnectRoamingRequest; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class G2C_ConnectRoamingResponse : AMessage, IResponse, IProto
|
||||
{
|
||||
public static G2C_ConnectRoamingResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2C_ConnectRoamingResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2C_ConnectRoamingResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.G2C_ConnectRoamingResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 测试一个Chat漫游普通消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Chat_TestRoamingMessage : AMessage, IRoamingMessage, IProto
|
||||
{
|
||||
public static C2Chat_TestRoamingMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Chat_TestRoamingMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Chat_TestRoamingMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Chat_TestRoamingMessage; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RoamingType.ChatRoamingType;
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 测试一个Map漫游普通消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Map_TestRoamingMessage : AMessage, IRoamingMessage, IProto
|
||||
{
|
||||
public static C2Map_TestRoamingMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_TestRoamingMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_TestRoamingMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Map_TestRoamingMessage; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RoamingType.MapRoamingType;
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 测试一个Chat漫游RPC消息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Chat_TestRPCRoamingRequest : AMessage, IRoamingRequest, IProto
|
||||
{
|
||||
public static C2Chat_TestRPCRoamingRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Chat_TestRPCRoamingRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Chat_TestRPCRoamingRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Chat2C_TestRPCRoamingResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Chat_TestRPCRoamingRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RoamingType.ChatRoamingType;
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class Chat2C_TestRPCRoamingResponse : AMessage, IRoamingResponse, IProto
|
||||
{
|
||||
public static Chat2C_TestRPCRoamingResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Chat2C_TestRPCRoamingResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Chat2C_TestRPCRoamingResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Chat2C_TestRPCRoamingResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端发送一个漫游消息给Map通知Map主动推送一个消息给客户端
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Map_PushMessageToClient : AMessage, IRoamingMessage, IProto
|
||||
{
|
||||
public static C2Map_PushMessageToClient Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_PushMessageToClient>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_PushMessageToClient>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Map_PushMessageToClient; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RoamingType.MapRoamingType;
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 漫游端发送一个消息给客户端
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class Map2C_PushMessageToClient : AMessage, IRoamingMessage, IProto
|
||||
{
|
||||
public static Map2C_PushMessageToClient Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_PushMessageToClient>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_PushMessageToClient>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_PushMessageToClient; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RoamingType.MapRoamingType;
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 测试传送漫游的触发协议
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Map_TestTransferRequest : AMessage, IRoamingRequest, IProto
|
||||
{
|
||||
public static C2Map_TestTransferRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Map_TestTransferRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Map_TestTransferRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public Map2C_TestTransferResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.C2Map_TestTransferRequest; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RoamingType.MapRoamingType;
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class Map2C_TestTransferResponse : AMessage, IRoamingResponse, IProto
|
||||
{
|
||||
public static Map2C_TestTransferResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<Map2C_TestTransferResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<Map2C_TestTransferResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.Map2C_TestTransferResponse; }
|
||||
[ProtoMember(1)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 测试一个Chat发送到Map之间漫游协议
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class C2Chat_TestSendMapMessage : AMessage, IRoamingMessage, IProto
|
||||
{
|
||||
public static C2Chat_TestSendMapMessage Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<C2Chat_TestSendMapMessage>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
Tag = default;
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<C2Chat_TestSendMapMessage>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return OuterOpcode.C2Chat_TestSendMapMessage; }
|
||||
[ProtoIgnore]
|
||||
public int RouteType => Fantasy.RoamingType.ChatRoamingType;
|
||||
[ProtoMember(1)]
|
||||
public string Tag { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,43 +2,27 @@ namespace Fantasy
|
||||
{
|
||||
public static partial class OuterOpcode
|
||||
{
|
||||
public const uint C2G_TestMessage = 134227729;
|
||||
public const uint C2G_TestRequest = 268445457;
|
||||
public const uint G2C_TestResponse = 402663185;
|
||||
public const uint C2G_TestRequestPushMessage = 134227730;
|
||||
public const uint G2C_PushMessage = 134227731;
|
||||
public const uint C2G_CreateAddressableRequest = 268445458;
|
||||
public const uint G2C_CreateAddressableResponse = 402663186;
|
||||
public const uint C2A_RegisterRequest = 268445457;
|
||||
public const uint A2C_RegisterResponse = 402663185;
|
||||
public const uint C2A_LoginRequest = 268445458;
|
||||
public const uint A2C_LoginResponse = 402663186;
|
||||
public const uint C2G_LoginRequest = 268445459;
|
||||
public const uint G2C_LoginResponse = 402663187;
|
||||
public const uint G2C_RepeatLogin = 134227729;
|
||||
public const uint C2G_GetAccountInfoRequest = 268445460;
|
||||
public const uint G2C_GetAccountInfoResponse = 402663188;
|
||||
public const uint C2G_TestMessage = 134227730;
|
||||
public const uint C2G_TestRequest = 268445461;
|
||||
public const uint G2C_TestResponse = 402663189;
|
||||
public const uint C2G_CreateAddressableRequest = 268445462;
|
||||
public const uint G2C_CreateAddressableResponse = 402663190;
|
||||
public const uint C2M_TestMessage = 1342187281;
|
||||
public const uint C2M_TestRequest = 1476405009;
|
||||
public const uint M2C_TestResponse = 1610622737;
|
||||
public const uint C2G_CreateChatRouteRequest = 268445459;
|
||||
public const uint G2C_CreateChatRouteResponse = 402663187;
|
||||
public const uint C2G_CreateChatRouteRequest = 268445463;
|
||||
public const uint G2C_CreateChatRouteResponse = 402663191;
|
||||
public const uint C2Chat_TestMessage = 2147493649;
|
||||
public const uint C2Chat_TestMessageRequest = 2281711377;
|
||||
public const uint Chat2C_TestMessageResponse = 2415929105;
|
||||
public const uint C2M_MoveToMapRequest = 1476405010;
|
||||
public const uint M2C_MoveToMapResponse = 1610622738;
|
||||
public const uint C2G_SendAddressableToMap = 134227732;
|
||||
public const uint C2Chat_TestRequestPushMessage = 2147493650;
|
||||
public const uint Chat2C_PushMessage = 2147493651;
|
||||
public const uint C2G_CreateSubSceneRequest = 268445460;
|
||||
public const uint G2C_CreateSubSceneResponse = 402663188;
|
||||
public const uint C2G_SendToSubSceneMessage = 134227733;
|
||||
public const uint C2G_CreateSubSceneAddressableRequest = 268445461;
|
||||
public const uint G2C_CreateSubSceneAddressableResponse = 402663189;
|
||||
public const uint C2SubScene_TestMessage = 1342187282;
|
||||
public const uint C2SubScene_TestDisposeMessage = 1342187283;
|
||||
public const uint C2G_ConnectRoamingRequest = 268445462;
|
||||
public const uint G2C_ConnectRoamingResponse = 402663190;
|
||||
public const uint C2Chat_TestRoamingMessage = 2550146833;
|
||||
public const uint C2Map_TestRoamingMessage = 2550146834;
|
||||
public const uint C2Chat_TestRPCRoamingRequest = 2684364561;
|
||||
public const uint Chat2C_TestRPCRoamingResponse = 2818582289;
|
||||
public const uint C2Map_PushMessageToClient = 2550146835;
|
||||
public const uint Map2C_PushMessageToClient = 2550146836;
|
||||
public const uint C2Map_TestTransferRequest = 2684364562;
|
||||
public const uint Map2C_TestTransferResponse = 2818582290;
|
||||
public const uint C2Chat_TestSendMapMessage = 2550146837;
|
||||
}
|
||||
}
|
||||
|
||||
9
Entity/LockType.cs
Normal file
9
Entity/LockType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Fantasy;
|
||||
|
||||
public enum LockType
|
||||
{
|
||||
None = 0,
|
||||
AuthenticationRegisterLock = 1, // 鉴权注册锁
|
||||
AuthenticationRemoveLock = 1, // 鉴权移除锁
|
||||
AuthenticationLoginLock = 2 // 鉴权登录锁
|
||||
}
|
||||
Reference in New Issue
Block a user