starlane 0.2.0

Starlane - a Resource Mesh
use starlane_core::star::StarKey;
use serde::{Serialize,Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ResourceLocation {
    pub star: StarKey,
}

impl ResourceLocation {
    pub fn new(host: StarKey) -> Self {
        ResourceLocation { star: host }
    }

    pub fn root() -> Self {
        Self {
            star: StarKey::central(),
        }
    }
}