Summary
A dictionary which maps event names to callbacks.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Interfaces
-
- IDictionary
<StringReference, Action>
- IDictionary
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IDictionary<StringReference, Action>"]
Type["NamedEventDictionary"]
class Type type-node
Syntax
public class NamedEventDictionary : IDictionary<StringReference, Action>
Remarks
Documentation:
Animancer Events
Properties
Name | Value | Summary |
---|---|---|
Count | int |
The number of items in this dictionary.
|
Keys | Dictionary |
The names in this dictionary.
|
this[ |
Action |
Accesses a callback in this dictionary.
|
Values | Dictionary |
The values in this dictionary.
|
Methods
Name | Value | Summary |
---|---|---|
AddNew |
void |
Registers the `callback` with the `name` but throws an
System.ArgumentException
if something was already registered with the same `name`.
|
AddNew |
Action |
Registers the `callback` with the `name` but throws an
System.ArgumentException
if something was already registered with the same `name`.
It will be invoked using System.Object.ToString on the
Animancer.AnimancerEvent.CurrentParameter .
|
AddNew |
Action |
Registers the `callback` with the `name` but throws an
System.ArgumentException
if something was already registered with the same `name`.
It will be invoked using Animancer.AnimancerEvent.GetCurrentParameter``1 to get its parameter.
|
AddTo |
void |
Adds the `callback` to any existing ones registered with the `name`.
|
AddTo |
Action |
Adds the `callback` to any existing ones registered with the `name`.
It will be invoked using
System.Object.ToString on the
Animancer.AnimancerEvent.CurrentParameter .
|
AddTo |
Action |
Adds the `callback` to any existing ones registered with the `name`.
It will be invoked using
Animancer.AnimancerEvent.GetCurrentParameter``1 to get its parameter.
|
AssertNotEndEvent |
void |
[Assert-Conditional]
Throws an
System.ArgumentException if the `name` is the Animancer.AnimancerEvent.EndEventName .
static
|
Clear |
void |
Removes everything from this dictionary.
|
ContainsKey |
bool |
Are any callbacks registered for the `name`?
|
Get |
Action |
Returns the callback registered using the `name`.
|
GetEnumerator |
Dictionary |
Returns an enumerator to go through every item in this dictionary.
|
Remove |
bool |
Removes all callbacks registered with the `name`.
|
Remove |
bool |
Removes a specific `callback` registered with the `name`.
|
Set |
void |
Registers the callback using the `name`, replacing anything previously registered.
|
TryGetValue |
bool |
Tries to get the `callback` registered with the `name` and returns
true if successful. |