DI-Guy Lua AI SDK
 All Classes Files Functions Variables Groups Pages
coroutine Class Reference

Lua's built in microthread library. More...

Static Public Member Functions

static create (f)
 creates coroutine from function f, returns coroutine More...
 
static resume (co, val1,...)
 continues execution of co, returns bool status plus any values More...
 
static status (co)
 returns co status: "running", "suspended" or "dead" More...
 
static wrap (f)
 creates coroutine with body f, returns function that resumes co More...
 
static yield (val1,...)
 suspend execution of calling coroutine More...
 

Detailed Description

Lua's built in microthread library.

Member Function Documentation

static coroutine::create ( )
static

creates coroutine from function f, returns coroutine

static coroutine::resume ( co  ,
val1  ,
  ... 
)
static

continues execution of co, returns bool status plus any values

static coroutine::status ( co  )
static

returns co status: "running", "suspended" or "dead"

static coroutine::wrap ( )
static

creates coroutine with body f, returns function that resumes co

static coroutine::yield ( val1  ,
  ... 
)
static

suspend execution of calling coroutine


The documentation for this class was generated from the following file: