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:
@@ -143,14 +143,6 @@ public class ParlorDirector extends BasicDirector
|
|||||||
_pendingInvites.clear();
|
_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
|
// documentation inherited from interface
|
||||||
public function gameIsReady (gameOid :int) :void
|
public function gameIsReady (gameOid :int) :void
|
||||||
{
|
{
|
||||||
@@ -234,6 +226,20 @@ public class ParlorDirector extends BasicDirector
|
|||||||
_pendingInvites.remove(invite.inviteId);
|
_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. */
|
/** An active parlor context. */
|
||||||
protected var _pctx :ParlorContext;
|
protected var _pctx :ParlorContext;
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ import com.threerings.presents.data.InvocationCodes;
|
|||||||
*/
|
*/
|
||||||
public class ParlorCodes extends 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. */
|
/** The response code for an accepted invitation. */
|
||||||
public static const INVITATION_ACCEPTED :int = 0;
|
public static const INVITATION_ACCEPTED :int = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -488,7 +488,13 @@ public class SceneDirector extends BasicDirector
|
|||||||
_sservice = null;
|
_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
|
override protected function fetchServices (client :Client) :void
|
||||||
{
|
{
|
||||||
// get a handle on our scene service
|
// get a handle on our scene service
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ import com.threerings.crowd.data.LocationCodes;
|
|||||||
*/
|
*/
|
||||||
public class SceneCodes extends 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. */
|
/** The message identifier for scene update messages. */
|
||||||
public static const SCENE_UPDATE :String = "scene_update";
|
public static const SCENE_UPDATE :String = "scene_update";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user