* 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
26 lines
756 B
C#
26 lines
756 B
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Guidebook;
|
|
|
|
/// <summary>
|
|
/// Raised by the client on GuidebookDataSystem Initialize to request a
|
|
/// full set of guidebook data from the server.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class RequestGuidebookDataEvent : EntityEventArgs { }
|
|
|
|
/// <summary>
|
|
/// Raised by the server at a specific client in response to <see cref="RequestGuidebookDataEvent"/>.
|
|
/// Also raised by the server at ALL clients when prototype data is hot-reloaded.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class UpdateGuidebookDataEvent : EntityEventArgs
|
|
{
|
|
public GuidebookData Data;
|
|
|
|
public UpdateGuidebookDataEvent(GuidebookData data)
|
|
{
|
|
Data = data;
|
|
}
|
|
}
|