api: add source to sound effect events
This commit is contained in:
@@ -24,14 +24,25 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.api.events;
|
package net.runelite.api.events;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import net.runelite.api.Actor;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class AreaSoundEffectPlayed
|
public class AreaSoundEffectPlayed
|
||||||
{
|
{
|
||||||
|
@Nullable
|
||||||
|
private final Actor source;
|
||||||
private int soundId;
|
private int soundId;
|
||||||
private int sceneX;
|
private int sceneX;
|
||||||
private int sceneY;
|
private int sceneY;
|
||||||
private int range;
|
private int range;
|
||||||
private int delay;
|
private int delay;
|
||||||
|
|
||||||
|
private boolean consumed;
|
||||||
|
|
||||||
|
public void consume()
|
||||||
|
{
|
||||||
|
consumed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,11 +24,22 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.api.events;
|
package net.runelite.api.events;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import net.runelite.api.Actor;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class SoundEffectPlayed
|
public class SoundEffectPlayed
|
||||||
{
|
{
|
||||||
|
@Nullable
|
||||||
|
private final Actor source;
|
||||||
private int soundId;
|
private int soundId;
|
||||||
private int delay;
|
private int delay;
|
||||||
|
|
||||||
|
private boolean consumed;
|
||||||
|
|
||||||
|
public void consume()
|
||||||
|
{
|
||||||
|
consumed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user