HashMap<String, Object> properties bug

sixcorners

  • Posts: 10
stencyl.sw.ext.BaseExtension.properties is a HashMap<String, Object> and that works fine. When I reload StencylWorks though my Object turns into a String. I can guess how you are serializing my object. I would prefer you use Java's built in serialization mechanisms. Maybe turn properties into a HashMap<String, Serializable>? Is there a reason the .eprefs files need to be human readable?

Alexin

  • *
  • Posts: 3130
BaseExtension.saveDataAsBytes(byte[])
BaseExtension.readDataAsBytes() : byte[]

The data is saved in the preferences folder, under the name returned by BaseExtension.classname.
"Find the fun"
alexin@stencyl.com