示例#1
0
        public Save()
        {
            Savedata = new JSDictionary <JSDictionary <JSSerializable> >();

            //this Dictionary will store all the information, about where pooled objects have been spawned
            Savedata.AddOrReplaceValueByKey("Runtime", new JSDictionary <JSSerializable>());
            Runtime = Savedata.GetValueByKey("Runtime");

            //this Dictionary will store all the object-specific information, it will get the fields marked "autosave" and map them to an object identifier
            Savedata.AddOrReplaceValueByKey("Static", new JSDictionary <JSSerializable>());
            Static = Savedata.GetValueByKey("Static");
        }
示例#2
0
 public JSDictionary <JSSerializable> GetByKey(string key)
 {
     return(Savedata.GetValueByKey(key));
 }