Game.Effects.VFXUpdateType
Assembly:
Assembly-CSharp.dll
Namespace: Game.Effects
Type: public enum
Base: System.Enum
Summary: Defines the kinds of update operations that can be applied to the game's VFX (visual effects) system — typically used by effect managers or queues to indicate whether a VFX entry should be added, removed, or moved (reordered) within a collection.
Fields
-
Add
Represents an operation that adds a new VFX entry to the system or to a collection. -
Remove
Represents an operation that removes an existing VFX entry from the system or from a collection. -
MoveIndex
Represents an operation that moves/reorders a VFX entry from one index to another (used when changing the ordering of entries in a list).
Properties
- None.
Enums do not expose properties beyond their underlying integral value.
Constructors
- None.
Enum members are static named constants backed by an underlying integral type (default int). There are no public constructors for enum types.
Methods
- None.
Enums do not declare instance methods here; they inherit basic behavior from System.Enum.
Usage Example
// Example usage of VFXUpdateType in a simple handler:
void HandleVFXUpdate(VFXUpdateType updateType, int index = -1, int targetIndex = -1)
{
switch (updateType)
{
case VFXUpdateType.Add:
// Insert new VFX entry
AddVFXEntry();
break;
case VFXUpdateType.Remove:
// Remove VFX entry at index
RemoveVFXEntryAt(index);
break;
case VFXUpdateType.MoveIndex:
// Move entry from index to targetIndex
MoveVFXEntry(index, targetIndex);
break;
}
}