Sfoglia il codice sorgente

Fixed broken formating of monospace.

mitm001 8 anni fa
parent
commit
cbc5fe42dd
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/docs/asciidoc/jme3/advanced/save_and_load.adoc

+ 3 - 3
src/docs/asciidoc/jme3/advanced/save_and_load.adoc

@@ -89,7 +89,7 @@ JME's BinaryExporter can write standard Java objects (String, ArrayList, buffers
 *  The Spatial is carrying any <<jme3/advanced/custom_controls#,Custom Controls>>. +
 Example: You used something like `mySpatial.addControl(myControl);`
 *  The Spatial's user data can contain a custom Java object. +
-Example: You used something like `mySpatial.setUserData(“inventory, myInventory);`
+Example: You used something like `mySpatial.setUserData("inventory", myInventory);`
 
 If your custom classes (the user data or the Controls) do not implement Savable, then the BinaryImporter/BinaryExporter cannot save the Spatial!
 
@@ -139,9 +139,9 @@ To make a custom class savable:
 **  Add one line that `write()`s the data to the JmeExport output capsule. 
 ***  Specify the variable to save, give it a String name (can be the same as the variable name), and specify a default value.
 
-**  Add one line that `read…()`s the data to the JmeImport input capsule. 
+**  Add one line that ``read…()``s the data to the JmeImport input capsule. 
 ***  On the left side of the assignment, specify the class field that you are restoring
-***  On the right side, use the appropriate `capsule.read…()` method for the data type. Specify the String name of the variable (must be the same as you used in the `write() method`), and again specify a default value.
+***  On the right side, use the appropriate `capsule.read…()` method for the data type. Specify the String name of the variable (must be the same as you used in the `write()` method), and again specify a default value.