Big fat bernie OccupantInfo revamp. Now:
- OccupantInfo is created by the BodyObject - the BodyObject is passed to the OI constructor and it uses information therefrom to configure itself - the PlaceManager are no longer responsible for indicating the type of OccupantInfo to use or how to populate it. This makes much more sense as the same type of OccupantInfo is generally used across the entire system and it's annoying to have to have every PlaceMaanger derived class know the type of OccupantInfo to create and know how to initialize it. The one drawback is that only information from the BodyObject can be used to populate the OccupantInfo, unpublished server-side only information cannot be used (unless its stuffed into a transient field in the BodyObject). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3774 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -172,12 +172,12 @@ public class SpotSceneManager extends SceneManager
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
protected void populateOccupantInfo (OccupantInfo info, BodyObject body)
|
||||
protected void insertOccupantInfo (OccupantInfo info, BodyObject body)
|
||||
{
|
||||
super.populateOccupantInfo(info, body);
|
||||
super.insertOccupantInfo(info, body);
|
||||
|
||||
// we don't actually populate their occupant info, but instead
|
||||
// assign them their starting location in the scene
|
||||
// we don't actually populate their occupant info, but instead assign
|
||||
// them their starting location in the scene
|
||||
int portalId = _enterers.remove(body.getOid());
|
||||
Portal entry;
|
||||
if (portalId != -1) {
|
||||
|
||||
Reference in New Issue
Block a user