DrSmugleaf
fcd52fa90c
Add ActionBlockerExtensions
2020-12-20 04:26:21 +01:00
DrSmugleaf
5c0cf1b1a0
Use 'new' expression in places where the type is evident for content ( #2590 )
...
* Content.Client
* Content.Benchmarks
* Content.IntegrationTests
* Content.Server
* Content.Server.Database
* Content.Shared
* Content.Tests
* Merge fixes
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
2020-11-27 21:00:49 +11:00
DrSmugleaf
749cd11d33
Add readonly where it is missing and fix those field names according to their modifiers ( #2589 )
2020-11-22 00:02:00 +11:00
ColdAutumnRain
f5dc62b533
Removed EntityManager member variable from Components and EntitySystems ( #2502 )
...
* Removed EntityManager member variable from Components and EntitySystems
* Removed EntityManager with minor corecctions
* Update PathfindingSystem.cs
* Update InteractionSystem.cs
* Update Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs
Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com >
* Update Content.Client/GameObjects/Components/Suspicion/SuspicionRoleComponent.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Client/GameObjects/Components/Suspicion/TraitorOverlay.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/Components/Buckle/BuckleComponent.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/Components/Buckle/BuckleComponent.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/Components/PDA/PDAComponent.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/Components/Singularity/SingularityComponent.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/Components/Singularity/SingularityComponent.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/EntitySystems/AI/Pathfinding/PathfindingSystem.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
* Update Content.Server/GameObjects/Components/Stack/StackComponent.cs
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com >
2020-11-18 15:45:53 +01:00
DrSmugleaf
b64cb24059
Rename usages of collidable to physics ( #2230 )
...
* Rename usages of collidable to physics
* high tier PANIQUE
* aaaaaaaaAAAAAa
* cursed commit dont research
* Fix urist and items being anchored
* Fix the rest
2020-10-11 16:36:58 +02:00
DrSmugleaf
753ca81865
Replace MapIndices with Vector2i ( #2228 )
...
* Replace MapIndices with Vector2i
* Update da submodule
* AA EE II OO U U
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com >
2020-10-11 15:21:21 +02:00
DrSmugleaf
74943a2770
Typo, redundant string interpolation, namespaces and imports cleanup ( #2068 )
...
* Readonly, typos and redundant string interpolations
* Namespaces
* Optimize imports
* Address reviews
* but actually
* Localize missing strings
* Remove redundant vars
2020-09-13 14:23:52 +02:00
DrSmugleaf
48b61f6bcc
Replace every usage of GridCoordinates with EntityCoordinates ( #2021 )
...
* Update RobustToolbox
* Transition direct type usages
* More updates
* Fix invalid use of to map
* Update RobustToolbox
* Fix dropping items
* Rename name usages of "GridCoordinates" to "EntityCoordinates"
* Revert "Update RobustToolbox"
This reverts commit 9f334a17c5908ded0043a63158bb671e4aa3f346.
* Revert "Update RobustToolbox"
This reverts commit 3a9c8cfa3606fa501aa84407796d2ad920853a09.
# Conflicts:
# RobustToolbox
* Fix cursed IMapGrid method usage.
* GridTileLookupTest now uses EntityCoordinates
Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com >
Co-authored-by: Víctor Aguilera Puerto <zddm@outlook.es >
2020-09-06 16:11:53 +02:00
DrSmugleaf
9d6c394f6b
Refactor InRangeUnobstructed and add extension methods ( #1925 )
...
* Sort out InRangeUnobstructed and add extension methods
* Rename client RangeChecks to RangeExtensions
* Add container extension methods and test
* Add missing component methods
Component to container
Grid coordinates to container
Map coordinates to container
Local player to container
* Actually use the field
* Merge fixes
* Add popup argument to local player extension methods
* Reduce code repetition for client range extensions
2020-08-30 11:37:06 +02:00
DrSmugleaf
8a27a5322a
Replace pragma warning 649 disable/restore with default!
2020-08-24 14:10:28 +02:00
metalgearsloth
0b4ca168d4
Fix AI steering throw ( #1872 )
...
Entity steering wasn't properly checking if the target was deleted.
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com >
2020-08-23 12:42:59 +02:00
metalgearsloth
72e50cce94
AI pickup changes ( #1811 )
...
* AI pickup changes
Eating and drinking isn't spammed anymore.
AI can do InRangeUnobstructed checks for item pickups.
AI can open drink cans.
AI littering to be coded.
* #nullable enable
* github's nullable fails are actively shortening my lifespan
* Use a const instead
So it's easier to find given the performance implications.
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com >
2020-08-22 12:03:24 +02:00
Visne
0b448b500d
Merge MathHelper and FloatMath
...
Requires space-wizards/RobustToolbox#1234
2020-08-16 14:54:52 +02:00
Vince
b647ad0f42
Refactor UpdateKinematics() and fix a lot of Content warnings ( #1709 )
...
Most warnings were related to EntityQuery and IPhysicsComponent.
Partially fixes #1650 and fixes #1682
2020-08-15 20:38:35 -07:00
DrSmugleaf
4a8ed41e3a
Fix namespaces and optimize imports ( #1651 )
...
* Fix namespaces and optimize imports
* Cleanup fixes
* Merge conflict fixes
* Merge conflict fixes
* Merge conflict fixes
2020-08-13 14:40:27 +02:00
metalgearsloth
619386a04a
Server EntitySystem cleanup ( #1617 )
...
* Server EntitySystem cleanup
I went after low-hanging fruit systems.
* Add / change to internal access modifiers to systems
* Use EntityQuery to get components instead
* Add sealed modifier to systems
* Remove unused imports
* Add jetbrains annotation for unused classes
* Removed some pragmas for dependencies
This should also fix a decent chunk of the server build warnings, at least the ones that matter.
* Also disposals
* Update Content.Server/GameObjects/EntitySystems/GravitySystem.cs
* Fix build
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com >
Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com >
2020-08-13 14:17:12 +02:00
Pieter-Jan Briers
f182ff5613
Remove CannyFastMath.
2020-08-12 21:19:34 +02:00
metalgearsloth
452a67032f
Fix the pathfinding leak ( #1647 )
...
Off-grid entities were continually expanding the graph indefinitely which is... bad.
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com >
2020-08-11 17:36:40 +02:00
metalgearsloth
56737b635f
Damage visualizer for simple mobs ( #1332 )
...
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com >
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com >
2020-07-23 02:04:03 +02:00
Acruid
c9374992a6
Converted everything to use collision and physics component interfaces.
2020-07-19 00:33:02 -07:00
metalgearsloth
8938d96402
Fix AI avoiding entities they can't collide with ( #1331 )
...
Should stop mobs getting trapped at the bar on saltern as they try to avoid light bulbs
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com >
2020-07-09 14:15:48 +02:00
Metal Gear Sloth
62302bfb23
Use named tuples
...
Thanks remie
2020-07-09 00:16:57 +10:00
metalgearsloth
b4adfbc15a
Update Content.Server/GameObjects/EntitySystems/AI/Steering/AiSteeringSystem.cs
...
Co-authored-by: Remie Richards <remierichards@gmail.com >
2020-07-09 00:03:48 +10:00
Metal Gear Sloth
8678d867cf
Fix AI steering spamming console
...
Turns out you shouldn't cancel pending jobs.
2020-07-08 23:44:47 +10:00
metalgearsloth
24831bf8a0
Refactor AI movement ( #1222 )
...
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com >
2020-06-28 17:42:44 +02:00