Minor fixes
This commit is contained in:
@@ -8,6 +8,7 @@ class ScriptingObject;
|
||||
|
||||
/// <summary>
|
||||
/// Network driver implementations enum.
|
||||
/// [Deprecated in v1.3]
|
||||
/// </summary>
|
||||
API_ENUM(Namespace="FlaxEngine.Networking") enum class DEPRECATED NetworkDriverType
|
||||
{
|
||||
@@ -32,6 +33,7 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkConfig);
|
||||
/// <summary>
|
||||
/// The network driver that will be used to create the peer.
|
||||
/// To allow two peers to connect, they must use the same host.
|
||||
/// [Deprecated in v1.3]
|
||||
/// </summary>
|
||||
API_FIELD()
|
||||
DEPRECATED NetworkDriverType NetworkDriverType = NetworkDriverType::ENet;
|
||||
|
||||
@@ -69,6 +69,7 @@ MClass::MClass(const MAssembly* parentAssembly, MonoClass* monoClass, const MStr
|
||||
|
||||
MClass::~MClass()
|
||||
{
|
||||
#if !COMPILE_WITHOUT_CSHARP
|
||||
#if USE_MONO
|
||||
if (_attrInfo)
|
||||
mono_custom_attrs_free((MonoCustomAttrInfo*)_attrInfo);
|
||||
@@ -78,6 +79,7 @@ MClass::~MClass()
|
||||
_methods.ClearDelete();
|
||||
_attributes.ClearDelete();
|
||||
_events.ClearDelete();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool MClass::IsGeneric() const
|
||||
@@ -397,7 +399,7 @@ MObject* MClass::GetAttribute(MClass* monoClass)
|
||||
MonoCustomAttrInfo* attrInfo = GET_CUSTOM_ATTR();
|
||||
return attrInfo ? mono_custom_attrs_get_attr(attrInfo, monoClass->GetNative()) : nullptr;
|
||||
#else
|
||||
return false;
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ MObject* MEvent::GetAttribute(MClass* monoClass) const
|
||||
mono_custom_attrs_free(attrInfo);
|
||||
return foundAttr;
|
||||
#else
|
||||
return false;
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -192,7 +192,7 @@ MObject* MMethod::GetAttribute(MClass* monoClass) const
|
||||
mono_custom_attrs_free(attrInfo);
|
||||
return foundAttr;
|
||||
#else
|
||||
return false;
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Engine/Platform/Defines.h"
|
||||
|
||||
// Forward declarations
|
||||
class Scripting;
|
||||
struct ScriptingType;
|
||||
|
||||
Reference in New Issue
Block a user