public new Frame Frame(int history) { var data = _localController.Frame(history); var sendData = new SerializableFrame(data); binFormatter.Serialize(receiveStream, sendData); return(data); }
public new Frame Frame() { var data = _localController.Frame(); var sendData = new SerializableFrame(data); Console.WriteLine("Begin serialize"); binFormatter.Serialize(receiveStream, sendData); Console.WriteLine("Serialized"); return(data); }
private async Task InitFrame(bool tryLoadFrameState) { if (_frame == null) { _frame = new SerializableFrame(); _frameNavigator = new FrameNavigator(_frame, _bootstrapper); if (tryLoadFrameState) { await _frameNavigator.Resume(); } Window.Current.Content = _frame; } }
//TcpClient public new Frame Frame() { sendMessage("Frame"); SerializableFrame sf = (SerializableFrame)binFormatter.Deserialize(stream); List <Hand> h = new List <Hand>(); foreach (SerializableHand sh in sf.hands) { h.Add(sh.toHand()); } Frame f = new Frame(sf.id, sf.timestamp, sf.fps, sf.interactionBox.toInteractionBox(), h); return(f); }