(965c31410a) Unstable v0.10.4.0
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Barotrauma.Networking;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Barotrauma.Items.Components
|
||||
{
|
||||
@@ -74,6 +75,21 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
public override void CreateEditingHUD(SerializableEntityEditor editor)
|
||||
{
|
||||
base.CreateEditingHUD(editor);
|
||||
|
||||
foreach (LimbPos limbPos in limbPositions)
|
||||
{
|
||||
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(limbPos);
|
||||
|
||||
PropertyDescriptor limbPosProperty = properties.Find("Position", false);
|
||||
editor.CreateVector2Field(limbPos, new SerializableProperty(limbPosProperty), limbPos.Position, limbPos.LimbType.ToString(), "");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
public void ClientRead(ServerNetObject type, IReadMessage msg, float sendingTime)
|
||||
{
|
||||
State = msg.ReadBoolean();
|
||||
|
||||
Reference in New Issue
Block a user