Nocturna
Preparing search index...
states/EditorState
AdditionState
Class AdditionState
AdditionState allows the user to add new objects to the level.
Maps input actions to object creation (platforms, coins, traps, player, etc.).
Handles cloning and deletion of selected objects.
Inherits state transition logic from EditorState.
Hierarchy (
View Summary
)
EditorState
AdditionState
Index
Constructors
constructor
Properties
input
Handler
scene
Methods
clone
enter
exit
get
Mode
Change
Text
name
update
add
State
clear
State
Constructors
constructor
new
AdditionState
(
scene
:
EditorScene
,
inputHandler
:
InputHandler
)
:
AdditionState
Parameters
scene
:
EditorScene
inputHandler
:
InputHandler
Returns
AdditionState
Properties
Protected
input
Handler
inputHandler
:
InputHandler
Protected
scene
scene
:
EditorScene
Methods
clone
clone
()
:
EditorState
Returns
EditorState
enter
enter
()
:
void
Returns
void
exit
exit
()
:
void
Returns
void
Protected
get
Mode
Change
Text
getModeChangeText
()
:
string
Returns
string
name
name
()
:
string
Returns
string
update
update
(
dt
:
number
,
input
:
CharacterInput
)
:
AbstractState
Parameters
dt
:
number
input
:
CharacterInput
Returns
AbstractState
Static
add
State
addState
(
...
states
:
EditorState
[]
)
:
void
Parameters
...
states
:
EditorState
[]
Returns
void
Static
clear
State
clearState
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
input
Handler
scene
Methods
clone
enter
exit
get
Mode
Change
Text
name
update
add
State
clear
State
Nocturna
Loading...
AdditionState allows the user to add new objects to the level.