You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
This new version does not support the following type arguments: - Generic types - Array of Godot Object (Godot.Object[]) or derived types The new implementation uses delegate pointers to call the Variant conversion methods. We do type checking only once in the static constructor to get the conversion delegates. Now, we no longer need to do type checking every time, and we no longer have to box value types. This is the best implementation I could come up with, as C# generics don't support anything similar to C++ template specializations.
137 lines
6.5 KiB
XML
137 lines
6.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<ProjectGuid>{AEBF0036-DA76-4341-B651-A3F2856AB2FA}</ProjectGuid>
|
|
<OutputPath>bin/$(Configuration)</OutputPath>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<RootNamespace>Godot</RootNamespace>
|
|
<TargetFramework>net6.0</TargetFramework>
|
|
<DocumentationFile>$(OutputPath)/$(AssemblyName).xml</DocumentationFile>
|
|
<EnableDefaultItems>false</EnableDefaultItems>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<LangVersion>10</LangVersion>
|
|
|
|
<AnalysisMode>Recommended</AnalysisMode>
|
|
|
|
<!-- Disabled temporarily as it pollutes the warnings, but we need to document public APIs. -->
|
|
<NoWarn>CS1591</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<Description>Godot C# Core API.</Description>
|
|
<Authors>Godot Engine contributors</Authors>
|
|
|
|
<PackageId>GodotSharp</PackageId>
|
|
<Version>4.0.0</Version>
|
|
<PackageVersion>$(PackageVersion_GodotSharp)</PackageVersion>
|
|
<RepositoryUrl>https://github.com/godotengine/godot/tree/master/modules/mono/glue/GodotSharp/GodotSharp</RepositoryUrl>
|
|
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<!-- SdkPackageVersions.props for easy access -->
|
|
<None Include="$(GodotSdkPackageVersionsFilePath)">
|
|
<Link>SdkPackageVersions.props</Link>
|
|
</None>
|
|
</ItemGroup>
|
|
<PropertyGroup>
|
|
<DefineConstants>$(DefineConstants);GODOT</DefineConstants>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="ReflectionAnalyzers" Version="0.1.22-dev" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers" />
|
|
<!--PackageReference Include="IDisposableAnalyzers" Version="3.4.13" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers" /-->
|
|
</ItemGroup>
|
|
<!-- Targets for generating Godot.NativeInterop.CustomUnsafe -->
|
|
<Import Project="GenerateGodotCustomUnsafe.targets" />
|
|
<ItemGroup>
|
|
<None Include="GenerateGodotCustomUnsafe.targets" />
|
|
</ItemGroup>
|
|
<!-- Sources -->
|
|
<ItemGroup>
|
|
<Compile Include="Core\AABB.cs" />
|
|
<Compile Include="Core\Bridge\GodotSerializationInfo.cs" />
|
|
<Compile Include="Core\Bridge\MethodInfo.cs" />
|
|
<Compile Include="Core\CustomGCHandle.cs" />
|
|
<Compile Include="Core\Array.cs" />
|
|
<Compile Include="Core\Attributes\AssemblyHasScriptsAttribute.cs" />
|
|
<Compile Include="Core\Attributes\ExportAttribute.cs" />
|
|
<Compile Include="Core\Attributes\RPCAttribute.cs" />
|
|
<Compile Include="Core\Attributes\ScriptPathAttribute.cs" />
|
|
<Compile Include="Core\Attributes\SignalAttribute.cs" />
|
|
<Compile Include="Core\Attributes\ToolAttribute.cs" />
|
|
<Compile Include="Core\Basis.cs" />
|
|
<Compile Include="Core\Bridge\CSharpInstanceBridge.cs" />
|
|
<Compile Include="Core\Bridge\GCHandleBridge.cs" />
|
|
<Compile Include="Core\Bridge\AlcReloadCfg.cs" />
|
|
<Compile Include="Core\Bridge\ManagedCallbacks.cs" />
|
|
<Compile Include="Core\Bridge\PropertyInfo.cs" />
|
|
<Compile Include="Core\Bridge\ScriptManagerBridge.cs" />
|
|
<Compile Include="Core\Bridge\ScriptManagerBridge.types.cs" />
|
|
<Compile Include="Core\Callable.cs" />
|
|
<Compile Include="Core\Color.cs" />
|
|
<Compile Include="Core\Colors.cs" />
|
|
<Compile Include="Core\DebuggingUtils.cs" />
|
|
<Compile Include="Core\DelegateUtils.cs" />
|
|
<Compile Include="Core\Dictionary.cs" />
|
|
<Compile Include="Core\Dispatcher.cs" />
|
|
<Compile Include="Core\Extensions\NodeExtensions.cs" />
|
|
<Compile Include="Core\Extensions\ObjectExtensions.cs" />
|
|
<Compile Include="Core\Extensions\PackedSceneExtensions.cs" />
|
|
<Compile Include="Core\Extensions\ResourceLoaderExtensions.cs" />
|
|
<Compile Include="Core\GD.cs" />
|
|
<Compile Include="Core\GodotSynchronizationContext.cs" />
|
|
<Compile Include="Core\GodotTaskScheduler.cs" />
|
|
<Compile Include="Core\GodotTraceListener.cs" />
|
|
<Compile Include="Core\GodotUnhandledExceptionEvent.cs" />
|
|
<Compile Include="Core\DisposablesTracker.cs" />
|
|
<Compile Include="Core\Interfaces\IAwaitable.cs" />
|
|
<Compile Include="Core\Interfaces\IAwaiter.cs" />
|
|
<Compile Include="Core\Interfaces\ISerializationListener.cs" />
|
|
<Compile Include="Core\Mathf.cs" />
|
|
<Compile Include="Core\MathfEx.cs" />
|
|
<Compile Include="Core\NativeInterop\ExceptionUtils.cs" />
|
|
<Compile Include="Core\NativeInterop\GodotDllImportResolver.cs" />
|
|
<Compile Include="Core\NativeInterop\InteropUtils.cs" />
|
|
<Compile Include="Core\NativeInterop\NativeFuncs.extended.cs" />
|
|
<Compile Include="Core\NativeInterop\NativeVariantPtrArgs.cs" />
|
|
<Compile Include="Core\NativeInterop\VariantConversionCallbacks.cs" />
|
|
<Compile Include="Core\NativeInterop\VariantSpanHelpers.cs" />
|
|
<Compile Include="Core\NativeInterop\VariantUtils.cs" />
|
|
<Compile Include="Core\NodePath.cs" />
|
|
<Compile Include="Core\Object.base.cs" />
|
|
<Compile Include="Core\Object.exceptions.cs" />
|
|
<Compile Include="Core\Plane.cs" />
|
|
<Compile Include="Core\Projection.cs" />
|
|
<Compile Include="Core\Quaternion.cs" />
|
|
<Compile Include="Core\Rect2.cs" />
|
|
<Compile Include="Core\Rect2i.cs" />
|
|
<Compile Include="Core\ReflectionUtils.cs" />
|
|
<Compile Include="Core\RID.cs" />
|
|
<Compile Include="Core\NativeInterop\NativeFuncs.cs" />
|
|
<Compile Include="Core\NativeInterop\InteropStructs.cs" />
|
|
<Compile Include="Core\NativeInterop\Marshaling.cs" />
|
|
<Compile Include="Core\SignalInfo.cs" />
|
|
<Compile Include="Core\SignalAwaiter.cs" />
|
|
<Compile Include="Core\StringExtensions.cs" />
|
|
<Compile Include="Core\StringName.cs" />
|
|
<Compile Include="Core\Transform2D.cs" />
|
|
<Compile Include="Core\Transform3D.cs" />
|
|
<Compile Include="Core\Vector2.cs" />
|
|
<Compile Include="Core\Vector2i.cs" />
|
|
<Compile Include="Core\Vector3.cs" />
|
|
<Compile Include="Core\Vector3i.cs" />
|
|
<Compile Include="Core\Vector4.cs" />
|
|
<Compile Include="Core\Vector4i.cs" />
|
|
<Compile Include="GlobalUsings.cs" />
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
<Compile Include="Variant.cs" />
|
|
</ItemGroup>
|
|
<!--
|
|
We import a props file with auto-generated includes. This works well with Rider.
|
|
However, Visual Studio and MonoDevelop won't list them in the solution explorer.
|
|
We can't use wildcards as there may be undesired old files still hanging around.
|
|
Fortunately code completion, go to definition and such still work.
|
|
-->
|
|
<Import Project="Generated\GeneratedIncludes.props" />
|
|
</Project>
|