Christopher Whitley 1f3f1c5aa0 Fix NullReferenceException in ObjectPool when reusing all returned items (#904)
* Replaced delegate with Action<T>

* Change delegate to Action<T>

* Add unit test to confirm issue

* Fix NullReferenceException in ObjectPool when reusing all returned items

The ObjectPool's Use() method was throwing a NullReferenceException when
all items had been returned to the pool and New() was called again. This
was due to _tailNode being null in this scenario.

Added a null check for _tailNode in Use() method to properly reinitialize
the linked list structure when the pool has been emptied and refilled.
2024-06-29 17:50:43 -04:00
2024-06-24 19:08:26 -04:00
2024-06-23 22:49:58 -04:00
2024-05-20 02:12:43 -04:00
2024-06-23 23:10:16 -04:00
2024-06-15 01:37:18 -04:00
2024-05-20 02:12:43 -04:00
2024-06-11 11:22:10 -04:00
2024-06-23 22:49:58 -04:00
2024-06-23 22:38:20 -04:00
2024-05-20 02:12:43 -04:00
2024-05-20 18:40:23 -04:00

Note

Hi MonoGame community, MonoGame.Extended is currently being updated to resolve outstanding bug issues, included those surrounding Tiled, and to update for MonoGame 3.8.1.303. Please bear with me as I work through the backlog. You can follow the progress in the v4.0.0 Milestones page.

  • AristurtleDev

MonoGame.Extended Logo

MonoGame.Extended

MonoGame.Extended is a set of utilities (in the form of libraries/tools) to MonoGame that makes it easier to make games. Choose what you want, the rest stays out of your way. It makes MonoGame more awesome.

Build, Test, Deploy Docs

Getting started

Code is distributed as NuGet packages in the form of libraries (.dll files). You can easily install the NuGet packages into your existing MonoGame project using the NuGet Package Manager UI in Visual Studio or by using the command line interface (CLI) in a terminal.

Current Stable Release

Warning

The current stable release is not compatible with MonoGame 3.8.1.303.

dotnet add package MonoGame.Extended --version 3.8.0

Current Prerelease

Note

Prerelease is based on current develop branch snapshot. There it is not considered stable and may contain bugs

dotnet add package MonoGame.Extended --version 3.9.0-prerelease.4

Using the Content Pipeline Extensions

To use the content pipeline extensions, you will need to edit your .mgcb file to reference the .dll. To see an example of how to do this with NuGet see the samples at https://github.com/craftworkgames/MonoGame.Extended-samples. The important pieces are the NuGet.config file and the .mgcb file.

Where to next?

News

We're in the process of developing MonoGame.Extended 4.0! Stay tuned.

Patreon Supporters

The patreon has been removed. If you would like to support the maintainers of this project, please consider using the GitHub sponsors link for one of the maintainers.

As a special thanks to those that supported this project through Patreon in the past, their websites were linked in this readme and have been preserved below:

Special Thanks

License

MonoGame.Extended is released under the The MIT License (MIT).

S
Description
Extensions to make MonoGame more awesome
Readme MIT 16 MiB
Languages
C# 99.7%
HLSL 0.3%