Ran the auto-generator on all our Streamable stuff in Narya. Tidied up the
results. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4395 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -37,6 +37,29 @@ public class UserMessage extends ChatMessage
|
||||
/** The mode of the message. @see ChatCodes.DEFAULT_MODE */
|
||||
public var mode :int;
|
||||
|
||||
/**
|
||||
* Constructs a user message for a player originated tell (which has no
|
||||
* bundle and is in the default mode).
|
||||
*/
|
||||
public function UserMessage (speaker :Name = null, bundle :String = null,
|
||||
message :String = null, mode :int = 0)
|
||||
{
|
||||
super(message, bundle);
|
||||
this.speaker = speaker;
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name to display for the speaker. Some types of messages
|
||||
* may wish to not use the canonical name for the speaker and should thus
|
||||
* override this function.
|
||||
*/
|
||||
public function getSpeakerDisplayName () :Name
|
||||
{
|
||||
return speaker;
|
||||
}
|
||||
|
||||
// from interface Streamable
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
@@ -44,6 +67,7 @@ public class UserMessage extends ChatMessage
|
||||
mode = ins.readByte();
|
||||
}
|
||||
|
||||
// from interface Streamable
|
||||
override public function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
|
||||
Reference in New Issue
Block a user