49 Commits

Author SHA1 Message Date
UnknownShadow200
6430656cfe Port InputHandler and PickingHandler to C 2018-03-25 15:43:11 +11:00
UnknownShadow200
30937e92f5 little bit less hardcoding 2018-03-20 16:54:48 +11:00
UnknownShadow200
eb30aba77d Fix being able to right-click air to replace over water/lava. (Thanks Kingoscargames1) 2018-02-20 07:37:18 +11:00
UnknownShadow200
d817108bb5 Fix very rare case where placing a block with pushback placing on X = 0 or Z = 0 sides of map would cause you to get stuck outside map. (Thanks 123DMWM) 2017-12-31 13:02:54 +11:00
UnknownShadow200
f5e508ceb1 allow you to hold block ID 255 in inventory 2017-12-07 20:02:48 +11:00
UnknownShadow200
020505dd5c Holding down multiple mouse buttons still does block picking now. (In priority delete, else place, else pick) 2017-11-04 19:37:02 +11:00
UnknownShadow200
39aa37a83d Port more of Entity to C. 2017-09-16 20:14:20 +10:00
UnknownShadow200
ba34b5e8ac Survival mode: Implement food eating. 2017-09-04 08:59:02 +10:00
UnknownShadow200
7ca611c978 Combine Entity.cs and Entity.Bounds.cs, eliminate all of the hidden delegate allocations for the condition argument to TouchesAny 2017-08-24 15:08:15 +10:00
UnknownShadow200
0cf4e91888 Implement nicer dig animation, see https://github.com/UnknownShadow200/ClassicalSharp/wiki/Dig-animation-details (Thanks goodlyay) 2017-08-18 21:00:57 +10:00
UnknownShadow200
5a03fda9bd Get rid of InventoryPermissions and just use bool array instead 2017-08-14 09:54:42 +10:00
UnknownShadow200
c23ba90c1f Make BlockInfo class static and break all plugins in the process. 2017-08-14 09:33:21 +10:00
UnknownShadow200
49d50cdf7f consistent code style 2017-06-27 18:56:05 +10:00
UnknownShadow200
dd0b497136 Initial work on inventory that supports multiple hotbars. 2017-03-01 15:54:52 +11:00
UnknownShadow200
005d0cebe2 For the 0-1 people who bother, make 12 bit block ids as easy as a compile time switch. 2017-02-19 22:29:07 +11:00
UnknownShadow200
a16eaca72d Fix last few issues 2017-02-16 16:54:27 +11:00
UnknownShadow200
c92ebcac6c Use BlockID typedef instead of hardcoding byte everywhere.
In the 0.00001% chance someone changes blockid to be 16 bits
2017-02-16 16:31:17 +11:00
UnknownShadow200
132967bf9d Now hold air instead of 255 in survival, fixes invalid block type 255 2017-02-10 23:54:08 +11:00
UnknownShadow200
42d1f63db7 get picking working with arbitary model rotation 2017-02-07 10:38:02 +11:00
UnknownShadow200
e7aa519846 more concise interpolation, fix last commit 2017-01-25 22:30:56 +11:00
UnknownShadow200
c35692a8c6 fix singleplayer cuboid 2017-01-23 15:06:27 +11:00
UnknownShadow200
fd454c0c01 Now some entities spawn and can be clicked on. 2017-01-20 13:08:28 +11:00
UnknownShadow200
530e9eb09c make code work with abstract Entity class instead of Player class 2017-01-20 12:16:38 +11:00
UnknownShadow200
c16dd2f6a3 Rudimentary inventory management 2017-01-20 10:16:01 +11:00
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
e769fe8b7f Style: move autorotate stuff into separate file 2016-12-07 21:55:00 +11:00
UnknownShadow200
b785c3e2b7 core: /client cuboid now takes block names 2016-12-07 21:27:12 +11:00
Goodlyay
d4a50ef33f Core: add support for auto-rotating blocks
based on name
2016-12-07 00:22:01 -08:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
UnknownShadow200
2fa379746a Style: Finish simplifying BlockInfo 2016-10-29 13:49:33 +11:00
UnknownShadow200
f9c0f75208 Client: Move searcher for block collisions into separate class. 2016-10-10 14:42:05 +11:00
UnknownShadow200
1839da07b4 Client: Reduce code duplication in Picking.cs 2016-09-22 15:50:45 +10:00
UnknownShadow200
0ab5ef4434 Rename INetworkProcessor to the more descriptive IServerConnection, since it does not necessarily actually use the network. 2016-09-11 12:52:00 +10:00
UnknownShadow200
d837e52724 Better indentation 2016-08-30 12:49:24 +10:00
UnknownShadow200
4ffa029fa9 Start on (non-working) player push. 2016-07-25 13:03:29 +10:00
UnknownShadow200
7432413a77 Move gui code to a separate class. 2016-07-25 12:11:55 +10:00
UnknownShadow200
f227bbfbbf Modularise animation part of held block into a separate file. 2016-07-08 22:06:35 +10:00
UnknownShadow200
1578bac6bc Make held block and dig animations more accurate. 2016-07-07 15:21:51 +10:00
UnknownShadow200
bf31645e6b Hopefully fix issues with falling through when pillaring. (Thanks classic1234) 2016-06-26 23:38:51 +10:00
UnknownShadow200
f960043a08 Colour held block, more work on dig anim. 2016-06-25 13:48:12 +10:00
UnknownShadow200
b2c642b8af Remove Block enum. 2016-06-11 15:29:45 +10:00
UnknownShadow200
c4f1f69cbd Use a single tab list code base for both CPE ExtPlayerList and original tab list behaviour. 2016-05-29 21:37:38 +10:00
UnknownShadow200
fba550f3c2 Use generic BlockChanged event instead of hardcoding behaviour in PickingHandler. 2016-05-21 15:06:38 +10:00
UnknownShadow200
fe6dccc944 Reduce shadow alpha slightly (Thanks goodlyay). 2016-05-16 15:22:28 +10:00
UnknownShadow200
3fa57fa6ac Add UserEvent events class. Only event currently is when user has manually placed a block. 2016-05-09 00:26:36 +10:00
UnknownShadow200
3efd2365e1 Make warning dialogs less hacky. 2016-04-26 19:03:06 +10:00
UnknownShadow200
131b18bc67 Quick fix for client not working in multiplayer. (Thanks MrGoober) 2016-04-14 15:29:05 +10:00
UnknownShadow200
bdbe0e0337 Modularise out model building code. 2016-04-14 14:56:54 +10:00
UnknownShadow200
a58bdddc2d Modularise picking handling into a separate file. 2016-04-14 14:31:55 +10:00