meta

package
v0.24.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package meta provides string constants for rt.Runtime Get/SetField.

Index

Constants

View Source
const (
	Counter        = "$counter"   // sequence counter
	Domain         = "$scene"     // returns whether a named domain is active
	FieldsOfKind   = "$fields"    // names of the fields of a kind as a text list
	KindAncestry   = "$bases"     // text list, root towards the start the name of the kind at the end
	ObjectAliases  = "$alias"     // similar to object name but returns a list of names
	ObjectId       = "$object"    // returns the unique object id from a object name
	ObjectKind     = "$kind"      // type of a game object
	ObjectKinds    = "$ancestry"  // ancestor of an object's type ( a text list, root at the start )
	ObjectName     = "$name"      // given a noun, return the friendly name declared by the author
	ObjectsOfKind  = "$instances" // all objects of a given kind
	Option         = "$flags"     // get/set various runtime options ( see below )
	PatternLabels  = "$labels"    // strings of the parameter names, the last is the return
	PatternRunning = "$pattern"   // returns true if the named pattern is running
	Response       = "$response"  // returns replacements for named templates
	Variables      = "$variable"  // named values, controlled by scope, not associated with any particular object
)

targets for GetField names are ideally one word ( underscore separated if not ) and have divergent prefixes ( different first letters. )

View Source
const Prefix = '$' // leading character used for all internal targets

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options int

fields for runtime meta.Option(s) options are initialized at runtime startup new options *cannot* be added dynamically.

const (
	// flag to print response names ( instead of values )
	PrintResponseNames Options = iota
	CacheErrors                // by default we dont
	SaveDir                    // location for save files.
	NumOptions
)

func (Options) String

func (i Options) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL