(base: Base<Node2D>)
| 12 | #[godot_api] |
| 13 | impl INode2D for EntryNode { |
| 14 | fn init(base: Base<Node2D>) -> Self { |
| 15 | let main_menu_scene: Gd<PackedScene> = load("res://main_menu.tscn"); |
| 16 | let game_scene: Gd<PackedScene> = load("res://game_scene.tscn"); |
| 17 | |
| 18 | Self { |
| 19 | base, |
| 20 | main_menu_scene, |
| 21 | game_scene, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | fn ready(&mut self) { |
| 26 | self.main_menu(); |
nothing calls this directly
no outgoing calls
no test coverage detected