TabletopSetup.cs 997 B

1234567891011121314151617181920
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.Tabletop
  4. {
  5. [ImplicitDataDefinitionForInheritors]
  6. public abstract partial class TabletopSetup
  7. {
  8. /// <summary>
  9. /// Method for setting up a tabletop. Use this to spawn the board and pieces, etc.
  10. /// Make sure you add every entity you create to the Entities hashset in the session.
  11. /// </summary>
  12. /// <param name="session">Tabletop session to set up. You'll want to grab the tabletop center position here for spawning entities.</param>
  13. /// <param name="entityManager">Dependency that can be used for spawning entities.</param>
  14. public abstract void SetupTabletop(TabletopSession session, IEntityManager entityManager);
  15. [DataField("boardPrototype", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
  16. public string BoardPrototype = default!;
  17. }
  18. }