Commit Graph

327 Commits

Author SHA1 Message Date
cha0s
99dc832866 feat: spawnRaw and spawnRawAt 2019-10-08 03:24:20 -05:00
cha0s
0a7c60e8b7 refactor: destroy async to avoid issues within tick 2019-10-08 03:23:58 -05:00
cha0s
2b3fca9d9a feat: dying and died events 2019-10-08 03:23:36 -05:00
cha0s
ab37214926 chore: tidy 2019-10-08 02:29:24 -05:00
cha0s
f308ebb469 fix: entity.toNetwork 2019-10-07 05:13:49 -05:00
cha0s
15df8e1d43 refactor: rename 2019-10-03 19:11:52 -05:00
cha0s
c1ddc04703 fix: don't send whole state in packets 2019-10-03 15:46:33 -05:00
cha0s
9f2e2960c4 feat: _fastDirtyCheck for traits and entities, cleanPackets was getting rough 2019-10-03 00:53:56 -05:00
cha0s
25ff3f270d feat: died packet 2019-10-02 00:10:14 -05:00
cha0s
dd0f4da9ad refactor: send initial entity state 2019-10-01 22:42:26 -05:00
cha0s
bf01a5d86b chore: remove assert 2019-10-01 20:48:47 -05:00
cha0s
a5a09cbcba refactor: send updates before destroys 2019-10-01 20:45:25 -05:00
cha0s
c08b32b68c chore: helper 2019-10-01 20:37:08 -05:00
cha0s
cfd6a5ef67 fix: children splicing 2019-10-01 01:51:13 -05:00
cha0s
0305d24c73 fix: alive trait sync 2019-09-30 20:57:04 -05:00
cha0s
204907c27f refactor: efficient entity toNetwork 2019-09-30 20:52:52 -05:00
cha0s
d90a345afe refactor: actual entity tracking! 2019-09-30 20:08:05 -05:00
cha0s
37028a8bd9 refactor: encode trait type for net 2019-09-30 19:23:11 -05:00
cha0s
e1ac271b8b chore: dead code 2019-09-30 15:52:32 -05:00
cha0s
b169bb8c2d refactor: state diffs 2019-09-30 15:47:25 -05:00
cha0s
40a9731147 fix: directional packet 2019-09-30 15:35:57 -05:00
cha0s
909cc388f2 chore: dead code 2019-09-30 15:19:10 -05:00
cha0s
12a70ee94e flow: trait updates! 2019-09-30 01:36:02 -05:00
cha0s
ddd9b1c8e8 flow: massive sync update 2019-09-29 13:19:57 -05:00
cha0s
21ae93f1cc flow: to synchronized 2019-09-22 18:45:33 -05:00
cha0s
305f421085 feat: resource registration 2019-09-16 21:52:08 -05:00
cha0s
85daf1f224 chore: dead code 2019-09-16 19:06:47 -05:00
cha0s
937dca2657 chore: formatting 2019-09-16 19:04:35 -05:00
cha0s
5b1b9442c7 refactor: loadOrInstance -> Resource 2019-09-16 19:04:02 -05:00
cha0s
4f6869863c refactor: ticking promise 2019-09-08 08:12:31 -05:00
cha0s
d9004f0e5a refactor: better context creation API 2019-09-08 06:04:31 -05:00
cha0s
6b124ab183 refactor: TickingPromise is more of a joy 2019-09-08 05:34:17 -05:00
cha0s
e87489f691 refactor: simplify Context consumption 2019-09-08 04:55:39 -05:00
cha0s
1f7763e715 fix: spawn list wasn't propagating to wielder 2019-09-08 03:20:15 -05:00
cha0s
7d4ab97fa0 feat: visibleEntitiesWithUri 2019-06-08 00:23:51 -05:00
cha0s
8803402f43 refactor: moveFor takes vector 2019-06-05 23:11:59 -05:00
cha0s
e0cdf94df5 refactor: don't early out client/server 2019-06-05 21:19:16 -05:00
cha0s
8916544193 fix: ACTUALLY visible entities :) 2019-06-05 20:18:30 -05:00
cha0s
38a907d9bb fix: don't double-add entities 2019-06-05 20:16:51 -05:00
cha0s
3197525f03 fix: return spawn 2019-06-05 20:16:34 -05:00
cha0s
c69909b80a refactor: movement API 2019-06-01 13:11:45 -05:00
cha0s
f84e2331c8 flow: spawnAt, fixed JSON merging, use wielder list if necessary, prevent spawn race condition 2019-05-30 09:11:17 -05:00
cha0s
e90ce0ecca fix: (setInto|removeFrom)(Layer|List|Room) 2019-05-27 07:24:42 -05:00
cha0s
0f61faabb4 fix: add/remove from list and room 2019-05-26 12:03:24 -05:00
cha0s
24f944d762 fun: moveFor shouldn't set direction 2019-05-26 12:01:58 -05:00
cha0s
e8fb18c05e refactor: persistent hydration state 2019-05-22 06:25:15 -05:00
cha0s
68d27ae5ba chore: bump 2019-05-17 06:15:36 -05:00
cha0s
8d67f220c9 perf: faster entity.room 2019-05-17 05:47:40 -05:00
cha0s
ba34ef6e01 feat: only send mergeDiff for EntityCreatePacket 2019-05-17 05:37:29 -05:00
cha0s
f6bbc7f6c3 fix: mergeDiff must default to full json with no uri 2019-05-17 05:34:32 -05:00
cha0s
6fb012090e chore: remove all references to @avocado/mixins 2019-05-17 04:35:23 -05:00
cha0s
a6536d7fb5 refactor: use jsonext for new Entity 2019-05-17 04:35:10 -05:00
cha0s
b591352d95 feat: Entity::mergeDiff 2019-05-17 04:33:52 -05:00
cha0s
efb5c75f98 feat: Trait.defaultJSON 2019-05-17 04:33:30 -05:00
cha0s
f1eb174088 refactor: core merge 2019-05-17 04:33:16 -05:00
cha0s
009e69ffd6 feat: loaded entities for list 2019-05-16 23:01:57 -05:00
cha0s
2fc0b35eee perf: only send a numeric ID over the wire 2019-05-16 17:44:45 -05:00
cha0s
769338a946 fix: don't create entities if they already exist 2019-05-16 15:46:49 -05:00
cha0s
2747542932 fix: destroy guard 2019-05-16 15:19:57 -05:00
cha0s
f962832c18 refactor: alive moved to core; destroyGently 2019-05-14 05:58:04 -05:00
cha0s
cbc2401f27 refactor: trait packet helpers 2019-05-14 05:45:22 -05:00
cha0s
d0ae543ae4 fix: physics slop can yield negative position 2019-05-14 05:03:25 -05:00
cha0s
29abc9f540 fix: remove last 2019-05-14 03:41:38 -05:00
cha0s
3631a7f669 refactor: immutablen't 2019-05-13 21:07:51 -05:00
cha0s
e90755fc01 fix: no dirty marks on client 2019-05-10 02:29:55 -05:00
cha0s
414a1eb5a0 fix: no direction set for zero vector 2019-05-09 15:15:51 -05:00
cha0s
f15b23c437 refactor: simplify aabb query 2019-05-09 01:32:49 -05:00
cha0s
3e4f48c517 perf: faster props and auto sync children init 2019-05-08 23:54:30 -05:00
cha0s
14a252db3a perf: skip state mutation if possible 2019-05-08 21:17:00 -05:00
cha0s
eb7fdf4f78 perf: faster dirty entities 2019-05-08 17:51:29 -05:00
cha0s
f2860eed06 perf: static trait accessor keys 2019-05-06 13:55:09 -05:00
cha0s
26402f6c6b perf: fast-path entity creation 2019-05-06 13:01:28 -05:00
cha0s
d289b9c36a perf: much more care around hidden classes 2019-05-06 04:03:43 -05:00
cha0s
fa939ac3fc perf: flat tickers 2019-05-05 20:04:59 -05:00
cha0s
4d18430260 fix: whoops 2019-05-05 17:28:52 -05:00
cha0s
eab27a5c3a perf: remove slice 2019-05-05 17:28:45 -05:00
cha0s
e22394e875 perf: bind entity tickers AOT 2019-05-05 17:11:46 -05:00
cha0s
537cc167f8 fix: explicit types for minification 2019-05-05 04:26:35 -05:00
cha0s
91ffcb890f refactor: raw JS params 2019-05-04 14:06:47 -05:00
cha0s
c148bc2456 fix: physics apply stepTime as impulse 2019-05-04 13:31:16 -05:00
cha0s
40eb5867ee refactor: return flushed instead of callback 2019-05-04 12:42:40 -05:00
cha0s
a66b6889f2 perf: inline entity from JSON 2019-05-04 11:39:23 -05:00
cha0s
f405133b51 chore: tidy 2019-05-03 23:27:23 -05:00
cha0s
2eefd555bf perf: calculate synchronized children ahead of time 2019-05-03 23:12:50 -05:00
cha0s
4781c73753 perf: traits only tick/render/accept packets when necessary 2019-05-03 19:54:23 -05:00
cha0s
9f7a37ad2a chore: dead code 2019-05-03 14:53:54 -05:00
cha0s
9909b12c41 perf: list ticking/dirty optimization 2019-05-03 13:26:51 -05:00
cha0s
4db5fb1832 fix: smoother lerp 2019-05-03 08:47:56 -05:00
cha0s
c53a3308ee fix: unloop and avoid null traits from immediate destroy 2019-05-03 08:17:18 -05:00
cha0s
643f2bbf62 fix: release children refs on spawner destroy 2019-05-03 02:24:02 -05:00
cha0s
c1a90b941b chore: clean stuff up 2019-05-03 01:22:26 -05:00
cha0s
f99477c693 chore: format 2019-05-02 21:37:37 -05:00
cha0s
497b4219e4 perf: fastApply 2019-05-02 21:26:32 -05:00
cha0s
dd5a0d7d79 perf: remove slow props 2019-05-02 20:17:57 -05:00
cha0s
53678d106c refactor: after destruction ticker method 2019-05-02 20:17:46 -05:00
cha0s
8c33d58030 fix: remove slow props 2019-05-02 20:12:41 -05:00
cha0s
cfa5f986f7 perf: faster visibleEntities 2019-05-02 20:05:12 -05:00
cha0s
b899a9dc48 refactor: don't juggle types; avoid getter 2019-05-02 20:01:09 -05:00
cha0s
5e12fab096 flow: optimizations 2019-05-01 21:35:38 -05:00
cha0s
548e206bc9 chore: rename visibleBoundingBoxes to visibleAabbs 2019-05-01 20:10:18 -05:00