Cookbook

Snippets for solving problems

C#

CurMax

CurMax is a helper class for dealing with int values which have a maximum possible value. For example, player health can have both a max value and a current value.