No longer pass the manager in the constructor. As many of these delegates are
in the wild, we'll deprecate the old constructors rather than remove them. Yay cruft! git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@487 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -42,8 +42,10 @@ import com.threerings.util.Name;
|
||||
import com.threerings.media.util.MathUtil;
|
||||
|
||||
import com.threerings.crowd.data.BodyObject;
|
||||
import com.threerings.crowd.data.PlaceConfig;
|
||||
import com.threerings.crowd.data.PlaceObject;
|
||||
import com.threerings.crowd.server.CrowdServer;
|
||||
import com.threerings.crowd.server.PlaceManager;
|
||||
|
||||
import com.threerings.parlor.game.data.GameConfig;
|
||||
import com.threerings.parlor.game.data.GameObject;
|
||||
@@ -60,13 +62,17 @@ import com.threerings.parlor.rating.server.persist.RatingRepository;
|
||||
public abstract class RatingManagerDelegate extends GameManagerDelegate
|
||||
implements RatingCodes
|
||||
{
|
||||
/**
|
||||
* Constructs a rating manager delegate.
|
||||
*/
|
||||
public RatingManagerDelegate (GameManager gmgr)
|
||||
@Override // from PlaceManagerDelegate
|
||||
public void setPlaceManager (PlaceManager plmgr)
|
||||
{
|
||||
super(gmgr);
|
||||
_gmgr = gmgr;
|
||||
super.setPlaceManager(plmgr);
|
||||
_gmgr = (GameManager)plmgr;
|
||||
}
|
||||
|
||||
@Override // from PlaceManagerDelegate
|
||||
public void didInit (PlaceConfig config)
|
||||
{
|
||||
super.didInit(config);
|
||||
_repo = getRatingRepository();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user