531 Commits

Author SHA1 Message Date
Drew DeVault
974b0783e4 Merge branch 'master' of github.com:SirCmpwn/TrueCraft 2015-02-02 15:53:05 -07:00
Drew DeVault
cd20b987d4 Partially implement world persistence
This does not account for entities or tile entities, and the seed is not
saved because there is no level.

TODO: Save levels
2015-02-02 15:52:25 -07:00
Drew DeVault
17e1de7082 Merge pull request #15 from cubrr/master
Expand Size struct, modify Vector3
2015-02-02 13:23:36 -07:00
Cuber
aa91d23a5c Expand Size struct, modify Vector3
Size:
* Added operators
* Implemented IEquatable<Size>
* Overrode Object.Equals, .ToString and .GetHashcode
Vector3:
* Object.Equals override: The `is` operator is faster than doing (x.GetType() != typeof (y))
2015-02-02 22:13:17 +02:00
Drew DeVault
f1a98a562b Add contributor agreement 2015-02-02 12:18:02 -07:00
Drew DeVault
775adf685a Significant improvements to entity physics
No more jitter! Collisions actually work all the time!
2015-02-02 01:24:43 -07:00
Drew DeVault
70ee5df9d8 Prevent item entities from sending metadata 2015-02-01 23:33:22 -07:00
Drew DeVault
7cbf04a0d6 Send entity metadata to connected clients
This also implements crouching via the same feature
2015-02-01 22:04:02 -07:00
Drew DeVault
079f8b9188 Flesh out EntityManager to sync entities w/clients
This makes sure that you get new entities as you move to chunks that
have them, and that entities are despawned as you move further away from
them.
2015-02-01 21:43:25 -07:00
Drew DeVault
eda5dd2f82 Implement bed placement and supported blocks 2015-02-01 18:53:10 -07:00
Drew DeVault
91fdf59532 Reduce packet queue timeout per client 2015-02-01 16:00:38 -07:00
Drew DeVault
567ba2aab1 Fix several core networking bugs
This should make the server much more stable over a longer period of
time
2015-02-01 15:59:59 -07:00
Drew DeVault
4df341e7d6 Add item repository and leaves logic 2015-02-01 14:59:02 -07:00
Drew DeVault
e3051a673c Implement special cases for block drops
This does not include things that require certain tools, such as
cobblestone.
2015-02-01 14:30:02 -07:00
Drew DeVault
12dea4d037 Improve README 2015-02-01 14:12:28 -07:00
Drew DeVault
c137b010e9 Implement entity armor propegation
When you change what's in your hand or put on armor, now everyone will
know about it.
2015-02-01 11:36:45 -07:00
Drew DeVault
b13c402170 Handle exceptions in entity updates 2015-02-01 11:03:59 -07:00
Drew DeVault
8feefbbbbf Implement entity physics and item drops 2015-02-01 10:38:55 -07:00
Drew DeVault
bdea15dae8 Fix minor issues with chat logging 2015-01-31 21:04:25 -07:00
Drew DeVault
6453004c7b Fix incorrect usage of UseEntityPacket 2015-01-31 20:33:05 -07:00
Drew DeVault
ab3b6bd3b3 Improve performance of network worker 2015-01-31 20:07:26 -07:00
Drew DeVault
ad42586170 Despawn client entities on log out 2015-01-31 20:05:05 -07:00
Drew DeVault
d9986e247e Implement client entity tracking
We multiplayer now
2015-01-31 19:22:10 -07:00
Drew DeVault
3aaa6be371 Instantiate {Inverse,}KnownEntities for clients
This fixes an error with having several people logged in at once.
2015-01-31 17:43:49 -07:00
Drew DeVault
944bab4749 Refactor entity management to support more cases
This is the first step towards actual entity management.
2015-01-31 17:39:10 -07:00
Drew DeVault
23aca2e5b1 Handle player disconnect exceptions correctly 2015-01-31 17:21:49 -07:00
Drew DeVault
c0585fc714 Implement mining via block providers 2015-01-26 17:05:26 -07:00
Drew DeVault
61bd2d32d3 Add block repository support code 2015-01-26 16:40:32 -07:00
Daniel Vidmar
c363b1e36c Merge remote-tracking branch 'upstream/master' 2015-01-26 18:40:28 -05:00
Drew DeVault
e2f9929783 Fix case on FlintAndSteelItem.cs 2015-01-26 16:25:11 -07:00
Daniel Vidmar
98ba0ae0b2 Combined like item classes 2015-01-26 16:25:11 -07:00
Daniel Vidmar
217be72385 Merged sword item classes into SwordItem.cs 2015-01-26 16:25:11 -07:00
Daniel Vidmar
04f227f332 Item fixes
Added a new property to ToolItem
- Base Durability
Added a new property to SwordItem
- Damage
Created base classes for Axes, Hoes, Pickaxes, and Shovels
Fixes
- Fixed format issues
2015-01-26 16:25:11 -07:00
Daniel Vidmar
90923522bc Added items 2015-01-26 16:25:11 -07:00
Daniel Vidmar
823110f8ad Combined like item classes 2015-01-26 17:35:00 -05:00
Daniel Vidmar
7f4bb02a58 Merged sword item classes into SwordItem.cs 2015-01-26 16:32:52 -05:00
Daniel Vidmar
b157e2ec26 Item fixes
Added a new property to ToolItem
- Base Durability
Added a new property to SwordItem
- Damage
Created base classes for Axes, Hoes, Pickaxes, and Shovels
Fixes
- Fixed format issues
2015-01-26 16:09:13 -05:00
Drew DeVault
c037aef597 Implement world time updates 2015-01-26 07:45:10 -07:00
Daniel Vidmar
64c9cd30db Merge remote-tracking branch 'upstream/master' 2015-01-26 06:21:21 -05:00
Daniel Vidmar
6062117b31 Added items 2015-01-26 06:17:42 -05:00
Drew DeVault
affcb43617 Finish implementing inventory interactions 2015-01-26 00:45:55 -07:00
Drew DeVault
3a4d1c7107 Build out partial support for inventory management
This also fixes that weird thing where selecting items from Too Many
Items would cause the client to become unresponsive.
2015-01-25 23:36:53 -07:00
Drew DeVault
72d27f3712 Merge pull request #6 from creatorfromhell/master
Forgotten block modifications.
2015-01-25 22:29:11 -07:00
Daniel Vidmar
e74bdeb7be Forgotten block modifications.
Github left this behind.
2015-01-26 00:25:55 -05:00
Drew DeVault
0662046235 Merge pull request #5 from creatorfromhell/master
Block modifications.
2015-01-25 22:20:19 -07:00
Daniel Vidmar
351ab96f99 Block modifications.
Added two new properties.
- Opaque: Whether or not the block is opaque
- LightModifier: The amount removed from the light level as it passes
through the block(for transparent blocks).

Merged all rail block classes into RailBlock.cs and made them extend
RailBlock
2015-01-26 00:14:58 -05:00
Drew DeVault
342f813477 Merge pull request #4 from creatorfromhell/master
New Command System
2015-01-23 13:34:27 -07:00
Daniel Vidmar
ff7b009d82 Oops....some style fixes. 2015-01-23 15:32:37 -05:00
Daniel Vidmar
7e608db385 Removed command event code 2015-01-23 15:23:46 -05:00
Daniel Vidmar
ff00c0bfc0 Moved the command check back to Program.cs 2015-01-23 13:17:14 -05:00