Tabledevelop_config.ts 886 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { JsonUtil } from "db://assets/core_tgx/base/utils/JsonUtil";
  2. export class Tabledevelop_config {
  3. static TableName: string = "develop_config";
  4. private data: any;
  5. init(id: number) {
  6. const table = JsonUtil.get(Tabledevelop_config.TableName);
  7. this.data = table[id];
  8. this.id = id;
  9. }
  10. /** 编号【KEY】 */
  11. id: number = 0;
  12. /** 属性类型 */
  13. get property_type(): number {
  14. return this.data.property_type;
  15. }
  16. /** 属性基础值 */
  17. get base(): number {
  18. return this.data.base;
  19. }
  20. /** 属性提升值 */
  21. get up_value(): number {
  22. return this.data.up_value;
  23. }
  24. /** 升级基础货币 */
  25. get base_currency(): number {
  26. return this.data.base_currency;
  27. }
  28. /** 货币增长 */
  29. get money_growth(): number {
  30. return this.data.money_growth;
  31. }
  32. }