cosmic-space 0.3.14

the Space portion of starlane as opposed to hyperspace
Documentation
use crate::loc;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq)]
pub struct Timestamp {
    pub millis: i64,
}

impl Timestamp {
    pub fn timestamp_millis(&self) -> i64 {
        self.millis
    }

    pub fn new(millis: i64) -> Self {
        Self { millis }
    }
}

#[no_mangle]
extern "C" {
    pub fn cosmic_timestamp() -> Timestamp;
    pub fn cosmic_uuid() -> loc::Uuid;
}