Skip to content

Commit

Permalink
Added correct type to bakery types
Browse files Browse the repository at this point in the history
Fixed some spacing
  • Loading branch information
Jordo authored and Jordo committed Mar 5, 2024
1 parent 76da359 commit ef11141
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace EasyQuestSwitch.Types
{
[AddComponentMenu("")]
public class Type_Bakery_DirectLight : Type_Base
public class Type_Bakery_DirectLight : Type_Behaviour
{
[System.NonSerialized]
private BakeryDirectLight type;
Expand All @@ -21,8 +21,7 @@ public class Type_Bakery_DirectLight : Type_Base

public override void Setup(Object type)
{

// base.Setup(type);
base.Setup(type);
BakeryDirectLight component = (BakeryDirectLight)type;
color.Setup(component.color);
intensity.Setup(component.intensity);
Expand All @@ -35,16 +34,14 @@ public override void Setup(Object type)

public override void Process(Object type, BuildTarget buildTarget)
{
// base.Process(type, buildTarget);
base.Process(type, buildTarget);
BakeryDirectLight component = (BakeryDirectLight)type;
component.color = color.Get(buildTarget);
component.intensity = intensity.Get(buildTarget);
component.shadowSpread = shadowSpread.Get(buildTarget);
component.samples = shadowSamples.Get(buildTarget);
component.indirectIntensity = indirectIntensity.Get(buildTarget);
component.supersample = antiAlias.Get(buildTarget);


}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace EasyQuestSwitch.Types
{
[AddComponentMenu("")]
public class Type_Bakery_LightMesh : Type_Base
public class Type_Bakery_LightMesh : Type_Behaviour
{
[System.NonSerialized]
private BakeryLightMesh type;
Expand All @@ -20,29 +20,26 @@ public class Type_Bakery_LightMesh : Type_Base

public override void Setup(Object type)
{

// base.Setup(type);
base.Setup(type);
BakeryLightMesh component = (BakeryLightMesh)type;
intensity.Setup(component.intensity);
color.Setup(component.color);
samplesNear.Setup(component.samples);
samplesFar.Setup(component.samples2);
selfShadow.Setup(component.selfShadow);
indirectIntensity.Setup(component.indirectIntensity);

}

public override void Process(Object type, BuildTarget buildTarget)
{
// base.Process(type, buildTarget);
base.Process(type, buildTarget);
BakeryLightMesh component = (BakeryLightMesh)type;
component.intensity = intensity.Get(buildTarget);
component.color = color.Get(buildTarget);
component.samples = samplesNear.Get(buildTarget);
component.samples2 = samplesFar.Get(buildTarget);
component.selfShadow = selfShadow.Get(buildTarget);
component.indirectIntensity = indirectIntensity.Get(buildTarget);

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace EasyQuestSwitch.Types
{
[AddComponentMenu("")]
public class Type_Bakery_PointLight : Type_Base
public class Type_Bakery_PointLight : Type_Behaviour
{
[System.NonSerialized]
private BakeryPointLight type;
Expand All @@ -23,8 +23,7 @@ public class Type_Bakery_PointLight : Type_Base

public override void Setup(Object type)
{

// base.Setup(type);
base.Setup(type);
BakeryPointLight component = (BakeryPointLight)type;
color.Setup(component.color);
intensity.Setup(component.intensity);
Expand All @@ -39,7 +38,7 @@ public override void Setup(Object type)

public override void Process(Object type, BuildTarget buildTarget)
{
// base.Process(type, buildTarget);
base.Process(type, buildTarget);
BakeryPointLight component = (BakeryPointLight)type;
component.color = color.Get(buildTarget);
component.intensity = intensity.Get(buildTarget);
Expand All @@ -49,8 +48,6 @@ public override void Process(Object type, BuildTarget buildTarget)
component.samples = samples.Get(buildTarget);
component.legacySampling = legacySampling.Get(buildTarget);
component.indirectIntensity = indirectIntensity.Get(buildTarget);


}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace EasyQuestSwitch.Types
{
[AddComponentMenu("")]
public class Type_Bakery_SkyLight : Type_Base
public class Type_Bakery_SkyLight : Type_Behaviour
{
[System.NonSerialized]
private BakerySkyLight type;
Expand All @@ -19,25 +19,22 @@ public class Type_Bakery_SkyLight : Type_Base

public override void Setup(Object type)
{

// base.Setup(type);
base.Setup(type);
BakerySkyLight component = (BakerySkyLight)type;
color.Setup(component.color);
intensity.Setup(component.intensity);
samples.Setup(component.samples);
hemispherical.Setup(component.hemispherical);

}

public override void Process(Object type, BuildTarget buildTarget)
{
// base.Process(type, buildTarget);
base.Process(type, buildTarget);
BakerySkyLight component = (BakerySkyLight)type;
component.color = color.Get(buildTarget);
component.intensity = intensity.Get(buildTarget);
component.samples = samples.Get(buildTarget);
component.hemispherical = hemispherical.Get(buildTarget);

}
}
}
Expand Down

0 comments on commit ef11141

Please sign in to comment.