Skip to content

Commit

Permalink
chore: increment engine version
Browse files Browse the repository at this point in the history
  • Loading branch information
ashifolfi committed Apr 14, 2024
1 parent a47785e commit 8c17627
Show file tree
Hide file tree
Showing 5 changed files with 515 additions and 612 deletions.
54 changes: 22 additions & 32 deletions Source/Engine/Core/ConCmd.cs
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
using System;
using System.Diagnostics;

namespace WinterEngine.Core;

[Flags]
public enum CmdFlags
{
None,
Cheat,
Development,
Debug
}

#if HAS_MACROS
//#macro ConsoleCommand(name, desc, fn) internal sealed class nameConCommand : ConCmd {\
public override string Command => "name";\
public override string Description => desc;\
public override CmdFlags Flags => CmdFlags.None;\
public override void Exec(string[] args)\
fn\
}
#endif

public abstract class ConCmd
{
public abstract string Command { get; }
public abstract string Description { get; }
public abstract CmdFlags Flags { get; }

public abstract void Exec(string[] args);
}
using System;
using System.Diagnostics;

namespace WinterEngine.Core;

[Flags]
public enum CmdFlags
{
None,
Cheat,
Development,
Debug
}

public abstract class ConCmd
{
public abstract string Command { get; }
public abstract string Description { get; }
public abstract CmdFlags Flags { get; }

public abstract void Exec(string[] args);
}
Loading

0 comments on commit 8c17627

Please sign in to comment.