Skip to content
This repository was archived by the owner on Jul 26, 2020. It is now read-only.

REQUEST: Allow inline functions with script injection #19

@imlazyeye

Description

@imlazyeye

The following syntax in an object's create event:

#lambda damagePlayer(dmg) {
  hp -= dmg;
}

will instruct gml-tools to create (or update) a "private" script on compile. The scripts would be stored in scripts/lambdas/obj_name_here/function_name_here, or alternatively, could all be stored in a view not connected to the visible resource tree.

Additionally, all generated functions could have:
if (object_index != <lambda object owner here>) return;
at the top of their code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions