| 123456789101112131415161718192021222324 |
- using Robust.Shared.GameStates;
- namespace Content.Shared.Civ14.CivFactions;
- [RegisterComponent, NetworkedComponent]
- public sealed partial class CivFactionComponent : Component
- {
- /// <summary>
- /// The total weight of the entity, which is calculated
- /// by recursive passes over all children with this component
- /// </summary>
- [ViewVariables]
- public string FactionName { get; set; } = "";
- /// <summary>
- /// Sets the faction name associated with this component.
- /// </summary>
- /// <param name="factionName">The name of the faction to assign.</param>
- public void SetFaction(string factionName)
- {
- FactionName = factionName;
- }
- }
|