-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NetStandard' of https://github.com/vchelaru/FlatRedBall …
…into NetStandard
- Loading branch information
Showing
43 changed files
with
2,355 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Engines/FlatRedBallXNA/FlatRedBall/ExtensionMethods/EnumerableExtensionMethods.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.CompilerServices; | ||
using System.Text; | ||
|
||
namespace FlatRedBall.ExtensionMethods | ||
{ | ||
public static class EnumerableExtensionMethods | ||
{ | ||
public static void AddRange<T>(this HashSet<T> hashSet, IEnumerable<T> enumerable) | ||
{ | ||
foreach(var item in enumerable) | ||
{ | ||
hashSet.Add(item); | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
Engines/FlatRedBallXNA/FlatRedBall/FlatRedBallAndroid/Resources/Resource.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
Engines/FlatRedBallXNA/FlatRedBall/Utilities/TaskHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FlatRedBall.Utilities | ||
{ | ||
public static class TaskHelper | ||
{ | ||
public static async Task InSequence(params Func<Task>[] tasks) | ||
{ | ||
foreach(var task in tasks) | ||
{ | ||
await task(); | ||
} | ||
} | ||
|
||
public static async Task InSequence(params Task[] tasks) | ||
{ | ||
foreach(var task in tasks) | ||
{ | ||
await task; | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
Engines/FlatRedBallXNA/FlatRedBallAndroid/FlatRedBallAndroid.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0-android</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<DefineConstants>$(DefineConstants);FRB_XNA;ANDROID;MONOGAME;XNA4;MONOGAME_381</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<DefineConstants>$(DefineConstants);FRB_XNA;ANDROID;MONOGAME;XNA4;MONOGAME_381</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\FlatRedBall\Input\Keyboard.Android.cs" Link="Input\Keyboard.Android.cs" /> | ||
<Compile Include="..\FlatRedBall\IO\FileManager.IsolatedStorage.cs" Link="IO\FileManager.IsolatedStorage.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="IO\" /> | ||
<Folder Include="Input\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MonoGame.Framework.Android" Version="3.8.1.303" /> | ||
</ItemGroup> | ||
|
||
<Import Project="..\FlatRedBall\FlatRedBallShared.projitems" Label="Shared" /> | ||
|
||
</Project> |
Oops, something went wrong.