anodyne/AIR/intra/hsrc/awerwer/com/amanitadesign/steam/SteamEvent.hx

55 lines
1.3 KiB
Haxe
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* SteamEvent.as
* This file is part of FRESteamWorks.
*
* Created by David ´Oldes´ Oliva on 3/29/12.
* Contributors:Ventero<http://github.com/Ventero>
* Copyright(c)2012 Amanita Design. All rights reserved.
* Copyright(c)2012-2013 Level Up Labs, LLC. All rights reserved.
*/
package com.amanitadesign.steam;
import flash.events.Event;
class SteamEvent extends Event
{
public static var STEAM_RESPONSE:String="steamResponse";
private var _req_type:Int=-1;
private var _response:Int=-1;
private var _data:Dynamic=null;
public function new(type:String, req_type:Int, response:Int, bubbles:Bool=false, cancelable:Bool=false)
{
super(type, bubbles, cancelable);
_response=response;
_req_type=req_type;
}
public var response(get_response, set_response):Int;
private function get_response():Int
{
return _response;
}
public var data(get_data, set_data):Dynamic;
private function get_data():Dynamic
{
return _data;
}
private function set_data(value:Dynamic):Void
{
_data=value;
}
public var req_type(get_req_type, null):Int;
private function get_req_type():Int
{
return _req_type;
}
override public function clone():Event
{
var event:SteamEvent=new SteamEvent(type, req_type, response, bubbles, cancelable);
event.data=data;
return event;
}
}