battle.go 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package enum
  2. const (
  3. BattleType_Test int32 = 1
  4. BattleType_Chapter int32 = 2
  5. BattleType_PVP int32 = 3
  6. BattleType_SLG int32 = 4
  7. )
  8. const (
  9. BattleObjType_Hero int32 = 1
  10. BattleObjType_Monster int32 = 2
  11. )
  12. const (
  13. BattleCampType_Left int32 = 0
  14. BattleCampType_Right int32 = 1
  15. )
  16. // 战斗结果
  17. type BattleResult int32
  18. const (
  19. BattleResult_Draw BattleResult = -1 // 平局
  20. BattleResult_Fail BattleResult = 0 // 失败
  21. BattleResult_Win BattleResult = 1 // 胜出
  22. )
  23. // 战报分类ID
  24. type ReportCategory int32
  25. const (
  26. ReportCategory_All ReportCategory = 0 // 0:全部
  27. ReportCategory_PVE ReportCategory = 1 // 1:开拓
  28. ReportCategory_PVP ReportCategory = 2 // 2:交战
  29. ReportCategory_Scout ReportCategory = 3 // 3:侦察
  30. )
  31. // 战报收藏类型
  32. type ReportLikeType int32
  33. const (
  34. ReportLikeType_Group ReportLikeType = 1 // 1:战报组
  35. ReportLikeType_Report ReportLikeType = 2 // 2:单个战报
  36. )