Skip to content

Commit

Permalink
更新一些序列化相关
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Oct 7, 2023
1 parent b95adc7 commit 8a476c3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions assets/game/minoPlayer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1866,21 +1866,30 @@ function MP:checkScriptSyntax(cmd,arg,errMsg)
end
end
function MP:serialize_custom(k)
if k=='P.field' then
if k=='P.serializingData' then
return false
elseif k=='P.hand' then
return "'[HAND]'"
elseif k=='P.field' then
return "'[FIELD]'"
elseif k=='P.nextQueue' then
return "'[NEXT]'"
elseif k=='P.holdQueue' then
return "'[HOLD]'"
elseif k=='P.floatHolds' then
return "'[FLOAT_HOLD]'"
elseif k=='P.lastMovement' then
return "'[LAST_MOVEMENT]'"
end
end
function MP:unserialize_custom()
-- P.field
-- P.nextQueue
-- P.holdQueue
-- P.floatHolds
self.serializingData=nil
-- self.hand
-- self.field
-- self.nextQueue
-- self.holdQueue
-- self.floatHolds
-- self.lastMovement
end
--------------------------------------------------------------
-- Builder
Expand Down

0 comments on commit 8a476c3

Please sign in to comment.