Rename NewStateMachine to NewSubStateMachine so that it does not share the same prefix as the more commonly used ".NewState(...)"
This commit is contained in:
@@ -117,14 +117,14 @@ namespace AnimatorAsCode.V0
|
||||
return _stateMachine.NewState(name, x, y);
|
||||
}
|
||||
|
||||
public AacFlStateMachine NewStateMachine(string name)
|
||||
public AacFlStateMachine NewSubStateMachine(string name)
|
||||
{
|
||||
return _stateMachine.NewStateMachine(name);
|
||||
return _stateMachine.NewSubStateMachine(name);
|
||||
}
|
||||
|
||||
public AacFlStateMachine NewStateMachine(string name, int x, int y)
|
||||
public AacFlStateMachine NewSubStateMachine(string name, int x, int y)
|
||||
{
|
||||
return _stateMachine.NewStateMachine(name, x, y);
|
||||
return _stateMachine.NewSubStateMachine(name, x, y);
|
||||
}
|
||||
|
||||
public AacFlTransition AnyTransitionsTo(AacFlState destination)
|
||||
|
||||
@@ -139,13 +139,13 @@ namespace AnimatorAsCode.V0
|
||||
return _backingAnimator;
|
||||
}
|
||||
|
||||
public AacFlStateMachine NewStateMachine(string name)
|
||||
public AacFlStateMachine NewSubStateMachine(string name)
|
||||
{
|
||||
var lastState = LastNodePosition();
|
||||
return NewStateMachine(name, 0, 0).Shift(lastState, 0, 1);
|
||||
return NewSubStateMachine(name, 0, 0).Shift(lastState, 0, 1);
|
||||
}
|
||||
|
||||
public AacFlStateMachine NewStateMachine(string name, int x, int y)
|
||||
public AacFlStateMachine NewSubStateMachine(string name, int x, int y)
|
||||
{
|
||||
var stateMachine = Machine.AddStateMachine(name, GridPosition(x, y));
|
||||
var aacMachine = new AacFlStateMachine(stateMachine, _emptyClip, _backingAnimator, DefaultsProvider, this);
|
||||
|
||||
Reference in New Issue
Block a user