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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user