]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add guidebook protodata tag: embed prototype values in guidebook text (#27570)
authorTayrtahn <tayrtahn@gmail.com>
Thu, 12 Sep 2024 10:31:56 +0000 (06:31 -0400)
committerGitHub <noreply@github.com>
Thu, 12 Sep 2024 10:31:56 +0000 (13:31 +0300)
commit320135347ffc01f078a89b10322d7952e3af92e4
treea6679697e5234d3052b0fb8563d3fb72b2e96ded
parentc8f2ddc72985172992570fd5f1d60300948b33ed
Add guidebook protodata tag: embed prototype values in guidebook text (#27570)

* First clumsy implementation of guidebook protodata

* Support for Properties, format strings

* Better null

* Rename file

* Documentation and some cleanup

* Handle errors better

* Added note about client-side components

* A couple of examples

* DataFields

* Use attributes like a sane person

* Outdated doc

* string.Empty

* No IComponent?

* No casting

* Use EntityManager.ComponentFactory

* Use FrozenDictionary

* Cache tagged component fields

* Iterate components and check if they're tagged
Content.Client/Guidebook/GuidebookDataSystem.cs [new file with mode: 0644]
Content.Client/Guidebook/Richtext/ProtodataTag.cs [new file with mode: 0644]
Content.Server/Guidebook/GuidebookDataSystem.cs [new file with mode: 0644]
Content.Shared/Explosion/Components/OnUseTimerTriggerComponent.cs
Content.Shared/Guidebook/Events.cs [new file with mode: 0644]
Content.Shared/Guidebook/GuidebookData.cs [new file with mode: 0644]
Content.Shared/Guidebook/GuidebookDataAttribute.cs [new file with mode: 0644]
Content.Shared/Power/Generator/FuelGeneratorComponent.cs
Resources/ServerInfo/Guidebook/Engineering/PortableGenerator.xml
Resources/ServerInfo/Guidebook/Security/Defusal.xml