Merge branch 'deprecation_messages' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-deprecation_messages
This commit is contained in:
@@ -22,7 +22,7 @@ namespace FlaxEditor.CustomEditors.Elements
|
||||
/// <summary>
|
||||
/// [Deprecated on 26.05.2022, expires on 26.05.2024]
|
||||
/// </summary>
|
||||
[System.Obsolete("Deprecated in 1.4, use ValueBox instead")]
|
||||
[System.Obsolete("Use ValueBox instead")]
|
||||
public DoubleValueBox DoubleValue => ValueBox;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace FlaxEditor.CustomEditors.Elements
|
||||
/// <summary>
|
||||
/// [Deprecated on 26.05.2022, expires on 26.05.2024]
|
||||
/// </summary>
|
||||
[System.Obsolete("Deprecated in 1.4, use ValueBox instead")]
|
||||
[System.Obsolete("Use ValueBox instead")]
|
||||
public FloatValueBox FloatValue => ValueBox;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -857,7 +857,7 @@ namespace FlaxEditor
|
||||
/// New asset types allowed to create.
|
||||
/// [Deprecated in v1.8]
|
||||
/// </summary>
|
||||
[Obsolete("Use CreateAsset with named tag.")]
|
||||
[Obsolete("Use CreateAsset with named tag instead")]
|
||||
public enum NewAssetType
|
||||
{
|
||||
/// <summary>
|
||||
@@ -1038,7 +1038,7 @@ namespace FlaxEditor
|
||||
/// </summary>
|
||||
/// <param name="type">New asset type.</param>
|
||||
/// <param name="outputPath">Output asset path.</param>
|
||||
[Obsolete("Use CreateAsset with named tag.")]
|
||||
[Obsolete("Use CreateAsset with named tag instead")]
|
||||
public static bool CreateAsset(NewAssetType type, string outputPath)
|
||||
{
|
||||
// [Deprecated on 18.02.2024, expires on 18.02.2025]
|
||||
|
||||
@@ -184,8 +184,20 @@ public:
|
||||
/// <param name="assets">The output collection of the asset ids referenced by this asset.</param>
|
||||
/// <param name="files">The output list of file paths referenced by this asset. Files might come from project Content folder (relative path is preserved in cooked game), or external location (copied into Content root folder of cooked game).</param>
|
||||
virtual void GetReferences(Array<Guid, HeapAllocation>& assets, Array<String, HeapAllocation>& files) const;
|
||||
// [Deprecated in v1.9]
|
||||
DEPRECATED virtual void GetReferences(Array<Guid, HeapAllocation>& output) const;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the asset references. Supported only in Editor.
|
||||
/// [Deprecated in v1.9]
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// For some asset types (e.g. scene or prefab) it may contain invalid asset ids due to not perfect gather method,
|
||||
/// which is optimized to perform scan very quickly. Before using those ids perform simple validation via Content cache API.
|
||||
/// The result collection contains only 1-level-deep references (only direct ones) and is invalid if asset is not loaded.
|
||||
/// Also, the output data may have duplicated asset ids or even invalid ids (Guid::Empty).
|
||||
/// </remarks>
|
||||
/// <param name="output">The output collection of the asset ids referenced by this asset.</param>
|
||||
DEPRECATED("Use GetReferences with assets and files parameter instead") virtual void GetReferences(Array<Guid, HeapAllocation>& output) const;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the asset references. Supported only in Editor.
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#define ALIGN_BEGIN(_align)
|
||||
#define ALIGN_END(_align) __attribute__( (aligned(_align) ) )
|
||||
#define OFFSET_OF(X, Y) __builtin_offsetof(X, Y)
|
||||
#define DEPRECATED [[deprecated]]
|
||||
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS \
|
||||
_Pragma("clang diagnostic push") \
|
||||
_Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
|
||||
@@ -53,7 +52,6 @@
|
||||
#define ALIGN_BEGIN(_align)
|
||||
#define ALIGN_END(_align) __attribute__( (aligned(_align) ) )
|
||||
#define OFFSET_OF(X, Y) __builtin_offsetof(X, Y)
|
||||
#define DEPRECATED [[deprecated]]
|
||||
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
||||
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
@@ -80,7 +78,6 @@
|
||||
#define ALIGN_BEGIN(_align) __declspec(align(_align))
|
||||
#define ALIGN_END(_align)
|
||||
#define OFFSET_OF(X, Y) offsetof(X, Y)
|
||||
#define DEPRECATED __declspec(deprecated)
|
||||
#undef __PRETTY_FUNCTION__
|
||||
#define __PRETTY_FUNCTION__ __FUNCSIG__
|
||||
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS \
|
||||
@@ -100,6 +97,11 @@
|
||||
|
||||
#define PACK_STRUCT(_declaration) PACK_BEGIN() _declaration PACK_END()
|
||||
|
||||
#define _DEPRECATED_0() [[deprecated]]
|
||||
#define _DEPRECATED_1(msg) [[deprecated(msg)]]
|
||||
#define _DEPRECATED(_0, _1, LASTARG, ...) LASTARG
|
||||
#define DEPRECATED(...) _DEPRECATED(, ##__VA_ARGS__, _DEPRECATED_1(__VA_ARGS__), _DEPRECATED_0())
|
||||
|
||||
// C++ 17
|
||||
#if __cplusplus >= 201703L
|
||||
#define IF_CONSTEXPR constexpr
|
||||
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
/// [Deprecated in v1.9]
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(1320), DefaultValue(false), EditorDisplay(\"Quality\", \"Allow CSM Blending\")")
|
||||
DEPRECATED bool AllowCSMBlending = false;
|
||||
DEPRECATED() bool AllowCSMBlending = false;
|
||||
|
||||
/// <summary>
|
||||
/// Default probes cubemap resolution (use for Environment Probes, can be overriden per-actor).
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace FlaxEngine
|
||||
/// <param name="ray">The ray to test.</param>
|
||||
/// <param name="distance">When the method completes, contains the distance of the intersection, or 0 if there was no intersection.</param>
|
||||
/// <returns>Whether the two objects intersected.</returns>
|
||||
[Obsolete("Deprecated in v1.4")]
|
||||
[Obsolete("Use Intersects with 'out Real distance' parameter instead")]
|
||||
public bool Intersects(ref Ray ray, out float distance)
|
||||
{
|
||||
var result = CollisionsHelper.RayIntersectsBox(ref ray, ref this, out Real dst);
|
||||
|
||||
@@ -659,7 +659,7 @@ namespace FlaxEngine
|
||||
/// <param name="plane">The plane to test.</param>
|
||||
/// <param name="distance">When the method completes, contains the distance of the intersection, or 0 if there was no intersection.</param>
|
||||
/// <returns>Whether the two objects intersect.</returns>
|
||||
[Obsolete("Deprecated in 1.4")]
|
||||
[Obsolete("Use RayIntersectsPlane with 'out Real distance' parameter instead")]
|
||||
public static bool RayIntersectsPlane(ref Ray ray, ref Plane plane, out float distance)
|
||||
{
|
||||
//Source: Real-Time Collision Detection by Christer Ericson
|
||||
|
||||
@@ -645,6 +645,7 @@ namespace FlaxEngine
|
||||
|
||||
/// <summary>
|
||||
/// Maps the specified value from the given range into another.
|
||||
/// [Deprecated on 17.04.2023, expires on 17.04.2024]
|
||||
/// </summary>
|
||||
/// <param name="value">The value to map from range [fromMin; fromMax].</param>
|
||||
/// <param name="fromMin">The source range minimum value.</param>
|
||||
@@ -652,8 +653,7 @@ namespace FlaxEngine
|
||||
/// <param name="toMin">The destination range minimum value.</param>
|
||||
/// <param name="toMax">The destination range maximum value.</param>
|
||||
/// <returns>The mapped value in range [toMin; toMax].</returns>
|
||||
// [Deprecated on 17.04.2023, expires on 17.04.2024]
|
||||
[Obsolete("Please use Remap to upkeep the API consistency")]
|
||||
[Obsolete("Use Remap instead")]
|
||||
public static double Map(double value, double fromMin, double fromMax, double toMin, double toMax)
|
||||
{
|
||||
double t = (value - fromMin) / (fromMax - fromMin);
|
||||
|
||||
@@ -808,6 +808,7 @@ namespace FlaxEngine
|
||||
|
||||
/// <summary>
|
||||
/// Maps the specified value from the given range into another.
|
||||
/// [Deprecated on 17.04.2023, expires on 17.04.2024]
|
||||
/// </summary>
|
||||
/// <param name="value">The value to map from range [fromMin; fromMax].</param>
|
||||
/// <param name="fromMin">The source range minimum value.</param>
|
||||
@@ -815,8 +816,7 @@ namespace FlaxEngine
|
||||
/// <param name="toMin">The destination range minimum value.</param>
|
||||
/// <param name="toMax">The destination range maximum value.</param>
|
||||
/// <returns>The mapped value in range [toMin; toMax].</returns>
|
||||
// [Deprecated on 17.04.2023, expires on 17.04.2024]
|
||||
[Obsolete("Please use Remap to upkeep the API consistency")]
|
||||
[Obsolete("Use Remap instead")]
|
||||
public static float Map(float value, float fromMin, float fromMax, float toMin, float toMax)
|
||||
{
|
||||
float t = (value - fromMin) / (fromMax - fromMin);
|
||||
|
||||
@@ -825,7 +825,7 @@ namespace FlaxEngine
|
||||
/// <param name="rotation">When the method completes, contains the rotation component of the decomposed matrix.</param>
|
||||
/// <param name="translation">When the method completes, contains the translation component of the decomposed matrix.</param>
|
||||
/// <remarks>This method is designed to decompose an SRT transformation matrix only.</remarks>
|
||||
[Obsolete("Deprecated in v1.8")]
|
||||
[Obsolete("Use Decompose with 'out Matrix3x3 rotation' parameter instead")]
|
||||
public void Decompose(out Float3 scale, out Matrix rotation, out Float3 translation)
|
||||
{
|
||||
Decompose(out scale, out Matrix3x3 r, out translation);
|
||||
|
||||
@@ -481,7 +481,7 @@ public:
|
||||
/// <param name="translation">When the method completes, contains the translation component of the decomposed matrix.</param>
|
||||
/// <remarks>This method is designed to decompose an SRT transformation matrix only.</remarks>
|
||||
void Decompose(Float3& scale, Matrix3x3& rotation, Float3& translation) const;
|
||||
DEPRECATED void Decompose(Float3& scale, Matrix& rotation, Float3& translation) const;
|
||||
DEPRECATED("Use Decompose with 'Matrix3x3& rotation' parameter instead") void Decompose(Float3& scale, Matrix& rotation, Float3& translation) const;
|
||||
|
||||
public:
|
||||
Matrix operator*(const float scale) const
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace FlaxEngine
|
||||
/// <param name="plane">The plane to test.</param>
|
||||
/// <param name="distance">When the method completes, contains the distance of the intersection, or 0 if there was no intersection.</param>
|
||||
/// <returns>Whether the two objects intersected.</returns>
|
||||
[Obsolete("Deprecated in 1.4")]
|
||||
[Obsolete("Use Intersects with 'out Real distance' parameter instead")]
|
||||
public bool Intersects(ref Plane plane, out float distance)
|
||||
{
|
||||
return CollisionsHelper.RayIntersectsPlane(ref this, ref plane, out distance);
|
||||
@@ -202,7 +202,7 @@ namespace FlaxEngine
|
||||
/// <param name="vertex3">The third vertex of the triangle to test.</param>
|
||||
/// <param name="distance">When the method completes, contains the distance of the intersection, or 0 if there was no intersection.</param>
|
||||
/// <returns>Whether the two objects intersected.</returns>
|
||||
[Obsolete("Deprecated in 1.4")]
|
||||
[Obsolete("Use Intersects with 'out Real distance' parameter instead")]
|
||||
public bool Intersects(ref Vector3 vertex1, ref Vector3 vertex2, ref Vector3 vertex3, out float distance)
|
||||
{
|
||||
var result = CollisionsHelper.RayIntersectsTriangle(ref this, ref vertex1, ref vertex2, ref vertex3, out Real dst);
|
||||
@@ -305,7 +305,7 @@ namespace FlaxEngine
|
||||
/// <param name="sphere">The sphere to test.</param>
|
||||
/// <param name="distance">When the method completes, contains the distance of the intersection, or 0 if there was no intersection.</param>
|
||||
/// <returns>Whether the two objects intersected.</returns>
|
||||
[Obsolete("Deprecated in 1.4")]
|
||||
[Obsolete("Use Intersects with 'out Real distance' parameter instead")]
|
||||
public bool Intersects(ref BoundingSphere sphere, out float distance)
|
||||
{
|
||||
var result = CollisionsHelper.RayIntersectsSphere(ref this, ref sphere, out Real dst);
|
||||
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
/// Gets the pointer to the string or to the static empty text if string is null. Returned pointer is always non-null, but is not null-terminated.
|
||||
/// [Deprecated on 26.10.2022, expires on 26.10.2024] Use GetText()
|
||||
/// </summary>
|
||||
DEPRECATED const T* GetNonTerminatedText() const
|
||||
DEPRECATED("Use GetText instead") const T* GetNonTerminatedText() const
|
||||
{
|
||||
return _data ? _data : (const T*)TEXT("");
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ API_CLASS(Static) class FLAXENGINE_API DebugDraw
|
||||
/// <param name="color">The color.</param>
|
||||
/// <param name="duration">The duration (in seconds). Use 0 to draw it only once.</param>
|
||||
/// <param name="depthTest">If set to <c>true</c> depth test will be performed, otherwise depth will be ignored.</param>
|
||||
API_FUNCTION() DEPRECATED static void DrawRay(const Vector3& origin, const Vector3& direction, const Color& color = Color::White, float duration = 0.0f, bool depthTest = true);
|
||||
API_FUNCTION() DEPRECATED("Use DrawRay with length parameter instead") static void DrawRay(const Vector3& origin, const Vector3& direction, const Color& color, float duration, bool depthTest);
|
||||
|
||||
/// <summary>
|
||||
/// Draws the line in a direction.
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace FlaxEngine
|
||||
/// <summary>
|
||||
/// Occurs when event is triggered (e.g. user pressed a key). Called before scripts update.
|
||||
/// </summary>
|
||||
[System.Obsolete("Depreciated in 1.7, use Pressed Action.")]
|
||||
[System.Obsolete("Use Pressed instead")]
|
||||
public event Action Triggered;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
/// Enables cascades splits blending for directional light shadows.
|
||||
/// [Deprecated in v1.9]
|
||||
/// </summary>
|
||||
API_FIELD() DEPRECATED static bool AllowCSMBlending;
|
||||
API_FIELD() DEPRECATED() static bool AllowCSMBlending;
|
||||
|
||||
/// <summary>
|
||||
/// The Global SDF quality. Controls the volume texture resolution and amount of cascades to use.
|
||||
|
||||
@@ -339,7 +339,7 @@ namespace FlaxEngine
|
||||
/// <param name="tangents">The normal vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
/// <param name="colors">The vertex colors (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(Vector3[] vertices, int[] triangles, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null, Color32[] colors = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
|
||||
@@ -357,7 +357,7 @@ namespace FlaxEngine
|
||||
/// <param name="tangents">The normal vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
/// <param name="colors">The vertex colors (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(List<Vector3> vertices, List<int> triangles, List<Vector3> normals = null, List<Vector3> tangents = null, List<Vector2> uv = null, List<Color32> colors = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
|
||||
@@ -375,7 +375,7 @@ namespace FlaxEngine
|
||||
/// <param name="tangents">The normal vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
/// <param name="colors">The vertex colors (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(Vector3[] vertices, uint[] triangles, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null, Color32[] colors = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
|
||||
@@ -393,7 +393,7 @@ namespace FlaxEngine
|
||||
/// <param name="tangents">The normal vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
/// <param name="colors">The vertex colors (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(List<Vector3> vertices, List<uint> triangles, List<Vector3> normals = null, List<Vector3> tangents = null, List<Vector2> uv = null, List<Color32> colors = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
|
||||
@@ -411,7 +411,7 @@ namespace FlaxEngine
|
||||
/// <param name="tangents">The tangent vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
/// <param name="colors">The vertex colors (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(Vector3[] vertices, ushort[] triangles, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null, Color32[] colors = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
|
||||
@@ -429,7 +429,7 @@ namespace FlaxEngine
|
||||
/// <param name="tangents">The tangent vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
/// <param name="colors">The vertex colors (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(List<Vector3> vertices, List<ushort> triangles, List<Vector3> normals = null, List<Vector3> tangents = null, List<Vector2> uv = null, List<Color32> colors = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv), colors);
|
||||
|
||||
@@ -161,13 +161,13 @@ public:
|
||||
/// The model LOD bias. Default is 0. Applied to all the objects in the shadow maps render views. Can be used to improve shadows rendering performance or increase quality.
|
||||
/// [Deprecated on 26.10.2022, expires on 26.10.2024]
|
||||
/// </summary>
|
||||
API_FIELD() DEPRECATED int32 ShadowModelLODBias = 0;
|
||||
API_FIELD() DEPRECATED() int32 ShadowModelLODBias = 0;
|
||||
|
||||
/// <summary>
|
||||
/// The model LOD distance scale factor. Default is 1. Applied to all the objects in the shadow maps render views. Higher values increase LODs quality. Can be used to improve shadows rendering performance or increase quality.
|
||||
/// [Deprecated on 26.10.2022, expires on 26.10.2024]
|
||||
/// </summary>
|
||||
API_FIELD() DEPRECATED float ShadowModelLODDistanceFactor = 1.0f;
|
||||
API_FIELD() DEPRECATED() float ShadowModelLODDistanceFactor = 1.0f;
|
||||
|
||||
/// <summary>
|
||||
/// Temporal Anti-Aliasing jitter frame index.
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace FlaxEngine
|
||||
/// <param name="normals">The normal vectors (per vertex).</param>
|
||||
/// <param name="tangents">The normal vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(Vector3[] vertices, int[] triangles, Int4[] blendIndices, Vector4[] blendWeights, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, blendIndices, Utils.ConvertCollection(blendWeights), Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv));
|
||||
@@ -235,7 +235,7 @@ namespace FlaxEngine
|
||||
/// <param name="normals">The normal vectors (per vertex).</param>
|
||||
/// <param name="tangents">The normal vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(Vector3[] vertices, uint[] triangles, Int4[] blendIndices, Vector4[] blendWeights, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, blendIndices, Utils.ConvertCollection(blendWeights), Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv));
|
||||
@@ -254,7 +254,7 @@ namespace FlaxEngine
|
||||
/// <param name="normals">The normal vectors (per vertex).</param>
|
||||
/// <param name="tangents">The tangent vectors (per vertex). Use null to compute them from normal vectors.</param>
|
||||
/// <param name="uv">The texture coordinates (per vertex).</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use UpdateMesh with Float3 and Float2 parameters instead")]
|
||||
public void UpdateMesh(Vector3[] vertices, ushort[] triangles, Int4[] blendIndices, Vector4[] blendWeights, Vector3[] normals = null, Vector3[] tangents = null, Vector2[] uv = null)
|
||||
{
|
||||
UpdateMesh(Utils.ConvertCollection(vertices), triangles, blendIndices, Utils.ConvertCollection(blendWeights), Utils.ConvertCollection(normals), Utils.ConvertCollection(tangents), Utils.ConvertCollection(uv));
|
||||
|
||||
@@ -164,13 +164,13 @@ public:
|
||||
/// [Deprecated in v1.5]
|
||||
/// </summary>
|
||||
API_PROPERTY(Attributes="HideInEditor, NoSerialize, NoAnimate")
|
||||
DEPRECATED const String& GetTag() const;
|
||||
DEPRECATED("Use HasTag instead") const String& GetTag() const;
|
||||
|
||||
/// <summary>
|
||||
/// Sets the name of the tag.
|
||||
/// [Deprecated in v1.5]
|
||||
/// </summary>
|
||||
API_PROPERTY() DEPRECATED void SetTag(const StringView& value);
|
||||
API_PROPERTY() DEPRECATED("Use AddTag instead") void SetTag(const StringView& value);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the actor name.
|
||||
|
||||
@@ -160,7 +160,7 @@ public:
|
||||
/// [Deprecated on 26.10.2022, expires on 26.10.2024]
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(110), DefaultValue(ShadowsCastingMode.All), EditorDisplay(\"Skinned Model\")")
|
||||
DEPRECATED ShadowsCastingMode ShadowsMode = ShadowsCastingMode::All;
|
||||
DEPRECATED() ShadowsCastingMode ShadowsMode = ShadowsCastingMode::All;
|
||||
|
||||
/// <summary>
|
||||
/// The animation root motion apply target. If not specified the animated model will apply it itself.
|
||||
|
||||
@@ -160,7 +160,7 @@ public:
|
||||
/// <param name="point">The source point.</param>
|
||||
/// <param name="result">The result position on the navmesh (valid only if method returns true).</param>
|
||||
/// <returns>True if found valid location on the navmesh, otherwise false.</returns>
|
||||
API_FUNCTION() DEPRECATED bool ProjectPoint(const Vector3& point, API_PARAM(Out) Vector3& result) const
|
||||
API_FUNCTION() DEPRECATED("Use FindClosestPoint instead") bool ProjectPoint(const Vector3& point, API_PARAM(Out) Vector3& result) const
|
||||
{
|
||||
return FindClosestPoint(point, result);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
/// <param name="point">The source point.</param>
|
||||
/// <param name="result">The result position on the navmesh (valid only if method returns true).</param>
|
||||
/// <returns>True if found valid location on the navmesh, otherwise false.</returns>
|
||||
API_FUNCTION() DEPRECATED static bool ProjectPoint(const Vector3& point, API_PARAM(Out) Vector3& result)
|
||||
API_FUNCTION() DEPRECATED("Use FindClosestPoint instead") static bool ProjectPoint(const Vector3& point, API_PARAM(Out) Vector3& result)
|
||||
{
|
||||
return FindClosestPoint(point, result);
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ class ScriptingObject;
|
||||
/// Network driver implementations enum.
|
||||
/// [Deprecated in v1.3]
|
||||
/// </summary>
|
||||
API_ENUM(Namespace="FlaxEngine.Networking") enum class DEPRECATED NetworkDriverType
|
||||
API_ENUM(Namespace="FlaxEngine.Networking") enum class DEPRECATED() NetworkDriverType
|
||||
{
|
||||
/// <summary>
|
||||
/// Invalid network driver implementation.
|
||||
@@ -36,7 +36,7 @@ API_STRUCT(Namespace="FlaxEngine.Networking") struct FLAXENGINE_API NetworkConfi
|
||||
/// [Deprecated in v1.3]
|
||||
/// </summary>
|
||||
API_FIELD()
|
||||
DEPRECATED NetworkDriverType NetworkDriverType;
|
||||
DEPRECATED("Use NetworkDriver field instead") NetworkDriverType NetworkDriverType;
|
||||
|
||||
/// <summary>
|
||||
/// The network driver instance (implements INetworkDriver) that will be used to create and manage the peer, send and receive messages.
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace FlaxEngine
|
||||
/// <param name="convexFlags">The convex mesh generation flags.</param>
|
||||
/// <param name="convexVertexLimit">The convex mesh vertex limit. Use values in range [8;255]</param>
|
||||
/// <returns>True if failed, otherwise false.</returns>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use CookCollision with Float3 and Float2 parameters instead")]
|
||||
public bool CookCollision(CollisionDataType type, Vector3[] vertices, uint[] triangles, ConvexMeshGenerationFlags convexFlags = ConvexMeshGenerationFlags.None, int convexVertexLimit = 255)
|
||||
{
|
||||
if (vertices == null)
|
||||
@@ -43,7 +43,7 @@ namespace FlaxEngine
|
||||
/// <param name="convexFlags">The convex mesh generation flags.</param>
|
||||
/// <param name="convexVertexLimit">The convex mesh vertex limit. Use values in range [8;255]</param>
|
||||
/// <returns>True if failed, otherwise false.</returns>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use CookCollision with Float3 and Float2 parameters instead")]
|
||||
public bool CookCollision(CollisionDataType type, Vector3[] vertices, int[] triangles, ConvexMeshGenerationFlags convexFlags = ConvexMeshGenerationFlags.None, int convexVertexLimit = 255)
|
||||
{
|
||||
if (vertices == null)
|
||||
@@ -60,7 +60,7 @@ namespace FlaxEngine
|
||||
/// </summary>
|
||||
/// <param name="vertexBuffer">The output vertex buffer.</param>
|
||||
/// <param name="indexBuffer">The output index buffer.</param>
|
||||
[Obsolete("Deprecated in 1.4, use overload with Float3 and Float2 parameters")]
|
||||
[Obsolete("Use ExtractGeometry with Float3 and Float2 parameters instead")]
|
||||
public void ExtractGeometry(out Vector3[] vertexBuffer, out int[] indexBuffer)
|
||||
{
|
||||
ExtractGeometry(out Float3[] tmp, out indexBuffer);
|
||||
|
||||
@@ -753,7 +753,7 @@ public:
|
||||
/// <param name="hiddenWindow">True if start process with hidden window</param>
|
||||
/// <param name="waitForEnd">True if wait for process competition</param>
|
||||
/// <returns>Retrieves the termination status of the specified process. Valid only if processed ended.</returns>
|
||||
API_FUNCTION() DEPRECATED static int32 StartProcess(const StringView& filename, const StringView& args, const StringView& workingDir, bool hiddenWindow = false, bool waitForEnd = false);
|
||||
API_FUNCTION() DEPRECATED("Use CreateProcess instead") static int32 StartProcess(const StringView& filename, const StringView& args, const StringView& workingDir, bool hiddenWindow = false, bool waitForEnd = false);
|
||||
|
||||
/// <summary>
|
||||
/// Starts a new process (runs commandline). Waits for it's end and captures its output.
|
||||
@@ -763,7 +763,7 @@ public:
|
||||
/// <param name="workingDir">The custom path of the working directory.</param>
|
||||
/// <param name="hiddenWindow">True if start process with hidden window.</param>
|
||||
/// <returns>Retrieves the termination status of the specified process. Valid only if processed ended.</returns>
|
||||
API_FUNCTION() DEPRECATED static int32 RunProcess(const StringView& cmdLine, const StringView& workingDir, bool hiddenWindow = true);
|
||||
API_FUNCTION() DEPRECATED("Use CreateProcess instead") static int32 RunProcess(const StringView& cmdLine, const StringView& workingDir, bool hiddenWindow = true);
|
||||
|
||||
/// <summary>
|
||||
/// Starts a new process (runs commandline). Waits for it's end and captures its output.
|
||||
@@ -774,7 +774,7 @@ public:
|
||||
/// <param name="environment">The process environment variables. If null the current process environment is used.</param>
|
||||
/// <param name="hiddenWindow">True if start process with hidden window.</param>
|
||||
/// <returns>Retrieves the termination status of the specified process. Valid only if processed ended.</returns>
|
||||
API_FUNCTION() DEPRECATED static int32 RunProcess(const StringView& cmdLine, const StringView& workingDir, const Dictionary<String, String, HeapAllocation>& environment, bool hiddenWindow = true);
|
||||
API_FUNCTION() DEPRECATED("Use CreateProcess instead") static int32 RunProcess(const StringView& cmdLine, const StringView& workingDir, const Dictionary<String, String, HeapAllocation>& environment, bool hiddenWindow = true);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new process.
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace FlaxEngine
|
||||
/// <param name="source">The source location.</param>
|
||||
/// <param name="destination">The destination location.</param>
|
||||
/// <param name="length">The length (amount of bytes to copy).</param>
|
||||
[Obsolete("Use MemoryCopy with long length and source/destination swapped to match C++ API.")]
|
||||
[Obsolete("Use MemoryCopy with long length and source/destination parameters swapped instead")]
|
||||
public static void MemoryCopy(IntPtr source, IntPtr destination, int length)
|
||||
{
|
||||
// [Deprecated on 30.05.2021, expires on 30.05.2022]
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Flax.Build.Bindings
|
||||
public string Attributes;
|
||||
public string[] Comment;
|
||||
public bool IsInBuild;
|
||||
public bool IsDeprecated;
|
||||
public string DeprecatedMessage;
|
||||
public TypeInfo MarshalAs;
|
||||
internal bool IsInited;
|
||||
internal TypedefInfo Instigator;
|
||||
@@ -34,6 +34,7 @@ namespace Flax.Build.Bindings
|
||||
public virtual bool IsScriptingObject => false;
|
||||
public virtual bool IsPod => false;
|
||||
public virtual bool SkipGeneration => IsInBuild;
|
||||
public virtual bool IsDeprecated => DeprecatedMessage != null;
|
||||
|
||||
public FileInfo File
|
||||
{
|
||||
@@ -154,7 +155,7 @@ namespace Flax.Build.Bindings
|
||||
BindingsGenerator.Write(writer, Comment);
|
||||
BindingsGenerator.Write(writer, MarshalAs);
|
||||
writer.Write(IsInBuild);
|
||||
writer.Write(IsDeprecated);
|
||||
BindingsGenerator.Write(writer, DeprecatedMessage);
|
||||
BindingsGenerator.Write(writer, Tags);
|
||||
BindingsGenerator.Write(writer, Children);
|
||||
}
|
||||
@@ -168,7 +169,7 @@ namespace Flax.Build.Bindings
|
||||
Comment = BindingsGenerator.Read(reader, Comment);
|
||||
MarshalAs = BindingsGenerator.Read(reader, MarshalAs);
|
||||
IsInBuild = reader.ReadBoolean();
|
||||
IsDeprecated = reader.ReadBoolean();
|
||||
DeprecatedMessage = BindingsGenerator.Read(reader, DeprecatedMessage);
|
||||
Tags = BindingsGenerator.Read(reader, Tags);
|
||||
Children = BindingsGenerator.Read(reader, Children);
|
||||
|
||||
|
||||
@@ -829,7 +829,7 @@ namespace Flax.Build.Bindings
|
||||
}
|
||||
}
|
||||
|
||||
private static void GenerateCSharpAttributes(BuildData buildData, StringBuilder contents, string indent, ApiTypeInfo apiTypeInfo, string attributes = null, string[] comment = null, bool canUseTooltip = false, bool useUnmanaged = false, string defaultValue = null, bool isDeprecated = false, TypeInfo defaultValueType = null)
|
||||
private static void GenerateCSharpAttributes(BuildData buildData, StringBuilder contents, string indent, ApiTypeInfo apiTypeInfo, string attributes = null, string[] comment = null, bool canUseTooltip = false, bool useUnmanaged = false, string defaultValue = null, string deprecatedMessage = null, TypeInfo defaultValueType = null)
|
||||
{
|
||||
#if AUTO_DOC_TOOLTIPS
|
||||
var writeTooltip = true;
|
||||
@@ -853,10 +853,15 @@ namespace Flax.Build.Bindings
|
||||
// Skip boilerplate code when using debugger
|
||||
//contents.Append(indent).AppendLine("[System.Diagnostics.DebuggerStepThrough]");
|
||||
}
|
||||
if (isDeprecated || apiTypeInfo.IsDeprecated)
|
||||
if (deprecatedMessage != null || apiTypeInfo.IsDeprecated)
|
||||
{
|
||||
// Deprecated type
|
||||
contents.Append(indent).AppendLine("[Obsolete]");
|
||||
if (!string.IsNullOrEmpty(apiTypeInfo.DeprecatedMessage))
|
||||
contents.Append(indent).AppendLine($"[Obsolete(\"{apiTypeInfo.DeprecatedMessage}\")]");
|
||||
else if (!string.IsNullOrEmpty(deprecatedMessage))
|
||||
contents.Append(indent).AppendLine($"[Obsolete(\"{deprecatedMessage}\")]");
|
||||
else
|
||||
contents.Append(indent).AppendLine("[Obsolete]");
|
||||
}
|
||||
|
||||
#if AUTO_DOC_TOOLTIPS
|
||||
@@ -901,12 +906,12 @@ namespace Flax.Build.Bindings
|
||||
|
||||
private static void GenerateCSharpAttributes(BuildData buildData, StringBuilder contents, string indent, ApiTypeInfo apiTypeInfo, bool useUnmanaged, string defaultValue = null, TypeInfo defaultValueType = null)
|
||||
{
|
||||
GenerateCSharpAttributes(buildData, contents, indent, apiTypeInfo, apiTypeInfo.Attributes, apiTypeInfo.Comment, true, useUnmanaged, defaultValue, false, defaultValueType);
|
||||
GenerateCSharpAttributes(buildData, contents, indent, apiTypeInfo, apiTypeInfo.Attributes, apiTypeInfo.Comment, true, useUnmanaged, defaultValue, null, defaultValueType);
|
||||
}
|
||||
|
||||
private static void GenerateCSharpAttributes(BuildData buildData, StringBuilder contents, string indent, ApiTypeInfo apiTypeInfo, MemberInfo memberInfo, bool useUnmanaged, string defaultValue = null, TypeInfo defaultValueType = null)
|
||||
{
|
||||
GenerateCSharpAttributes(buildData, contents, indent, apiTypeInfo, memberInfo.Attributes, memberInfo.Comment, true, useUnmanaged, defaultValue, memberInfo.IsDeprecated, defaultValueType);
|
||||
GenerateCSharpAttributes(buildData, contents, indent, apiTypeInfo, memberInfo.Attributes, memberInfo.Comment, true, useUnmanaged, defaultValue, memberInfo.DeprecatedMessage, defaultValueType);
|
||||
}
|
||||
|
||||
private static bool GenerateCSharpStructureUseDefaultInitialize(BuildData buildData, StructureInfo structureInfo)
|
||||
@@ -1426,6 +1431,7 @@ namespace Flax.Build.Bindings
|
||||
{{GenerateCSharpAccessLevel(classInfo.Access)}}static class {{marshallerName}}
|
||||
{
|
||||
#pragma warning disable 1591
|
||||
#pragma warning disable 618
|
||||
#if FLAX_EDITOR
|
||||
[HideInEditor]
|
||||
#endif
|
||||
@@ -1462,6 +1468,7 @@ namespace Flax.Build.Bindings
|
||||
|
||||
internal static {{classInfo.Name}} ToManaged(IntPtr managed) => Unsafe.As<{{classInfo.Name}}>(ManagedHandleMarshaller.ToManaged(managed));
|
||||
internal static IntPtr ToNative({{classInfo.Name}} managed) => ManagedHandleMarshaller.ToNative(managed);
|
||||
#pragma warning restore 618
|
||||
#pragma warning restore 1591
|
||||
}
|
||||
""").Split(new char[] { '\n' })));
|
||||
@@ -1759,6 +1766,7 @@ namespace Flax.Build.Bindings
|
||||
{{GenerateCSharpAccessLevel(structureInfo.Access)}}static unsafe class {{marshallerName}}
|
||||
{
|
||||
#pragma warning disable 1591
|
||||
#pragma warning disable 618
|
||||
{{structContents.Replace("\n", "\n" + " ").ToString().TrimEnd()}}
|
||||
|
||||
{{InsertHideInEditorSection()}}
|
||||
@@ -1805,6 +1813,7 @@ namespace Flax.Build.Bindings
|
||||
{
|
||||
{{toNativeContent.Replace("\n", "\n" + " ").ToString().TrimEnd()}}
|
||||
}
|
||||
#pragma warning restore 618
|
||||
#pragma warning restore 1591
|
||||
}
|
||||
""").Split(new char[] { '\n' })));
|
||||
@@ -2165,8 +2174,10 @@ namespace Flax.Build.Bindings
|
||||
contents.Append(indent).AppendLine($"public static class {marshallerName}");
|
||||
contents.Append(indent).AppendLine("{");
|
||||
contents.AppendLine("#pragma warning disable 1591");
|
||||
contents.AppendLine("#pragma warning disable 618");
|
||||
contents.Append(indent).Append(" ").AppendLine($"internal static {interfaceInfo.Name} ConvertToManaged(IntPtr unmanaged) => ({interfaceInfo.Name})ManagedHandleMarshaller.ConvertToManaged(unmanaged);");
|
||||
contents.Append(indent).Append(" ").AppendLine($"internal static IntPtr ConvertToUnmanaged({interfaceInfo.Name} managed) => ManagedHandleMarshaller.ConvertToUnmanaged(managed);");
|
||||
contents.AppendLine("#pragma warning restore 618");
|
||||
contents.AppendLine("#pragma warning restore 1591");
|
||||
contents.Append(indent).AppendLine("}");
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Flax.Build.Bindings
|
||||
partial class BindingsGenerator
|
||||
{
|
||||
private static readonly Dictionary<string, Type> TypeCache = new Dictionary<string, Type>();
|
||||
private const int CacheVersion = 22;
|
||||
private const int CacheVersion = 23;
|
||||
|
||||
internal static void Write(BinaryWriter writer, string e)
|
||||
{
|
||||
|
||||
@@ -589,7 +589,13 @@ namespace Flax.Build.Bindings
|
||||
token = context.Tokenizer.NextToken();
|
||||
if (!desc.IsDeprecated && token.Value == "DEPRECATED")
|
||||
{
|
||||
desc.IsDeprecated = true;
|
||||
token = context.Tokenizer.NextToken();
|
||||
string message = "";
|
||||
if (token.Type == TokenType.LeftParent)
|
||||
context.Tokenizer.SkipUntil(TokenType.RightParent, out message);
|
||||
else
|
||||
context.Tokenizer.PreviousToken();
|
||||
desc.DeprecatedMessage = message.Trim('"');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -698,7 +704,13 @@ namespace Flax.Build.Bindings
|
||||
token = context.Tokenizer.NextToken();
|
||||
if (!desc.IsDeprecated && token.Value == "DEPRECATED")
|
||||
{
|
||||
desc.IsDeprecated = true;
|
||||
token = context.Tokenizer.NextToken();
|
||||
string message = "";
|
||||
if (token.Type == TokenType.LeftParent)
|
||||
context.Tokenizer.SkipUntil(TokenType.RightParent, out message);
|
||||
else
|
||||
context.Tokenizer.PreviousToken();
|
||||
desc.DeprecatedMessage = message.Trim('"');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -797,8 +809,14 @@ namespace Flax.Build.Bindings
|
||||
}
|
||||
else if (!desc.IsDeprecated && token.Value == "DEPRECATED")
|
||||
{
|
||||
desc.IsDeprecated = true;
|
||||
context.Tokenizer.NextToken();
|
||||
token = context.Tokenizer.NextToken();
|
||||
string message = "";
|
||||
if (token.Type == TokenType.LeftParent)
|
||||
{
|
||||
context.Tokenizer.SkipUntil(TokenType.RightParent, out message);
|
||||
context.Tokenizer.NextToken();
|
||||
}
|
||||
desc.DeprecatedMessage = message.Trim('"');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -960,7 +978,7 @@ namespace Flax.Build.Bindings
|
||||
propertyInfo.Getter = functionInfo;
|
||||
else
|
||||
propertyInfo.Setter = functionInfo;
|
||||
propertyInfo.IsDeprecated |= functionInfo.IsDeprecated;
|
||||
propertyInfo.DeprecatedMessage = functionInfo.DeprecatedMessage;
|
||||
propertyInfo.IsHidden |= functionInfo.IsHidden;
|
||||
|
||||
if (propertyInfo.Getter != null && propertyInfo.Setter != null)
|
||||
@@ -1025,7 +1043,13 @@ namespace Flax.Build.Bindings
|
||||
token = context.Tokenizer.NextToken();
|
||||
if (!desc.IsDeprecated && token.Value == "DEPRECATED")
|
||||
{
|
||||
desc.IsDeprecated = true;
|
||||
token = context.Tokenizer.NextToken();
|
||||
string message = "";
|
||||
if (token.Type == TokenType.LeftParent)
|
||||
context.Tokenizer.SkipUntil(TokenType.RightParent, out message);
|
||||
else
|
||||
context.Tokenizer.PreviousToken();
|
||||
desc.DeprecatedMessage = message.Trim('"');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1300,8 +1324,14 @@ namespace Flax.Build.Bindings
|
||||
}
|
||||
else if (!desc.IsDeprecated && token.Value == "DEPRECATED")
|
||||
{
|
||||
desc.IsDeprecated = true;
|
||||
context.Tokenizer.NextToken();
|
||||
token = context.Tokenizer.NextToken();
|
||||
string message = "";
|
||||
if (token.Type == TokenType.LeftParent)
|
||||
{
|
||||
context.Tokenizer.SkipUntil(TokenType.RightParent, out message);
|
||||
context.Tokenizer.NextToken();
|
||||
}
|
||||
desc.DeprecatedMessage = message.Trim('"');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -14,12 +14,14 @@ namespace Flax.Build.Bindings
|
||||
public string[] Comment;
|
||||
public bool IsStatic;
|
||||
public bool IsConstexpr;
|
||||
public bool IsDeprecated;
|
||||
public string DeprecatedMessage;
|
||||
public bool IsHidden;
|
||||
public AccessLevel Access;
|
||||
public string Attributes;
|
||||
public Dictionary<string, string> Tags;
|
||||
|
||||
public virtual bool IsDeprecated => DeprecatedMessage != null;
|
||||
|
||||
public bool HasAttribute(string name)
|
||||
{
|
||||
return Attributes != null && Attributes.Contains(name);
|
||||
@@ -46,7 +48,7 @@ namespace Flax.Build.Bindings
|
||||
BindingsGenerator.Write(writer, Comment);
|
||||
writer.Write(IsStatic);
|
||||
writer.Write(IsConstexpr);
|
||||
writer.Write(IsDeprecated);
|
||||
BindingsGenerator.Write(writer, DeprecatedMessage);
|
||||
writer.Write(IsHidden);
|
||||
writer.Write((byte)Access);
|
||||
BindingsGenerator.Write(writer, Attributes);
|
||||
@@ -59,7 +61,7 @@ namespace Flax.Build.Bindings
|
||||
Comment = BindingsGenerator.Read(reader, Comment);
|
||||
IsStatic = reader.ReadBoolean();
|
||||
IsConstexpr = reader.ReadBoolean();
|
||||
IsDeprecated = reader.ReadBoolean();
|
||||
DeprecatedMessage = BindingsGenerator.Read(reader, DeprecatedMessage);
|
||||
IsHidden = reader.ReadBoolean();
|
||||
Access = (AccessLevel)reader.ReadByte();
|
||||
Attributes = BindingsGenerator.Read(reader, Attributes);
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace Flax.Build.Bindings
|
||||
if (Comment != null && Comment.Length != 0)
|
||||
typedef.Comment = Comment;
|
||||
typedef.IsInBuild |= IsInBuild;
|
||||
typedef.IsDeprecated |= IsDeprecated;
|
||||
typedef.DeprecatedMessage = DeprecatedMessage;
|
||||
if (typedef is ClassStructInfo typedefClassStruct && typedefClassStruct.IsTemplate)
|
||||
{
|
||||
// Inflate template type
|
||||
|
||||
@@ -618,6 +618,9 @@ namespace Flax.Build.Platforms
|
||||
commonArgs.Add(string.Format("/FU\"{0}\\platform.winmd\"", dir));
|
||||
}
|
||||
}
|
||||
|
||||
// Preprocessor conformance mode
|
||||
commonArgs.Add("/Zc:preprocessor");
|
||||
}
|
||||
|
||||
// Add preprocessor definitions
|
||||
|
||||
Reference in New Issue
Block a user