Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public static State SaveState(State state)
 {
     ActiveState = Im.Fold <StorePlug, State>((State acc, StorePlug plug) => plug.TransformOnSave(acc), state, Plugs);
     return(ActiveState);
 }
Exemplo n.º 3
0
 public static void Render(GameObject gameObject, ImList <RenderCommand> renderData)
 {
     Im.Fold(HandleRenderCommand, gameObject, renderData);
 }