CivFactionComponent.cs 687 B

123456789101112131415161718192021222324
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Civ14.CivFactions;
  3. [RegisterComponent, NetworkedComponent]
  4. public sealed partial class CivFactionComponent : Component
  5. {
  6. /// <summary>
  7. /// The total weight of the entity, which is calculated
  8. /// by recursive passes over all children with this component
  9. /// </summary>
  10. [ViewVariables]
  11. public string FactionName { get; set; } = "";
  12. /// <summary>
  13. /// Sets the faction name associated with this component.
  14. /// </summary>
  15. /// <param name="factionName">The name of the faction to assign.</param>
  16. public void SetFaction(string factionName)
  17. {
  18. FactionName = factionName;
  19. }
  20. }