text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>paste-from", pasteText); }); Electron.IpcMain.On("copy-image-to", (test) => { var nativeImage = NativeImage.CreateFromDataURL(test.ToString()); Electron.Clipboard.WriteImage(nativeImage); }); ...
fim
ElectronNET/Electron.NET
csharp
<|fim_suffix|>rgs) => { string viewPath = $"http://localhost:{ElectronNetRuntime.AspNetWebPort}/crashhang/processcrash"; var browserWindow = await Electron.WindowManager.CreateWindowAsync(viewPath); browserWindow.WebContents.OnCrashed += async...
fim
ElectronNET/Electron.NET
csharp
<|fim_suffix|>} }<|fim_prefix|>using Microsoft.AspNetCore.Mvc; namespace ElectronNET.WebApp.Controllers { publi<|fim_middle|>c class DesktopCapturerController : Controller { public IActionResult Index() { return View(); } <|endoftext|>
fim
ElectronNET/Electron.NET
csharp
<|fim_suffix|> { Title = "Save an Image", Filters = new FileFilter[] { new FileFilter { Name = "Images", Extensions = new string[] {"jpg", "png", "gif" } } } }; ...
fim
ElectronNET/Electron.NET
csharp
<|fim_prefix|>using Microsoft.AspNetCore.Mvc; using ElectronNET.API; using System; namespace ElectronNET.WebApp.Controllers { public class HomeController : Controller { public IActionResult Index() { if (HybridSupport.IsElectronActive) { if (OperatingSys...
fim
ElectronNET/Electron.NET
csharp
<|fim_prefix|>using ElectronNET.API; using ElectronNET.API.Entities; using Microsoft.AspNetCore.Mvc; using System.Linq; namespace ElectronNET.WebApp.Controllers { public class HostHookController : Controller { public IActionResult Index() { if (HybridSupport.IsElectronActive) ...
fim
ElectronNET/Electron.NET
csharp
<|fim_suffix|> }); Electron.IpcMain.OnSync("sync-msg", (args) => { return "pong"; }); } return View(); } } }<|fim_prefix|>using Microsoft.AspNetCore.Mvc; using ElectronNET.API; using System.Linq; namespace Elect...
fim
ElectronNET/Electron.NET
csharp
<|fim_suffix|> private async void UpdateReply() { var browserWindow = Electron.WindowManager.BrowserWindows.Last(); var size = await browserWindow.GetSizeAsync(); var position = await browserWindow.GetPositionAsync(); string message = $"Size: {size[0]},{size[1...
fim
ElectronNET/Electron.NET
csharp
<|fim_suffix|> Electron.Menu.SetApplicationMenu(menu); } return View(); } private void CreateContextMenu() { var menu = new MenuItem[] { new MenuItem { Label = "Hello", ...
fim
ElectronNET/Electron.NET
csharp
<|fim_suffix|> Electron.Notification.Show(options); }); } return View(); } } }<|fim_prefix|>using Microsoft.AspNetCore.Mvc; using ElectronNET.API; using ElectronNET.API.Entities; namespace ElectronNET.WebApp.Controllers { public class Notifica...
fim
ElectronNET/Electron.NET
csharp
using System.Linq; using Microsoft.AspNetCore.Mvc; using ElectronNET.API; using ElectronNET.API.Entities; namespace ElectronNET.WebApp.Controllers { public class PdfController : Controller { public IActionResult Index() { if (HybridSupport.IsElectronActive) { ...
fim
ElectronNET/Electron.NET
csharp
using ElectronNET.API; using ElectronNET.API.Entities; using Microsoft.AspNetCore.Mvc; namespace ElectronNET.WebApp.Controllers { public class ShellController : Controller { public IActionResult Index() { if (HybridSupport.IsElectronActive) { Electron.Ip...
fim
ElectronNET/Electron.NET
csharp
<|fim_prefix|>using ElectronNET.API; using ElectronNET.API.Entities; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace ElectronNET.WebApp.Controllers { public class ShortcutsController : Controller { public IActionResult Index() { <|fim_suffix|>rg => Task.Run(() => E...
fim
ElectronNET/Electron.NET
csharp
<|fim_suffix|>IsElectronActive) { Electron.IpcMain.On("put-in-tray", (args) => { if (Electron.Tray.MenuItems.Count == 0) { var menu = new MenuItem { Label = "R...
fim
ElectronNET/Electron.NET
csharp
using System.Linq; using ElectronNET.API; using Microsoft.AspNetCore.Mvc; namespace ElectronNET.WebApp.Controllers { public class UpdateController : Controller { public IActionResult Index() { if (HybridSupport.IsElectronActive) { Electron.AutoUpdater.On...
fim
ElectronNET/Electron.NET
csharp
using System.Linq; using Microsoft.AspNetCore.Mvc; using ElectronNET.API; using ElectronNET.API.Entities; namespace ElectronNET.WebApp.Controllers { public class WindowsController : Controller { public IActionResult Index() { if (HybridSupport.IsElectronActive) { ...
fim
ElectronNET/Electron.NET
csharp
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Connector = void 0; class Connector { constructor(socket, app) { this.socket = socket; this.app = app; } on(key, javaScriptCode) { this.socket.on(key, (...args) => { const id = args.pop()...
fim
ElectronNET/Electron.NET
javascript
<|fim_suffix|> } }); } } <|fim_prefix|>import { Socket } from 'socket.io'; export class Connector { constructor(private socket: Socket, public app: any) { } on(key: string, javaScriptCode: Function): void { this.socket.on(key, (...args: any[]) => { const id: string =...
fim
ElectronNET/Electron.NET
typescript
<|fim_suffix|>le.xlsx"); return "Excel file created YAY YAY!"; } } exports.ExcelCreator = ExcelCreator; //# sourceMappingURL=excelCreator.js.map<|fim_prefix|>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExcelCreator = void 0; const exceljs_1 = require("exceljs"); clas...
fim
ElectronNET/Electron.NET
javascript
<|fim_suffix|> ]; worksheet.addRow({ id: 1, name: "John Doe", birthday: new Date(1970, 1, 1) }); worksheet.addRow({ id: 2, name: "Jane Doe", birthday: new Date(1965, 1, 7) }); await workbook.xlsx.writeFile(path + "\\sample.xlsx"); return "Excel file created YAY YAY!"; } }<|fi...
fim
ElectronNET/Electron.NET
typescript
<|fim_prefix|>"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HookService = void 0; const connector_1 = require("./connector"); const excelCreator_1 = require("./excelCreator"); class HookService extends connector_1.Co<|fim_suffix|>); } } exports.HookService = HookService; //# s...
fim
ElectronNET/Electron.NET
javascript
<|fim_suffix|>excelCreator.create(path); done(result); }); } } <|fim_prefix|>import { Connector<|fim_middle|> } from "./connector"; import { Socket } from "socket.io"; import { ExcelCreator } from './excelCreator'; export class HookService extends Connector { constructor(socket: Socket, p...
fim
ElectronNET/Electron.NET
typescript
<|fim_suffix|> windows = {hasWindows}") { Silent = false, }); }); if (System.OperatingSystem.IsMacOS()) { Electron.Dock.SetMenu(new[] { new MenuItem ...
fim
ElectronNET/Electron.NET
csharp
<|fim_prefix|>using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace ElectronNET.WebApp { public class Startup { public IConfiguration Configuration ...
fim
ElectronNET/Electron.NET
csharp
<|fim_prefix|>document.addEventListener('DOMContentLoaded', function () { setTimeout(() => {<|fim_suffix|>electorAll('pre code'); Array.prototype.forEach.call(codeBlocks, function (code) { hljs.highlightBlock(code) }); }, 1000); }) <|fim_middle|> const codeBlocks = document.queryS<|endoftext|>
fim
ElectronNET/Electron.NET
javascript
<|fim_prefix|>setTimeout(() => { const demoBtns = document.querySelectorAll('.js-container-target'); // Listen for demo button clicks Array.p<|fim_suffix|>s parent element. parent.classList.toggle('is-open'); }) }) }, 3000); <|fim_middle|>rototype.forEach.call(demoBtns, function (btn) { btn.add...
fim
ElectronNET/Electron.NET
javascript
<|fim_prefix|>(function ()<|fim_suffix|>enExternal(url) }) } }) }) <|fim_middle|> { const shell = require('electron').shell const links = document.querySelectorAll('a[href]') Array.prototype.forEach.call(links, function (link) { const url = link.getAttribute('href') ...
fim
ElectronNET/Electron.NET
javascript
<|fim_suffix|>u attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_le...
fim
ElectronNET/Electron.NET
javascript
<|fim_prefix|>const <|fim_suffix|>nt.querySelector('body').appendChild(template.firstElementChild.content); }); }); links.forEach(async pageName => { const page = await fetch(pageName); const pageContent = await page.text(); const template = document.createRange().createContextualFragment(pageContent); docum...
fim
ElectronNET/Electron.NET
javascript
<|fim_prefix|>document.body.addEventListener('click', function (event) { if (event.target.dataset.section) { handleSectionTrigger(event) } else if (event.target.dataset.modal) { handleModalTrigger(event) } else if (event.target.classList.contains('modal-hide')) { hideAllModals() ...
fim
ElectronNET/Electron.NET
javascript
<|fim_suffix|> m_ReadDataFailureEventHandler(this, loadDataFailureEventArgs); ReferencePool.Release(loadDataFailureEventArgs); return; } throw; } finally { m_DataProviderHelper...
fim
EllanJiang/GameFramework
csharp
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using GameFramework.Resource; name...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>>要解析的内容字符串。</param> /// <param name="userData">用户自定义数据。</param> /// <returns>是否解析内容成功。</returns> bool ParseData(string dataString, object userData); /// <summary> /// 解析内容。 /// </summary> /// <param name="dataBytes">要解析的内容二进制流。</param> /// <...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>wner, object dataAsset); } } <|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>> /// <param name="dataAssetName">内容资源名称。</param> /// <param name="duration">加载持续时间。</param> /// <param name="userData">用户自定义数据。</param> /// <returns>创建的读取数据成功事件。</returns> public static ReadDataSuccessEventArgs Create(string dataAssetName, float duration, object us...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------<|fim_suffix|>string ToString() { ...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>oid Clear() { m_Sender = null; m_EventArgs = null; } } } } <|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gamef...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>eption(Utility.Text.Format("Event '{0}' not allow duplicate handler.", id)); } else { m_EventHandlers.Add(id, handler); } } /// <summary> /// 取消订阅事件处理函数。 /// </summary> /// <param name="id">事件类型编号。</pa...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|> /// </summary> Default = 0, /// <summary> /// 允许不存在事件处理函数。 /// </summary> AllowNoHandler = 1, /// <summary> /// 允许存在多个事件处理函数。 /// </summary> AllowMultiHandler = 2, /// <summary> /// 允许存在重复的事件处理函数。 ///...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System; using System.Collecti...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>件数据的类的基类。 /// </summary> public abstract class GameFrameworkEventArgs : EventArgs, IReference { /// <summary> /// 初始化游戏框架中包含事件数据的类的新实例。 /// </summary> public GameFrameworkEventArgs() { } /// <summary> /// 清理引用。 /// </summ...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>rException 参数不为空引用,则在处理内部异常的 catch 块中引发当前异常。</param> public GameFrameworkException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// 用序列化数据初始化游戏框架异常类的新实例。 /// </summary> /// <param name="info...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>Result GameFrameworkFunc<in T1, in T2, in T3, in T4, in T5, in T6, in T7, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7); /// <summary> /// 封装一个方法,该方法具有八个参数,并返回 TResult 参数所指定的类型的值。 /// </summary> /// <typeparam name="T1">此委托封装的方法的第一个参数的类型。</typeparam> /// ...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System; using S...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>summary> /// <returns>返回下一个结点。</returns> public bool MoveNext() { if (m_Current == null || m_Current == m_GameFrameworkLinkedListRange.m_Terminal) { return false; } m_CurrentValue = m_C...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//---------------------------------<|fim_suffix|>------------------------- namespace GameFramework { /// <summary> /// 游戏框架模块抽象类。 /// </summary> internal abstract class GameFrameworkModule { /// <summary> /// 获取游戏框架模块优先级。 /// </summary> /// <remarks>优先...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //-----------------------------------------------<|fim_suffix|>定的主键中移除指定的值。 /...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System.Collecti...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: m<|fim_suffix|>/ <summary> /// 警告。 /// </summary> Warning, /// <summary> /...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>ear(); } } <|fim_prefix|>//------------------------------------------------------------ /<|fim_middle|>/ Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //----------------------------------------...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System; using S...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System; using S...
fim
EllanJiang/GameFramework
csharp
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System; using System.Runtime....
fim
EllanJiang/GameFramework
csharp
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramework { /// <...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>-------- namespace GameFramework { /// <summary> /// 开始处理任务的状态。 /// </summary> public enum StartTaskStatus : byte { /// <summary> /// 可以立刻处理完成此任务。 /// </summary> Done = 0, /// <summary> /// 可以继续处理此任务。 /// </summary> CanR...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System.Runtime.InteropService...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|> agent.Initialize(); m_FreeAgents.Push(agent); } /// <summary> /// 根据任务的序列编号获取任务的信息。 /// </summary> /// <param name="serialId">要获取信息的任务的序列编号。</param> /// <returns>任务的信息。</returns> public TaskInfo GetTaskInfo(int serialId) { ...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>/ <summary> /// 执行中。 /// </summary> Doing, /// <summary> /// 完成。 /// </summary> Done } } <|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // ...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>; } } } <|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //-------------------------------------------------...
fim
EllanJiang/GameFramework
csharp
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System; namespace GameFramew...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights re<|fim_suffix|>per versionHelper) { s_VersionHelper = versionHelper; } } } <|fim_middle|>served. // Homepage: https://gameframework.cn/ // Feedb...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System.Runtime....
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using GameFramework.R...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>/ </summary> public interface IConfigHelper { } } <|fim_prefix|>//---------<|fim_middle|>--------------------------------------------------- // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframewor...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using GameFramework.R...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System.Collecti...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|> } } <|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ u...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>tOrAddChild(string name); /// <summary> /// 获取所有子数据结点。 /// </summary> /// <returns>所有子数据结点。</returns> IDataNode[] GetAllChild(); /// <summary> /// 获取所有子数据结点。 /// </summary> /// <param name="results">所有子数据结点。</param> void Get...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using GameFramework.Resource; using...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>h exception '{1}'.", new TypeNamePair(typeof(T), Name), exception), exception); } } /// <summary> /// 增加数据表行。 /// </summary> /// <param name="dataRowBytes">要解析的数据表行二进制流。</param> /// <param name="startIndex">数据表行二进制流的起...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|> throw new GameFrameworkException(Utility.Text.Format("Data row type '{0}' is invalid.", dataRowType.FullName)); } return InternalDestroyDataTable(new TypeNamePair(dataRowType, name)); } /// <summary> /// 销毁数据表。 /// </summary> ///...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>数据表行成功。</returns> bool ParseDataRow(string dataRowString, object userData); /// <summary> /// 解析数据表行。 /// </summary> /// <param name="dataRowBytes">要解析的数据表行二进制流。</param> /// <param name="startIndex">数据表行二进制流的起始位置。</param> /// <param name="length">数据...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>行。 /// </summary> /// <param name="id">要移除数据表行的编号。</param> /// <returns>是否移除数据表行成功。</returns> bool RemoveDataRow(int id); /// <summary> /// 清空所有数据表行。 /// </summary> void RemoveAllDataRows(); } } <|fim_prefix|>//-------------------------...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//----------------<|fim_suffix|>leHelper { } } <|fim_middle|>-------------------------------------------- // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //--------------------------------...
fim
EllanJiang/GameFramework
csharp
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using GameFramework.Resource; using...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System.Collecti...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>h is invalid."); } if (debuggerWindow == null) { throw new GameFrameworkException("Debugger window is invalid."); } m_DebuggerWindowRoot.RegisterDebuggerWindow(path, debuggerWindow); debuggerWindow.Initialize(args); ...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>(); /// <summary> /// 离开调试器窗口。 /// </summary> void OnLeave(); /// <summary> /// 调试器窗口轮询。 /// </summary> /// <param name="elapseSeconds">逻辑流逝时间,以秒为单位。</param> /// <param name="realElapseSeconds">真实流逝时间,以秒为单位。</param> void OnU...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedb<|fim_suffix|>------------------------------------------- namespace GameFramework.Debugger { /// <summary> /// ...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//-----------------------------------------------------------<|fim_suffix|>pyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramework.Download...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|> throw new GameFrameworkException("Length is invalid."); } DownloadAgentHelperCompleteEventArgs downloadAgentHelperCompleteEventArgs = ReferencePool.Acquire<DownloadAgentHelperCompleteEventArgs>(); downloadAgentHelperCompleteEventArgs.Length = length; ...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//-------------------------------<|fim_suffix|>aled class DownloadAgentHelperUpdateBytesEventArgs : GameFrameworkEventArgs { private byte[] m_Bytes; /// <summary> /// 初始化下载代理辅助器更新数据流事件的新实例。 /// </summary> public DownloadAgentHelperUpdateBytesEventArgs() ...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copy<|fim_suffix|>/ Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramework.Download { /// <summary> /...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|>nloadFailureEventArgs.ErrorMessage = errorMessage; downloadFailureEventArgs.UserData = userData; return downloadFailureEventArgs; } /// <summary> /// 清理下载失败事件。 /// </summary> public override void Clear() { SerialId = 0; ...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using System; using S...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //-----------------------------------------------------<|fim_suffix|> pri...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ namespace GameFramewo...
fim
EllanJiang/GameFramework
csharp
<|fim_suffix|> /// <summary> /// 清理下载任务。 /// </summary> public override void Clear() { base.Clear(); m_Status = DownloadTaskStatus.Todo; m_DownloadPath = null; m_DownloadUri = null; m...
fim
EllanJiang/GameFramework
csharp
<|fim_prefix|>//-------------<|fim_suffix|>rtial class DownloadManager : GameFrameworkModule, IDownloadManager { /// <summary> /// 下载任务的状态。 /// </summary> private enum DownloadTaskStatus : byte { /// <summary> /// 准备下载。 /// </summary> ...
fim
EllanJiang/GameFramework
csharp