benthic_protocol 0.3.3

Benthic protocol, an intermediate layer between metaverse protocols and client programs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

use crate::messages::ui::ui_messages::UIMessage;

/// Struct for sending water updates from the core to the UI.
/// This is used for sending the height of the water, along with optional EEP values after load.
#[derive(Clone, Debug, Serialize, Deserialize, Default)]
pub struct SkyboxUpdate {
    pub sun_phase: f32,
}

impl UIMessage {
    /// creates a new MeshUpdate message
    pub fn new_skybox_update(data: SkyboxUpdate) -> Self {
        UIMessage::SkyboxUpdate(data)
    }
}