Status Effect Framework
CtrlK
4.0.0
4.0.0
  • 🏠Overview
  • 🧑‍💻Setup
  • ⚙️Settings
  • 🔌Other support
    • Unitask
    • Netcode for GameObjects
    • Entities / Netcode for Entities
      • Adding and removing effects
      • How to setup Modules
      • Dynamically updating the Status Effect Database
    • Localization
  • 📜Type Specifics
    • Classes
      • StatusManager
        • GetStatusEffect
        • GetStatusEffects
        • GetFirstStatusEffect
        • AddStatusEffect
        • RemoveStatusEffect
        • RemoveAllStatusEffects
      • StatusEffect
      • StatusVariable
        • StatusFloat
        • StatusInt
        • StatusBool
        • SetManager
      • Condition
      • Effect
    • Scriptable Objects
      • Module
      • ModuleInstance
      • ComparableName
      • StatusEffectData
      • StatusName
        • StatusNameFloat
        • StatusNameInt
        • StatusNameBool
      • StatusEffectDatabase
        • Get
        • Add
        • TryAdd
        • GetValueOrDefault
        • TryGetValue
        • ContainsKey
        • IsUnique
    • Structs
      • StatusEffectGroup
  • Links
    • GitHub
    • Discord
    • License
Powered by GitBook
On this page
  • Declaration
  • Parameters
  • Description
  1. 📜Type Specifics
  2. Scriptable Objects
  3. StatusEffectDatabase

Add

Adding is guaranteed to occur whether the key is vacant or not. In cases where the key already exists it will replace the value.

Declaration

public void Add(Hash128 key, StatusEffectData value)

Parameters

Name
Type
Description

key

Hash128

The unique Hash128 of the StatusEffectData.

value

StatusEffectData

The StatusEffectData to add to the database.

Description

Adds a StatusEffectData to the database.

PreviousGetNextTryAdd

Last updated 3 months ago