Removed BarotraumaServer's MonoGame dependency

This commit is contained in:
juanjp600
2017-06-23 14:43:43 -03:00
parent 89c92564b5
commit d6d8a5b868
45 changed files with 6385 additions and 212 deletions
@@ -11,6 +11,12 @@ namespace Barotrauma
{
partial class PhysicsBody
{
private Texture2D bodyShapeTexture;
public Texture2D BodyShapeTexture
{
get { return bodyShapeTexture; }
}
public void Draw(SpriteBatch spriteBatch, Sprite sprite, Color color, float? depth = null, float scale = 1.0f)
{
if (!Enabled) return;
@@ -88,5 +94,14 @@ namespace Barotrauma
new Vector2(bodyShapeTexture.Width / 2, bodyShapeTexture.Height / 2),
1.0f, SpriteEffects.None, 0.0f);
}
private void DisposeProjSpecific()
{
if (bodyShapeTexture != null)
{
bodyShapeTexture.Dispose();
bodyShapeTexture = null;
}
}
}
}