Skip to content

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Oct 31, 2024
1 parent b2ce80d commit 9faf11f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public override void Default()

}

public class ResidentEvil2HealthLayerHandler : LayerHandler<ResidentEvil2HealthLayerHandlerProperties>
public class ResidentEvil2HealthLayerHandler() : LayerHandler<ResidentEvil2HealthLayerHandlerProperties, BitmapEffectLayer>("Resident Evil 2 - Health")
{
private long previoustime = 0;
private long currenttime = 0;
Expand Down Expand Up @@ -73,7 +73,7 @@ protected override UserControl CreateControl()

public override EffectLayer Render(IGameState state)
{
EffectLayer bg_layer = new EffectLayer("Resident Evil 2 - Health");
var bg_layer = EffectLayer;

if (state is GameState_ResidentEvil2)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public override void Default()

}

public class ResidentEvil2RankLayerHandler : LayerHandler<ResidentEvil2RankLayerHandlerProperties>
public class ResidentEvil2RankLayerHandler() : LayerHandler<ResidentEvil2RankLayerHandlerProperties>("Resident Evil 2 - Rank")
{
protected override UserControl CreateControl()
{
Expand All @@ -32,7 +32,7 @@ protected override UserControl CreateControl()

public override EffectLayer Render(IGameState state)
{
EffectLayer keys_layer = new EffectLayer( "Resident Evil 2 - Rank" );
var keys_layer = EffectLayer;

if (state is GameState_ResidentEvil2)
{
Expand Down
7 changes: 3 additions & 4 deletions Project-Aurora/Plugin-Example/Layers/ExampleLayerHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial class ExampleLayerHandlerProperties : LayerHandlerProperties

}

public class ExampleLayerHandler : LayerHandler<LayerHandlerProperties>
public class ExampleLayerHandler() : LayerHandler<LayerHandlerProperties>("ExampleLayer")
{
protected override UserControl CreateControl()
{
Expand All @@ -19,9 +19,8 @@ protected override UserControl CreateControl()

public override EffectLayer Render(IGameState gamestate)
{
EffectLayer solidcolor_layer = new EffectLayer("ExampleLayer");
solidcolor_layer.Set(Properties.Sequence, Properties.PrimaryColor);
return solidcolor_layer;
EffectLayer.Set(Properties.Sequence, Properties.PrimaryColor);
return EffectLayer;
}
}
}

0 comments on commit 9faf11f

Please sign in to comment.