Some ActionScript conversion updates.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@102 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -32,6 +32,7 @@ public class GameAI extends SimpleStreamableObject
|
||||
// from Streamable
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
personality = ins.readInt();
|
||||
skill = ins.readInt();
|
||||
}
|
||||
@@ -39,6 +40,7 @@ public class GameAI extends SimpleStreamableObject
|
||||
// from Streamable
|
||||
override public function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
out.writeInt(personality);
|
||||
out.writeInt(skill);
|
||||
}
|
||||
|
||||
@@ -174,7 +174,6 @@ public /*abstract*/ class GameConfig extends PlaceConfig
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
|
||||
players = (ins.readObject() as TypedArray);
|
||||
rated = ins.readBoolean();
|
||||
ais = (ins.readObject() as TypedArray);
|
||||
@@ -184,7 +183,6 @@ public /*abstract*/ class GameConfig extends PlaceConfig
|
||||
override public function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
|
||||
out.writeObject(players);
|
||||
out.writeBoolean(rated);
|
||||
out.writeObject(ais);
|
||||
|
||||
Reference in New Issue
Block a user