State simplified

This commit is contained in:
Matt Thorson 2020-09-13 17:38:48 -07:00
parent ce099d0cc8
commit ce684b1d16

View File

@ -111,19 +111,9 @@ namespace Strawberry
public class State
{
public delegate void() Enter;
public delegate TIndex() Update;
public delegate void() Exit;
public ~this()
{
if (Enter != null)
delete Enter;
if (Update != null)
delete Update;
if (Exit != null)
delete Exit;
}
public delegate void() Enter ~ delete _;
public delegate TIndex() Update ~ delete _;
public delegate void() Exit ~ delete _;
}
}
}