mirror of
https://github.com/celisej567/LibBSP.git
synced 2025-12-31 13:48:15 +03:00
Make extension classes into partial classes to avoid naming conflicts with similar classes in other projects.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace LibBSP {
|
||||
/// <summary>
|
||||
/// Static class containing helper methods for <c>Color</c> objects.
|
||||
/// </summary>
|
||||
public static class ColorExtensions {
|
||||
public static partial class ColorExtensions {
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new <c>Color</c> from the passed values.
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace LibBSP {
|
||||
/// <summary>
|
||||
/// Contains static methods for retrieving custom attributes.
|
||||
/// </summary>
|
||||
public static class CustomAttributeExtensions {
|
||||
public static partial class CustomAttributeExtensions {
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a custom attribute of a specified type that is applied to a specified member.
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace LibBSP {
|
||||
/// <summary>
|
||||
/// Static class containing helper methods for <see cref="Plane"/> objects.
|
||||
/// </summary>
|
||||
public static class PlaneExtensions {
|
||||
public static partial class PlaneExtensions {
|
||||
|
||||
/// <summary>
|
||||
/// Array of base texture axes. When referenced properly, provides a good default texture axis for any given plane.
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace LibBSP {
|
||||
/// <summary>
|
||||
/// Static class containing helper methods for <c>string</c> objects.
|
||||
/// </summary>
|
||||
public static class StringExtensions {
|
||||
public static partial class StringExtensions {
|
||||
|
||||
/// <summary>
|
||||
/// Splits a <c>string</c> using a Unicode character, unless that character is between two instances of a container.
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace LibBSP {
|
||||
/// <summary>
|
||||
/// Class containing helper methods for <see cref="Vector2"/> objects.
|
||||
/// </summary>
|
||||
public static class Vector2Extensions {
|
||||
public static partial class Vector2Extensions {
|
||||
|
||||
#if !GODOT
|
||||
/// <summary>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace LibBSP {
|
||||
/// <summary>
|
||||
/// Class containing helper methods for <see cref="Vector3"/> objects.
|
||||
/// </summary>
|
||||
public static class Vector3Extensions {
|
||||
public static partial class Vector3Extensions {
|
||||
|
||||
#if !GODOT
|
||||
/// <summary>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace LibBSP {
|
||||
/// <summary>
|
||||
/// Class containing helper methods for <see cref="Vector4"/> objects.
|
||||
/// </summary>
|
||||
public static class Vector4Extensions {
|
||||
public static partial class Vector4Extensions {
|
||||
|
||||
#if !GODOT
|
||||
/// <summary>
|
||||
|
||||
@@ -11,24 +11,21 @@ namespace LibBSP {
|
||||
#if UNITY
|
||||
using Vector2 = UnityEngine.Vector2;
|
||||
using Vector3 = UnityEngine.Vector3;
|
||||
using Vector4 = UnityEngine.Vector4;
|
||||
#if !OLDUNITY
|
||||
using Vertex = UnityEngine.UIVertex;
|
||||
#endif
|
||||
#elif GODOT
|
||||
using Vector2 = Godot.Vector2;
|
||||
using Vector3 = Godot.Vector3;
|
||||
using Vector4 = Godot.Quat;
|
||||
#else
|
||||
using Vector2 = System.Numerics.Vector2;
|
||||
using Vector3 = System.Numerics.Vector3;
|
||||
using Vector4 = System.Numerics.Vector4;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Static class containing helper methods for <see cref="Vertex"/> objects.
|
||||
/// </summary>
|
||||
public static class VertexExtensions {
|
||||
public static partial class VertexExtensions {
|
||||
|
||||
/// <summary>
|
||||
/// Scales the position of a <see cref="Vertex"/> by a scalar and returns the result.
|
||||
|
||||
Reference in New Issue
Block a user