arena.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package msg
  2. // ArenaUpgradeStar 升星场景
  3. type ArenaUpgradeStar struct {
  4. PlayerId int64 `json:"userId"`
  5. SkinId int64 `json:"skinId"`
  6. }
  7. type ResponseArenaUpgradeStar struct {
  8. ErrCode int `json:"errCode"`
  9. Msg string `json:"msg,omitempty"`
  10. Data *ArenaUpgradeStarData `json:"data"`
  11. }
  12. type ArenaUpgradeStarData struct {
  13. SkinId int64 `json:"skinId"`
  14. Star int64 `json:"star"`
  15. Cost map[int64]int64 `json:"cost"`
  16. }
  17. // ArenaActive
  18. type ArenaActive struct {
  19. PlayerId int64 `json:"userId"`
  20. SkinId int64 `json:"skinId"` //皮肤模型ID
  21. }
  22. type ResponseArenaActive struct {
  23. ErrCode int `json:"errCode"`
  24. Msg string `json:"msg,omitempty"`
  25. Data *ArenaActiveData `json:"data"`
  26. }
  27. type ArenaActiveData struct {
  28. SkinId int64 `json:"skinId"` //皮肤ID
  29. Level int64 `json:"level"`
  30. Cost map[int64]int64 `json:"cost"`
  31. }
  32. // 场景技能选配
  33. type ArenaSkillSelect struct {
  34. PlayerId int64 `json:"userId"`
  35. SkinId int64 `json:"skillId"` //皮肤ID
  36. Pos int64 `json:"pos"` //技能位置 0,1,2
  37. }
  38. type ResponseArenaSkillSelect struct {
  39. ErrCode int `json:"errCode"`
  40. Msg string `json:"msg,omitempty"`
  41. Data [3]int64 `json:"data"`
  42. }
  43. // const (
  44. // WearRune = 1
  45. // TakeOffRune = 2
  46. // )
  47. // ArenaWear 装配、卸载场景
  48. // 镶嵌 卸下 替换: 1,2
  49. type ArenaWear struct {
  50. PlayerId int64 `json:"userId"`
  51. SkinId int64 `json:"skinId"` //皮肤ID
  52. Type int64 `json:"type"`
  53. }
  54. type ResponseArenaWear struct {
  55. ErrCode int `json:"errCode"`
  56. Msg string `json:"msg,omitempty"`
  57. Data int64 `json:"data"`
  58. }