DataContainer¶
The DataStructure component can be placed on any GameObject using the Ravenfield Mod Tools. The component has several field arrays with different variable types where values can be assigned together with their id. The values can be read by id via the Ravenscript API, which is useful for configuration or mod<->mod functionality. For example, the float value with id myId
can be accessed by GetFloat("myId")
. It is also possible to read arrays of values using GetFloatArray("myId")
which will return an array of the values with ids: myId1, myId2, myId3, myId4 ...
. The Array will automatically end when no more valid ids are found.
Members¶
Member |
Description |
---|---|
Methods¶
Method |
Description |
---|---|
Details¶
-
class
DataContainer
¶ -
const GameObject
gameObject
¶
-
AnimationCurve
GetAnimationCurve
(string id)¶
-
array<AnimationCurve>
GetAnimationCurveArray
(string id)¶
-
bool
GetBool
(string id)¶
-
array<bool>
GetBoolArray
(string id)¶
-
float
GetFloat
(string id)¶
-
array<float>
GetFloatArray
(string id)¶
-
GameObject
GetGameObject
(string id)¶
-
array<GameObject>
GetGameObjectArray
(string id)¶
-
int
GetInt
(string id)¶
-
array<int>
GetIntArray
(string id)¶
-
array<GameObject>
GetPrefabs
()¶
-
Quaternion
GetRotation
(string id)¶
-
array<Quaternion>
GetRotationArray
(string id)¶
-
string
GetString
(string id)¶
-
array<string>
GetStringArray
(string id)¶
-
WeaponEntry
GetWeaponEntry
(string id)¶
-
array<WeaponEntry>
GetWeaponEntryArray
(string id)¶
-
bool
HasActorSkin
(string id)¶
-
bool
HasAnimationCurve
(string id)¶
-
bool
HasAudioClip
(string id)¶
-
bool
HasBool
(string id)¶
-
bool
HasColor
(string id)¶
-
bool
HasFloat
(string id)¶
-
bool
HasFont
(string id)¶
-
bool
HasGradient
(string id)¶
-
bool
HasInt
(string id)¶
-
bool
HasMaterial
(string id)¶
-
bool
HasObject
(string id)¶
-
bool
HasRotation
(string id)¶
-
bool
HasSprite
(string id)¶
-
bool
HasString
(string id)¶
-
bool
HasTexture
(string id)¶
-
bool
HasWeaponEntry
(string id)¶
-
bool
HasVector
(string id)¶
-
bool
HasVideoClip
(string id)¶
-
string
ToString
()¶
-
const GameObject