pite-core 0.4.0

Node tree, handles, props and lifecycle dispatch for Pite.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Area2D: trigger zones for overlap detection. Inherits
//! collision_layer/collision_mask from CollisionObject2D.

use crate::schema::NodeTypeSchema;

pub static SCHEMA: NodeTypeSchema = NodeTypeSchema {
    type_name: "Area2D",
    description:
        "Trigger zone for overlap detection. Emits body_entered/body_exited and area_* signals.",
    inherits: Some("CollisionObject2D"),
    abstract_class: false,
    props: PROPS,
};

pub static PROPS: &[crate::schema::PropSchema] = &[];