mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-01-18 05:08:27 +08:00
State simplified
This commit is contained in:
parent
ce099d0cc8
commit
ce684b1d16
@ -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 _;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user