This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
generated from tannergooding/new-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
17,445 additions
and
17,399 deletions.
There are no files selected for viewing
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,2 +1,2 @@ | ||
--remap | ||
TODO_ADD_REMAPPINGS=HERE | ||
__GLsync=GLsync |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Silk.NET.OpenGL; | ||
|
||
public readonly struct Sync { } |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace SilkTouchX.Naming; | ||
|
||
/// <summary> | ||
/// Provides name trimmers. | ||
/// </summary> | ||
public interface INameTrimmerProvider | ||
{ | ||
/// <summary> | ||
/// The name trimmers. | ||
/// </summary> | ||
/// <param name="key">The job key.</param> | ||
public IEnumerable<INameTrimmer> GetTrimmers(string? key); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Microsoft.Extensions.Options; | ||
using SilkTouchX.Mods; | ||
|
||
namespace SilkTouchX.Naming; | ||
|
||
internal class NameTrimmerProviders | ||
{ | ||
public class Global( | ||
IEnumerable<INameTrimmer> trimmers, | ||
IOptionsSnapshot<PrettifyNames.Configuration> cfg | ||
) : INameTrimmerProvider | ||
{ | ||
public IEnumerable<INameTrimmer> GetTrimmers(string? key) | ||
{ | ||
var baseline = cfg.Get(key).TrimmerBaseline; | ||
return trimmers.Where(x => x.Version >= baseline); | ||
} | ||
} | ||
|
||
public class ModTrimmer<T>(T mod, IOptionsSnapshot<SilkTouchConfiguration> job) | ||
: INameTrimmerProvider | ||
where T : INameTrimmer | ||
{ | ||
public IEnumerable<INameTrimmer> GetTrimmers(string? key) => | ||
job.Get(key).Mods?.Contains(typeof(T).Name) ?? false | ||
? Enumerable.Repeat<INameTrimmer>(mod, 1) | ||
: Enumerable.Empty<INameTrimmer>(); | ||
} | ||
} |
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
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
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
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