Make more fields VV-writeable (#21754)

This commit is contained in:
LordEclipse
2023-11-19 15:17:53 -05:00
committed by GitHub
parent 808555ade6
commit f3df6b85af
13 changed files with 28 additions and 28 deletions

View File

@@ -26,7 +26,7 @@ public sealed partial class PortalComponent : Component
/// <summary>
/// If no portals are linked, the subject will be teleported a random distance at maximum this far away.
/// </summary>
[DataField("maxRandomRadius")]
[DataField("maxRandomRadius"), ViewVariables(VVAccess.ReadWrite)]
public float MaxRandomRadius = 7.0f;
/// <summary>
@@ -45,12 +45,12 @@ public sealed partial class PortalComponent : Component
/// <remarks>
/// Obviously this should strictly be larger than <see cref="MaxRandomRadius"/> (or null)
/// </remarks>
[DataField("maxTeleportRadius")]
[DataField("maxTeleportRadius"), ViewVariables(VVAccess.ReadWrite)]
public float? MaxTeleportRadius;
/// <summary>
/// Should we teleport randomly if nothing is linked.
/// </summary>
[DataField, AutoNetworkedField]
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
public bool RandomTeleport = true;
}