Re-organize all projects (#4166)

This commit is contained in:
DrSmugleaf
2021-06-09 22:19:39 +02:00
committed by GitHub
parent 9f50e4061b
commit ff1a2d97ea
1773 changed files with 5258 additions and 5508 deletions

View File

@@ -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
{

View File

@@ -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

View File

@@ -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
{

View 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;
}
}

View File

@@ -1,6 +1,5 @@
#nullable enable
using System.Collections.Generic;
using Content.Shared.Prototypes.Kitchen;
using Robust.Shared.IoC;
using Robust.Shared.Prototypes;