Skip to content

Commit

Permalink
Added setPos and getPos, uses Vectors (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
eGlint authored and Frotty committed Jun 10, 2018
1 parent 46bca55 commit 16090af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wurst/_handles/Effect.wurst
Expand Up @@ -74,6 +74,18 @@ public function effect.getLocalY() returns real

public function effect.getLocalZ() returns real
return BlzGetLocalSpecialEffectZ(this)

public function effect.setPos(vec3 pos)
this.setPosition(pos.x, pos.y, pos.z)

public function effect.setPos(vec2 pos)
this.setPosition(pos.x, pos.y, this.getLocalZ())

public function effect.getPos3() returns vec3
return vec3(this.getLocalX(), this.getLocalY(), this.getLocalZ())

public function effect.getPos() returns vec2
return vec2(this.getLocalX(), this.getLocalY())

@Test
function testEffect()
Expand Down

0 comments on commit 16090af

Please sign in to comment.