# Released under the MIT License. See LICENSE for details.#"""Defines NodeActor class."""from__future__importannotationsfromtypingimportTYPE_CHECKING,overridefrombascenev1._messagesimportDieMessagefrombascenev1._actorimportActorifTYPE_CHECKING:fromtypingimportAnyimportbascenev1classNodeActor(Actor):"""A simple bascenev1.Actor type that wraps a single bascenev1.Node. Category: **Gameplay Classes** This Actor will delete its Node when told to die, and it's exists() call will return whether the Node still exists or not. """def__init__(self,node:bascenev1.Node):super().__init__()self.node=node