public AerialStateObject GetState() { var ret = new AerialStateObject { XDimension = XDimension, YDimension = YDimension, Version = Config.Version, Aerial = _innerArray }; return(ret); }
public bool LoadState(AerialStateObject load) { if (load.Version != Config.Version) { return(false); } XDimension = load.XDimension; YDimension = load.YDimension; _innerArray = load.Aerial; _iteration = 0; _history.Clear(); return(true); }