Wasn't streaming in GameConfig or GameObject;
Fix a compile error in FlexGameConfigurator git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@35 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -27,6 +27,8 @@ import com.threerings.util.Hashable;
|
||||
import com.threerings.util.Name;
|
||||
import com.threerings.util.StringUtil;
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
import com.threerings.io.TypedArray;
|
||||
|
||||
import com.threerings.crowd.data.PlaceConfig;
|
||||
@@ -162,5 +164,23 @@ public /*abstract*/ class GameConfig extends PlaceConfig
|
||||
|
||||
return copy;
|
||||
}
|
||||
|
||||
override public function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
|
||||
out.writeObject(players);
|
||||
out.writeBoolean(rated);
|
||||
out.writeObject(ais);
|
||||
}
|
||||
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
|
||||
players = (ins.readObject() as TypedArray);
|
||||
rated = ins.readBoolean();
|
||||
ais = (ins.readObject() as TypedArray);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ import com.threerings.util.Integer;
|
||||
import com.threerings.util.langBoolean;
|
||||
import com.threerings.util.Name;
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
import com.threerings.io.TypedArray;
|
||||
|
||||
import com.threerings.crowd.data.PlaceObject;
|
||||
@@ -438,5 +440,35 @@ public class GameObject extends PlaceObject
|
||||
this.playerStatus[index] = value;
|
||||
}
|
||||
// AUTO-GENERATED: METHODS END
|
||||
|
||||
override public function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
|
||||
out.writeObject(gameService);
|
||||
out.writeInt(state);
|
||||
out.writeBoolean(isRated);
|
||||
out.writeBoolean(isPrivate);
|
||||
out.writeObject(players);
|
||||
out.writeField(winners);
|
||||
out.writeInt(roundId);
|
||||
out.writeField(playerStatus);
|
||||
}
|
||||
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
|
||||
gameService = (ins.readObject() as GameMarshaller);
|
||||
state = ins.readInt();
|
||||
isRated = ins.readBoolean();
|
||||
isPrivate = ins.readBoolean();
|
||||
players = (ins.readObject() as TypedArray);
|
||||
winners = (ins.readField(TypedArray.getJavaType(Boolean))
|
||||
as TypedArray);
|
||||
roundId = ins.readInt();
|
||||
playerStatus = (ins.readField(TypedArray.getJavaType(int))
|
||||
as TypedArray);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user