Merge branch '20-11-19-sandboxing' into 20-11-27-merge
This commit is contained in:
@@ -67,17 +67,17 @@ namespace Content.Shared.Atmos
|
||||
{
|
||||
var serializer = YamlObjectSerializer.NewReader(mapping);
|
||||
|
||||
serializer.DataField(this, x => ID, "id", string.Empty);
|
||||
serializer.DataField(this, x => Name, "name", string.Empty);
|
||||
serializer.DataField(this, x => OverlayPath, "overlayPath", string.Empty);
|
||||
serializer.DataField(this, x => SpecificHeat, "specificHeat", 0f);
|
||||
serializer.DataField(this, x => HeatCapacityRatio, "heatCapacityRatio", 1.4f);
|
||||
serializer.DataField(this, x => MolarMass, "molarMass", 1f);
|
||||
serializer.DataField(this, x => GasMolesVisible, "gasMolesVisible", 0.25f);
|
||||
serializer.DataField(this, x => GasOverlayTexture, "gasOverlayTexture", string.Empty);
|
||||
serializer.DataField(this, x => GasOverlaySprite, "gasOverlaySprite", string.Empty);
|
||||
serializer.DataField(this, x => GasOverlayState, "gasOverlayState", string.Empty);
|
||||
serializer.DataField(this, x => Color, "color", string.Empty);
|
||||
serializer.DataField(this, x => x.ID, "id", string.Empty);
|
||||
serializer.DataField(this, x => x.Name, "name", string.Empty);
|
||||
serializer.DataField(this, x => x.OverlayPath, "overlayPath", string.Empty);
|
||||
serializer.DataField(this, x => x.SpecificHeat, "specificHeat", 0f);
|
||||
serializer.DataField(this, x => x.HeatCapacityRatio, "heatCapacityRatio", 1.4f);
|
||||
serializer.DataField(this, x => x.MolarMass, "molarMass", 1f);
|
||||
serializer.DataField(this, x => x.GasMolesVisible, "gasMolesVisible", 0.25f);
|
||||
serializer.DataField(this, x => x.GasOverlayTexture, "gasOverlayTexture", string.Empty);
|
||||
serializer.DataField(this, x => x.GasOverlaySprite, "gasOverlaySprite", string.Empty);
|
||||
serializer.DataField(this, x => x.GasOverlayState, "gasOverlayState", string.Empty);
|
||||
serializer.DataField(this, x => x.Color, "color", string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,8 +158,7 @@ namespace Content.Shared.GameObjects.Components.Body.Mechanism
|
||||
return true;
|
||||
}
|
||||
|
||||
behavior = new T();
|
||||
IoCManager.InjectDependencies(behavior);
|
||||
behavior = IoCManager.Resolve<IDynamicTypeFactory>().CreateInstance<T>();
|
||||
_behaviors.Add(typeof(T), behavior);
|
||||
behavior.Initialize(this);
|
||||
behavior.Startup();
|
||||
|
||||
@@ -64,17 +64,17 @@ namespace Content.Shared.GameObjects.Components
|
||||
{
|
||||
base.ExposeData(serializer);
|
||||
|
||||
serializer.DataField(this, x => TurnOnBehaviourID, "turnOnBehaviourID", string.Empty);
|
||||
serializer.DataField(this, x => FadeOutBehaviourID, "fadeOutBehaviourID", string.Empty);
|
||||
serializer.DataField(this, x => GlowDuration, "glowDuration", 60 * 15f);
|
||||
serializer.DataField(this, x => FadeOutDuration, "fadeOutDuration", 60 * 5f);
|
||||
serializer.DataField(this, x => SpentName, "spentName", string.Empty);
|
||||
serializer.DataField(this, x => SpentDesc, "spentDesc", string.Empty);
|
||||
serializer.DataField(this, x => IconStateLit, "iconStateOn", string.Empty);
|
||||
serializer.DataField(this, x => IconStateSpent, "iconStateSpent", string.Empty);
|
||||
serializer.DataField(this, x => LitSound, "litSound", string.Empty);
|
||||
serializer.DataField(this, x => LoopedSound, "loopedSound", string.Empty);
|
||||
serializer.DataField(this, x => DieSound, "dieSound", string.Empty);
|
||||
serializer.DataField(this, x => x.TurnOnBehaviourID, "turnOnBehaviourID", string.Empty);
|
||||
serializer.DataField(this, x => x.FadeOutBehaviourID, "fadeOutBehaviourID", string.Empty);
|
||||
serializer.DataField(this, x => x.GlowDuration, "glowDuration", 60 * 15f);
|
||||
serializer.DataField(this, x => x.FadeOutDuration, "fadeOutDuration", 60 * 5f);
|
||||
serializer.DataField(this, x => x.SpentName, "spentName", string.Empty);
|
||||
serializer.DataField(this, x => x.SpentDesc, "spentDesc", string.Empty);
|
||||
serializer.DataField(this, x => x.IconStateLit, "iconStateOn", string.Empty);
|
||||
serializer.DataField(this, x => x.IconStateSpent, "iconStateSpent", string.Empty);
|
||||
serializer.DataField(this, x => x.LitSound, "litSound", string.Empty);
|
||||
serializer.DataField(this, x => x.LoopedSound, "loopedSound", string.Empty);
|
||||
serializer.DataField(this, x => x.DieSound, "dieSound", string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace Content.Shared.Interfaces
|
||||
{
|
||||
public interface IConfigurable<in T>
|
||||
{
|
||||
public void Configure(T parameters);
|
||||
}
|
||||
}
|
||||
9
Content.Shared/Interfaces/IConfigurableOverlay.cs
Normal file
9
Content.Shared/Interfaces/IConfigurableOverlay.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Content.Shared.GameObjects.Components.Mobs;
|
||||
|
||||
namespace Content.Shared.Interfaces
|
||||
{
|
||||
public interface IConfigurableOverlay
|
||||
{
|
||||
void Configure(OverlayParameter parameter);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user