Config.go 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. package ark
  2. // ARKShopConfig 总配置
  3. type Config struct {
  4. Mysql Mysql `json:"Mysql"` //数据库
  5. General General `json:"General"` //概述
  6. Kits map[string]Kit `json:"Kits"` //礼包?
  7. ShopItems map[string]ShopItem `json:"ShopItems"` //商品
  8. SellItems map[string]SellItem `json:"SellItems"` //回收
  9. Messages Messages `json:"Messages"` //消息
  10. }
  11. type Mysql struct {
  12. UseMysql bool `json:"UseMysql"` //是否使用mysql
  13. MysqlHost string `json:"MysqlHost"` //mysql地址
  14. MysqlUser string `json:"MysqlUser"` //mysql用户名
  15. MysqlPass string `json:"MysqlPass"` //mysql密码
  16. MysqlDB string `json:"MysqlDB"` //mysql数据库
  17. MysqlPort int `json:"MysqlPort"` //mysql端口
  18. }
  19. // General 概述
  20. type General struct {
  21. Discord Discord `json:"Discord"` //联系方式
  22. TimedPointsReward TimedPointsReward `json:"TimedPointsReward"` //计时积分奖励
  23. UseOriginalTradeCommandWithUI bool `json:"UseOriginalTradeCommandWithUI"`
  24. ItemsPerPage int `json:"ItemsPerPage"` //每页项目数
  25. ShopDisplayTime float64 `json:"ShopDisplayTime"` //店铺展示时间
  26. ShopTextSize float64 `json:"ShopTextSize"` //店铺文字大小
  27. DbPathOverride string `json:"DbPathOverride"` //db文件位置
  28. DefaultKit string `json:"DefaultKit"` //默认礼包?
  29. GiveDinosInCryopods bool `json:"GiveDinosInCryopods"` //在低温仓给恐龙
  30. UseSoulTraps bool `json:"UseSoulTraps"` //使用灵魂陷阱?
  31. CryoLimitedTime bool `json:"CryoLimitedTime"` //低温仓有限时间?
  32. }
  33. type Discord struct {
  34. Enabled bool `json:"Enabled"` //启用
  35. SenderName string `json:"SenderName"` //发件人
  36. URL string `json:"URL"` //地址
  37. }
  38. type TimedPointsReward struct {
  39. Enabled bool `json:"Enabled"` //启用
  40. Interval int `json:"Interval"` //间隔(应该是分钟为单位)
  41. StackRewards bool `json:"StackRewards"` //堆栈奖励
  42. Groups map[string]Group `json:"Groups"` //vip 组(key: vip名称(英文),金额)
  43. }
  44. type Group struct {
  45. Amount int `json:"Amount"` //金额
  46. }
  47. type Messages struct {
  48. Sender string `json:"Sender"` //发件人
  49. BoughtItem string `json:"BoughtItem"` //已购买商品
  50. BoughtDino string `json:"BoughtDino"` //已购买恐龙
  51. BoughtBeacon string `json:"BoughtBeacon"` //已购买信标?
  52. BoughtExp string `json:"BoughtExp"` //已购买经验
  53. ReceivedPoints string `json:"ReceivedPoints"` //已获得积分
  54. HavePoints string `json:"HavePoints"` //拥有积分
  55. NoPoints string `json:"NoPoints"` //没有积分
  56. WrongId string `json:"WrongId"` //错误的id
  57. NoPermissionsKit string `json:"NoPermissionsKit"` //没有权限
  58. CantBuyKit string `json:"CantBuyKit"` //无法购买
  59. BoughtKit string `json:"BoughtKit"` //已购买礼包
  60. AvailableKits string `json:"AvailableKits"` //可用礼包
  61. NoKits string `json:"NoKits"` //没有礼包
  62. KitsLeft string `json:"KitsLeft"` //礼包剩余
  63. NoKitsLeft string `json:"NoKitsLeft"` //没有礼包
  64. CantGivePoints string `json:"CantGivePoints"` //无法发送积分
  65. RidingDino string `json:"RidingDino"` //正在骑乘恐龙
  66. SentPoints string `json:"SentPoints"` //已发送积分
  67. GotPoints string `json:"GotPoints"` //已获得积分
  68. NoPlayer string `json:"NoPlayer"` //没有玩家
  69. FoundMorePlayers string `json:"FoundMorePlayers"` //找到多个玩家
  70. BuyUsage string `json:"BuyUsage"` //购买命令
  71. ShopUsage string `json:"ShopUsage"` //商店命令
  72. KitUsage string `json:"KitUsage"` //交易命令
  73. BuyKitUsage string `json:"BuyKitUsage"` //购买礼包命令
  74. TradeUsage string `json:"TradeUsage"` //交易命令
  75. PointsCmd string `json:"PointsCmd"` //积分命令
  76. TradeCmd string `json:"TradeCmd"` //交易命令
  77. BuyCmd string `json:"BuyCmd"` //购买命令
  78. ShopCmd string `json:"ShopCmd"` //商店命令
  79. KitCmd string `json:"KitCmd"` //交易命令
  80. BuyKitCmd string `json:"BuyKitCmd"` //购买礼包命令
  81. SellCmd string `json:"SellCmd"` //出售命令
  82. ShopSellCmd string `json:"ShopSellCmd"` //商店出售命令
  83. SellUsage string `json:"SellUsage"` //出售命令
  84. NotEnoughItems string `json:"NotEnoughItems"` //没有足够的物品
  85. SoldItems string `json:"SoldItems"` //已出售物品
  86. BadLevel string `json:"BadLevel"` //错误的等级
  87. KitsListPrice string `json:"KitsListPrice"` //礼包列表价格
  88. KitsListFormat string `json:"KitsListFormat"` //礼包列表格式
  89. StoreListDino string `json:"StoreListDino"` //商店列表恐龙
  90. StoreListItem string `json:"StoreListItem"` //商店列表物品
  91. StoreListFormat string `json:"StoreListFormat"` //商店列表格式
  92. OnlyOnSpawnKit string `json:"OnlyOnSpawnKit"` //只能购买在出生点礼包
  93. HelpCmd string `json:"HelpCmd"` //帮助命令
  94. ShopMessage string `json:"ShopMessage"` //商店消息
  95. HelpMessage string `json:"HelpMessage"` //帮助消息
  96. RefundError string `json:"RefundError"` //退款错误
  97. ShopFindCmd string `json:"ShopFindCmd"` //商店查找命令
  98. ShopFindUsage string `json:"ShopFindUsage"` //商店查找用法
  99. ShopFindNotFound string `json:"ShopFindNotFound"` //商店查找不存在
  100. ShopFindTooManyResults string `json:"ShopFindTooManyResults"` //商店发现太多结果
  101. NoPermissionsStore string `json:"NoPermissionsStore"` //没有权限
  102. }
  103. // SellItem 允许玩家出售物资,以换取积分
  104. type SellItem struct {
  105. Type string `json:"Type"` //类型,item
  106. Description string `json:"Description"` //描述
  107. Price int `json:"Price"` //价格
  108. Amount int `json:"Amount"` //数量
  109. Blueprint string `json:"Blueprint"` //图纸
  110. }
  111. // ShopItem 商城出售的商品
  112. type ShopItem struct {
  113. Description string `json:"Description"` //描述
  114. Items []Item `json:"Items"` //物品信息
  115. Price int `json:"Price"` //价格
  116. Type string `json:"Type"` //类型,item,beacon,dino,experience,unlockengram,command
  117. }
  118. // Item 物品信息
  119. type Item struct {
  120. Amount int `json:"Amount"` //金额
  121. Blueprint string `json:"Blueprint"` //图纸
  122. Fixed bool `json:"Fixed"` //固定
  123. ForceBlueprint bool `json:"ForceBlueprint"` //
  124. Quality float64 `json:"Quality"` //质量
  125. }
  126. // Kit 礼包
  127. type Kit struct {
  128. DefaultAmount int `json:"DefaultAmount"` //数量?
  129. Price int `json:"Price"` //价格
  130. Description string `json:"Description"` //描述
  131. Permissions string `json:"Permissions"` //购买权限,例如"Admins,VIP1"
  132. Dinos []Dino `json:"Dinos"` //恐龙
  133. Items []Item `json:"Items"`
  134. }
  135. type Dino struct {
  136. Level int `json:"Level"` //等级
  137. Neutered bool `json:"Neutered"` //是否绝育
  138. Blueprint string `json:"Blueprint"` //指令?
  139. }