Skip to content

Commit 18bdd47

Browse files
committed
Formatting
Formatting Formatting
1 parent b24dd49 commit 18bdd47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Uchu.World/Systems/Behaviors/SwitchMultipleBehavior.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ public override async Task BuildAsync()
3535
DistanceToTarget = await GetParameter<float>("distance_to_target");
3636

3737
//dynamically load all possible behaviors the switch can have
38-
bool valid = true;
39-
int count = 1;
38+
var valid = true;
39+
var count = 1;
4040
while (valid){
41-
BehaviorBase Behavior = await GetBehavior("behavior " + count);
42-
float Value = await GetParameter<float>("value " + count);
41+
var Behavior = await GetBehavior("behavior " + count);
42+
var Value = await GetParameter<float>("value " + count);
4343
if (Behavior == null || Behavior == default || Behavior.BehaviorId == 0){
4444
valid = false;
4545
} else {
@@ -53,7 +53,7 @@ public override async Task BuildAsync()
5353
protected override void DeserializeStart(BitReader reader, SwitchMultipleBehaviorExecutionParameters parameters)
5454
{
5555
parameters.Value = reader.Read<float>();
56-
BehaviorBase currentBehavior = Behaviors[0];
56+
var currentBehavior = Behaviors[0];
5757
//check each behavior's threshold to see if we go past it, when we find one that's too much we break out of the loop
5858
for (int i = 1; i < Values.Count(); i++){
5959
if (parameters.Value > Values[i-1]){

0 commit comments

Comments
 (0)