Commit Graph
16 Commits
Author SHA1 Message Date
Pieter-Jan Briers 29083fdb6f Pass WithFormat<T> through IsValueDefault to fix map saving. 2020-05-31 10:53:30 +02:00
ComicIronicandGitHub 486fd670e2 Change DrawDepth to int, add content constant hook (#1090)
This allows DrawDepth to be defined in the content layer.
2020-05-31 00:40:48 +02:00
ComicIronicandGitHub 5ebd8a4221 Add system for using flag names in YAML (#1047) 2020-05-24 22:43:30 +02:00
Pieter-Jan Briers 24eab7ef3a Fix YAML ColorSerializer, optimize Color.ToHex() 2020-05-23 02:38:36 +02:00
Pieter-Jan Briers 6794bf4c3c Fix phys shapes showing up in map file. 2020-04-25 17:32:41 +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
Pieter-Jan Briers fd8e68091e Fix implementation, add tests. 2020-03-25 21:34:30 +01:00
Tyler Young 3856a16463 flip writing check 2020-02-28 19:12:57 -05:00
Tyler Young 36ee8a0c90 use generic type to fix call IsValueDefault
found a way to dedupe
2020-02-27 02:37:22 -05:00
Tyler Young b63d02d96d woo 2020-02-24 20:04:17 -05:00
Acruid 2fc636b7b9 The YamlSerializer now properly checks that the type is an enum. Previously it checked if the typed equaled Enum, which isn't the same thing and is always false. 2019-09-16 16:26:33 -07:00
Acruid 60fa8080c4 Properly implements the Concrete Type Tag system for serialization. 2019-09-16 11:13:09 -07:00
Pieter-Jan Briers 1108fd94ce Add Vector3 & 4 support to YamlObjectSerializer. 2019-09-09 16:20:33 +02:00
AcruidandPieter-Jan Briers f2eb035ed8 Physics Shapes (#847)
* Adds a new IPhysicsShape object where you can define what collisions shape a PhysBody has.
AABB is now accessed through the PhysicsShape, so the BoundingBoxComponent is not required.

* Default PhysShape now copies the AABB of the BoundingBoxComponent.

* Fixed issue with serialization of PhysShapeAabbComp.

* Spatial queries now use ICollidableComponent instead of BoundingBoxComponent.
showbb now draws entities using the obsolete BoundingBoxComponent in Aqua.

* Renamed PhysShapeAabbComp to PhysShapeAabb.
Removed BoundingBoxComponent.

* Default CollidableComponent does not collide with anything now.

* Renamed ICollidable to IPhysBody.
Moved ICollidable to the Robust.Shared/Physics namespace.

* PhysShapes are now a collection of primitive shapes that contribute to the whole PhysBody.
ObjectSerializer.DataField can now deal with abstract types using YAML tags.

* Added LocalBounds property to ClickableComponent.
Added state to ClickableComponent.

* Added a Rectangle physics shape.

* ClickableComponent now actually checks that a click is inside its bounds.

* Reverted the addition of a try/catch around map loading. Any errors can propagate to the code trying to load the map again.
2019-09-03 22:06:50 +02:00
SilverandGitHub 25926a17b7 Renames SS14.* to Robust.* (#793)
RobustToolbox projects should be named Robust.* 

This PR changes the RobustToolbox projects from SS14.* to Robust.*

Updates SS14.* prefixes/namespaces to Robust.*
Updates SpaceStation14.sln to RobustToolbox.sln
Updates MSBUILD/SS14.* to MSBUILD/Robust.*
Updates CSProject and MSBuild references for the above
Updates git_helper.py
Removes Runserver and Runclient as they are unusable
2019-04-15 20:24:59 -06:00