Content PR for YAML hot reloading (#3319)
* Content PR for YAML hot reloading * Add CanAdminReloadPrototypes (host permission) * IndexedPrototype fixes
This commit is contained in:
@@ -73,6 +73,8 @@ namespace Content.Shared.GameObjects.Components
|
||||
[Serializable, NetSerializable, Prototype("crayonDecal")]
|
||||
public class CrayonDecalPrototype : IPrototype
|
||||
{
|
||||
public string ID { get; private set; }
|
||||
|
||||
private string _spritePath;
|
||||
public string SpritePath => _spritePath;
|
||||
|
||||
@@ -83,6 +85,7 @@ namespace Content.Shared.GameObjects.Components
|
||||
{
|
||||
var serializer = YamlObjectSerializer.NewReader(mapping);
|
||||
|
||||
serializer.DataField(this, x => x.ID, "id", string.Empty);
|
||||
serializer.DataField(ref _spritePath, "spritePath", "");
|
||||
serializer.DataField(ref _decals, "decals", new List<string>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user