chat.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package enum
  2. type ChatType int32
  3. var (
  4. ChatType_Game ChatType = 1 // 游戏服聊天类型
  5. ChatType_League ChatType = 2 // 联盟
  6. ChatType_Map ChatType = 3 // 地图
  7. ChatType_Group ChatType = 4 // 群组
  8. ChatType_Private ChatType = 5 // 私聊
  9. ChatType_System ChatType = 6 // 系统
  10. )
  11. // 检查聊天类型是否合法
  12. func CheckChatType(typ int32) bool {
  13. return typ >= int32(ChatType_Game) && typ <= int32(ChatType_System)
  14. }
  15. type ChatMsgType int32
  16. var (
  17. ChatMsgType_Text ChatMsgType = 0 // 玩家输入文本类型
  18. ChatMsgType_FriendAdd ChatMsgType = 1001 // {玩家名字}已与领主结为好友
  19. ChatMsgType_LordUp ChatMsgType = 1002 // 恭喜领主升级到Lv.{0}
  20. ChatMsgType_buildUp ChatMsgType = 1003 // {建筑名}Lv.{等级}已升级完成
  21. ChatMsgType_conscript ChatMsgType = 1004 // {等级士兵}×{数量}已征召
  22. ChatMsgType_conscriptUp ChatMsgType = 1005 // {等级士兵}×{数量}已完成升级
  23. ChatMsgType_resourceMax ChatMsgType = 1006 // {资源名字}达到上限
  24. ChatMsgType_reward ChatMsgType = 1007 // 恭喜获得:{道具ID×数量}
  25. ChatMsgType_equipEnhance ChatMsgType = 1008 // {装备名字}成功强化为+{强化等级}
  26. )
  27. type ComplaintType int32
  28. var (
  29. ComplaintType_SpamAd ComplaintType = 1 // 垃圾广告
  30. ComplaintType_Cheating ComplaintType = 2 // 举报外挂
  31. ComplaintType_BadSend ComplaintType = 3 // 不良发言
  32. ComplaintType_illegal ComplaintType = 4 // 不法行为
  33. ComplaintType_BadName ComplaintType = 5 // 不雅昵称
  34. ComplaintType_AdPull ComplaintType = 6 // 广告拉人
  35. ComplaintType_Other ComplaintType = 7 // 举报其他
  36. )