CommonProto_CS_10001.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using ET;
  2. using ProtoBuf;
  3. using System.Collections.Generic;
  4. namespace ET
  5. {
  6. [Message(CommonProto.MoveInfo)]
  7. [ProtoContract]
  8. public partial class MoveInfo: ProtoObject
  9. {
  10. [ProtoMember(1)]
  11. public List<Unity.Mathematics.float3> Points { get; set; }
  12. [ProtoMember(2)]
  13. public Unity.Mathematics.quaternion Rotation { get; set; }
  14. [ProtoMember(3)]
  15. public int TurnSpeed { get; set; }
  16. }
  17. [Message(CommonProto.UnitInfo)]
  18. [ProtoContract]
  19. public partial class UnitInfo: ProtoObject
  20. {
  21. [ProtoMember(1)]
  22. public long UnitId { get; set; }
  23. [ProtoMember(2)]
  24. public int ConfigId { get; set; }
  25. [ProtoMember(3)]
  26. public int Type { get; set; }
  27. [ProtoMember(4)]
  28. public Unity.Mathematics.float3 Position { get; set; }
  29. [ProtoMember(5)]
  30. public Unity.Mathematics.float3 Forward { get; set; }
  31. [MongoDB.Bson.Serialization.Attributes.BsonDictionaryOptions(MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
  32. [ProtoMember(6)]
  33. public Dictionary<int, long> KV { get; set; }
  34. [ProtoMember(7)]
  35. public MoveInfo MoveInfo { get; set; }
  36. }
  37. [Message(CommonProto.PlayerInfo)]
  38. [ProtoContract]
  39. public partial class PlayerInfo: ProtoObject
  40. {
  41. [ProtoMember(1)]
  42. public long id { get; set; }
  43. [ProtoMember(2)]
  44. public string name { get; set; }
  45. [ProtoMember(3)]
  46. public int sex { get; set; }
  47. [ProtoMember(4)]
  48. public long exp { get; set; }
  49. [ProtoMember(5)]
  50. public int level { get; set; }
  51. [ProtoMember(6)]
  52. public int vip { get; set; }
  53. }
  54. public static class CommonProto
  55. {
  56. public const ushort MoveInfo = 10002;
  57. public const ushort UnitInfo = 10003;
  58. public const ushort PlayerInfo = 10004;
  59. }
  60. }