atl/sm/challenge
import "atl/sm/challenge"Challenge mode (sm.challenge). All [server] except IsMasterMechanicTrial.
Functions
Section titled "Functions"func Start(world sm.World)func Stop()[server] Starts / stops the challenge.
func HasStarted() bool[server] True once started.
func LevelCompleted(level sm.Uuid, time float64, save atl.Value)[server] Records a completed level with its time and save data.
func CompletionTime(level sm.Uuid) float64[server] A level's best completion time.
func SaveData(level sm.Uuid) atl.Value[server] A level's saved data.
func ResolveContentPath(path string) string[server] Turns a "$CONTENT_DATA/..." path into one the main game can open.
func TakePicture(width, height, rotation int)[server] Takes a screenshot for the level.
func TakePicturesForMenu()[server] Takes the menu screenshots.
func IsMasterMechanicTrial() bool[client] True in a Master Mechanic trial.