How difficult would it be to enable serializing and deserializing the LuaState object?
I am still familiarizing myself with the implementation, but could it be possible to serialize and deserialize the environment and stack? And use the same approach as LuaState.ResumeAsync to resume?
However it doesn't look like there is anyway to load/manipulate the stack directly. What is standing in the way of this being an option?
From what I can tell, recreating the live references to objects/functions is the main hangup. How hard do you think remapping these references to objects/functions on deserialization would be?
Looking around there are some implementations that have done this.
How difficult would it be to enable serializing and deserializing the LuaState object?
I am still familiarizing myself with the implementation, but could it be possible to serialize and deserialize the environment and stack? And use the same approach as LuaState.ResumeAsync to resume?
However it doesn't look like there is anyway to load/manipulate the stack directly. What is standing in the way of this being an option?
From what I can tell, recreating the live references to objects/functions is the main hangup. How hard do you think remapping these references to objects/functions on deserialization would be?
Looking around there are some implementations that have done this.