Skip to content

Commit

Permalink
Merge pull request #52 from Nytra/main
Browse files Browse the repository at this point in the history
Handle 14 bit CC messages, add midi system realtime events handling, add program events handling, and more...
  • Loading branch information
Xlinka committed Jul 23, 2024
2 parents 2c9cb80 + 8502f55 commit d3b94f1
Show file tree
Hide file tree
Showing 12 changed files with 606 additions and 124 deletions.
4 changes: 4 additions & 0 deletions ProjectObsidian.SourceGenerators/BindingGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public string Result
namespace {BindingPrefix}{_currentNameSpace};
{_genericTypesAttribute}
{_oldTypeNameAttribute}
[Category(new string[] {{""ProtoFlux/Runtimes/Execution/Nodes/{_category}""}})]
public partial class {_fullName} : global::FrooxEngine.ProtoFlux.Runtimes.Execution.{_baseType} {_constraints}
{{
Expand Down Expand Up @@ -189,6 +190,7 @@ public override N Instantiate<N>()
private bool _isValidGenericTypeMethod;
private string _constraints = "";
private string _genericTypesAttribute;
private string _oldTypeNameAttribute;

private bool TypedFieldDetection(string type, string name, string targetTypeName, string declarationFormat, OrderedCount counter)
{
Expand Down Expand Up @@ -317,6 +319,8 @@ public override void VisitClassDeclaration(ClassDeclarationSyntax node)

_genericTypesAttribute = node.AttributeLists.FirstOrDefault(attrList => attrList.Attributes.Any(attr => attr.Name.ToString() == "GenericTypes"))?.ToString();

_oldTypeNameAttribute = node.AttributeLists.FirstOrDefault(attrList => attrList.Attributes.Any(attr => attr.Name.ToString() == "OldTypeName"))?.ToString();

if (find?.ArgumentList is null)
{
base.VisitClassDeclaration(node);
Expand Down
Loading

0 comments on commit d3b94f1

Please sign in to comment.