Modified render priority handling so that a default priority can be
returned without modifying ObjectInfo.priority which would cause the default priority to be written out as an overridden priority. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2235 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ObjectInfo.java,v 1.1 2003/01/31 23:10:45 mdb Exp $
|
||||
// $Id: ObjectInfo.java,v 1.2 2003/02/04 03:33:09 mdb Exp $
|
||||
|
||||
package com.threerings.miso.data;
|
||||
|
||||
@@ -17,7 +17,8 @@ public class ObjectInfo extends SimpleStreamableObject
|
||||
/** The x and y tile coordinates of the object. */
|
||||
public int x, y;
|
||||
|
||||
/** The object's render priority. */
|
||||
/** Don't access this directly unless you are serializing this
|
||||
* instance. Use {@link #getPriority} instead. */
|
||||
public byte priority = 0;
|
||||
|
||||
/** The action associated with this object or null if it has no
|
||||
@@ -67,6 +68,14 @@ public class ObjectInfo extends SimpleStreamableObject
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the render priority of this object tile.
|
||||
*/
|
||||
public int getPriority ()
|
||||
{
|
||||
return priority;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the primary colorization assignment.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user