Skip to content

Commit

Permalink
Separate exported symbols and entry points on filters
Browse files Browse the repository at this point in the history
-Entry point and symbol filters are now separated into exported and non-exported filters
-Version changed to v0.2.1
  • Loading branch information
Varneon committed Mar 31, 2022
1 parent cb4f644 commit 5230fb8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Assets/Varneon/UdonExplorer/Editor/FilterOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ internal enum FilterType
[ComparisonFilterType(ComparisonType.EnumerableString)]
SyncMetadata,

[ComparisonFilterType(ComparisonType.EnumerableString)]
ExportedEntryPoint,

[ComparisonFilterType(ComparisonType.EnumerableString)]
EntryPoint,

[ComparisonFilterType(ComparisonType.EnumerableString)]
ExportedSymbol,

[ComparisonFilterType(ComparisonType.EnumerableString)]
Symbol,

Expand Down
8 changes: 6 additions & 2 deletions Assets/Varneon/UdonExplorer/Editor/UdonListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,14 @@ internal object GetFilterComparisonReferenceVariable(FilterOptions.FilterType ty
return UpdateOrder;
case FilterOptions.FilterType.SyncMetadata:
return UdonProgram.SyncMetadataTable.GetAllSyncMetadata().Select(c => c.Name);
case FilterOptions.FilterType.ExportedEntryPoint:
return UdonProgram.EntryPoints.GetExportedSymbols();
case FilterOptions.FilterType.EntryPoint:
return UdonProgram.EntryPoints.GetSymbols();
return UdonProgram.EntryPoints.GetSymbols().Where(c => !UdonProgram.EntryPoints.HasExportedSymbol(c)).ToArray();
case FilterOptions.FilterType.ExportedSymbol:
return UdonProgram.SymbolTable.GetExportedSymbols();
case FilterOptions.FilterType.Symbol:
return UdonProgram.SymbolTable.GetSymbols();
return UdonProgram.SymbolTable.GetSymbols().Where(c => !UdonProgram.SymbolTable.HasExportedSymbol(c)).ToArray();
case FilterOptions.FilterType.Proximity:
return Behaviour.proximity;
case FilterOptions.FilterType.AttachedComponent:
Expand Down
2 changes: 1 addition & 1 deletion Assets/Varneon/UdonExplorer/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.0
v0.2.1

0 comments on commit 5230fb8

Please sign in to comment.