We got more sinkin' up to do man. Yeah man, it's mighty groovy.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@178 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-02-11 03:33:04 +00:00
parent 75b34c6bf6
commit 62808c9fc6
4 changed files with 27 additions and 9 deletions
@@ -143,14 +143,6 @@ public class ParlorDirector extends BasicDirector
_pendingInvites.clear();
}
// documentation inherited
override protected function fetchServices (client :Client) :void
{
// get a handle on our parlor services
_pservice = (client.requireService(ParlorService) as ParlorService);
super.fetchServices(client);
}
// documentation inherited from interface
public function gameIsReady (gameOid :int) :void
{
@@ -234,6 +226,20 @@ public class ParlorDirector extends BasicDirector
_pendingInvites.remove(invite.inviteId);
}
// from BasicDirector
override protected function registerServices (client :Client) :void
{
client.addServiceGroup(ParlorCodes.PARLOR_GROUP);
}
// from BasicDirector
override protected function fetchServices (client :Client) :void
{
// get a handle on our parlor services
_pservice = (client.requireService(ParlorService) as ParlorService);
super.fetchServices(client);
}
/** An active parlor context. */
protected var _pctx :ParlorContext;
@@ -28,6 +28,9 @@ import com.threerings.presents.data.InvocationCodes;
*/
public class ParlorCodes extends InvocationCodes
{
/** Defines our invocation services group. */
public static const PARLOR_GROUP :String = "parlor";
/** The response code for an accepted invitation. */
public static const INVITATION_ACCEPTED :int = 0;
@@ -488,7 +488,13 @@ public class SceneDirector extends BasicDirector
_sservice = null;
}
// documentation inherited
// from BasicDirector
override protected function registerServices (client :Client) :void
{
client.addServiceGroup(SceneCodes.WHIRLED_GROUP);
}
// from BasicDirector
override protected function fetchServices (client :Client) :void
{
// get a handle on our scene service
@@ -28,6 +28,9 @@ import com.threerings.crowd.data.LocationCodes;
*/
public class SceneCodes extends LocationCodes
{
/** Defines our invocation services group. */
public static const WHIRLED_GROUP :String = "whirled";
/** The message identifier for scene update messages. */
public static const SCENE_UPDATE :String = "scene_update";
}