Files
CodenameEngine/source/funkin/scripting/events/StrumCreationEvent.hx
T

34 lines
689 B
Haxe

package funkin.scripting.events;
import funkin.game.Strum;
final class StrumCreationEvent extends CancellableEvent {
@:dox(hide) public var __doAnimation = true;
/**
* The strum that is being created
*/
public var strum:Strum;
/**s
* Player ID
*/
public var player:Int;
/**
* Strum ID, for the sprite.
*/
public var strumID:Int;
/**
* Sprite path, in case you only want to change the sprite.
*/
public var sprite:String = "game/notes/default";
/**
* Cancels the animation that makes the strum "land" in the strumline.
*/
public function cancelAnimation() {__doAnimation = false;}
@:dox(hide) public function preventAnimation() {cancelAnimation();}
}