mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-01-19 05:28:27 +08:00
State simplified
This commit is contained in:
parent
ce099d0cc8
commit
ce684b1d16
@ -111,19 +111,9 @@ namespace Strawberry
|
|||||||
|
|
||||||
public class State
|
public class State
|
||||||
{
|
{
|
||||||
public delegate void() Enter;
|
public delegate void() Enter ~ delete _;
|
||||||
public delegate TIndex() Update;
|
public delegate TIndex() Update ~ delete _;
|
||||||
public delegate void() Exit;
|
public delegate void() Exit ~ delete _;
|
||||||
|
|
||||||
public ~this()
|
|
||||||
{
|
|
||||||
if (Enter != null)
|
|
||||||
delete Enter;
|
|
||||||
if (Update != null)
|
|
||||||
delete Update;
|
|
||||||
if (Exit != null)
|
|
||||||
delete Exit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user