Revert "Mark AutoGenerateComponentStateAttribute fields as readonly (#6126)" (#6128)

This reverts commit 1cd802640a.
This commit is contained in:
Tayrtahn
2025-08-04 18:32:54 -04:00
committed by GitHub
parent 1cd802640a
commit ce3a5f6bfa

View File

@@ -17,12 +17,12 @@ public sealed class AutoGenerateComponentStateAttribute : Attribute
/// If this is true, the autogenerated code will raise a <see cref="AfterAutoHandleStateEvent"/> component event
/// so that user-defined systems can have effects after handling state without redefining all replication.
/// </summary>
public readonly bool RaiseAfterAutoHandleState;
public bool RaiseAfterAutoHandleState;
/// <summary>
/// Should delta states be generated for every field.
/// </summary>
public readonly bool FieldDeltas;
public bool FieldDeltas;
public AutoGenerateComponentStateAttribute(bool raiseAfterAutoHandleState = false, bool fieldDeltas = false)
{