10000 GitHub - EmpSurak/Timed-Execution
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

EmpSurak/Timed-Execution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Timed Execution

Event-driven scripting for Overgrowth.

Example

#include "timed_execution/timed_execution.as"
#include "timed_execution/after_init_job.as"

TimedExecution timer;

void Init(string str){
    timer.Add(AfterInitJob(function(){
        Log(info, "Event-driven scripting");
    }));
}

void Update(int is_paused){
    timer.Update();
}

void ReceiveMessage(string msg){
    timer.AddLevelEvent(msg);
}

void PreScriptReload(){
    timer.DeleteAll();
}

void PostScriptReload(){
    Init("");
}

For the full list of job examples see timed_execution_example.as.

Showcase

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0