TdefPreset:
Filter:
JITLibExtensions/Classes (extension) | Undocumented classes

TdefPreset
ExtensionExtension

storing and morphing between presets for Tdefs

Description

Like ProxyPreset, TdefPreset stores settings and can morph between them.

Class Methods

TdefPreset

.all

the global dict for all TdefPreset instances

.proxyClass

the class to be used with TdefPreset: Tdef.

.new

access an existing TdefPreset or make a new one for a Tdef.

Arguments:

key

If key is key of an existing TdefPreset, then that is accessed. If key is a Tdef, then a net TdefPreset with that Tdef's key will be created.

namesToStore

which paramNames to store in the presets. if none given, inferred from the current proxy settings.

settings

provide preset settings for the proxy

specs

provide preset specs for the proxy, mainly for randomizing and morphing. if none given here, and object has a halo of specs, those in halo will be used.

morphFuncs

special functions to provide for morphing between non-numerical settings. not used yet.

Instance Methods

.key

the key under which the TdefPreset is stored in TdefPreset.all

.getFromProxy

get current values for namesToStore from proxy, except those given in <except>

Examples