misc cargo fixes
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using Robust.Shared.ViewVariables;
|
||||||
|
|
||||||
namespace Content.Server.Cargo
|
namespace Content.Server.Cargo
|
||||||
{
|
{
|
||||||
public class CargoBankAccount : ICargoBankAccount
|
public class CargoBankAccount : ICargoBankAccount
|
||||||
{
|
{
|
||||||
|
[ViewVariables]
|
||||||
public int Id { get; }
|
public int Id { get; }
|
||||||
|
[ViewVariables]
|
||||||
public string Name { get; }
|
public string Name { get; }
|
||||||
|
|
||||||
private int _balance;
|
private int _balance;
|
||||||
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
public int Balance
|
public int Balance
|
||||||
{
|
{
|
||||||
get => _balance;
|
get => _balance;
|
||||||
|
|||||||
@@ -23,9 +23,6 @@ namespace Content.Server.Cargo.Components
|
|||||||
{
|
{
|
||||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||||
|
|
||||||
[ViewVariables]
|
|
||||||
public int Points = 1000;
|
|
||||||
|
|
||||||
private CargoBankAccount? _bankAccount;
|
private CargoBankAccount? _bankAccount;
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
|
|||||||
Reference in New Issue
Block a user