Engine
(NOTE) An entry from a resource table. The resource type of this entry must match the resource type of the table to add/set. If the value is set via string then the type will be implicitly set to string, otherwise the type must be set via the Resource property.
Methods | Properties | Base Classes | Derived Classes |
---|---|---|---|
Clone | Name | ||
Constructor | Resource | ||
ResourceType | |||
Value | |||
Weight |
Properties
Name : string
var Name : String
Resource : Resource
The resource value of this entry. Returns null if the underlying type is not a resource. Changes this entry's type to the given resource's type on Set.
var Resource : Resource
ResourceType : string
var ResourceType : String
Value : string
The string value of this entry. Changes this entry's type to String on Set.
var Value : String
Weight : real
The weight value used to determine how likely this item is to be sampled. Note: Weights must be positive. Negative weights will be clamped to 0.
var Weight : Real
Methods
Clone : resourcetableentry
Creates a new entry with the same values. |Name|Type|Description| |---|---|---|
function Clone() : ResourceTableEntry
ResourceTableEntry : Void
constructor
Name Type Description function ResourceTableEntry()
ResourceTableEntry : Void
constructor
Name Type Description resourcetableentry function ResourceTableEntry( : ResourceTableEntry)