CareerCondition.lua 547 B

1234567891011121314151617181920212223
  1. ---@class CareerCondition
  2. CareerCondition = class(ConditionBase)
  3. CareerCondition.comparatorMap = {
  4. }
  5. function CareerCondition:InitParam(param)
  6. self.params = {}
  7. if tonumber(param) then
  8. table.insert(self.params,tonumber(param))
  9. else
  10. if type(param) == "table" then
  11. self.params = param
  12. else
  13. local strTab = string.split(param,'#')
  14. for i = 1, table.count(strTab) do
  15. table.insert(self.params,tonumber(strTab[i]))
  16. end
  17. end
  18. end
  19. end