Remove redundant read-only VV from datafields (#12626)

This commit is contained in:
DrSmugleaf
2022-11-16 20:22:11 +01:00
committed by GitHub
parent fb892cb374
commit 7fbc2608e8
179 changed files with 171 additions and 462 deletions

View File

@@ -7,14 +7,14 @@ public sealed class RotateToTargetOperator : HTNOperator
[Dependency] private readonly IEntityManager _entityManager = default!;
private RotateToFaceSystem _rotate = default!;
[ViewVariables, DataField("targetKey")]
[DataField("targetKey")]
public string TargetKey = "RotateTarget";
[ViewVariables, DataField("rotateSpeedKey")]
[DataField("rotateSpeedKey")]
public string RotationSpeedKey = NPCBlackboard.RotateSpeed;
// Didn't use a key because it's likely the same between all NPCs
[ViewVariables, DataField("tolerance")]
[DataField("tolerance")]
public Angle Tolerance = Angle.FromDegrees(1);
public override void Initialize(IEntitySystemManager sysManager)