Content PR for YAML hot reloading (#3319)
* Content PR for YAML hot reloading * Add CanAdminReloadPrototypes (host permission) * IndexedPrototype fixes
This commit is contained in:
@@ -490,6 +490,11 @@ namespace Content.Server.Administration
|
||||
return GetAdminData(session)?.CanAdminMenu() ?? false;
|
||||
}
|
||||
|
||||
public bool CanAdminReloadPrototypes(IPlayerSession session)
|
||||
{
|
||||
return GetAdminData(session)?.CanAdminReloadPrototypes() ?? false;
|
||||
}
|
||||
|
||||
private void SendPermsChangedEvent(IPlayerSession session)
|
||||
{
|
||||
var flags = GetAdminData(session)?.Flags;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Content.Server.Atmos.Reactions
|
||||
}
|
||||
|
||||
[Prototype("gasReaction")]
|
||||
public class GasReactionPrototype : IPrototype, IIndexedPrototype
|
||||
public class GasReactionPrototype : IPrototype
|
||||
{
|
||||
public string ID { get; private set; }
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Content.Server.Botany
|
||||
}
|
||||
|
||||
[Prototype("seed")]
|
||||
public class Seed : IPrototype, IIndexedPrototype, IExposeData
|
||||
public class Seed : IPrototype, IExposeData
|
||||
{
|
||||
private const string SeedPrototype = "SeedBase";
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using YamlDotNet.RepresentationModel;
|
||||
namespace Content.Server.GameObjects.Components.BarSign
|
||||
{
|
||||
[Prototype("barSign")]
|
||||
public class BarSignPrototype : IPrototype, IIndexedPrototype
|
||||
public class BarSignPrototype : IPrototype
|
||||
{
|
||||
public string ID { get; private set; }
|
||||
public string Icon { get; private set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ using YamlDotNet.RepresentationModel;
|
||||
namespace Content.Server.Holiday
|
||||
{
|
||||
[Prototype("holiday")]
|
||||
public class HolidayPrototype : IPrototype, IIndexedPrototype
|
||||
public class HolidayPrototype : IPrototype
|
||||
{
|
||||
[ViewVariables] public string Name { get; private set; } = string.Empty;
|
||||
[ViewVariables] public string ID { get; private set; } = string.Empty;
|
||||
|
||||
@@ -10,7 +10,7 @@ using YamlDotNet.RepresentationModel;
|
||||
namespace Content.Server.Objectives
|
||||
{
|
||||
[Prototype("objective")]
|
||||
public class ObjectivePrototype : IPrototype, IIndexedPrototype
|
||||
public class ObjectivePrototype : IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
public string ID { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user