mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 10:44:07 +02:00
0.9 and formatting
This commit is contained in:
parent
1da5c89b06
commit
7fee74bab4
5 changed files with 5 additions and 5 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -904,7 +904,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "vbsp"
|
name = "vbsp"
|
||||||
version = "0.8.2"
|
version = "0.9.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"arrayvec",
|
"arrayvec",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "vbsp"
|
name = "vbsp"
|
||||||
version = "0.8.2"
|
version = "0.9.0"
|
||||||
authors = ["Robin Appelman <robin@icewind.nl>"]
|
authors = ["Robin Appelman <robin@icewind.nl>"]
|
||||||
homepage = "https://github.com/icewind1991/vbsp"
|
homepage = "https://github.com/icewind1991/vbsp"
|
||||||
repository = "https://github.com/icewind1991/vbsp"
|
repository = "https://github.com/icewind1991/vbsp"
|
||||||
|
|
|
||||||
|
|
@ -33,5 +33,4 @@ This project is adapted from the [quake bsp parser] and
|
||||||
wouldn't be possible without information from the [source engine wiki].
|
wouldn't be possible without information from the [source engine wiki].
|
||||||
|
|
||||||
[quake bsp parser]: https://github.com/Vurich/bsp
|
[quake bsp parser]: https://github.com/Vurich/bsp
|
||||||
|
|
||||||
[source engine wiki]: https://developer.valvesoftware.com/wiki/Source_BSP_File_Format
|
[source engine wiki]: https://developer.valvesoftware.com/wiki/Source_BSP_File_Format
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use crate::*;
|
use crate::*;
|
||||||
use binrw::BinReaderExt;
|
|
||||||
use binrw::io::Cursor;
|
use binrw::io::Cursor;
|
||||||
|
use binrw::BinReaderExt;
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
pub struct BspFile<'a> {
|
pub struct BspFile<'a> {
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@ use std::mem::size_of;
|
||||||
use std::ops::{Index, Rem};
|
use std::ops::{Index, Rem};
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
pub use vbsp_common::{Angles, Color, EntityProp, LightColor, Negated, PropPlacement, Vector};
|
pub use vbsp_common::{Angles, Color, EntityProp, LightColor, Negated, PropPlacement, Vector};
|
||||||
use zip::ZipArchive;
|
|
||||||
use zip::result::ZipError;
|
use zip::result::ZipError;
|
||||||
|
use zip::ZipArchive;
|
||||||
|
|
||||||
/// Validate that reading the type consumes `size_of::<T>()` bytes
|
/// Validate that reading the type consumes `size_of::<T>()` bytes
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
@ -96,6 +96,7 @@ impl Index<LumpType> for Directories {
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, BinRead)]
|
#[derive(Debug, Clone, PartialEq, Eq, BinRead)]
|
||||||
#[br(little)]
|
#[br(little)]
|
||||||
#[brw(repr=u32)]
|
#[brw(repr=u32)]
|
||||||
|
#[non_exhaustive]
|
||||||
pub enum BspVersion {
|
pub enum BspVersion {
|
||||||
Version19 = 19,
|
Version19 = 19,
|
||||||
Version20 = 20,
|
Version20 = 20,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue