This repository was archived by the owner on Sep 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +30
-25
lines changed
Expand file tree Collapse file tree 10 files changed +30
-25
lines changed Original file line number Diff line number Diff line change 1- using System . Numerics ;
2- using Raylib_cs ;
1+ using Raylib_cs ;
32using SharpEngine . Math ;
43using Color = SharpEngine . Utils . Color ;
54
@@ -46,7 +45,7 @@ public class TextComponent: Component
4645 /// Create TextComponent
4746 /// </summary>
4847 /// <param name="text">Text</param>
49- /// <param name="font">Font Name (RAYLIB_DEFAULT)</param>
48+ /// <param name="font">Font Name (RAYLIB_DEFAULT)</param>
5049 /// <param name="color">Color (Color.Black)</param>
5150 /// <param name="displayed">If Text is Displayed (true)</param>
5251 /// <param name="fontSize">Font Size (null)</param>
Original file line number Diff line number Diff line change 1- using SharpEngine . Manager ;
2- using SharpEngine . Math ;
1+ using SharpEngine . Math ;
32
43namespace SharpEngine . Component ;
54
Original file line number Diff line number Diff line change 11using System ;
2- using System . Numerics ;
3- using Raylib_cs ;
42
53namespace SharpEngine . Math ;
64
Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
1+ using System . Collections . Generic ;
32using System . Linq ;
43using SharpEngine . Math ;
54using SharpEngine . Utils ;
6- using tainicom . Aether . Physics2D . Common ;
75using tainicom . Aether . Physics2D . Dynamics ;
86
97namespace SharpEngine ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class ValueEventArgs<T>: System.EventArgs
1010 /// Old Value
1111 /// </summary>
1212 public T OldValue { get ; init ; }
13-
13+
1414 /// <summary>
1515 /// New Value
1616 /// </summary>
Original file line number Diff line number Diff line change 55namespace SharpEngine . Utils ;
66
77internal static class Extensions
8- {
8+ {
9+ #region Input Converter
10+
911 public static Raylib_cs . MouseButton ToRayLib ( this MouseButton button ) => ( Raylib_cs . MouseButton ) button ;
1012 public static KeyboardKey ToRayLib ( this Key key ) => ( KeyboardKey ) key ;
1113 public static GamepadButton ToRayLib ( this GamePadButton button ) => ( GamepadButton ) button ;
1214 public static GamepadAxis ToRayLib ( this GamePadAxis axis ) => ( GamepadAxis ) axis ;
13- public static TraceLogLevel ToRayLib ( this LogLevel logLevel ) => ( TraceLogLevel ) logLevel ;
1415
1516 public static MouseButton ToSe ( this Raylib_cs . MouseButton button ) => ( MouseButton ) button ;
1617 public static Key ToSe ( this KeyboardKey key ) => ( Key ) key ;
1718 public static GamePadButton ToSe ( this GamepadButton button ) => ( GamePadButton ) button ;
1819 public static GamePadAxis ToSe ( this GamepadAxis axis ) => ( GamePadAxis ) axis ;
20+
21+ #endregion
22+
23+ #region LogLevel Converter
24+
25+ public static TraceLogLevel ToRayLib ( this LogLevel logLevel ) => ( TraceLogLevel ) logLevel ;
1926 public static LogLevel ToSe ( this TraceLogLevel logLevel ) => ( LogLevel ) logLevel ;
27+
28+ #endregion
2029}
Original file line number Diff line number Diff line change 1- using System ;
2- using SharpEngine . Math ;
3- using tainicom . Aether . Physics2D . Dynamics ;
4- using tainicom . Aether . Physics2D . Dynamics . Contacts ;
1+ using SharpEngine . Math ;
52
63namespace SharpEngine . Utils . Physic ;
74
Original file line number Diff line number Diff line change 11using System ;
2- using System . Numerics ;
3- using System . Text ;
42using Raylib_cs ;
53using SharpEngine . Manager ;
64using SharpEngine . Math ;
Original file line number Diff line number Diff line change 11using System ;
2- using System . Numerics ;
3- using System . Text ;
42using Raylib_cs ;
53using SharpEngine . Manager ;
64using SharpEngine . Math ;
Original file line number Diff line number Diff line change @@ -261,18 +261,21 @@ public void Run()
261261 }
262262
263263 #endregion
264+
265+ #region Update
264266
265- // UPDATE
266267 _seImGui . Update ( Raylib . GetFrameTime ( ) ) ;
267268
268269 CurrentScene . Update ( Raylib . GetFrameTime ( ) ) ;
269270 CameraManager . Update ( Raylib . GetFrameTime ( ) ) ;
270-
271- // DRAW IMGUI
271+
272+ #endregion
273+
274+ #region Draw
275+
272276 if ( Debug )
273277 RenderImGui ? . Invoke ( this ) ;
274278
275- // DRAW
276279 Raylib . BeginDrawing ( ) ;
277280 Raylib . ClearBackground ( BackgroundColor ) ;
278281
@@ -286,7 +289,11 @@ public void Run()
286289 _seImGui . Draw ( ) ;
287290
288291 Raylib . EndDrawing ( ) ;
292+
293+ #endregion
289294 }
295+
296+ #region Unload
290297
291298 // UNLOAD
292299 DebugManager . Log ( LogLevel . LogInfo , "Unloading Scenes..." ) ;
@@ -304,6 +311,8 @@ public void Run()
304311 DebugManager . Log ( LogLevel . LogInfo , "Closing Window." ) ;
305312 Raylib . CloseAudioDevice ( ) ;
306313 Raylib . CloseWindow ( ) ;
314+
315+ #endregion
307316 }
308317
309318 /// <summary>
You can’t perform that action at this time.
0 commit comments