wfowler
af76a7b6b2
Optimize memory usage in BrushSide a bit.
2018-10-08 16:51:35 -06:00
wfowler
0e4b9491e3
Make TextureInfo serializable, and use fields instead of properties.
2018-08-27 00:44:33 -06:00
wfowler
5becc7dac4
Rather large refactor:
...
Most changes were just small adjustments for coding style.
Made "using" statements for Unity, rather than non-Unity compiles. So in Unity "Vector3d" is an alias for "Vector3", instead of the other way around.
Restrict CountAttribute and IndexAttribute to apply to properties and fields only.
Removed Rect and RectExtensions, Rect was never used anywhere and was leftover from a long-gone part of this project.
Remove unnecessary "this" references and refactor Int32, Single, etc. to int, float, etc. (I might have missed a few of these).
Refactor MAPBrushSide to use a TextureInfo rather than duplicating many fields.
Make Terrain and Displacement formats use two-dimensional arrays rather than arrays of arrays.
Rename UIVertex to Vertex.
2018-08-25 17:43:28 -06:00
wfowler
1014184f24
Call of Duty (1): Add support for various map structures based on my most recent reverse engineering.
...
Other minor cleanup.
2018-08-05 16:38:27 -06:00
wfowler
015829f2e2
UIVertexExtensions: Make extension methods work like they do for reference types.
...
Add vanilla static methods that do the same things, for compilers that don't support extension methods on "ref" parameters.
2018-07-31 17:55:06 -06:00
wfowler
f251bb8137
Whoops, the Partition and Vertex classes need to be Serializable too.
2018-07-27 01:50:26 -06:00
wfowler
bceac9031a
Add "isManVis" flag to MAPBrush.
2018-07-26 07:55:28 -06:00
wfowler
a8f939e5f8
Initial support for MoHAA LoD terrains:
...
Rename MAPTerrain to MAPTerrainEF2.
Add MAPTerrainMoHAA and LODTerrain.
Add LODTerrain lump to BSP.
2018-07-26 05:13:30 -06:00
wfowler
249aaa2b77
Add a bit of error checking to the detection of Source entity connections.
...
This will make the parser more robust against false positives.
2018-07-21 21:39:46 -06:00
wfowler
2f726b15bf
Add MoHAA static models
2018-07-20 03:38:47 -06:00
wfowler
caa7856fed
Whoops, don't escape with backslashes here also.
2018-07-14 23:59:45 -06:00
wfowler
c8a4bcb22d
Fix a problem with entity processing that was throwing on a (probably) broken entity in MoHAA's m3l2.bsp.
2018-07-14 21:28:02 -06:00
wfowler
7fc89ecd4f
Rename Face.textureScale to Face.textureInfo.
2018-07-14 20:24:22 -06:00
wfowler
bba8a899ba
Fix NullReferenceException when constructing TextureInfo.
2018-07-13 02:22:15 -06:00
wfowler
1a7203637d
Add more fields to DisplacementInfo. Also fix a Unity-compile oversight. Again.
2018-07-09 02:32:11 -06:00
wfowler
d9bfd2e3d2
Whoops, missed this one.
2018-07-09 02:04:00 -06:00
wfowler
2b5f61946f
Fix compiling in Unity 2017 and 2018 versions.
2018-07-09 01:58:30 -06:00
wfowler1
e990e8d6d0
Add a bunch of Plane extensions for dealing with Quake engine planes in Unity.
...
Fix a couple small mistakes elsewhere.
2016-08-30 19:13:22 -06:00
wfowler1
45c4de4094
Add texture scale information to TextureInfo.
...
This is only useful in MAPBrushSides, BSPs compile the scales into the axes themselves.
2016-08-30 19:11:05 -06:00
wfowler1
aa144a0f4c
Small optimization to SplitUnlessInContainer in StringExtensions.
2016-08-30 19:05:50 -06:00
Will
56c496c419
Fix getting head revision when checked out as a submodule.
2016-03-18 01:51:32 -06:00
Will
4641f37c1f
Fix a mistake preventing the revision field from being filled. Also record the sha1 of the head revision.
2016-03-18 01:40:32 -06:00
Will
458c535809
Merge branch 'master' of https://github.com/wfowler1/LibBSP
2016-03-18 00:46:23 -06:00
Will
16b95973dd
Add a Revision class containing a revision number, retrieved from GIT at build time.
2016-03-18 00:46:14 -06:00
Will
324edbf5f9
Fix a warning in BSP class.
2016-03-18 00:44:33 -06:00
Will
ef5454bf92
Add a todo reminding me to do MoHRadiant terrain.
2016-02-20 16:50:56 -07:00
Will
902b1f9f49
Fix reading vertices of EF2 maps.
2016-02-20 05:38:25 -07:00
Will
fbb56a52fd
Visual Studio does funny things with CSPROJ files.
2016-02-20 03:31:22 -07:00
Will
2700decfe3
Merge branch 'master' of https://github.com/wfowler1/LibBSP
2016-02-20 03:27:51 -07:00
Will
f9bd13ae35
Add support for EF2 terrainDef structures.
2016-02-20 03:27:32 -07:00
Will
87cd9fb2bb
Fix reading Call of Duty maps.
2016-02-18 22:02:22 -07:00
Will
c11ac46c78
Unbreak Left 4 Dead 2. (Oops)
2016-02-15 19:32:43 -07:00
Will
10efe43efd
Fix reading v6 Static Props in Vindictus.
2016-02-15 14:20:54 -07:00
Will
b8c883fd75
Refactor of BSP and BSPReader to enable lump structures to know what version of lump they represent.
...
As a result, fix reading v2 faces lump from Vindictus.
2016-02-15 02:57:10 -07:00
Will
75ee1e44f1
Fix issues reading Game Lump in Vindictus maps.
2016-02-13 21:30:37 -07:00
Will
bdde60d78c
Resolve issues of decimal formatting in non-English locales.
2016-02-11 21:22:13 -07:00
Will
4a35493246
Fix brush side vertex reading from MAPBrushSides in files.
2016-02-08 02:44:50 -07:00
Will
dea420be7c
Add a constructor for Entities accepting a FileInfo.
2016-02-08 02:44:02 -07:00
Will
2f8cec701b
Add support for Source engine's lump file system. Now lump files will take precedence over internal data.
2016-02-01 17:39:32 -07:00
Will
857acfff14
UIVertex needs to be serializable as well.
2016-02-01 14:38:57 -07:00
Will
9e2e3b9382
Add FAKK to Face lump factory (oops).
2016-01-31 16:09:46 -07:00
Will
afe443f45d
Unfortunately TextureInfo can't be a struct.
2016-01-31 16:09:21 -07:00
Will
454e470fb1
Merge branch 'master' of https://github.com/wfowler1/LibBSP
2016-01-31 03:56:06 -07:00
Will
0b38af21bc
Must implement ISerializable on Entity to properly serialize Entities, plus everything an Entity can reference.
2016-01-31 03:55:35 -07:00
Will
552bbf39c8
Allow access to a BSP's BSPReader from outside the class.
2016-01-27 02:24:13 -07:00
Will
9bf45765a5
Moderate refactor.
...
Removes "Source" from in front of source engine structures.
Spells out full names of structures in class names.
Adds punctuation to all documentation comments and fixes some mistakes.
Adds some missing documentation comments.
2016-01-26 22:37:52 -07:00
Will
ed5abdcc92
Fix Static Props angles being read as origin.
2016-01-20 01:02:35 -07:00
Will
04af0a31ce
Remove stuff for Doom, it's out of scope for this library. Other small cleanups and refactorings.
2016-01-20 01:01:57 -07:00
Will
f5c751e217
Fix BSPReader throwing exception when attempting to open a read-only file.
2015-11-10 19:28:43 -07:00
Will Fowler
9aa197fe1f
Normalizing Vector4d.zero returns Vector4d.zero.
2015-11-10 14:10:05 -07:00