源战役
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.

30 line
1.0 KiB

  1. %%%-------------------------------------------------------------------
  2. %%% @doc 舞姿-头文件
  3. %%% Module: dance
  4. %%% Created : 2021-4-8
  5. %%% @Author: ljy
  6. %%%-------------------------------------------------------------------
  7. %% 舞姿数据
  8. -record(dance,{
  9. is_rand = 0, %% 是否随机舞蹈动作
  10. dance_id = 0, %% 选中的舞蹈动作id
  11. dance_list = [] %% 已激活的舞蹈id
  12. }).
  13. %% 学位数据
  14. -record(base_dance,{
  15. id = 0 , %% 舞蹈动作id
  16. goods = 0, %% 激活道具
  17. order = 0, %% 界面排序
  18. icon = 0, %% 图标id
  19. desc = <<>>, %% 描述
  20. name = <<>> %% 名称
  21. }).
  22. %% 初始默认舞姿
  23. -define(DEFAULT_DANCE, 1).
  24. -define(SQL_DANCE_SELECT, <<"select is_rand, dance_id, dance_list from dance where role_id = ~p">>).
  25. -define(SQL_DANCE_UPDATE, <<"replace into dance (role_id, is_rand, dance_id, dance_list) values (~p,~p,~p,'~ts')">>).