C# Class SpellProp, UnderworldExporter

Properties for spells. Mainly used for projectile spells.
Show file Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
BaseDamage int
DOT int
Force float
ProjectileSprite string
caster GameObject
counter int
impactFrameEnd int
impactFrameStart int
noOfCasts int
playerUW UWCharacter,
spread float

Public Methods

Method Description
init ( int effectId, GameObject SpellCaster ) : void

Init the specified effectId.

onHit ( ObjectInteraction, objInt ) : void

Actions to take when the projectile hits a specific object.

onHitPlayer ( ) : void

Special code to fire when the projectile hits the player.

onImpact ( Transform tf ) : void

Code to run when it hits anything. eg for explosions

onImpactPlayer ( ) : void

Special code for when the player trips this spell. Used in rune traps (UW2)

Method Details

init() public method

Init the specified effectId.
public init ( int effectId, GameObject SpellCaster ) : void
effectId int Effect identifier.
SpellCaster GameObject
return void

onHit() public method

Actions to take when the projectile hits a specific object.
public onHit ( ObjectInteraction, objInt ) : void
objInt ObjectInteraction, Object Interaction of what it hits,
return void

onHitPlayer() public method

Special code to fire when the projectile hits the player.
public onHitPlayer ( ) : void
return void

onImpact() public method

Code to run when it hits anything. eg for explosions
public onImpact ( Transform tf ) : void
tf Transform The transform of the gameobject it hits
return void

onImpactPlayer() public method

Special code for when the player trips this spell. Used in rune traps (UW2)
public onImpactPlayer ( ) : void
return void

Property Details

BaseDamage public property

public int BaseDamage
return int

DOT public property

public int DOT
return int

Force public property

public float Force
return float

ProjectileSprite public property

public string ProjectileSprite
return string

caster public property

public GameObject caster
return GameObject

counter public property

public int counter
return int

impactFrameEnd public property

public int impactFrameEnd
return int

impactFrameStart public property

public int impactFrameStart
return int

noOfCasts public property

public int noOfCasts
return int

playerUW public static property

public static UWCharacter, playerUW
return UWCharacter,

spread public property

public float spread
return float