public static State LoadState(Event processing) { var state = UpdateProcessing(processing, ActiveState); return(Im.Fold <StorePlug, State>((State acc, StorePlug plug) => plug.TransformOnLoad(acc), state, Plugs)); }
public static State SaveState(State state) { ActiveState = Im.Fold <StorePlug, State>((State acc, StorePlug plug) => plug.TransformOnSave(acc), state, Plugs); return(ActiveState); }
public static void Render(GameObject gameObject, ImList <RenderCommand> renderData) { Im.Fold(HandleRenderCommand, gameObject, renderData); }