goworld: github.com/xiaonanln/goworld/engine/post Index | Files

package post

import "github.com/xiaonanln/goworld/engine/post"


Package Files


func Post Uses

func Post(f PostCallback)

Post a callback which will be executed when other things are done in the main game routine

Post might be called from other goroutine, so we use a lock to protect the data

func Tick Uses

func Tick()

Tick is called by the main game routine to run all posted functions

type PostCallback Uses

type PostCallback func()

PostCallback is the type of functions to be posted

Package post imports 2 packages (graph) and is imported by 11 packages. Updated 2017-08-13. Refresh now. Tools for package owners.