136 Commits

Author SHA1 Message Date
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
Will Fowler
956abb4a26 Normalizing Vector2d.zero returns Vector2d.zero. 2015-11-10 14:09:01 -07:00
Will Fowler
b9fd3bc140 Normalizing Vector3d.zero returns Vector3d.zero. 2015-11-10 14:07:30 -07:00
Will Fowler
61884e01b6 Fix params int[] constructor in Vector4d.
Forgot to change an array indexer in a copypasta.
2015-11-10 13:11:32 -07:00
Will
4d12f9be6f Ensure that if a structure doesn't have a lump index that we don't try to read it from the file. This was causing errors because the FileStream was trying to read the file starting from a negative index.
Add functionality to BSP and BSPReader allowing the file handle to be released and the FileStream disposed of.
2015-11-03 00:02:46 -07:00
Will
0f0b235d2a Fix CSProj file.
Fix bug in game lump info reading giving nonsense data for game lump offset and length.
Fix bug in Static Prop lump reading causing prop model dictionary to always be null.
2015-11-02 22:46:24 -07:00
Will
d66a5fa91b Move source into /Source rather than /src. Some documentation cleanup. 2015-11-02 21:48:07 -07:00
Will
3a2a493154 More small cleanups. 2015-11-01 13:58:38 -07:00
Will
1da72cc4cb Fix bug in PlaneExtensions.LumpFactory causing exceptions. 2015-10-31 12:27:14 -06:00
Will
5f1c85ea65 Cleanup: Move "Plane.GenerateThreePoints" into PlaneExtensions. 2015-10-31 00:10:55 -06:00
Will
d174843ce9 Add empty constructors to MAP classes. These will be used with object initializers. 2015-10-28 22:46:37 -06:00
Will
189784c85c Cleanup: Remove OnFire, OnEnable, OnDisable and OnToggle methods from Entity.cs.
These were esoteric methods providing information only useful when porting an entity from one engine to another, and are too specific for the general case.
2015-10-28 21:11:55 -06:00
Will
3020605996 Merge branch 'master' of https://github.com/wfowler1/LibBSP 2015-10-24 23:49:04 -06:00
Will
daa6ed092b Some cleanups. Fix compiler warnings, and move NumList into the Lumps folder. 2015-10-24 23:47:28 -06:00
Will
eacbc8ff37 Add custom attributes for Index and Count members of some lumps to indicate which lump they refer to. These can be used with BSP.GetReferencedObjects to get all objects of one lump referred to by an object from another. 2015-10-24 23:46:42 -06:00
MofoMan2000
1eeeae0d7e Small cleanups in Entity and more coding style. 2015-10-17 20:09:45 -06:00
MofoMan2000
7da89855b3 Small coding style fix 2015-10-17 19:17:22 -06:00
Will
b7811825ef Fix a small bug in parsing shader names from Source engine. 2015-10-11 21:21:41 -06:00
Will
c8ad5a842a Add a code to allow reading lumps on-the-fly, and only as needed.
This will allow the library to be used in many different projects with minimal effort messing with file reading, and should improve performance and memory usage in those projects.
2015-10-11 11:07:37 -06:00
Will
facb96e307 Add LumpFactory method for NumList. 2015-09-17 00:54:24 -06:00
Will
88527aaec4 Update readme file and regenerated CSPROJ 2015-09-15 23:42:29 -06:00
Will
d6d2bed643 Restructure a bit to keep source away from generated files. 2015-09-15 23:33:44 -06:00
Will
25544952fd Initial commit; all structs and extensions. 2015-09-15 23:11:43 -06:00
Will Fowler
430b5ed9b3 Initial commit 2015-09-15 23:07:00 -06:00