- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
[CreateAssetMenu(fileName = "LostFootageDatabase", menuName = "LostFootageDatabase")]
public class LostFootageDatabase : SingletonAsset<LostFootageDatabase>, ISerializationCallbackReceiver
- Inheritance
-
SerializedScriptableObject
LostFootageDatabase
- Implements
-
ISerializationCallbackReceiver
- Inherited Members
-
SerializedScriptableObject.OnAfterDeserialize()
SerializedScriptableObject.OnBeforeSerialize()
- Extension Methods
-
Constructors
public LostFootageDatabase()
Fields
public List<LostFootageDatabase.FootageRarityPair> footageRarityPairs
Field Value
- List<LostFootageDatabase.FootageRarityPair>
Methods
public bool GetFootageByIndex(int i, out LostFootageDatabase.FootageRarityPair footage)
Parameters
i
int
footage
LostFootageDatabase.FootageRarityPair
Returns
- bool
public int GetRandomLostFootageIndex()
Returns
- int
public void PrintChances()
public static bool TryGetLostFootage(LostFootageHandle handle, out LostFootageDatabase.FootageRarityPair footage)
Parameters
handle
LostFootageHandle
footage
LostFootageDatabase.FootageRarityPair
Returns
- bool