protected override bool Initialize(bool loadedAny) { Instance = this; this.init(); return(true); }
internal CameraMain(IFPVPlugin plugin) { if (plugin == null) { throw new ArgumentNullException("plugin"); } this.Plugin = plugin; }
protected override bool Initialize(bool loadedAny) { var game = NetScriptFramework.Main.Game; var debug = CrashLog.Debug; if (game == null || game.LibraryVersion < 10) { throw new InvalidOperationException(this.Name + " requires a newer version of .NET Script Framework!"); } if (debug == null) { throw new InvalidOperationException(this.Name + " can not run without the debug library!"); } Instance = this; this.init(); return(true); }
internal CameraMain(IFPVPlugin plugin) { Plugin = plugin ?? throw new ArgumentNullException("plugin"); }