chat.go 1.6 KB

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