Skip to content

Commit

Permalink
Code Style
Browse files Browse the repository at this point in the history
  • Loading branch information
everyofflineuser committed Sep 28, 2024
1 parent ebf0250 commit 6a40ea7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/Sparkle/CSharp/Entities/Components/Light.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ protected internal override void Draw() {
}
}

public override Component Clone()
{
public override Component Clone() {
return new Light(this.Effect, this.Type, this.OffsetPos, this.Target, this.Color, this.Intensity, this.DrawSphere);
}

Expand Down
3 changes: 1 addition & 2 deletions src/Sparkle/CSharp/Entities/Components/ModelRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ protected internal override void Draw() {
}
}

public override Component Clone()
{
public override Component Clone() {
return new ModelRenderer(this._model, this.OffsetPos, this._color, default, this._drawWires);
}

Expand Down
3 changes: 1 addition & 2 deletions src/Sparkle/CSharp/Entities/Components/RigidBody2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,7 @@ public void ApplyAngularImpulse(float impulse, bool wake = true) {
this.Body.ApplyAngularImpulse(impulse, wake);
}

public override Component Clone()
{
public override Component Clone() {
return new RigidBody2D(this._bodyDefinition, this._fixtureDefinition);
}

Expand Down
3 changes: 1 addition & 2 deletions src/Sparkle/CSharp/Entities/Components/RigidBody3D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,7 @@ public void DebugDraw(IDebugDrawer drawer) {
this.Body.DebugDraw(drawer);
}

public override Component Clone()
{
public override Component Clone() {
var shapesList = new List<RigidBodyShape>(this._shapes);

return new RigidBody3D(shapesList, this._setMassInertia, this._nonMoving, this._friction, this._restitution);
Expand Down
3 changes: 1 addition & 2 deletions src/Sparkle/CSharp/Entities/Components/Sprite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ protected internal override void Draw() {
Graphics.DrawTexturePro(this.Texture, source, dest, origin, RayMath.QuaternionToEuler(this.Entity.Rotation).Z * RayMath.Rad2Deg, this.Color);
}

public override Component Clone()
{
public override Component Clone() {
return new Sprite(this.Texture, this.OffsetPos, this.Size, this.Color);
}

Expand Down

0 comments on commit 6a40ea7

Please sign in to comment.