mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
41 lines
1011 B
ActionScript
41 lines
1011 B
ActionScript
package quest
|
|
{
|
|
import flash.events.Event;
|
|
|
|
public class QuestEvent extends Event
|
|
{
|
|
|
|
public static const LOAD_SFX:String = "QuestEventLoadSfx";
|
|
|
|
public static const PLAY_SFX:String = "QuestEventPlaySfx";
|
|
|
|
public static const TORCH:String = "QuestEventTorch";
|
|
|
|
public static const TRIGGER_CAMERASHAKE:String = "QuestEventTriggerCameraShake";
|
|
|
|
private var _secondaryType:String;
|
|
|
|
public function QuestEvent(param1:String, param2:String = "")
|
|
{
|
|
super(param1,true,false);
|
|
_secondaryType = param2;
|
|
}
|
|
|
|
override public function clone() : Event
|
|
{
|
|
return new QuestEvent(type);
|
|
}
|
|
|
|
override public function toString() : String
|
|
{
|
|
return formatToString("QuestEvent",type,_secondaryType);
|
|
}
|
|
|
|
public function get secondaryType() : String
|
|
{
|
|
return _secondaryType;
|
|
}
|
|
}
|
|
}
|
|
|