MCPcopy Create free account
hub / github.com/Schr3da/gdext-rust-tutorials / init

Method init

ecs/rust/src/nodes/ecs_node.rs:38–49  ·  view source on GitHub ↗
(base: Base<Node2D>)

Source from the content-addressed store, hash-verified

36#[godot_api]
37impl INode2D for EcsNode {
38 fn init(base: Base<Node2D>) -> Self {
39 let (node_sender, node_receiver) = channel::<EcsEvents>();
40
41 let (_ecs_task, ecs_sender) = Ecs::launch(node_sender.clone());
42
43 Self {
44 base,
45 _ecs_task,
46 ecs_sender,
47 node_receiver,
48 }
49 }
50
51 fn ready(&mut self) {
52 self.send_ecs_request(EcsRequest::ApplicationWillInitialise);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected