private Value <FormulaPlayerRecord> _StroageLoad(Guid account_id) { var returnValue = new Value <FormulaPlayerRecord>(); var val = _FormulaPlayerRecorder.Query(account_id); val.OnValue += game_player_record => { returnValue.SetValue(game_player_record); }; return(returnValue); }
public Value <IFishStage> Query(Guid player_id, FishFarmData data) { var val = new Value <IFishStage>(); _FormulaPlayerRecorder.Query(player_id).OnValue += record => { val.SetValue(new ZsFishStage( player_id, data, record, _FormulaPlayerRecorder, _FormulaFarmRecorder)); }; return(val); }