Beginnings of the ActionScript 3.0 client: checkpoint checkin.
There's a long way to go and I think I need to rethink the way streaming will work, but this is a start. These classes all compile under the flex environment. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3842 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.threerings.presents.dobj {
|
||||
|
||||
public class DEvent extends Object
|
||||
{
|
||||
public function DEvent ()
|
||||
{
|
||||
}
|
||||
|
||||
public function DEvent (int targetOid)
|
||||
{
|
||||
_toid = targetOid;
|
||||
}
|
||||
|
||||
public function getTargetOid () :int
|
||||
{
|
||||
return _toid;
|
||||
}
|
||||
|
||||
/** The oid of the object that is the target of this event. */
|
||||
protected var _toid :int;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.threerings.presents.dobj {
|
||||
|
||||
import flash.events.EventDispatcher;
|
||||
|
||||
public class DObject extends EventDispatcher
|
||||
{
|
||||
public function getOid ():int
|
||||
{
|
||||
return _oid;
|
||||
}
|
||||
|
||||
public function postEvent (DEvent event) :void
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected var _oid :int;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.threerings.presents.net {
|
||||
|
||||
import com.threerings.io.*;
|
||||
import com.threerings.util.Name;
|
||||
|
||||
public class Credentials
|
||||
implements Streamable
|
||||
{
|
||||
public function Credentials (username :Name)
|
||||
{
|
||||
_username = username;
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function writeObject (out :ObjectOutputStream) :void
|
||||
throws IOError
|
||||
{
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function readObject (in :ObjectInputStream) :void
|
||||
throws IOError
|
||||
{
|
||||
}
|
||||
|
||||
/** The username. */
|
||||
protected var _username :Name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user