Commit Graph
11 Commits
Author SHA1 Message Date
PrPleGooandGitHub 6e8ab5ce78 Ignore deleted components while raising events. (#4311) 2023-09-10 10:48:00 +10:00
PrPleGooandGitHub eb9e0ffefc Advertise to multiple hubs simultaneously (#4285) 2023-09-06 00:25:11 +02:00
PrPleGooandGitHub 9df4606492 Added colors (#4278) 2023-08-20 18:48:00 +02:00
PrPleGooandGitHub 6d8a0f6558 ISelfSerialize interface (#1021)
* Special check for decimal in serialization code. Changed method in IoCManager for a little QoL

* ISelfSerialize stuff

ISelfSerialize interface for stuff that want to implement their own (de)serialization.
Forgot that desialize could exist for decimals earlier.
Added ViewVariablesPropertyEditorISelfSerialzable thing for viewvariables.

* fix TestStylesheetOverride

* Fix improper UT logic

* Somewhat neater VV lineEdit event hanlding

* remove whitespace and unused using

* uninherit ViewVariablesPropertyEditorISelfSerialzable

* Fix improper use or ToString

* seal VV classes
2020-04-08 21:24:32 +02:00
PrPleGooandGitHub bb0e6917b8 Decimal reagents requirements (#1018) 2020-03-28 13:48:57 +01:00
PrPleGooandGitHub 2aea10168e Fix issue651 and370 (#1017)
* Switch Mobs and Items DrawDepth

* Add Y compare to SpriteDrawingOrderComparer
2020-03-15 08:05:16 +01:00
PrPleGooandGitHub 8cee7ba685 Reworked how friction impacts velocity. (#1015)
* Rework friction to work as a sum instead of indiviually

* Removed comments

* Changed how friction works from reducing movement to increased the effect of mass.
2020-03-15 07:28:32 +01:00
PrPleGooandGitHub 5c461a8500 Added unit tests for some collision code and a small rename (#1014)
* Changed how collision checks work

* Undid asym collision

* Push to switch machines

* Added UnitTest to clarify the logic in CollidesOnMask

* moved test into testcase
2020-03-15 07:27:25 +01:00
PrPleGooandPieter-Jan Briers 02f2e051dc Actual lockers (#787)
Adds storing entities into lockers the way we all know and love.
2019-04-14 21:17:33 +02:00
PrPleGooandPieter-Jan Briers eec287c19a Locker shoving (#785)
Added a bool to ICollidable to indicate friction with the floor, for thrown items down the line.
Added a bool to PhysicsComponent to indicate if movement is possible.
Added list of PhysicsComponent that are slowing "this" down.
PhysicsComponent handles BumpEntMsg by adding the bumping entity to that list.
Implemented ICollideSpecial to prevent collision with items in that list.
Reworked movement code:
- Separated calculating movement from doing movement;
- Calculating movement now involves several recalculations to see who is on "that" list;
- Friction of a tile now slows movement down depending on an object's mass;
Optimized collision code by building a Dictionary with a snapped grid location for key, reducing the amount of bodies that need to be checked significantly.
2019-04-12 19:40:21 +02:00
PrPleGooandPieter-Jan Briers fb21726dfa Rendering order now done by who was last dirty instead of Uid (#786) 2019-04-12 00:09:55 +02:00