Clean up some warnings (#6088)
* Clean up some warnings * Remove nullable enable Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
@@ -61,11 +61,11 @@ namespace Content.Shared.Arcade
|
||||
public class BlockGameSetScreenMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public readonly BlockGameScreen Screen;
|
||||
public readonly bool isStarted;
|
||||
public readonly bool IsStarted;
|
||||
public BlockGameSetScreenMessage(BlockGameScreen screen, bool isStarted = true)
|
||||
{
|
||||
Screen = screen;
|
||||
this.isStarted = isStarted;
|
||||
IsStarted = isStarted;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -359,7 +359,7 @@ namespace Content.Shared.Body.Components
|
||||
var i = 0;
|
||||
foreach (var (part, slot) in SlotParts)
|
||||
{
|
||||
parts[i] = (slot.Id, Owner: part.Owner);
|
||||
parts[i] = (slot.Id, part.Owner);
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@ namespace Content.Shared.Lathe
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool CanProduce(string ID, int quantity = 1)
|
||||
public bool CanProduce(string id, int quantity = 1)
|
||||
{
|
||||
return PrototypeManager.TryIndex(ID, out LatheRecipePrototype? recipe) && CanProduce(recipe, quantity);
|
||||
return PrototypeManager.TryIndex(id, out LatheRecipePrototype? recipe) && CanProduce(recipe, quantity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -17,13 +17,13 @@ namespace Content.Shared.Lathe
|
||||
[ViewVariables]
|
||||
protected virtual Dictionary<string, int> Storage { get; set; } = new();
|
||||
|
||||
public int this[string ID]
|
||||
public int this[string id]
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!Storage.ContainsKey(ID))
|
||||
if (!Storage.ContainsKey(id))
|
||||
return 0;
|
||||
return Storage[ID];
|
||||
return Storage[id];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,10 +31,10 @@ namespace Content.Shared.Lathe
|
||||
{
|
||||
get
|
||||
{
|
||||
var ID = material.ID;
|
||||
if (!Storage.ContainsKey(ID))
|
||||
var id = material.ID;
|
||||
if (!Storage.ContainsKey(id))
|
||||
return 0;
|
||||
return Storage[ID];
|
||||
return Storage[id];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user