20 lines
447 B
Plaintext
20 lines
447 B
Plaintext
TutorGrowthReward = class("TutorGrowthReward")
|
||
|
||
function TutorGrowthReward:ctor()
|
||
self.id = 0
|
||
self.MaxLevel = 0
|
||
self.Type = 0 --1:成長獎勵 2:畢業獎勵
|
||
self.StudentReward = 0
|
||
self.canGet = 0
|
||
end
|
||
|
||
function TutorGrowthReward:SetData(index,data)
|
||
self.id = data.id
|
||
self.MaxLevel = data.MaxLevel
|
||
self.Type = data.Type
|
||
self.StudentReward = data.StudentReward
|
||
end
|
||
|
||
function TutorGrowthReward:UpdateStatus(state)
|
||
self.canGet = state
|
||
end |