Merge pull request #49 from trollworkout/patch-1

Update creating_android_modules.rst
This commit is contained in:
Rémi Verschelde
2016-03-02 14:38:15 +01:00

View File

@@ -93,8 +93,8 @@ template follows:
.. code:: java
// namespace is wrong, will eventually change
package com.android.godot;
// package com.android.godot; // for 1.1
package org.godotengine.godot; // for 2.0
public class MySingleton extends Godot.SingletonBase {
@@ -307,7 +307,15 @@ Using the module
~~~~~~~~~~~~~~~~
To use the module from GDScript, first enable the singleton by adding
the following line to engine.cfg:
the following line to engine.cfg (Godot Engine 2.0 and greater):
::
[android]
modules="org/godotengine/godot/MySingleton"
For Godot Engine 1.1 is
::