Ray Greenwell
cd421f7fa7
Attempt to quit with an error code when an assertion fails.
...
This only works in the standalone debug player, if the swf is a trusted
local file.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4925 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-24 18:09:49 +00:00
Dave Hoover
24f557c0d7
Speeling
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4924 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-22 23:57:54 +00:00
Dave Hoover
2ce35db583
Remove unneeded casts.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4923 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-17 01:25:52 +00:00
Ray Greenwell
346e4ee781
Documentation improvements.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4922 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-11 19:07:14 +00:00
Michael Bayne
34875278b3
Only run ninstall on "unix" operating systems (which includes Mac OS X).
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4921 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-08 22:22:38 +00:00
Charlie Groves
643982e798
If we just bail after a connection closes during resolution, the ClientManager still thinks we're resolved and can just resume the session if the client reconnects. Resuming fails because we don't have _clobj to resume with, so the client fails to connect over and over again until the half-connected client is flushed from ClientManager's cache several minutes later. Just clear the client out of the cache immediately instead.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4920 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-08 04:12:35 +00:00
Ray Greenwell
460d826d91
Avoid calling the type constant for an event with only one type TYPE.
...
Follow actionscript convention and create a reasonable name for it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4919 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-08 01:35:01 +00:00
Ray Greenwell
a5b132757b
We don't need these methods, really.
...
They are freaking out asdoc.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-22 01:51:46 +00:00
Tom Conkling
148766903e
created RingBuffer collection class
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4917 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-21 01:57:26 +00:00
Ray Greenwell
9cb8f380b0
Now you can have a simple Object hash that understands Hashable keys.
...
(Because it just uses a Map of your choosing under the hood.)
There is really no new functionality here, but it is neat, except for the one
stupid thing: keys get converted to Strings when iterating with a 'for' loop.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4916 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-21 00:29:04 +00:00
Michael Bayne
768e6a76be
Create our shutdowner list at class init time so that it is safe to register a
...
shutdowner at any time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4915 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-20 22:05:49 +00:00
Ray Greenwell
d70b867ddb
Make null keys work with SortedHashMap.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4914 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-20 21:21:44 +00:00
Ray Greenwell
c90e8ef83d
First pass at SortedHashMap.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4913 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-20 20:20:04 +00:00
Ray Greenwell
62e8a39e52
Enable idle reporting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-19 20:00:36 +00:00
Ray Greenwell
dd8fcfc0a7
Allow subclasses to translate the status if a nonstandard one is in use.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4911 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-19 19:14:47 +00:00
Michael Bayne
5e2a70bf5c
Nix marker interface that's not used by anything. If we do ever want something
...
like this, we can think about where the interface would be useful.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4910 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-18 00:19:56 +00:00
Michael Bayne
6e55c2df8b
Use samskivert signal wrapper.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4909 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-17 22:23:51 +00:00
Ray Greenwell
2bf1c107d1
Added a simple utility method to initialize an object with properties specified
...
in an initObject. This is a fairly common practice in flash and let's go ahead
and use it sometimes, even though it's prone to runtime errors.
Our version of this has a defaults Object as well as another Object that can be
specified to mask properties from the initObject.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4908 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-13 23:25:29 +00:00
Ray Greenwell
73ba77af8e
Boolean reduction.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4907 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-13 23:21:34 +00:00
Ray Greenwell
4a86621196
Added parseUnsignedInteger.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4906 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-13 23:21:04 +00:00
Robert Zubeck
901cb095ae
Weakening the contract on Set.toArray(), to remove the non-modification guarantee from the
...
resulting array. Users requiring strong non-modification guarantees can manually do a deep or
a shallow copy of the array, as appropriate for their task.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4905 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-10 20:35:45 +00:00
Ray Greenwell
dd85d0047e
Allow the currently registered ChatFilters to be retrieved.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4904 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-10 03:33:15 +00:00
Ray Greenwell
274811e8f6
Accept an optional Random for shuffle().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4903 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-06 03:34:59 +00:00
Ray Greenwell
fcdace5589
Some method documentation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4902 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-05 02:25:44 +00:00
Ray Greenwell
c42510b325
Another place where we call IDataInput's readBytes. Let's just
...
make sure we never pass it 0 for the length.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4901 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-05 02:11:45 +00:00
Ray Greenwell
a920f02030
Found and fixed the "Mother Fucker of a Bug(tm)" that was causing
...
Zyraxxis to hork.
Deep within our streaming code, ArrayMask objects were being created with
zero length when streaming non-final arrays with a zero length. This tickled
a "feature" of Adobe's IDataInput code, which reads *all available bytes*
if you pass readBytes() a length of 0.
What's really annoying is that this worked fine if you were notified
of the zero-length array via a PropertySetEvent, because that event
would come in on its own frame and so if the array's length was zero then
there were no more bytes to read. But if you entered a game and had
to receive all the usercode properties at once, it booched.
There are clumps of my pulled-out hair all around my desk from that.
And: this is ultimately my own fault, as my old code didn't handle the
case of the passed-in ByteArray having 0 length.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4900 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-05 02:09:59 +00:00
Ray Greenwell
2b5933015e
Some documentation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4899 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-04 03:24:52 +00:00
Ray Greenwell
1b054677c2
Allow ValueEvents to be cancelable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4898 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-04 03:20:26 +00:00
Tom Conkling
4ad889c106
properly set keyword properties on Set.as
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4897 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 21:43:10 +00:00
Tom Conkling
507f214016
whoops - added Set.as to svn
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4896 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 21:26:43 +00:00
Tom Conkling
c5a557214b
ISet -> Set
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4895 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 21:22:53 +00:00
Michael Bayne
635bb0a13f
Track that we're switching servers so that the client can differentiate during
...
did logoff between a real logoff and a server switch.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4894 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 21:21:50 +00:00
Dave Hoover
289475b253
Keyword substitution.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4893 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 21:07:34 +00:00
Tom Conkling
9be9742398
added HashSet and ISet to Narya
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4892 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 20:42:19 +00:00
Michael Bayne
4c4d253974
Let's add a couple more very handy helper methods.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4891 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 19:54:58 +00:00
Michael Bayne
cb46d3a1af
Allow the unit to throw InvocationException and do the right thing with it.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4890 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 19:45:53 +00:00
Michael Bayne
c935c46612
Handle the client connecting and disconnecting before client object resolution
...
completed, or connecting, disconnecting and reconnceting before client object
resolution completes a little more gracefully.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4889 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-03 18:28:07 +00:00
Nathan Curtis
362e506fd6
don't need insert - you can add values with ArrayUtil.splice()
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4888 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-30 02:08:13 +00:00
Nathan Curtis
9ddea518fc
added an insert method
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4887 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-30 01:54:51 +00:00
Robert Zubeck
be0eaf6a22
Make it explicit in the function signature that we're just doing an
...
"Object == null" comparison. Otherwise the user might pass in an
undefined, and expect a strict equality test.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4886 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-28 02:34:50 +00:00
Michael Bayne
983adf75e5
Nix the wacky arguments thing. Let the caller simply beware.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4885 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-28 01:03:49 +00:00
Michael Bayne
69a1d2ec23
Slight change to usage and documentation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4884 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-28 00:47:16 +00:00
Michael Bayne
95adfeb646
Regenerated services.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4883 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-28 00:25:35 +00:00
Michael Bayne
9e835ff6e9
Added a way to package up an action and data and send it to all appropriate
...
servers for execution. The class in question must exist on the remote server
but all of our servers are all always running the same code, so this follows.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4882 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-28 00:25:23 +00:00
Par Winzell
195f78376b
Haha, there was already one in StringUtil. I was sure I'd checked...
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4881 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-24 21:50:54 +00:00
Par Winzell
9a8df29c8e
I'm afraid we really do need a hashcode method...
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4880 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-24 21:41:53 +00:00
Michael Bayne
63db77667a
Some type safety, redundant cast removal, and other code hygiene.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4879 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-24 19:40:19 +00:00
Dave Hoover
6eb2c79b19
Flag overrides in this template.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4878 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-21 19:16:05 +00:00
Mike Thomas
aa418e19ee
If the reboot time requested is at exactly the right time for the warning, we can use that warning and not require to go to the next level.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4877 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-20 18:26:31 +00:00
Robert Zubeck
31dbdc78be
A simple Flash assert class. Where's a preprocessor when you need one...
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4876 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-16 22:56:08 +00:00