Economy (#403)
* nasrano * Add station budget & salary * Initial balance * Vending machine UI * Pricing for vending machines * Finish economy * Eftpos * Finish eftpos * Put eftpos into lockers * Vending machine prices * Small fixes * Fix atm UI * Add atms to maps * fix * reset * Add PDA program * Maps again --------- Co-authored-by: Mona Hmiza <> Co-authored-by: rhailrake <49613070+rhailrake@users.noreply.github.com>
This commit is contained in:
16
Content.Shared/Mind/Memory.cs
Normal file
16
Content.Shared/Mind/Memory.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Content.Shared.Mind;
|
||||
|
||||
public sealed class Memory
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public string Value { get; set; }
|
||||
|
||||
public Memory(string name, string value)
|
||||
{
|
||||
Name = name;
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,8 @@ namespace Content.Shared.Mind
|
||||
[DataField, AutoNetworkedField]
|
||||
public List<EntityUid> Objectives = new();
|
||||
|
||||
internal readonly List<Memory> _memories = new();
|
||||
|
||||
/// <summary>
|
||||
/// The session ID of the player owning this mind.
|
||||
/// </summary>
|
||||
@@ -73,6 +75,21 @@ namespace Content.Shared.Mind
|
||||
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public string? BorgName { get; set; }
|
||||
|
||||
[ViewVariables]
|
||||
public IEnumerable<Memory> AllMemories => _memories;
|
||||
|
||||
//WD EDIT
|
||||
public void AddMemory(Memory memory)
|
||||
{
|
||||
if (_memories.Contains(memory))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_memories.Add(memory);
|
||||
}
|
||||
//WD EDIT END
|
||||
|
||||
/// <summary>
|
||||
/// The time of death for this Mind.
|
||||
/// Can be null - will be null if the Mind is not considered "dead".
|
||||
|
||||
Reference in New Issue
Block a user