File: surgeengine.md

package info (click to toggle)
surgescript 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,200 kB
  • sloc: ansic: 15,748; sh: 61; javascript: 38; makefile: 13
file content (41 lines) | stat: -rw-r--r-- 697 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
SurgeEngine
===========

The SurgeEngine plugin is the interface between SurgeScript (scripting language) and Open Surge (game engine).

*Example*

```cs
using SurgeEngine;

// Open Surge version
object "Application"
{
    state "main"
    {
        Console.print(SurgeEngine.version);
        state = "blank";
    }

    state "blank"
    {
    }
}
```

Properties
----------

#### version

`version`: string, read-only.

Version of the Open Surge Engine.

#### mobile

`mobile`: boolean, read-only.

Whether or not the engine has been launched in mobile mode. The user may be playing on a mobile device or on a Desktop computer with the mobile mode enabled.

*Available since:* Open Surge 0.6.1