Moved the serverless game stuff out of msoy and back into the vilya library.

We'll be using this in game gardens, at least.
Note that the actionscript side currently doesn't compile because of
limitations in building a .swc file, but that'll be fixed soon.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@47 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-08-23 02:28:36 +00:00
parent a90d7e655b
commit 70b0d759c0
27 changed files with 2835 additions and 0 deletions
@@ -0,0 +1,47 @@
package com.threerings.ezgame {
import flash.events.Event;
public class MessageReceivedEvent extends Event
{
/** The type of all MessageReceivedEvents. */
public static const TYPE :String = "msgReceived";
/**
* Access the message name.
*/
public function get name () :String
{
return _name;
}
/**
* Access the message value.
*/
public function get value () :Object
{
return _value;
}
public function MessageReceivedEvent (messageName :String, value :Object)
{
super(TYPE);
_name = messageName;
_value = value;
}
override public function toString () :String
{
return "[MessageReceivedEvent name=" + _name +
", value=" + _value + "]";
}
override public function clone () :Event
{
return new MessageReceivedEvent(_name, _value);
}
protected var _name :String;
protected var _value :Object;
}
}