Logo
Explore Help
Sign In
juni/crystall-punk-14
1
0
Fork 0
You've already forked crystall-punk-14
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
LocalHelperRefactor
crystall-punk-14/Content.Server/Store/StoreRefundComponent.cs

14 lines
428 B
C#
Raw Permalink Normal View History

Adds a refund button & action upgrades for stores (#24518) * adds refunds to stores * Adds method to check for starting map * comments, datafields, some requested changes * turns event into ref event * Adds datafields * Switches to entity terminating event * Changes store entity to be nullable and checks if store is terminating to remove reference. * Tryadd instead of containskey * Adds a refund disable method, disables refund on bought ent container changes if not an action * Removes datafield specification * Readds missing using statement * Removes unused using statements * What the heck is listing data --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2024-02-03 19:48:51 -05:00
using Content.Server.Store.Systems;
namespace Content.Server.Store.Components;
/// <summary>
/// Keeps track of entities bought from stores for refunds, especially useful if entities get deleted before they can be refunded.
/// </summary>
[RegisterComponent, Access(typeof(StoreSystem))]
public sealed partial class StoreRefundComponent : Component
{
[ViewVariables, DataField]
public EntityUid? StoreEntity;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 66ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API