Plato table format

The table that plato uses to define the dialogue should have the following format: fields should be functions without arguments, indexed by strings.

The string indices are the entry points of the dialogue, and can be used to specify where the dialogue should start ("main" by default) and to jump between different parts of the dialogue, to help in the organisation of the code.

Note: the functions in the table are run inside a strand, so they can use the wait functions from strands to pause execution.

-- example table
local t = {
    main = function()
        -- do stuff
    end,

    test = function()
        -- do stuff
    end,

    ["test 2"] = function()
        -- do stuff
    end
}
generated by LDoc 1.5.0