summaryrefslogtreecommitdiff
path: root/meta/3rd/Defold/config.lua
blob: f4dad34ebccad42c8dd8906172456c0f6784b39d (plain)
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
name    = 'Defold'
files   = {'game.project', '*%.script', '*%.gui_script'}
configs = {
    {
        key    = 'Lua.runtime.version',
        action = 'set',
        value  = 'Lua 5.1',
    },
    {
        key    = 'Lua.workspace.library',
        action = 'set',
        value  = {".internal"},
    },
    {
        key    = 'Lua.workspace.ignoreDir',
        action = 'set',
        value  = {".internal"},
    },
    {
        key    = 'Lua.diagnostics.globals',
        action = 'set',
        value  = {
            "on_input",
            "on_message",
            "init",
            "update",
            "final"
        },
    },
    {
        key    = 'files.associations',
        action = 'set',
        value  = {
            ["*.script"] = "lua",
            ["*.gui_script"] = "lua",
            ["*.render_script"] = "lua",
            ["*.editor_script"] = "lua"
        }
    },
}