Some cleanup
This commit is contained in:
@@ -81,7 +81,7 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateControlled(float deltaTime)
|
||||
partial void UpdateControlled(float deltaTime)
|
||||
{
|
||||
if (controlled == this)
|
||||
{
|
||||
@@ -239,7 +239,7 @@ namespace Barotrauma
|
||||
selectedSound.Sound.Play(1.0f, selectedSound.Range, AnimController.WorldPosition);
|
||||
}
|
||||
|
||||
private void ImplodeFX()
|
||||
partial void ImplodeFX()
|
||||
{
|
||||
Vector2 centerOfMass = AnimController.GetCenterOfMass();
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
private void InitProjSpecific(XDocument doc)
|
||||
partial void InitProjSpecific(XDocument doc)
|
||||
{
|
||||
if (doc == null)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Barotrauma
|
||||
|
||||
private GUIButton[] useOnSelfButton;
|
||||
|
||||
void InitProjSpecific()
|
||||
partial void InitProjSpecific()
|
||||
{
|
||||
useOnSelfButton = new GUIButton[2];
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Barotrauma.Items.Components
|
||||
private GUIProgressBar progressBar;
|
||||
private GUIButton activateButton;
|
||||
|
||||
private void InitProjSpecific()
|
||||
partial void InitProjSpecific()
|
||||
{
|
||||
GuiFrame.Padding = new Vector4(20.0f, 20.0f, 20.0f, 20.0f);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Barotrauma.Items.Components
|
||||
{
|
||||
private GUITickBox isActiveTickBox;
|
||||
|
||||
private void InitProjSpecific()
|
||||
partial void InitProjSpecific()
|
||||
{
|
||||
isActiveTickBox = new GUITickBox(new Rectangle(0, 0, 20, 20), "Running", Alignment.TopLeft, GuiFrame);
|
||||
isActiveTickBox.OnSelected = (GUITickBox box) =>
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Barotrauma.Items.Components
|
||||
{
|
||||
private GUITickBox autoTempTickBox;
|
||||
|
||||
private void InitProjSpecific()
|
||||
partial void InitProjSpecific()
|
||||
{
|
||||
var button = new GUIButton(new Rectangle(410, 70, 40, 40), "-", "", GuiFrame);
|
||||
button.OnPressed = () =>
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Barotrauma.Items.Components
|
||||
set { maintainPosTickBox.Selected = value; }
|
||||
}
|
||||
|
||||
private void InitProjSpecific()
|
||||
partial void InitProjSpecific()
|
||||
{
|
||||
autopilotTickBox = new GUITickBox(new Rectangle(0, 25, 20, 20), "Autopilot", Alignment.TopLeft, GuiFrame);
|
||||
autopilotTickBox.OnSelected = (GUITickBox box) =>
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Barotrauma.Items.Components
|
||||
{
|
||||
partial class PowerContainer : Powered, IDrawableComponent, IServerSerializable, IClientSerializable
|
||||
{
|
||||
private void InitProjSpecific()
|
||||
partial void InitProjSpecific()
|
||||
{
|
||||
if (canBeSelected)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Barotrauma
|
||||
{
|
||||
partial class Explosion
|
||||
{
|
||||
private void ExplodeProjSpecific(Vector2 worldPosition,Hull hull)
|
||||
partial void ExplodeProjSpecific(Vector2 worldPosition,Hull hull)
|
||||
{
|
||||
|
||||
if (shockwave)
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Barotrauma
|
||||
|
||||
private LightSource lightSource;
|
||||
|
||||
private void UpdateProjSpecific(float growModifier)
|
||||
partial void UpdateProjSpecific(float growModifier)
|
||||
{
|
||||
if (hull.FireSources.Any(fs => fs != this && fs.size.X > size.X))
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace Barotrauma
|
||||
1.0f, SpriteEffects.None, 0.0f);
|
||||
}
|
||||
|
||||
private void DisposeProjSpecific()
|
||||
partial void DisposeProjSpecific()
|
||||
{
|
||||
if (bodyShapeTexture != null)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Barotrauma
|
||||
list.Add(this);
|
||||
}
|
||||
|
||||
private void LoadTexture(ref Vector4 sourceVector,ref bool shouldReturn)
|
||||
partial void LoadTexture(ref Vector4 sourceVector,ref bool shouldReturn)
|
||||
{
|
||||
texture = LoadTexture(this.file);
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace Barotrauma
|
||||
if (sourceVector.W == 0.0f) sourceVector.W = texture.Height;
|
||||
}
|
||||
|
||||
private void CalculateSourceRect()
|
||||
partial void CalculateSourceRect()
|
||||
{
|
||||
sourceRect = new Rectangle(0, 0, texture.Width, texture.Height);
|
||||
}
|
||||
@@ -261,7 +261,7 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
private void DisposeTexture()
|
||||
partial void DisposeTexture()
|
||||
{
|
||||
//check if another sprite is using the same texture
|
||||
foreach (Sprite s in list)
|
||||
|
||||
Reference in New Issue
Block a user