Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/upstream #2

Merged
merged 90 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
7b8be4c
make WasKey/ButtonJustDown/Up obsolete and replace with clarified ver…
Sep 4, 2023
0fe364a
fix allocating WasAnyKeyJustDown method; add GetPressedKeys non-alloc…
Oct 11, 2023
8d95d49
Check for undefined layer and throw on collision actor insertion
safoster88 Feb 17, 2024
6cc4b6c
Add test coverage
safoster88 Feb 17, 2024
88a51a6
Add OrientedBoundingRectangle type
toore Sep 5, 2022
db807cd
Add Points property to OrientedBoundingRectangle
toore Sep 6, 2022
b85f526
Ignore Visual Studio cache
toore Feb 7, 2024
135507e
Be explicit about conversion of geometries
toore Sep 19, 2022
82303e4
OrientedBoundedRectangle implements ShapeF
toore Sep 19, 2022
c1873c2
Add ascii art to describe intersection tests
toore Nov 21, 2022
0a2ce12
Update circle and oriented bound box intersection
toore Aug 6, 2023
9007c6b
Update dependencies
toore Feb 11, 2024
1d87872
Add Intersects method for OBB
toore Feb 23, 2024
6a380e3
Rename to OrientedRectangle
toore Feb 29, 2024
bf1159d
Properly intersect circle and oriented rect
toore Mar 8, 2024
377df89
Calc coll vector for circle and oriented rect
toore Mar 10, 2024
a342fed
Calc coll vector for oriented rects
toore Mar 15, 2024
a19b1e6
Merge pull request #839 from safoster88/feature/check_for_undefined_l…
Gandifil Apr 28, 2024
0012e0e
Merge pull request #840 from toore/feature-oriented-bounding-rectangle
Gandifil Apr 28, 2024
a166f34
Fixes incorrect rendering of flipped animation tiles
tigurx Apr 28, 2024
0dd85c7
Merge pull request #820 from LilithSilver/add-missing-getpressedkeys
Gandifil Apr 28, 2024
e6e26d2
Merge branch 'develop' into rename-wasbutton
Gandifil Apr 28, 2024
4da8929
Merge pull request #815 from LilithSilver/rename-wasbutton
Gandifil Apr 28, 2024
72e4490
Call RectangleF.Intersects to resolve recursion bug
AristurtleDev May 17, 2024
cd4a47a
Update Newtonsoft.Json.dll Dependency
AristurtleDev May 17, 2024
04283d5
Merge pull request #854 from AristurtleDev/fix/update-newtonsoft-depe…
AristurtleDev May 17, 2024
0a25e0b
Merge pull request #852 from AristurtleDev/fix/intersetcs-recursion-bug
AristurtleDev May 17, 2024
ed2371b
Removing MyGet Feed Deploy
AristurtleDev May 17, 2024
d650e64
Merge pull request #856 from AristurtleDev/disable/myget-feed
AristurtleDev May 17, 2024
2c13bf1
Moved to `/src/cs`
AristurtleDev May 17, 2024
021949f
Merge branch 'craftworkgames:develop' into tiled_animation_flip_fix
tigurx May 17, 2024
a99c384
Move build into `/src/cs`
AristurtleDev May 18, 2024
b935e23
Fix project reference
AristurtleDev May 18, 2024
0ff198c
Fix path for project on build task
AristurtleDev May 18, 2024
6c6d00e
Capital B
AristurtleDev May 18, 2024
455ea4d
Merge pull request #857 from AristurtleDev/reorg
AristurtleDev May 18, 2024
a7b0a12
Changed the Flip Flag array to be private and readonly and added a pu…
tigurx May 18, 2024
aea6ee4
Merge branch 'craftworkgames:develop' into tiled_animation_flip_fix
tigurx May 18, 2024
55bfe25
Merge branch 'tiled_animation_flip_fix' of https://github.com/tigurx/…
tigurx May 18, 2024
9c5f7cd
Merge pull request #846 from tigurx/tiled_animation_flip_fix
AristurtleDev May 18, 2024
a4d72ea
Move source projects into source directory
AristurtleDev May 18, 2024
f68cff1
Moved tests into test directory
AristurtleDev May 19, 2024
7e5ffdc
Moved benchmarks into benchmark directory
AristurtleDev May 19, 2024
99b995d
Moved build into build directory
AristurtleDev May 19, 2024
f4aff0e
Add root props file
AristurtleDev May 19, 2024
a5209fe
Add common props for all tests
AristurtleDev May 19, 2024
2696b4f
Added `<Authors>` to root props
AristurtleDev May 19, 2024
32bb9d5
Add common props for source directory
AristurtleDev May 19, 2024
a5c18a6
Add props to build directory
AristurtleDev May 19, 2024
a85188e
Moved props from targets file
AristurtleDev May 19, 2024
0080887
Removed targets file
AristurtleDev May 19, 2024
a5f16a0
Update for new .artifacts directory
AristurtleDev May 19, 2024
3992364
nuget.config is not needed
AristurtleDev May 19, 2024
8590302
Renamed 'Logos' directory to 'logos'
AristurtleDev May 19, 2024
7aa97cd
Use correct working directory after moving
AristurtleDev May 19, 2024
126b79d
Remove duplicate import statement
AristurtleDev May 19, 2024
33be368
Read from props file not targets file.
AristurtleDev May 19, 2024
4bcf940
Use new .artifacts directory
AristurtleDev May 19, 2024
8b991b8
Updated .gitattributes
AristurtleDev May 19, 2024
36eb2c6
Updated .gitignore
AristurtleDev May 19, 2024
6b02975
Set ArtifactPath within the project category directory
AristurtleDev May 19, 2024
24d9477
Drop CAKE build and move Build CI to github workflow
AristurtleDev May 19, 2024
f25d972
Setup code analysis with .editorconfig
AristurtleDev May 19, 2024
694b595
Don't use nullable reference in a non-nullable context
AristurtleDev May 19, 2024
8c09ca1
Correct spelling of minimal
AristurtleDev May 19, 2024
8b34b04
Merge pull request #858 from craftworkgames/reorg
AristurtleDev May 19, 2024
c16d831
Fix GitHub Nuget Push (#859)
AristurtleDev May 19, 2024
0a17af4
Remove GitHub Deploy (#860)
AristurtleDev May 19, 2024
9a7ce46
Cleanup (#862)
AristurtleDev May 20, 2024
43e313e
Removed patreon added aristurtledev (#863)
AristurtleDev May 20, 2024
4d582fe
Fix funding (#864)
AristurtleDev May 20, 2024
f8376db
Use ArtifactsPath to resolve include dlls for pack (#865)
AristurtleDev May 20, 2024
7bda811
Add additional input parameters (#866)
AristurtleDev May 20, 2024
0867284
Only specify source and prerelease (#867)
AristurtleDev May 20, 2024
ee0883e
Update prerelease version (#868)
AristurtleDev May 20, 2024
d008b1b
Replace Newtonsoft.Json with System.Text.Json (#869)
AristurtleDev May 23, 2024
49038f5
Replace `Matrix2` with `Matrix3x2` (#870)
AristurtleDev May 27, 2024
89c8984
Add Edge Test for `Polygon.Contains` (#871)
AristurtleDev May 27, 2024
27108ba
Replace `Size3` with `Vector3` (#872)
AristurtleDev May 29, 2024
25206c5
Rename `Size2` to `SizeF` (#873)
AristurtleDev May 29, 2024
0427aa3
Remove `Point3` (#874)
AristurtleDev May 29, 2024
9239fce
Remove `Point2` (#875)
AristurtleDev May 29, 2024
f9d01ab
Reapply "Bump Newtonsoft.Json in /src/cs/MonoGame.Extended.Content.Pi…
May 29, 2024
23e1c37
Revert "Gave particles an offset parameter"
May 29, 2024
15db8d2
Merge branch 'craftworkgames:develop' into feature/pull_from_upstream
jeremj22 May 29, 2024
2ad545a
revert "Add root props file"
May 29, 2024
2c2a619
revert "Add common props for source directory"
May 29, 2024
3e3f4b8
Revert "Use ArtifactsPath to resolve include dlls for pack (#865)"
May 29, 2024
6777931
Gave particles an offset parameter
Apr 15, 2024
45f7cd9
allow trailing commas
May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
457 changes: 455 additions & 2 deletions .editorconfig

Large diffs are not rendered by default.

103 changes: 44 additions & 59 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,63 +1,48 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
################################################################################
### Default behavior
### - Treat as text
### - Normalize to Unix-style line endings
################################################################################
* text eol=lf

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
################################################################################
### C# source file behavior
### - Treat as text
### - Normalize to Unix-style line endings
### - Diff as csharp
################################################################################
*.cs text eol=lf diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
################################################################################
### csproj file behavior
### - Treat as text
### - Normalize to Unix-style line endings
### - Use a union merge when resolving conflicts
################################################################################
.csproj text eol=lf merge=union

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
################################################################################
### sln file behavior
### - Treat as text
### - Normalize to Windows-style line endings
### - Use a union merge when resolving conflicts
################################################################################
*.sln text eol=crlf merge=union

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
################################################################################
### image file behavior
### - Treat as binary
################################################################################
*.bmp binary
*.gif binary
*.ico binary
*.jpg binary
*.jpeg binary
*.png binary
*.webp binary

################################################################################
### MGFXO file behavior
### - Treat as binary
################################################################################
*.mgfxo binary
5 changes: 3 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
github: craftworkgames
patreon: craftworkgames
github:
- aristurtledev
- craftworkgames
49 changes: 0 additions & 49 deletions .github/workflows/build-test-deploy.yml

This file was deleted.

80 changes: 80 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
################################################################################
### Build MonoGame.Extended (Develop)
### Clones the `develop` branch and performs a build, test, then pack of the
### Monogame.Extended source code. Once the build job is finished, the deploy
### job will upload the nupkg files created to the MonoGame.Extended GitHub
###
### - Only runs on a push to the `develop` branch
################################################################################
name: "Create Release"

on:
workflow_dispatch:
inputs:
prerelease:
description: 'Is this a prerelease?'
required: true
default: 'true'
source-feed:
description: |
Which source feed to publish to?
(Valid values are 'NuGet' or 'GitHub')
required: true
default: GitHub

jobs:
build:
name: "Build MonoGame.Extended"
runs-on: ubuntu-latest
env:
IS_PRERELEASE: ${{ inputs.prerelease == 'true' }}
BUILD_NUMBER: ${{ inputs.prerelease == 'true' && github.run_number || '' }}

steps:
- name: Clone Repository
uses: actions/checkout@v4

- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

- name: Build MonoGame.Extended
run: dotnet build --nologo --verbosity minimal --configuration Release

- name: Test MonoGame.Extended
run: dotnet test --nologo --verbosity minimal --configuration Release

- name: Pack MonoGame.Extended
run: dotnet pack --nologo --verbosity minimal --configuration Release

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ./.artifacts/source/package/release/*.nupkg

deploy:
name: "Deploy NuGets"
runs-on: ubuntu-latest
needs: [ build ]
permissions:
packages: write
contents: write

steps:
- name: "Download Artifacts"
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: ./.artifacts

- name: "Push Packages"
env:
SOURCE_URL: ${{ inputs.source-feed == 'GitHub' && 'https://nuget.pkg.github.com/craftworkgames/index.json' || inputs.source-feed == 'NuGet' && 'https://api.nuget.org/v3/index.json' }}
API_KEY: ${{ inputs.source-feed == 'GitHub' && secrets.GITHUB_TOKEN || inputs.source-feed == 'NuGet' && secrets.NUGET_ACCESS_TOKEN }}
run: |
PACKAGES=(".artifacts/*.nupkg")
for PACKAGE in "${PACKAGES[@]}"; do
dotnet nuget push "$PACKAGE" --source "$SOURCE_URL" --skip-duplicate --api-key "$API_KEY"
done
32 changes: 32 additions & 0 deletions .github/workflows/pull-request-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
################################################################################
### Pull Request Test
### Executes tests to ensure that the pull request being submitted is valid.
### - Only runs on pull requests made to the `develop` branch
### - Only runs if the pull request was opened or synchronized
################################################################################
name: Pull Request Test

on:
pull_request:
branches:
- develop
- main
types:
- opened
- synchronize

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Clone Repository
uses: actions/checkout@v4

- name: Setup DotNet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

- name: Test MonoGame.Extended
run: dotnet test --nologo --verbosity minimal --configuration Release
33 changes: 24 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
# Build artifacts
################################################################################
### IDE directories
################################################################################
.vs/
.vscode/
.idea/

################################################################################
### User specific files that can be generated by Visual Studio
################################################################################
*.suo
*.user

################################################################################
### Build and Intermediate directories
################################################################################
[Bb]in/
[Oo]bj/

# Rider
.idea/
*.user
################################################################################
### Build artifacts directory
################################################################################
*.[Aa]rtifacts/

# macOS
################################################################################
### OS specific auto generated files
################################################################################
.DS_Store
*.user

# cake build output
artifacts
[Tt]humbs.db
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Please read this document completely before contributing.

## How To Contribute

MonoGame.Extended has a `master` branch for stable releases and a `develop` branch for daily development. New features and fixes are always submitted to the `develop` branch.
MonoGame.Extended has a `main` branch for stable releases and a `develop` branch for daily development. New features and fixes are always submitted to the `develop` branch.

If you are looking for ways to help you should start by looking at the [Open Issues](https://github.com/craftworkgames/MonoGame.Extended/issues). Please let us know if you plan to work on an issue so that others are not duplicating work.

Expand Down Expand Up @@ -43,9 +43,9 @@ We prohibit tools like dotPeek, ILSpy, JustDecompiler, or .NET Reflector which c
It is **NEVER ACCEPTABLE** to decompile copyrighted assemblies and submit that code to the MonoGame.Extended project.

* It **DOES NOT** matter how much you change the code.
* It **DOES NOT** matter what country you live in or what your local laws say.
* It **DOES NOT** matter that XNA is discontinued.
* It **DOES NOT** matter how small the bit of code you have stolen is.
* It **DOES NOT** matter what country you live in or what your local laws say.
* It **DOES NOT** matter that XNA is discontinued.
* It **DOES NOT** matter how small the bit of code you have stolen is.
* It **DOES NOT** matter what your opinion is of stealing code.

If you did not write the code, you do not have ownership of the code, and you shouldn't submit it to MonoGame.Extended.
Expand All @@ -62,7 +62,7 @@ We accept contributions in "good faith" that it isn't bound to a conflicting lic

## Need More Help?

If you need help please ask questions on our [community forums](http://community.monogame.net/c/extended) or come [chat on Discord](https://discord.gg/xPUEkj9).
If you need help, please ask questions in our [Discord](https://discord.gg/xPUEkj9), or you can ask questions in the official [MonoGame Discord](https://discord.gg/monogame).


Thanks for reading this guide and helping make MonoGame.Extended great!
Expand Down
20 changes: 0 additions & 20 deletions Directory.Build.targets

This file was deleted.

3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
The MIT License (MIT)

Copyright (c) 2015-2020:
Copyright (c) 2015-2024:
- Dylan Wilson (https://github.com/dylanwilson80)
- Lucas Girouard-Stranks (https://github.com/lithiumtoast)
- Christopher Whitley (https://github.com/aristurtledev)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Binary file removed Logos/support-on-patreon.png
Binary file not shown.
Loading
Loading