Skip to content

Commit

Permalink
feat: Update samples/template to top-level statements (#2187)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jklawreszuk authored Mar 15, 2024
1 parent 7c10993 commit 5c847ee
Show file tree
Hide file tree
Showing 27 changed files with 80 additions and 324 deletions.
16 changes: 3 additions & 13 deletions samples/Audio/SimpleAudio/SimpleAudio.Windows/SimpleAudioApp.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace SimpleAudio
{
class SimpleAudioApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

16 changes: 3 additions & 13 deletions samples/Games/JumpyJet/JumpyJet.Windows/JumpyJetApp.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace JumpyJet
{
class JumpyJetApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

16 changes: 3 additions & 13 deletions samples/Games/SpaceEscape/SpaceEscape.Windows/SpaceEscapeApp.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace SpaceEscape
{
class SpaceEscapeApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace AnimatedModel
{
class AnimatedModelApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace CustomEffect
{
class CustomEffectApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace MaterialShader
{
class MaterialShaderApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

16 changes: 3 additions & 13 deletions samples/Graphics/SpriteFonts/SpriteFonts.Windows/SpriteFontsApp.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace SpriteFonts
{
class SpriteFontsApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace SpriteStudioDemo
{
class SpriteStudioDemoApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace GravitySensor
{
class GravitySensorApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

16 changes: 3 additions & 13 deletions samples/Input/TouchInputs/TouchInputs.Windows/TouchInputsApp.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace TouchInputs
{
class TouchInputsApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace ParticlesSample
{
class ParticlesSampleApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace PhysicsSample
{
class PhysicsSampleApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

8 changes: 0 additions & 8 deletions samples/StrideSamples.userprefs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace FirstPersonShooter
{
class FirstPersonShooterApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace ThirdPersonPlatformer
{
class ThirdPersonPlatformerApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace TopDownRPG
{
class TopDownRPGApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace VRSandbox
{
class VRSandboxApp
{
static void Main(string[] args)
{
using (var game = new VRGame())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
namespace CSharpBeginner
{
class CSharpBeginnerApp
{
static void Main(string[] args)
{
using (var game = new Stride.Engine.Game())
{
game.Run();
}
}
}
}
using Stride.Engine;

using var game = new Game();
game.Run();

Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
namespace CSharpIntermediate
{
class CSharpIntermediateApp
{
static void Main(string[] args)
{
using (var game = new Stride.Engine.Game())
{
game.Run();
}
}
}
}
using Stride.Engine;

using var game = new Game();
game.Run();

16 changes: 3 additions & 13 deletions samples/UI/GameMenu/GameMenu.Windows/GameMenuApp.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace GameMenu
{
class GameMenuApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

16 changes: 3 additions & 13 deletions samples/UI/UIElementLink/UIElementLink.Windows/UIElementLinkApp.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using Stride.Engine;

namespace UIElementLink
{
class UIElementLinkApp
{
static void Main(string[] args)
{
using (var game = new Game())
{
game.Run();
}
}
}
}
using var game = new Game();
game.Run();

Loading

0 comments on commit 5c847ee

Please sign in to comment.