Commit Graph

4840 Commits

Author SHA1 Message Date
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
Michael Bayne 576dfa2c85 If a move fails and we're currently in a place, just stay where we are rather
than trying to go to our previous place. If we're no longer in a place (like we
switched servers to get where we're going), then we'll try to go back to our
previous place.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4875 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-15 01:59:22 +00:00
Ray Greenwell 376f5e680a Sorry, Log, no more free ride for you.
Putting you at the top level screws up use of another Log class.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4874 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-13 09:30:23 +00:00
Michael Bayne 5ae87258fa If we lose our connection, let anyone who had a pending subscription request
outstanding know that their subscription request failed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4873 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-13 02:56:35 +00:00
Michael Bayne 8250d2f1f5 Let's be precise.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4872 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-12 21:32:19 +00:00
Michael Bayne f471da8a49 Let our peers send up to 100 messages a second after which point we will
politely complain that they're talking a lot but not disconnect them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4871 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-12 21:29:57 +00:00
Michael Bayne ae6e8f1bdb We need to scan up the hierarchy so that if we're overriding a renamed method
(e.g toString(StringBuffer)) we use the properly renamed version
(e.g. toStringBuffer(StringBuffer)) when generating our ActionScript.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4870 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-12 19:37:08 +00:00
Michael Bayne b688776893 Allow createPlace() to be passed a list of delegates to be added to the place
manager prior to it being initialized or started up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4869 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-10 05:01:02 +00:00
Michael Bayne abeeef4d10 PlaceManagerDelegate no longer takes its target manager in its constructor but
rather is configured with it when added to the manager as a delegate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4868 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-10 04:41:01 +00:00
Dave Hoover baa664bd11 channel is a SocketChannel which is a subclass of SelectableChannel, so this instanceof
can't ever be false. (And just above, we've already confirmed that channel != null, so this
check wasn't falling back to protecting us from that)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4867 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-08 18:49:28 +00:00
Michael Bayne 6e901ec83a Let's call that ninstall since we don't actually compile anything.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4866 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-07 02:20:54 +00:00
Michael Bayne 238da969c0 Don't build, just install the already committed build results.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4865 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-07 02:20:12 +00:00
Michael Bayne 0d377d8e0b Never mind. Those are committed. And I need to be committed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4864 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-07 02:02:29 +00:00
Michael Bayne 0cd1be4728 Clean our our native libraries when we run clean.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4863 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-07 01:57:04 +00:00
Michael Bayne aa10f80b16 Bring on the Googley goodness. There may be build breakage as we find all the
projects that use Narya and now need google-collect.jar but it had to be done.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4862 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-02 23:10:06 +00:00
Michael Bayne d84b2ac8a0 Report a more useful error if we have a bogus controller. Tidied some other
bits up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4861 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-11-02 23:02:36 +00:00
Michael Bayne 87a1e8968e Target 1.5 when building.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4860 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-30 06:20:06 +00:00
Par Winzell a30dca8581 Oops, warnings, I guess they don't auto-cast function references to booleans without grumbling. Good for them I suppose.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4859 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-28 15:05:27 +00:00
Par Winzell b7d2bfb1af Another handy adapter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4858 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-27 18:54:53 +00:00
Dave Hoover 6719d18caa Rerun generators.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4857 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-26 21:06:53 +00:00
Charlie Groves 0784d40c10 Eclipse metadata
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4856 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-26 18:37:07 +00:00
Michael Bayne e6af23ad38 Let's report that in a friendlier way.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4855 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-26 17:41:24 +00:00
Ray Greenwell 480abdee8a For primitive types, the coercive casts never fail. Let's be lenient and let
a TypedArray of int work if people fill it with strings like "4" or "9".


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4854 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-24 21:51:32 +00:00
Michael Bayne 13fe8fc930 On second thought, reference equality is really the only appropriate thing for
DObject. There will never be multiple instances with the same oid that
represent "equal" objects and it's possible that in certain (controlled and
limited) cirumstances, objects with different object managers might have the
same oid even though they are different objects.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4853 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-20 18:50:27 +00:00
Michael Bayne 4280391d03 Implemented hashCode() and equals() as it could come in handy if we want to
stick objects in a collection.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4852 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-20 18:48:06 +00:00
Michael Bayne 4f83cf0119 Added a backwards compatible registerDispatcher() call to repair GG games.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4851 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-19 23:16:52 +00:00
Michael Bayne 27b95dd19a Nix another redundant cast.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4850 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-19 18:28:56 +00:00
Michael Bayne 66660bc490 Don't need to cast the result of an array clone.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4849 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-10-19 18:22:37 +00:00