源战役
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.2 KiB

  1. %%%---------------------------------------------------------------------
  2. %%% create_state定义
  3. %%%---------------------------------------------------------------------
  4. -record(create_state, {
  5. last_id = 1, %% last_id
  6. left_num = 0, %% 剩余ID数量
  7. server_id = 1, %% 服务器id
  8. id_type = 0 %% id类型
  9. }).
  10. -record(create_extra_state, {
  11. auto_id = 1, %% 自增id
  12. id_type = 0 %% id类型
  13. }).
  14. -record(create_player_state, {
  15. last_id=1, %% last_id
  16. server_id=1 %% 服务器id
  17. }).
  18. %% 注:批量申请一波ID,用完后才继续申请
  19. -define(EVERY_CREATE_NUM, 100). %% 每次生成数量
  20. %%%---------------------------------------------------------------------
  21. %%% id类型定义
  22. %%%---------------------------------------------------------------------
  23. -define (PLAYER_ID_CREATE, 1). % 玩家id
  24. -define (GOODS_ID_CREATE, 2). % 物品id
  25. -define (GUILD_ID_CREATE, 3). % 公会id
  26. -define (AUCTION_ID_CREATE, 4). % 拍卖场次id
  27. -define (AUCTION_GOODS_ID_CREATE, 5). % 拍卖物品id
  28. -define (MAIL_ID_CREATE, 6). % 邮件id
  29. -define (SELL_ID_CREATE, 9). % 交易id
  30. -define (CHARGE_PAY_NO_CREATE, 10). % 充值订单号(只用于秘籍)
  31. -define (FLOWER_GIFT_RECORD_ID_CREATE, 11). % 鲜花送礼记录
  32. -define (RED_ENVELOPES_ID_CREATE, 13). % 红包id
  33. -define (ORDER_ID_CREATE, 15). % 社团派单id
  34. -define (SUPPORT_ID_CREATE, 16). % 社团协助id
  35. %% id类型列表
  36. -define(ID_TYPE_LIST, [
  37. ?PLAYER_ID_CREATE
  38. ,?GOODS_ID_CREATE
  39. ,?GUILD_ID_CREATE
  40. ,?AUCTION_ID_CREATE
  41. ,?AUCTION_GOODS_ID_CREATE
  42. ,?SELL_ID_CREATE
  43. ,?CHARGE_PAY_NO_CREATE
  44. ,?FLOWER_GIFT_RECORD_ID_CREATE
  45. ,?RED_ENVELOPES_ID_CREATE
  46. ]).