---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by luojunxin.
--- DateTime: 2020/8/24 15:51
---

local LActionAttrStringModify = LActionAttrStringModify or class("LActionAttrStringModify", LActionBase);

function LActionAttrStringModify:ctor()
end

function LActionAttrStringModify:dtor()
end

function LActionAttrStringModify:Init(attr, oldValue, newValue)
    self.target = attr;
    self.oldValue = oldValue;
    self.newValue = newValue;
    self.name = util.a2u8("ÊôÐÔÖµÐÞ¸Ä");
end

function LActionAttrStringModify:Undo()
    self.target:SetString(util.u82a(self.oldValue), false);
end

function LActionAttrStringModify:Redo()
    self.target:SetString(util.u82a(self.newValue), false);
end

_G.LActionAttrStringModify = LActionAttrStringModify;