PGRData/Script/matrix/xentity/xcommon/xrule/XRuleTextViewModel.lua

16 lines
445 B
Lua

local XRuleViewModel = require("XEntity/XCommon/XRule/XRuleViewModel")
local XRuleTextViewModel = XClass(XRuleViewModel, "XRuleTextViewModel")
function XRuleTextViewModel:Ctor()
self.ViewType = RuleViewType.Text
end
function XRuleTextViewModel:AddRuleData(title, ruleDesc)
self.RuleDatas = self.RuleDatas or {}
table.insert(self.RuleDatas, {
Title = title,
RuleDesc = ruleDesc
})
end
return XRuleTextViewModel