Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
EffectManager.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
4
public
class
EffectManager
:
EMono
5
{
6
[Serializable]
7
public
class
EffectList
:
DynamicAsset
<Effect>
8
{
9
public
Effect
Get
(
string
id
)
10
{
11
return
GetNew
(
id
);
12
}
13
}
14
15
[NonSerialized]
16
public
List<Effect>
list
=
new
List<Effect>();
17
18
public
static
EffectManager
Instance
;
19
20
public
EffectList
effects
;
21
22
public
void
Add
(
Effect
e)
23
{
24
list
.Add(e);
25
}
26
27
public
void
Remove
(
Effect
e)
28
{
29
list
.Remove(e);
30
}
31
32
public
void
KillAll
()
33
{
34
for
(
int
num =
list
.Count - 1; num >= 0; num--)
35
{
36
list
[num].Kill();
37
}
38
}
39
40
public
void
UpdateEffects
()
41
{
42
for
(
int
num =
list
.Count - 1; num >= 0; num--)
43
{
44
list
[num].OnUpdate();
45
}
46
}
47
}
DynamicAsset
Definition:
DynamicAsset.cs:7
DynamicAsset< Effect >::GetNew
T GetNew(string id, Transform parent=null)
Definition:
DynamicAsset.cs:40
EMono
Definition:
EMono.cs:4
EffectManager.EffectList
Definition:
EffectManager.cs:8
EffectManager.EffectList.Get
Effect Get(string id)
Definition:
EffectManager.cs:9
EffectManager
Definition:
EffectManager.cs:5
EffectManager.UpdateEffects
void UpdateEffects()
Definition:
EffectManager.cs:40
EffectManager.KillAll
void KillAll()
Definition:
EffectManager.cs:32
EffectManager.effects
EffectList effects
Definition:
EffectManager.cs:20
EffectManager.Instance
static EffectManager Instance
Definition:
EffectManager.cs:18
EffectManager.Remove
void Remove(Effect e)
Definition:
EffectManager.cs:27
EffectManager.Add
void Add(Effect e)
Definition:
EffectManager.cs:22
EffectManager.list
List< Effect > list
Definition:
EffectManager.cs:16
Effect
Definition:
Effect.cs:7
Elin
EffectManager.cs
Generated by
1.9.6