9 Commits

Author SHA1 Message Date
Drew DeVault
87b621e166 Finish lighting optimizations (for now)
We can now consistently light a chunk with sub-10ms lighting steps.
2015-07-04 15:00:54 -06:00
Drew DeVault
7da2ca5a27 Track the subject of each scheduled event
This allows us to cancel events when the subject is no longer around.
For example, if a chunk is unloaded due to inactivity, the events within
it are cancelled (growth of wheat, propegation of fluids, etc). When a
client disconnects, events associated with it are cancelled.

To use this for your own scheduled events, pick a subject. If your
subject does not implement IEventSubject, implement it. Then, you can
pass the subject into ScheduleEvent and that's it. When the subject
dies, your events will die with it. So long as the subject remains
alive, your events still fire.

`null` is a valid subject for events that should happen regardless of
any subject expiring.

Closes #1
2015-07-01 14:02:41 -06:00
Drew DeVault
b2ae41b87c Initial implementation of lighting 2015-06-26 16:27:13 -06:00
Drew DeVault
bd132b0d6f Fix client bugs preventing use on vanilla servers 2015-05-17 16:18:09 -06:00
Drew DeVault
805320ce8f Implement caves
This:

- Implements caves with 3D noise
- Moves periodic chunk updates to the thread pool
- Fixes a handful of small bugs
2015-05-03 19:49:43 -06:00
Drew DeVault
e5207c6dec Add support for signs 2015-05-03 16:02:47 -06:00
Drew DeVault
4d3d5ee8e0 Send initial slew of chunks to connected clients 2014-12-27 18:19:42 -07:00
Drew DeVault
09163f36ee Update (un-update?) world implementation to b1.7.3 2014-12-27 12:51:45 -07:00
Drew DeVault
96ecbc708c Adapt Craft.Net.Anvil for world support 2014-12-27 12:34:55 -07:00