battle.go 875 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. )
  30. // 战报收藏类型
  31. type ReportLikeType int32
  32. const (
  33. ReportLikeType_Group ReportLikeType = 1 // 1:战报组
  34. ReportLikeType_Report ReportLikeType = 2 // 2:单个战报
  35. )