Added mapped storage for things like crayon belts and tools (#4201)
* Added mapped storage for things like crayon belts and tools * Attempt to get StorageFillEvent to work * Managed to get it working with Visualizer logi * Improved PR and did some light refactoring of components * Update Content.Client/Storage/Visualizers/MappedItemVisualizer.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * Removed event, went with stateful ApperanceData * Removed ids in favor of whitelist * Refactor YAML, Moved functionality to Shared and renamed it. * Changed so insert/remove always send full state. * Move logic to component * Fix some issues on MappedVisualizer and few nitpicks - Fix mapped visualizer only doing init or update layers - Fixed naming of systems - Fixed sort of crayons * Forgot to apply Vera's suggestion * Fix the data to be more strict and to avoid unnecessary clearing Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Shared.Stacks;
|
||||
using Content.Shared.Tag;
|
||||
@@ -21,6 +22,7 @@ namespace Content.Server.Storage.Components
|
||||
/// amount: 6 # Note: this field can be omitted
|
||||
/// countTag: Cigarette # Note: field doesn't point to entity Id, but its tag
|
||||
/// </code>
|
||||
[Obsolete("Should be deprecated in favor of SharedItemCounterSystem")]
|
||||
[RegisterComponent]
|
||||
public class StorageCounterComponent : Component, ISerializationHooks
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user