forked from sabresaurus/SabreCSG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sabresaurus#119 from Henry00IS/VmfImprovement
Valve map format importer improvements.
- Loading branch information
Showing
7 changed files
with
389 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#if UNITY_EDITOR || RUNTIME_CSG | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Sabresaurus.SabreCSG.Importers.ValveMapFormat2006 | ||
{ | ||
/// <summary> | ||
/// Represents a Hammer Entity. | ||
/// </summary> | ||
public class VmfEntity | ||
{ | ||
public int Id = -1; | ||
|
||
/// <summary> | ||
/// The class name of the entity. | ||
/// </summary> | ||
public string ClassName; | ||
|
||
/// <summary> | ||
/// The solids in the entity if available. | ||
/// </summary> | ||
public List<VmfSolid> Solids = new List<VmfSolid>(); | ||
|
||
/// <summary> | ||
/// Returns a <see cref="System.String"/> that represents this instance. | ||
/// </summary> | ||
/// <returns>A <see cref="System.String"/> that represents this instance.</returns> | ||
public override string ToString() | ||
{ | ||
return "VmfEntity " + ClassName + " " + Id + " (" + Solids.Count + " Solids)"; | ||
} | ||
} | ||
} | ||
|
||
#endif |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.