阅读背景:

为什么JSON无法保存对象的功能?

来源:互联网 

In my game, I save the current state by converting all the objects to JSON and then saving that to a file. Some objects, like enemies, have functions on them, but JSON can't save functions! Is there an alternative or a solution?In my game, I save the current state by convert




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: