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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---@meta
---@class AppModule
local App =
---Quit the app.
---If `quit()` was called and the app is scheduled to shutdown.
---Restart the app, which will reload all Lua modules and reset from `Main.lua`.
---If `restart()` was called and the app is scheduled to restart.
---Path to the game's cache directory.
---
--- |Platform | Example |
--- | ------- | ---------------------------------------------------- |
--- | Linux | /home/alice/.cache/appname |
--- | macOS | /Users/Alice/Library/Caches/Org-Name.App-Name |
--- | Windows | C:\Users\Alice\AppData\Local\Org Name\App Name\cache |
---@return string
---Path to the game's config directory.
---
--- |Platform | Example |
--- | ------- | ---------------------------------------------------------- |
--- | Linux | /home/alice/.config/appname |
--- | macOS | /Users/Alice/Library/Application Support/Org-Name.App-Name |
--- | Windows | C:\Users\Alice\AppData\Roaming\Org Name\App Name\config |
---@return string
---Path to the game's local config directory.
---
--- |Platform | Example |
--- | ------- | ---------------------------------------------------------- |
--- | Linux | /home/alice/.config/appname |
--- | macOS | /Users/Alice/Library/Application Support/Org-Name.App-Name |
--- | Windows | C:\Users\Alice\AppData\Local\Org Name\App Name\config |
---@return string
---Path to the game's data directory.
---
--- |Platform | Example |
--- | ------- | --------------------------------------------------------------- |
--- | Linux | /home/alice/.local/share/appname |
--- | macOS | /Users/Alice/Library/Application Support/Org-Name.App-Name |
--- | Windows | Windows | C:\Users\Alice\AppData\Roaming\Org Name\App Name\data |
---@return string
---Path to the game's local data directory.
---
--- |Platform | Example |
--- | ------- | ---------------------------------------------------------- |
--- | Linux | /home/alice/.local/share/appname |
--- | macOS | /Users/Alice/Library/Application Support/Org-Name.App-Name |
--- | Windows | C:\Users\Alice\AppData\Local\Org Name\App Name\data |
---@return string
---Path to the game's local preference directory.
---
--- |Platform | Example |
--- | ------- | ------------------------------------------------------- |
--- | Linux | /home/alice/.config/appname |
--- | macOS | /Users/Alice/Library/Preferences/Org-Name.App-Name |
--- | Windows | C:\Users\Alice\AppData\Roaming\Org Name\App Name\config |
---@return string
return App