Elin Modding Docs Doc
Loading...
Searching...
No Matches
Effect Class Reference
Inheritance diagram for Effect:
SceneObject EMono EffectIRenderer EffectMeteor EffectText

Public Types

enum  Type { Default , Firework }
 

Public Member Functions

void Play (float delay, Point from, float fixY=0f, Point to=null, Sprite sprite=null)
 
unsafe Effect Play (Point from, float fixY=0f, Point to=null, Sprite sprite=null)
 
unsafe Effect _Play (Point from, Vector3 fromV, float fixY=0f, Point to=null, Sprite sprite=null)
 
Effect Play (Vector3 v)
 
Effect Flip (bool x=false, bool y=false)
 
Effect SetStartDelay (float a)
 
virtual void OnPlay ()
 
virtual void OnUpdate ()
 
void Kill ()
 
void OnDisable ()
 
void OnDestroy ()
 
Effect Emit (int num)
 
Effect SetParticleColor (Color c)
 
Effect SetParticleColor (Color color, bool changeMaterial=false, string idCol="_Color")
 
Effect SetScale (float a)
 

Static Public Member Functions

static Effect Get (Effect original)
 
static Effect Get (string id)
 
static T Get< T > (string id)
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Public Attributes

Effect.Type type
 
float duration = 1f
 
float speed
 
float startDelay
 
bool lookAtTarget
 
bool rotate
 
bool pool
 
SpriteRenderer sr
 
ParticleSystem[] systems
 
Vector3[] dirs
 
Ease ease
 
Vector3 posFix
 
Vector3 randomRange
 
Tween moveTween
 
Sprite[] sprites
 
bool randomFlip
 
bool randomSpeed
 
bool test
 
bool setColor = true
 
Action onComplete
 
int spriteIndex
 
float timer
 
Vector3 fromV
 
Vector3 destV
 
bool pooled
 
Transform poolParent
 
List< Material > materialsToDestroy
 
Point destPos
 
Tween killTimer
 

Protected Member Functions

void Activate ()
 

Protected Attributes

bool killed
 

Properties

static EffectManager manager [get]
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Attributes inherited from EMono
static Core core
 

Detailed Description

Definition at line 9 of file Effect.cs.

Member Enumeration Documentation

◆ Type

enum Effect.Type

Definition at line 377 of file Effect.cs.

Member Function Documentation

◆ _Play()

unsafe Effect Effect._Play ( Point from,
Vector3 fromV,
float fixY = 0f,
Point to = null,
Sprite sprite = null )

Definition at line 57 of file Effect.cs.

◆ Activate()

void Effect.Activate ( )
protected

Definition at line 123 of file Effect.cs.

◆ Emit()

Effect Effect.Emit ( int num)

Definition at line 226 of file Effect.cs.

◆ Flip()

Effect Effect.Flip ( bool x = false,
bool y = false )

Definition at line 134 of file Effect.cs.

◆ Get() [1/2]

static Effect Effect.Get ( Effect original)
static

Definition at line 12 of file Effect.cs.

◆ Get() [2/2]

static Effect Effect.Get ( string id)
static

Definition at line 18 of file Effect.cs.

◆ Get< T >()

static T Effect.Get< T > ( string id)
static
Type Constraints
T :Effect 

Definition at line 24 of file Effect.cs.

◆ Kill()

void Effect.Kill ( )

Definition at line 187 of file Effect.cs.

◆ OnDestroy()

void Effect.OnDestroy ( )

Definition at line 214 of file Effect.cs.

◆ OnDisable()

void Effect.OnDisable ( )

Definition at line 205 of file Effect.cs.

◆ OnPlay()

virtual void Effect.OnPlay ( )
virtual

Definition at line 152 of file Effect.cs.

◆ OnUpdate()

virtual void Effect.OnUpdate ( )
virtual

Definition at line 157 of file Effect.cs.

◆ Play() [1/3]

void Effect.Play ( float delay,
Point from,
float fixY = 0f,
Point to = null,
Sprite sprite = null )

Definition at line 40 of file Effect.cs.

◆ Play() [2/3]

unsafe Effect Effect.Play ( Point from,
float fixY = 0f,
Point to = null,
Sprite sprite = null )

Definition at line 51 of file Effect.cs.

◆ Play() [3/3]

Effect Effect.Play ( Vector3 v)

Definition at line 107 of file Effect.cs.

◆ SetParticleColor() [1/2]

Effect Effect.SetParticleColor ( Color c)

Definition at line 237 of file Effect.cs.

◆ SetParticleColor() [2/2]

Effect Effect.SetParticleColor ( Color color,
bool changeMaterial = false,
string idCol = "_Color" )

Definition at line 248 of file Effect.cs.

◆ SetScale()

Effect Effect.SetScale ( float a)

Definition at line 271 of file Effect.cs.

◆ SetStartDelay()

Effect Effect.SetStartDelay ( float a)

Definition at line 145 of file Effect.cs.

Member Data Documentation

◆ destPos

Point Effect.destPos

Definition at line 367 of file Effect.cs.

◆ destV

Vector3 Effect.destV

Definition at line 351 of file Effect.cs.

◆ dirs

Vector3 [] Effect.dirs

Definition at line 305 of file Effect.cs.

◆ duration

float Effect.duration = 1f

Definition at line 281 of file Effect.cs.

◆ ease

Ease Effect.ease

Definition at line 308 of file Effect.cs.

◆ fromV

Vector3 Effect.fromV

Definition at line 347 of file Effect.cs.

◆ killed

bool Effect.killed
protected

Definition at line 370 of file Effect.cs.

◆ killTimer

Tween Effect.killTimer

Definition at line 374 of file Effect.cs.

◆ lookAtTarget

bool Effect.lookAtTarget

Definition at line 290 of file Effect.cs.

◆ materialsToDestroy

List<Material> Effect.materialsToDestroy

Definition at line 363 of file Effect.cs.

◆ moveTween

Tween Effect.moveTween

Definition at line 317 of file Effect.cs.

◆ onComplete

Action Effect.onComplete

Definition at line 335 of file Effect.cs.

◆ pool

bool Effect.pool

Definition at line 296 of file Effect.cs.

◆ pooled

bool Effect.pooled

Definition at line 355 of file Effect.cs.

◆ poolParent

Transform Effect.poolParent

Definition at line 359 of file Effect.cs.

◆ posFix

Vector3 Effect.posFix

Definition at line 311 of file Effect.cs.

◆ randomFlip

bool Effect.randomFlip

Definition at line 323 of file Effect.cs.

◆ randomRange

Vector3 Effect.randomRange

Definition at line 314 of file Effect.cs.

◆ randomSpeed

bool Effect.randomSpeed

Definition at line 326 of file Effect.cs.

◆ rotate

bool Effect.rotate

Definition at line 293 of file Effect.cs.

◆ setColor

bool Effect.setColor = true

Definition at line 332 of file Effect.cs.

◆ speed

float Effect.speed

Definition at line 284 of file Effect.cs.

◆ spriteIndex

int Effect.spriteIndex

Definition at line 339 of file Effect.cs.

◆ sprites

Sprite [] Effect.sprites

Definition at line 320 of file Effect.cs.

◆ sr

SpriteRenderer Effect.sr

Definition at line 299 of file Effect.cs.

◆ startDelay

float Effect.startDelay

Definition at line 287 of file Effect.cs.

◆ systems

ParticleSystem [] Effect.systems

Definition at line 302 of file Effect.cs.

◆ test

bool Effect.test

Definition at line 329 of file Effect.cs.

◆ timer

float Effect.timer

Definition at line 343 of file Effect.cs.

◆ type

Effect.Type Effect.type

Definition at line 278 of file Effect.cs.

Property Documentation

◆ manager

EffectManager Effect.manager
staticget

Definition at line 31 of file Effect.cs.


The documentation for this class was generated from the following file: