Re-organize all projects (#4166)
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
#nullable enable
|
||||
using Content.Shared.GameObjects.Components.Mobs;
|
||||
using Content.Shared.GameObjects.Components.Mobs.State;
|
||||
using Content.Shared.GameObjects.Components.Nutrition;
|
||||
using Content.Shared.GameObjects.EntitySystems.ActionBlocker;
|
||||
using Content.Shared.Interfaces.GameObjects.Components;
|
||||
using Content.Shared.DragDrop;
|
||||
using Content.Shared.Nutrition.Components;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Kitchen
|
||||
namespace Content.Shared.Kitchen.Components
|
||||
{
|
||||
public abstract class SharedKitchenSpikeComponent : Component, IDragDropOn
|
||||
{
|
||||
@@ -1,11 +1,11 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Content.Shared.Chemistry;
|
||||
using Content.Shared.GameObjects;
|
||||
using Content.Shared.Chemistry.Solution;
|
||||
using Content.Shared.NetIDs;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Kitchen
|
||||
namespace Content.Shared.Kitchen.Components
|
||||
{
|
||||
|
||||
public class SharedMicrowaveComponent : Component
|
||||
@@ -1,11 +1,11 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Content.Shared.Chemistry;
|
||||
using Content.Shared.GameObjects;
|
||||
using Content.Shared.Chemistry.Solution;
|
||||
using Content.Shared.NetIDs;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Kitchen
|
||||
namespace Content.Shared.Kitchen.Components
|
||||
{
|
||||
public abstract class SharedReagentGrinderComponent : Component
|
||||
{
|
||||
39
Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs
Normal file
39
Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Kitchen
|
||||
{
|
||||
/// <summary>
|
||||
/// A recipe for space microwaves.
|
||||
/// </summary>
|
||||
[Prototype("microwaveMealRecipe")]
|
||||
public class FoodRecipePrototype : IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("id", required: true)]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[DataField("name")]
|
||||
private string _name = string.Empty;
|
||||
|
||||
[DataField("reagents")]
|
||||
private readonly Dictionary<string, int> _ingsReagents = new();
|
||||
|
||||
[DataField("solids")]
|
||||
private readonly Dictionary<string, int> _ingsSolids = new ();
|
||||
|
||||
[DataField("result")]
|
||||
public string Result { get; } = string.Empty;
|
||||
|
||||
[DataField("time")]
|
||||
public int CookTime { get; } = 5;
|
||||
|
||||
public string Name => Robust.Shared.Localization.Loc.GetString(_name);
|
||||
|
||||
public IReadOnlyDictionary<string, int> IngredientsReagents => _ingsReagents;
|
||||
public IReadOnlyDictionary<string, int> IngredientsSolids => _ingsSolids;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
using Content.Shared.Prototypes.Kitchen;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user