Skip to content

Commit

Permalink
fix layer logics not working between sub/super classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Nov 2, 2024
1 parent 01fb042 commit ccf6edf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,14 @@ public partial class {{classSymbol.Name}}{{genericParams}}
{{genericConstraints}}
{
[GameStateIgnore, JsonIgnore]
public {{logicClassName}}? Logic { get; set; }
public {{logicClassName}}? Logic
{
get => ({{logicClassName}}?)base.Logic;
set
{
base.Logic = value;
}
}
}
}
""";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class LayerHandlerProperties : IValueOverridable, INotifyPropertyChanged,
public event PropertyChangedEventHandler? PropertyChanged;

[GameStateIgnore, JsonIgnore]
public LayerHandlerPropertiesLogic? Logic { get; set; }
public LayerHandlerPropertiesLogic? Logic { get; protected set; }

[JsonIgnore] private Color? _primaryColor;

Expand Down

0 comments on commit ccf6edf

Please sign in to comment.