-
-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update samples/template to top-level statements (#2187)
- Loading branch information
1 parent
7c10993
commit 5c847ee
Showing
27 changed files
with
80 additions
and
324 deletions.
There are no files selected for viewing
16 changes: 3 additions & 13 deletions
16
samples/Audio/SimpleAudio/SimpleAudio.Windows/SimpleAudioApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
samples/Games/SpaceEscape/SpaceEscape.Windows/SpaceEscapeApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Graphics/AnimatedModel/AnimatedModel.Windows/AnimatedModelApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Graphics/CustomEffect/CustomEffect.Windows/CustomEffectApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Graphics/MaterialShader/MaterialShader.Windows/MaterialShaderApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
samples/Graphics/SpriteFonts/SpriteFonts.Windows/SpriteFontsApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Graphics/SpriteStudioDemo/SpriteStudioDemo.Windows/SpriteStudioDemoApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Input/GravitySensor/GravitySensor.Windows/GravitySensorApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
samples/Input/TouchInputs/TouchInputs.Windows/TouchInputsApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Particles/ParticlesSample/ParticlesSample.Windows/ParticlesSampleApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Physics/PhysicsSample/PhysicsSample.Windows/PhysicsSampleApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
This file was deleted.
Oops, something went wrong.
16 changes: 3 additions & 13 deletions
16
...FirstPersonShooter/FirstPersonShooter/FirstPersonShooter.Windows/FirstPersonShooterApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
...latformer/ThirdPersonPlatformer/ThirdPersonPlatformer.Windows/ThirdPersonPlatformerApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Templates/TopDownRPG/TopDownRPG/TopDownRPG.Windows/TopDownRPGApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
16 changes: 3 additions & 13 deletions
16
samples/Templates/VRSandbox/VRSandbox/VRSandbox.Windows/VRSandboxApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
18 changes: 5 additions & 13 deletions
18
samples/Tutorials/CSharpBeginner/CSharpBeginner/CSharpBeginner.Windows/CSharpBeginnerApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
18 changes: 5 additions & 13 deletions
18
...CSharpIntermediate/CSharpIntermediate/CSharpIntermediate.Windows/CSharpIntermediateApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
16
samples/UI/UIElementLink/UIElementLink.Windows/UIElementLinkApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
Oops, something went wrong.