/smooth.foundations

Foundations for boosting productiviy and writing clean, maintainable, allocation-free code in C# / Unity.

Primary LanguageC#

smooth.foundations

Smooth.Foundations is an MIT licensed code package that provides basic classes for boosting programmer productivity and writing clean, maintainable, allocation-free code in Unity. The code is written in C# and very little is Unity specific; It can also be used on other .Net platforms.

Smooth.Foundations includes:

  • Smooth.Compare, a replacement for the System.Collections.Generic comparers that helps reduce runtime allocations and prevent JIT exceptions on AOT platforms.
  • Smooth.Slinq, a faster, allocation-free replacement for LINQ with increased functionality and a more robust API.
  • Algebraic structs like Option, Either<L, R>, and Tuple<T1, ..., Tn>.
  • Generic pools with a delegate-based API.
  • Generic event helpers for creating and maintaining robust, type safe events backed by multicast delegates.
  • A disposal API for performing cleanup operations in a background thread during the rendering phase.
  • Methods for determining basic information about the runtime platform.
  • Other miscellaneous utilities.

To include Smooth.Foundations into your project, you can use npm method of unity package management described here.

Changelog

0.0.3

  • Update to 2017.02. Remove unsupported platforms.

0.0.2

  • Fix compile error on Android

0.0.1

  • Initial commit