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