Move SceneProvider stuff into the SceneRegistry as all the cool kids use the

new pattern of having a Provider interface which is implemented by a Manager or
other server-side entity.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@358 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-07-13 23:48:42 +00:00
parent 5fbf4e17da
commit 5015ec26c2
5 changed files with 157 additions and 186 deletions
@@ -248,7 +248,7 @@ public class ZoneProvider
{
if (source.getZoneId() == zoneId) {
// handle the case of moving somewhere in the same zone
_screg.sceneprov.moveBody((BodyObject) source, sceneId);
_screg.moveBody((BodyObject) source, sceneId);
} else {
// first remove them from their old location
@@ -284,7 +284,7 @@ public class ZoneProvider
}
// remove them from their occupied scene
_screg.sceneprov.leaveOccupiedScene(source);
_screg.leaveOccupiedScene(source);
// and clear out their zone information
source.setZoneId(-1);