Standardize unimplemented API failures
This commit is contained in:
@@ -9,6 +9,7 @@ description = "Primitive meshing shims for the MetaCrate LibreMetaverse rewrite"
|
||||
|
||||
[dependencies]
|
||||
libremetaverse-imaging = { path = "../libremetaverse-imaging" }
|
||||
libremetaverse-types = { path = "../libremetaverse-types" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#![allow(non_camel_case_types)]
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.PrimMesher.Coord`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct Coord;
|
||||
impl Coord {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Coord";
|
||||
@@ -11,7 +11,7 @@ impl Coord {
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.PrimMesher.Face`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct Face;
|
||||
impl Face {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Face";
|
||||
@@ -19,7 +19,7 @@ impl Face {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.PrimMesher.ObjMesh`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct ObjMesh;
|
||||
impl ObjMesh {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.ObjMesh";
|
||||
@@ -27,7 +27,7 @@ impl ObjMesh {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.PrimMesher.Path`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct Path;
|
||||
impl Path {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Path";
|
||||
@@ -35,7 +35,7 @@ impl Path {
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.PrimMesher.PathNode`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct PathNode;
|
||||
impl PathNode {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.PathNode";
|
||||
@@ -43,7 +43,7 @@ impl PathNode {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.PrimMesher.PathType`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct PathType;
|
||||
impl PathType {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.PathType";
|
||||
@@ -51,7 +51,7 @@ impl PathType {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.PrimMesher.PrimMesh`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct PrimMesh;
|
||||
impl PrimMesh {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.PrimMesh";
|
||||
@@ -59,7 +59,7 @@ impl PrimMesh {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.PrimMesher.Profile`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct Profile;
|
||||
impl Profile {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Profile";
|
||||
@@ -67,7 +67,7 @@ impl Profile {
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.PrimMesher.Quat`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct Quat;
|
||||
impl Quat {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Quat";
|
||||
@@ -75,7 +75,7 @@ impl Quat {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.PrimMesher.SculptMap`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct SculptMap;
|
||||
impl SculptMap {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.SculptMap";
|
||||
@@ -83,7 +83,7 @@ impl SculptMap {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.PrimMesher.SculptMesh`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct SculptMesh;
|
||||
impl SculptMesh {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.SculptMesh";
|
||||
@@ -91,7 +91,7 @@ impl SculptMesh {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.PrimMesher.SculptType`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct SculptType;
|
||||
impl SculptType {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.SculptType";
|
||||
@@ -99,7 +99,7 @@ impl SculptType {
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.PrimMesher.UVCoord`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct UVCoord;
|
||||
impl UVCoord {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.UVCoord";
|
||||
@@ -107,7 +107,7 @@ impl UVCoord {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.PrimMesher.VertexIndexer`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct VertexIndexer;
|
||||
impl VertexIndexer {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.VertexIndexer";
|
||||
@@ -115,7 +115,7 @@ impl VertexIndexer {
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.PrimMesher.ViewerFace`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct ViewerFace;
|
||||
impl ViewerFace {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.ViewerFace";
|
||||
@@ -123,7 +123,7 @@ impl ViewerFace {
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.PrimMesher.ViewerPolygon`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct ViewerPolygon;
|
||||
impl ViewerPolygon {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.ViewerPolygon";
|
||||
@@ -131,7 +131,7 @@ impl ViewerPolygon {
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.PrimMesher.ViewerVertex`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct ViewerVertex;
|
||||
impl ViewerVertex {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.ViewerVertex";
|
||||
|
||||
@@ -4,3 +4,4 @@ mod generated;
|
||||
|
||||
pub use generated::*;
|
||||
pub use libremetaverse_imaging as imaging;
|
||||
pub use libremetaverse_types::NotImplemented as Error;
|
||||
|
||||
Reference in New Issue
Block a user