Give stores the ability to check for owner only (#26573)

adds a check if the store belongs to the user
This commit is contained in:
keronshb
2024-03-30 19:25:36 -04:00
committed by GitHub
parent c9e19445b4
commit b8363cd82a
3 changed files with 26 additions and 0 deletions

View File

@@ -78,6 +78,13 @@ public sealed partial class StoreComponent : Component
[ViewVariables, DataField]
public bool RefundAllowed;
/// <summary>
/// Checks if store can be opened by the account owner only.
/// Not meant to be used with uplinks.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField]
public bool OwnerOnly;
/// <summary>
/// The map the store was originally from, used to block refunds if the map is changed
/// </summary>