Revamped EZGame to work over the security boundary.
Now, instead of implementing "Game" and having the EZGame object assigned to you, you create it yourself using your top-level component. You must register listeners manually, and keyboard focus is currently an issue that I'm working on. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@137 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -8,20 +8,20 @@ import flash.events.Event;
|
||||
public /*abstract*/ class EZEvent extends Event
|
||||
{
|
||||
/**
|
||||
* Access the game object to which this event applies.
|
||||
* Access the game control to which this event applies.
|
||||
*/
|
||||
public function get gameObject () :EZGame
|
||||
public function get gameControl () :EZGameControl
|
||||
{
|
||||
return _ezgame;
|
||||
}
|
||||
|
||||
public function EZEvent (type :String, ezgame :EZGame)
|
||||
public function EZEvent (type :String, ezgame :EZGameControl)
|
||||
{
|
||||
super(type);
|
||||
_ezgame = ezgame;
|
||||
}
|
||||
|
||||
/** The game object for this event. */
|
||||
protected var _ezgame :EZGame;
|
||||
/** The game control for this event. */
|
||||
protected var _ezgame :EZGameControl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user