Skip to content

Commit da2db35

Browse files
committed
Rename state nodes to be more coherent.
1 parent 161170c commit da2db35

File tree

50 files changed

+319
-319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+319
-319
lines changed

Editor/Descriptors/PlayerStateChangeUnitDescriptor.cs renamed to Editor/Descriptors/ChangePlayerStateUnitDescriptor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
namespace VisualPinball.Unity.VisualScripting.Editor
2222
{
23-
[Descriptor(typeof(PlayerStateChangeUnit))]
24-
public class PlayerStateChangeUnitDescriptor : UnitDescriptor<PlayerStateChangeUnit>
23+
[Descriptor(typeof(ChangePlayerStateUnit))]
24+
public class ChangePlayerStateUnitDescriptor : UnitDescriptor<ChangePlayerStateUnit>
2525
{
26-
public PlayerStateChangeUnitDescriptor(PlayerStateChangeUnit target) : base(target)
26+
public ChangePlayerStateUnitDescriptor(ChangePlayerStateUnit target) : base(target)
2727
{
2828
}
2929

@@ -39,7 +39,7 @@ protected override void DefinedPort(IUnitPort port, UnitPortDescription desc)
3939
base.DefinedPort(port, desc);
4040

4141
switch (port.key) {
42-
case nameof(PlayerStateChangeUnit.PlayerId):
42+
case nameof(ChangePlayerStateUnit.PlayerId):
4343
desc.summary = "The player ID of the desired state";
4444
break;
4545
}

Editor/Descriptors/SetLightUnitDescriptor.cs.meta renamed to Editor/Descriptors/ChangePlayerStateUnitDescriptor.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Descriptors/PlayerStateCreateUnitDescriptor.cs renamed to Editor/Descriptors/CreatePlayerStateUnitDescriptor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
namespace VisualPinball.Unity.VisualScripting.Editor
2222
{
23-
[Descriptor(typeof(PlayerStateCreateUnit))]
24-
public class PlayerStateCreateUnitDescriptor : UnitDescriptor<PlayerStateCreateUnit>
23+
[Descriptor(typeof(CreatePlayerStateUnit))]
24+
public class CreatePlayerStateUnitDescriptor : UnitDescriptor<CreatePlayerStateUnit>
2525
{
26-
public PlayerStateCreateUnitDescriptor(PlayerStateCreateUnit target) : base(target)
26+
public CreatePlayerStateUnitDescriptor(CreatePlayerStateUnit target) : base(target)
2727
{
2828
}
2929

@@ -39,13 +39,13 @@ protected override void DefinedPort(IUnitPort port, UnitPortDescription desc)
3939
base.DefinedPort(port, desc);
4040

4141
switch (port.key) {
42-
case nameof(PlayerStateCreateUnit.PlayerId):
42+
case nameof(CreatePlayerStateUnit.PlayerId):
4343
desc.summary = "The player ID of the new state";
4444
break;
4545
// case nameof(PlayerStateCreateUnit.AutoIncrement):
4646
// desc.summary = "If set, the new player ID will be the currently largest ID, plus one.";
4747
// break;
48-
case nameof(PlayerStateCreateUnit.SetAsActive):
48+
case nameof(CreatePlayerStateUnit.SetAsActive):
4949
desc.summary = "If set, the new state will be the current state. Otherwise, it will only be the current state if there is no state set.";
5050
break;
5151
}

Editor/Descriptors/PlayerStateChangeUnitDescriptor.cs.meta renamed to Editor/Descriptors/CreatePlayerStateUnitDescriptor.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Descriptors/VariableGetUnitDescriptor.cs renamed to Editor/Descriptors/GetVariableUnitDescriptor.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
namespace VisualPinball.Unity.VisualScripting.Editor
2222
{
23-
[Descriptor(typeof(PlayerVariableGetUnit))]
24-
public class PlayerVariableGetUnitDescriptor : UnitDescriptor<PlayerVariableGetUnit>
23+
[Descriptor(typeof(GetPlayerVariableUnit))]
24+
public class GetPlayerVariableUnitDescriptor : UnitDescriptor<GetPlayerVariableUnit>
2525
{
26-
public PlayerVariableGetUnitDescriptor(PlayerVariableGetUnit target) : base(target)
26+
public GetPlayerVariableUnitDescriptor(GetPlayerVariableUnit target) : base(target)
2727
{
2828
}
2929

@@ -39,17 +39,17 @@ protected override void DefinedPort(IUnitPort port, UnitPortDescription desc)
3939
base.DefinedPort(port, desc);
4040

4141
switch (port.key) {
42-
case nameof(PlayerVariableGetUnit.Value):
42+
case nameof(GetPlayerVariableUnit.Value):
4343
desc.summary = "The current value of the player variable.";
4444
break;
4545
}
4646
}
4747
}
4848

49-
[Descriptor(typeof(TableVariableGetUnit))]
50-
public class TableVariableGetUnitDescriptor : UnitDescriptor<TableVariableGetUnit>
49+
[Descriptor(typeof(GetTableVariableUnit))]
50+
public class GetTableVariableUnitDescriptor : UnitDescriptor<GetTableVariableUnit>
5151
{
52-
public TableVariableGetUnitDescriptor(TableVariableGetUnit target) : base(target)
52+
public GetTableVariableUnitDescriptor(GetTableVariableUnit target) : base(target)
5353
{
5454
}
5555

@@ -65,7 +65,7 @@ protected override void DefinedPort(IUnitPort port, UnitPortDescription desc)
6565
base.DefinedPort(port, desc);
6666

6767
switch (port.key) {
68-
case nameof(TableVariableGetUnit.Value):
68+
case nameof(GetTableVariableUnit.Value):
6969
desc.summary = "The current value of the table variable.";
7070
break;
7171
}

Editor/Descriptors/VariableGetUnitDescriptor.cs.meta renamed to Editor/Descriptors/GetVariableUnitDescriptor.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Descriptors/VariableIncreaseUnitDescriptor.cs renamed to Editor/Descriptors/IncreaseVariableUnitDescriptor.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
namespace VisualPinball.Unity.VisualScripting.Editor
2222
{
23-
[Descriptor(typeof(PlayerVariableIncreaseUnit))]
24-
public class PlayerVariableIncreaseUnitDescriptor : UnitDescriptor<PlayerVariableIncreaseUnit>
23+
[Descriptor(typeof(IncreasePlayerVariableUnit))]
24+
public class IncreasePlayerVariableUnitDescriptor : UnitDescriptor<IncreasePlayerVariableUnit>
2525
{
26-
public PlayerVariableIncreaseUnitDescriptor(PlayerVariableIncreaseUnit target) : base(target)
26+
public IncreasePlayerVariableUnitDescriptor(IncreasePlayerVariableUnit target) : base(target)
2727
{
2828
}
2929

@@ -39,17 +39,17 @@ protected override void DefinedPort(IUnitPort port, UnitPortDescription desc)
3939
base.DefinedPort(port, desc);
4040

4141
switch (port.key) {
42-
case nameof(PlayerVariableIncreaseUnit.Value):
42+
case nameof(IncreasePlayerVariableUnit.Value):
4343
desc.summary = "The value to add to the existing value.";
4444
break;
4545
}
4646
}
4747
}
4848

49-
[Descriptor(typeof(TableVariableIncreaseUnit))]
50-
public class TableVariableIncreaseUnitDescriptor : UnitDescriptor<TableVariableIncreaseUnit>
49+
[Descriptor(typeof(IncreaseTableVariableUnit))]
50+
public class IncreaseTableVariableUnitDescriptor : UnitDescriptor<IncreaseTableVariableUnit>
5151
{
52-
public TableVariableIncreaseUnitDescriptor(TableVariableIncreaseUnit target) : base(target)
52+
public IncreaseTableVariableUnitDescriptor(IncreaseTableVariableUnit target) : base(target)
5353
{
5454
}
5555

@@ -65,7 +65,7 @@ protected override void DefinedPort(IUnitPort port, UnitPortDescription desc)
6565
base.DefinedPort(port, desc);
6666

6767
switch (port.key) {
68-
case nameof(TableVariableIncreaseUnit.Value):
68+
case nameof(IncreaseTableVariableUnit.Value):
6969
desc.summary = "The value to add to the existing value.";
7070
break;
7171
}

Editor/Descriptors/PlayerStateCreateUnitDescriptor.cs.meta renamed to Editor/Descriptors/IncreaseVariableUnitDescriptor.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Descriptors/SetLightUnitDescriptor.cs renamed to Editor/Descriptors/SetLampComponentUnitDescriptor.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
namespace VisualPinball.Unity.VisualScripting.Editor
2424
{
25-
[Descriptor(typeof(SetLightUnit))]
26-
public class SetLightUnitDescriptor : UnitDescriptor<SetLightUnit>
25+
[Descriptor(typeof(SetLampComponentUnit))]
26+
public class SetLampComponentUnitDescriptor : UnitDescriptor<SetLampComponentUnit>
2727
{
28-
public SetLightUnitDescriptor(SetLightUnit target) : base(target)
28+
public SetLampComponentUnitDescriptor(SetLampComponentUnit target) : base(target)
2929
{
3030
}
3131

@@ -41,15 +41,15 @@ protected override void DefinedPort(IUnitPort port, UnitPortDescription desc)
4141
base.DefinedPort(port, desc);
4242

4343
switch (port.key) {
44-
case nameof(SetLightUnit.LampComponent):
44+
case nameof(SetLampComponentUnit.LampComponent):
4545
desc.summary = "The light component whose value you want to change. Assigning a light group will change all lights in the group.";
4646
break;
4747

48-
case nameof(SetLightUnit.Value):
48+
case nameof(SetLampComponentUnit.Value):
4949
desc.summary = "The intensity to apply (0-1).";
5050
break;
5151

52-
case nameof(SetLightUnit.ColorChannel):
52+
case nameof(SetLampComponentUnit.ColorChannel):
5353
desc.summary = "Which color channel to use. For non-RGB lights, use alpha.";
5454
break;
5555
}

Editor/Descriptors/SetLampComponentUnitDescriptor.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)