public void UploadGeneralSetting(IEventArgs arg) { BaseArg <VolumnAndResolution, Action <int> > _arg = arg as BaseArg <VolumnAndResolution, Action <int> >; GeneralSetting gs = new GeneralSetting(); gs.screenHeight = _arg.valueA.screenHeight; gs.screenWidth = _arg.valueA.screenWidth; gs.volumn = _arg.valueA.volumn; ServerSDK.Instance.UploadGeneralSetting(gs, _arg.valueB); }
public void DownloadGeneralSetting(IEventArgs arg) { BaseArg <Action <int, VolumnAndResolution> > _arg = arg as BaseArg <Action <int, VolumnAndResolution> >; ServerSDK.Instance.DownloadGeneralSetting((i, gs) => { VolumnAndResolution var = new VolumnAndResolution(); var.screenHeight = gs.screenHeight; var.screenWidth = gs.screenWidth; var.volumn = gs.volumn; _arg.value(i, var); }); }
public virtual void TestMethod(BaseArg inheritedArg) { }