| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- using Hotfix;
- using Model;
- using MongoDB.Bson.Serialization.Attributes;
- using ProtoBuf;
- namespace Hotfix
- {
- [Message(HotfixOpcode.C2R_Login)]
- [ProtoContract]
- public class C2R_Login : MessageObject, IRequest
- {
- [ProtoMember(1, IsRequired = true)]
- public string Account;
- [ProtoMember(2, IsRequired = true)]
- public string Password;
- }
- [Message(HotfixOpcode.R2C_Login)]
- [ProtoContract]
- public class R2C_Login : MessageObject, IResponse
- {
- [ProtoMember(1, IsRequired = true)]
- public string Address;
- [ProtoMember(2, IsRequired = true)]
- public long Key;
- [ProtoMember(90, IsRequired = true)]
- public int Error { get; set; }
- [ProtoMember(91, IsRequired = true)]
- public string Message { get; set; }
- }
- [Message(HotfixOpcode.C2G_LoginGate)]
- [ProtoContract]
- public class C2G_LoginGate : MessageObject, IRequest
- {
- [ProtoMember(1, IsRequired = true)]
- public long Key;
- }
- [Message(HotfixOpcode.G2C_LoginGate)]
- [ProtoContract]
- public class G2C_LoginGate : MessageObject, IResponse
- {
- [ProtoMember(1, IsRequired = true)]
- public long PlayerId;
- [ProtoMember(90, IsRequired = true)]
- public int Error { get; set; }
- [ProtoMember(91, IsRequired = true)]
- public string Message { get; set; }
- }
- [Message(HotfixOpcode.G2C_TestHotfixMessage)]
- [ProtoContract]
- public class G2C_TestHotfixMessage : MessageObject, IMessage
- {
- [ProtoMember(1, IsRequired = true)]
- public string Info;
- }
- [Message(HotfixOpcode.C2M_TestActorRequest)]
- [ProtoContract]
- public class C2M_TestActorRequest : MessageObject, IActorRequest
- {
- [ProtoMember(1, IsRequired = true)]
- public string Info;
- }
- [Message(HotfixOpcode.M2C_TestActorResponse)]
- [ProtoContract]
- public class M2C_TestActorResponse : MessageObject, IActorResponse
- {
- [ProtoMember(1, IsRequired = true)]
- public string Info;
- [ProtoMember(90, IsRequired = true)]
- public int Error { get; set; }
- [ProtoMember(91, IsRequired = true)]
- public string Message { get; set; }
- }
- }
- #if SERVER
- namespace Model
- {
- [BsonKnownTypes(typeof(M2C_TestActorResponse))]
- [BsonKnownTypes(typeof(C2M_TestActorRequest))]
- public partial class MessageObject
- {
- }
- }
- #else
- public partial class MessageObject
- {
- }
- #endif
|