mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-13 15:52:03 +07:00
style fixes
This commit is contained in:
@@ -13,7 +13,7 @@ namespace IsoTools.Internal {
|
||||
Vector3 _center = Vector3.zero;
|
||||
Vector3 _viewCenter = Vector3.zero;
|
||||
|
||||
static public readonly float SnappingDistance = 0.2f;
|
||||
public static readonly float SnappingDistance = 0.2f;
|
||||
|
||||
static bool IsSnappingEnabled() {
|
||||
return !Event.current.control;
|
||||
|
||||
@@ -13,4 +13,4 @@ namespace IsoTools.Internal {
|
||||
get { return _isoCollider; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,4 +32,4 @@ namespace IsoTools.Internal {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,4 +13,4 @@ namespace IsoTools.Internal {
|
||||
get { return _isoRigidbody; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace IsoTools.Internal {
|
||||
[DisallowMultipleComponent]
|
||||
@@ -29,4 +28,4 @@ namespace IsoTools.Internal {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ namespace IsoTools.Internal {
|
||||
public static readonly Vector3 vec3OneYZ = new Vector3(0.0f, 1.0f, 1.0f);
|
||||
public static readonly Vector3 vec3OneXZ = new Vector3(1.0f, 0.0f, 1.0f);
|
||||
|
||||
static public readonly int FloatBeautifierDigits = 4;
|
||||
public static readonly int FloatBeautifierDigits = 4;
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
//
|
||||
@@ -55,7 +55,7 @@ namespace IsoTools.Internal {
|
||||
yMax > other.yMin && yMin < other.yMax;
|
||||
}
|
||||
|
||||
static public Rect zero {
|
||||
public static Rect zero {
|
||||
get { return new Rect(); }
|
||||
}
|
||||
}
|
||||
@@ -89,7 +89,7 @@ namespace IsoTools.Internal {
|
||||
Mathf.Approximately(max, minmax.max);
|
||||
}
|
||||
|
||||
static public MinMax zero {
|
||||
public static MinMax zero {
|
||||
get { return new MinMax(); }
|
||||
}
|
||||
}
|
||||
@@ -613,4 +613,4 @@ namespace IsoTools.Internal {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,4 +74,4 @@ namespace IsoTools {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -108,4 +108,4 @@ namespace IsoTools {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -126,4 +126,4 @@ namespace IsoTools {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,4 +20,4 @@ namespace IsoTools {
|
||||
rigidbody = IsoUtils.IsoConvertRigidbody(collision.rigidbody);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,13 +7,15 @@ namespace IsoTools {
|
||||
public Vector3 normal { get; private set; }
|
||||
public IsoCollider otherCollider { get; private set; }
|
||||
public Vector3 point { get; private set; }
|
||||
public float separation { get; private set; }
|
||||
public IsoCollider thisCollider { get; private set; }
|
||||
|
||||
public IsoContactPoint(ContactPoint contact_point) : this() {
|
||||
normal = contact_point.normal;
|
||||
otherCollider = IsoUtils.IsoConvertCollider(contact_point.otherCollider);
|
||||
point = contact_point.point;
|
||||
separation = contact_point.separation;
|
||||
thisCollider = IsoUtils.IsoConvertCollider(contact_point.thisCollider);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -192,18 +192,18 @@ namespace IsoTools {
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
public class InternalState {
|
||||
public bool Dirty = false;
|
||||
public bool Placed = false;
|
||||
public IsoUtils.Rect ScreenRect = IsoUtils.Rect.zero;
|
||||
public IsoUtils.MinMax MinMax3d = IsoUtils.MinMax.zero;
|
||||
public float Offset3d = 0.0f;
|
||||
public Vector2 MinSector = Vector2.zero;
|
||||
public Vector2 MaxSector = Vector2.zero;
|
||||
public Transform Transform = null;
|
||||
public Vector2 LastTrans = Vector2.zero;
|
||||
public List<Renderer> Renderers = new List<Renderer>();
|
||||
public IsoAssocList<IsoObject> SelfDepends = new IsoAssocList<IsoObject>(47);
|
||||
public IsoAssocList<IsoObject> TheirDepends = new IsoAssocList<IsoObject>(47);
|
||||
public bool Dirty = false;
|
||||
public bool Placed = false;
|
||||
public IsoUtils.Rect ScreenRect = IsoUtils.Rect.zero;
|
||||
public IsoUtils.MinMax MinMax3d = IsoUtils.MinMax.zero;
|
||||
public float Offset3d = 0.0f;
|
||||
public Vector2 MinSector = Vector2.zero;
|
||||
public Vector2 MaxSector = Vector2.zero;
|
||||
public Transform Transform = null;
|
||||
public Vector2 LastTrans = Vector2.zero;
|
||||
public List<Renderer> Renderers = new List<Renderer>();
|
||||
public IsoAssocList<IsoObject> SelfDepends = new IsoAssocList<IsoObject>(47);
|
||||
public IsoAssocList<IsoObject> TheirDepends = new IsoAssocList<IsoObject>(47);
|
||||
}
|
||||
|
||||
public InternalState Internal = new InternalState();
|
||||
@@ -345,4 +345,4 @@ namespace IsoTools {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,4 +18,4 @@ namespace IsoTools {
|
||||
rigidbody = IsoUtils.IsoConvertRigidbody(hit_info.rigidbody);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -397,4 +397,4 @@ namespace IsoTools {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,4 +74,4 @@ namespace IsoTools {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,29 +42,29 @@ namespace IsoTools {
|
||||
//
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
static public readonly float DefTileSize = 32.0f;
|
||||
static public readonly float MinTileSize = Mathf.Epsilon;
|
||||
static public readonly float MaxTileSize = float.MaxValue;
|
||||
public static readonly float DefTileSize = 32.0f;
|
||||
public static readonly float MinTileSize = Mathf.Epsilon;
|
||||
public static readonly float MaxTileSize = float.MaxValue;
|
||||
|
||||
static public readonly float DefTileRatio = 0.5f;
|
||||
static public readonly float MinTileRatio = 0.25f;
|
||||
static public readonly float MaxTileRatio = 1.0f;
|
||||
public static readonly float DefTileRatio = 0.5f;
|
||||
public static readonly float MinTileRatio = 0.25f;
|
||||
public static readonly float MaxTileRatio = 1.0f;
|
||||
|
||||
static public readonly float DefTileAngle = 45.0f;
|
||||
static public readonly float MinTileAngle = 0.0f;
|
||||
static public readonly float MaxTileAngle = 90.0f;
|
||||
public static readonly float DefTileAngle = 45.0f;
|
||||
public static readonly float MinTileAngle = 0.0f;
|
||||
public static readonly float MaxTileAngle = 90.0f;
|
||||
|
||||
static public readonly float DefTileHeight = DefTileSize;
|
||||
static public readonly float MinTileHeight = MinTileSize;
|
||||
static public readonly float MaxTileHeight = MaxTileSize;
|
||||
public static readonly float DefTileHeight = DefTileSize;
|
||||
public static readonly float MinTileHeight = MinTileSize;
|
||||
public static readonly float MaxTileHeight = MaxTileSize;
|
||||
|
||||
static public readonly float DefStepDepth = 0.1f;
|
||||
static public readonly float MinStepDepth = Mathf.Epsilon;
|
||||
static public readonly float MaxStepDepth = float.MaxValue;
|
||||
public static readonly float DefStepDepth = 0.1f;
|
||||
public static readonly float MinStepDepth = Mathf.Epsilon;
|
||||
public static readonly float MaxStepDepth = float.MaxValue;
|
||||
|
||||
static public readonly float DefStartDepth = 1.0f;
|
||||
static public readonly float MinStartDepth = float.MinValue;
|
||||
static public readonly float MaxStartDepth = float.MaxValue;
|
||||
public static readonly float DefStartDepth = 1.0f;
|
||||
public static readonly float MinStartDepth = float.MinValue;
|
||||
public static readonly float MaxStartDepth = float.MaxValue;
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
//
|
||||
@@ -910,4 +910,4 @@ namespace IsoTools {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user