From a1e9304dc31980703446bdb33246e314bafd3b15 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Tue, 24 Dec 2024 00:54:31 -0500 Subject: Switched to bevy_mod_scripting, bevy 0.15 update --- src/payload/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/payload/mod.rs') diff --git a/src/payload/mod.rs b/src/payload/mod.rs index dd064f2..68e23a0 100644 --- a/src/payload/mod.rs +++ b/src/payload/mod.rs @@ -1,23 +1,36 @@ use serde::{Deserialize, Serialize}; use uuid::Uuid; +/// Payload components pub mod components; +/// Payload steganographically embedded into asset files #[derive(Serialize, Deserialize, Default, Clone, Debug)] pub struct DirworldEntityPayload { + /// Unique identifier for this entity, used by conditional system pub id: Uuid, + /// Transform of this entity pub transform: components::Transform, + /// Name for this entity pub name: Option, + /// Actor information for this entity pub actor: Option, + /// Voice information for this entity pub voice: Option, + /// Rigidbody for this entity pub rigidbody: Option, + /// Mesh collider information for this entity pub mesh_collider: Option, + /// Lua scripts for this entity pub scripts: Option>, + /// Relationships for this entity pub relationships: Option, + /// Pickup information for this entity pub pickup: Option, } impl DirworldEntityPayload { + /// Create a new default payload with a randomized UUID pub fn new() -> Self { Self { id: Uuid::new_v4(), -- cgit v1.2.3