text stringlengths 7 35.3M | id stringlengths 11 185 | metadata dict | __index_level_0__ int64 0 2.14k |
|---|---|---|---|
using System;
using UnityEditor;
namespace ET
{
[TypeDrawer]
public class FloatTypeDrawer: ITypeDrawer
{
public bool HandlesType(Type type)
{
return type == typeof (float);
}
public object DrawAndGetNewValue(Type memberType, string memberName, object value, obje... | ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/FloatTypeDrawer.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/FloatTypeDrawer.cs",
"repo_id": "ET",
"token_count": 184
} | 109 |
using System;
using UnityEditor;
using UnityEngine;
namespace ET
{
[TypeDrawer]
public class Vector2TypeDrawer: ITypeDrawer
{
public bool HandlesType(Type type)
{
return type == typeof (Vector2);
}
public object DrawAndGetNewValue(Type memberType, string memberN... | ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/Vector2TypeDrawer.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/Vector2TypeDrawer.cs",
"repo_id": "ET",
"token_count": 193
} | 110 |
using System.Collections.Generic;
using System.IO;
namespace ET
{
public class EditorResHelper
{
/// <summary>
/// 获取文件夹内所有的预制跟场景路径
/// </summary>
/// <param name="srcPath">源文件夹</param>
/// <param name="subDire">是否获取子文件夹</param>
/// <returns></returns>
p... | ET/Unity/Assets/Scripts/Editor/Helper/EditorResHelper.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/Helper/EditorResHelper.cs",
"repo_id": "ET",
"token_count": 1066
} | 111 |
fileFormatVersion: 2
guid: daf158bc563a309438e4f90016ac2761
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Editor/RecastNavDataExporter.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/RecastNavDataExporter.meta",
"repo_id": "ET",
"token_count": 67
} | 112 |
fileFormatVersion: 2
guid: 4cb05eea2613caf458483a4ce7afbf94
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Hotfix/Client/Demo.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Client/Demo.meta",
"repo_id": "ET",
"token_count": 68
} | 113 |
namespace ET.Client
{
public static class LoginHelper
{
public static async ETTask Login(Scene root, string account, string password)
{
root.RemoveComponent<ClientSenderComponent>();
ClientSenderComponent clientSenderComponent = root.AddComponent<ClientSender... | ET/Unity/Assets/Scripts/Hotfix/Client/Demo/NetClient/LoginHelper.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Client/Demo/NetClient/LoginHelper.cs",
"repo_id": "ET",
"token_count": 248
} | 114 |
using System;
using System.Net;
namespace ET.Client
{
public static partial class RouterHelper
{
// 注册router
public static async ETTask<Session> CreateRouterSession(this NetComponent netComponent, IPEndPoint address, string account, string password)
{
uint localConn = (uint... | ET/Unity/Assets/Scripts/Hotfix/Client/Demo/NetClient/Router/RouterHelper.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Client/Demo/NetClient/Router/RouterHelper.cs",
"repo_id": "ET",
"token_count": 1848
} | 115 |
fileFormatVersion: 2
guid: 3f400407796607144bf9eebf438b4c70
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Hotfix/Server/Benchmark/NetComponentOnReadInvoker_BenchmarkServer.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/Benchmark/NetComponentOnReadInvoker_BenchmarkServer.cs.meta",
"repo_id": "ET",
"token_count": 92
} | 116 |
namespace ET.Server
{
[FriendOf(typeof(GateSessionKeyComponent))]
public static partial class GateSessionKeyComponentSystem
{
public static void Add(this GateSessionKeyComponent self, long key, string account)
{
self.sessionKey.Add(key, account);
self.TimeoutRemoveKe... | ET/Unity/Assets/Scripts/Hotfix/Server/Demo/Gate/GateSessionKeyComponentSystem.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/Demo/Gate/GateSessionKeyComponentSystem.cs",
"repo_id": "ET",
"token_count": 400
} | 117 |
fileFormatVersion: 2
guid: 0beef288928e88b4d8cad09b6a39c25d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Hotfix/Server/Demo/Map.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/Demo/Map.meta",
"repo_id": "ET",
"token_count": 72
} | 118 |
fileFormatVersion: 2
guid: 10a2365c686050546995d6a3897b9038
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Hotfix/Server/Demo/Map/Unit/UnitLeaveSightRange_NotifyClient.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/Demo/Map/Unit/UnitLeaveSightRange_NotifyClient.cs.meta",
"repo_id": "ET",
"token_count": 93
} | 119 |
namespace ET.Server
{
[MessageSessionHandler(SceneType.Gate)]
public class C2G_MatchHandler : MessageSessionHandler<C2G_Match, G2C_Match>
{
protected override async ETTask Run(Session session, C2G_Match request, G2C_Match response)
{
Player player = session.GetComponent<SessionPlayerComponent>().Player;
... | ET/Unity/Assets/Scripts/Hotfix/Server/LockStep/Gate/C2G_MatchHandler.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/LockStep/Gate/C2G_MatchHandler.cs",
"repo_id": "ET",
"token_count": 200
} | 120 |
fileFormatVersion: 2
guid: 6d671f754d680422caba612a77dfdb63
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Hotfix/Server/LockStep/Map/RoomServerComponentSystem.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/LockStep/Map/RoomServerComponentSystem.cs.meta",
"repo_id": "ET",
"token_count": 92
} | 121 |
fileFormatVersion: 2
guid: 524fc1d8fab854147a900bad52d3b28f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Hotfix/Server/LockStep/Room/LSServerUpdaterSystem.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/LockStep/Room/LSServerUpdaterSystem.cs.meta",
"repo_id": "ET",
"token_count": 94
} | 122 |
using System.Net;
namespace ET.Server
{
[Invoke((long)SceneType.Location)]
public class FiberInit_Location: AInvokeHandler<FiberInit, ETTask>
{
public override async ETTask Handle(FiberInit fiberInit)
{
Scene root = fiberInit.Fiber.Root;
root.AddComponent<MailBoxCom... | ET/Unity/Assets/Scripts/Hotfix/Server/Module/ActorLocation/FiberInit_Location.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/Module/ActorLocation/FiberInit_Location.cs",
"repo_id": "ET",
"token_count": 296
} | 123 |
using System;
namespace ET.Server
{
[MessageHandler(SceneType.Location)]
public class ObjectLockRequestHandler: MessageHandler<Scene, ObjectLockRequest, ObjectLockResponse>
{
protected override async ETTask Run(Scene scene, ObjectLockRequest request, ObjectLockResponse response)
{
... | ET/Unity/Assets/Scripts/Hotfix/Server/Module/ActorLocation/ObjectLockRequestHandler.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/Module/ActorLocation/ObjectLockRequestHandler.cs",
"repo_id": "ET",
"token_count": 156
} | 124 |
using System.Net;
namespace ET.Server
{
[Invoke((long)SceneType.Router)]
public class FiberInit_Router: AInvokeHandler<FiberInit, ETTask>
{
public override async ETTask Handle(FiberInit fiberInit)
{
Scene root = fiberInit.Fiber.Root;
StartSceneConfig startSceneConfi... | ET/Unity/Assets/Scripts/Hotfix/Server/Module/Router/FiberInit_Router.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Server/Module/Router/FiberInit_Router.cs",
"repo_id": "ET",
"token_count": 384
} | 125 |
namespace ET
{
[Event(SceneType.Main)]
public class EntryEvent1_InitShare: AEvent<Scene, EntryEvent1>
{
protected override async ETTask Run(Scene root, EntryEvent1 args)
{
root.AddComponent<TimerComponent>();
root.AddComponent<CoroutineLockComponent>();
ro... | ET/Unity/Assets/Scripts/Hotfix/Share/Demo/EntryEvent1_InitShare.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Share/Demo/EntryEvent1_InitShare.cs",
"repo_id": "ET",
"token_count": 247
} | 126 |
namespace ET
{
[Invoke((long)MailBoxType.OrderedMessage)]
public class MailBoxType_OrderedMessageHandler: AInvokeHandler<MailBoxInvoker>
{
public override void Handle(MailBoxInvoker args)
{
HandleInner(args).Coroutine();
}
private static async ETTask HandleInner... | ET/Unity/Assets/Scripts/Hotfix/Share/Module/Actor/MailBoxType_OrderedMessageHandler.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Share/Module/Actor/MailBoxType_OrderedMessageHandler.cs",
"repo_id": "ET",
"token_count": 704
} | 127 |
using System;
namespace ET
{
[EntitySystemOf(typeof(SessionAcceptTimeoutComponent))]
[FriendOf(typeof(SessionAcceptTimeoutComponent))]
public static partial class SessionAcceptTimeoutComponentHelper
{
[Invoke(TimerInvokeType.SessionAcceptTimeout)]
public class SessionAcceptTimeout: ATi... | ET/Unity/Assets/Scripts/Hotfix/Share/Module/Message/SessionAcceptTimeoutComponentSystem.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Share/Module/Message/SessionAcceptTimeoutComponentSystem.cs",
"repo_id": "ET",
"token_count": 579
} | 128 |
using System;
namespace ET
{
public static partial class CurrentScenesComponentSystem
{
public static Scene CurrentScene(this Scene root)
{
return root.GetComponent<CurrentScenesComponent>()?.Scene;
}
}
} | ET/Unity/Assets/Scripts/Hotfix/Share/Module/Scene/CurrentScenesComponentSystem.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Hotfix/Share/Module/Scene/CurrentScenesComponentSystem.cs",
"repo_id": "ET",
"token_count": 102
} | 129 |
using System;
using System.Collections.Generic;
using System.IO;
namespace ET.Client
{
[Event(SceneType.Main)]
public class EntryEvent3_InitClient: AEvent<Scene, EntryEvent3>
{
protected override async ETTask Run(Scene root, EntryEvent3 args)
{
GlobalComponent globalComponent = ... | ET/Unity/Assets/Scripts/HotfixView/Client/Demo/EntryEvent3_InitClient.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/HotfixView/Client/Demo/EntryEvent3_InitClient.cs",
"repo_id": "ET",
"token_count": 406
} | 130 |
using System;
using UnityEngine;
namespace ET.Client
{
[UIEvent(UIType.UIHelp)]
public class UIHelpEvent: AUIEvent
{
public override async ETTask<UI> OnCreate(UIComponent uiComponent, UILayer uiLayer)
{
try
{
string assetsName = $"Assets/Bundles/UI/Demo/{UIType.UIH... | ET/Unity/Assets/Scripts/HotfixView/Client/Demo/UI/UIHelp/UIHelpEvent.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/HotfixView/Client/Demo/UI/UIHelp/UIHelpEvent.cs",
"repo_id": "ET",
"token_count": 426
} | 131 |
using UnityEngine;
using UnityEngine.UI;
namespace ET.Client
{
[EntitySystemOf(typeof(UILoginComponent))]
[FriendOf(typeof(UILoginComponent))]
public static partial class UILoginComponentSystem
{
[EntitySystem]
private static void Awake(this UILoginComponent self)
{
ReferenceCollector rc = self.GetParent... | ET/Unity/Assets/Scripts/HotfixView/Client/Demo/UI/UILogin/UILoginComponentSystem.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/HotfixView/Client/Demo/UI/UILogin/UILoginComponentSystem.cs",
"repo_id": "ET",
"token_count": 317
} | 132 |
fileFormatVersion: 2
guid: 5d6a8394e7b3248f08588960a9dab4d0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/HotfixView/Client/LockStep/Camera.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/HotfixView/Client/LockStep/Camera.meta",
"repo_id": "ET",
"token_count": 73
} | 133 |
namespace ET.Client
{
[Event(SceneType.LockStep)]
public class AfterCreateClientScene_LSAddComponent: AEvent<Scene, AfterCreateClientScene>
{
protected override async ETTask Run(Scene scene, AfterCreateClientScene args)
{
scene.AddComponent<UIComponent>();
scene.AddCo... | ET/Unity/Assets/Scripts/HotfixView/Client/LockStep/Scene/AfterCreateClientScene_LSAddComponent.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/HotfixView/Client/LockStep/Scene/AfterCreateClientScene_LSAddComponent.cs",
"repo_id": "ET",
"token_count": 164
} | 134 |
using System.Collections.Generic;
namespace ET.Client
{
/// <summary>
/// 管理Scene上的UI
/// </summary>
[EntitySystemOf(typeof(UIComponent))]
[FriendOf(typeof(UIComponent))]
public static partial class UIComponentSystem
{
[EntitySystem]
private static void Awake(this UIComponent self)
{
self.UIGlobalComp... | ET/Unity/Assets/Scripts/HotfixView/Client/Module/UI/UIComponentSystem.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/HotfixView/Client/Module/UI/UIComponentSystem.cs",
"repo_id": "ET",
"token_count": 447
} | 135 |
fileFormatVersion: 2
guid: 8347f75bbf20473292de676504ad7398
timeCreated: 1504162087 | ET/Unity/Assets/Scripts/Loader/MonoBehaviour/CanvasConfig.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Loader/MonoBehaviour/CanvasConfig.cs.meta",
"repo_id": "ET",
"token_count": 36
} | 136 |
fileFormatVersion: 2
guid: 861f8500341e54e80be11c1ab1812f99
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Loader/Plugins/HybridCLR/Generated.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Loader/Plugins/HybridCLR/Generated.meta",
"repo_id": "ET",
"token_count": 69
} | 137 |
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
namespace ET.Client
{
[ComponentOf(typeof(Scene))]
public class RouterAddressComponent: Entity, IAwake<string, int>
{
public IPAddress RouterManagerIPAddress { get; set; }
public string RouterManagerHost;
... | ET/Unity/Assets/Scripts/Model/Client/Demo/NetClient/Router/RouterAddressComponent.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Client/Demo/NetClient/Router/RouterAddressComponent.cs",
"repo_id": "ET",
"token_count": 158
} | 138 |
namespace ET.Client
{
namespace WaitType
{
public struct Wait_Room2C_Start: IWaitType
{
public int Error { get; set; }
public Room2C_Start Message;
}
}
} | ET/Unity/Assets/Scripts/Model/Client/LockStep/WaitType.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Client/LockStep/WaitType.cs",
"repo_id": "ET",
"token_count": 106
} | 139 |
fileFormatVersion: 2
guid: 3faeca7fdc230f44d84aca572973ad02
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Model/Generate/Client/Config/UnitConfig.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Generate/Client/Config/UnitConfig.cs.meta",
"repo_id": "ET",
"token_count": 92
} | 140 |
using MemoryPack;
using System.Collections.Generic;
namespace ET
{
[MemoryPackable]
[Message(InnerMessage.ObjectQueryRequest)]
[ResponseType(nameof(ObjectQueryResponse))]
public partial class ObjectQueryRequest : MessageObject, IRequest
{
public static ObjectQueryRequest Create(bool isFromP... | ET/Unity/Assets/Scripts/Model/Generate/ClientServer/Message/InnerMessage_S_20001.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Generate/ClientServer/Message/InnerMessage_S_20001.cs",
"repo_id": "ET",
"token_count": 10466
} | 141 |
using System;
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.Options;
using System.ComponentModel;
namespace ET
{
[Config]
public partial class StartSceneConfigCategory : Singleton<StartSceneConfigCategory>, IMerge
{
[BsonElement]
... | ET/Unity/Assets/Scripts/Model/Generate/Server/Config/StartSceneConfig.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Generate/Server/Config/StartSceneConfig.cs",
"repo_id": "ET",
"token_count": 927
} | 142 |
fileFormatVersion: 2
guid: 06f629321c0b3d44b9e0606d2b5f5303
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Model/Server/Demo/Gate.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Server/Demo/Gate.meta",
"repo_id": "ET",
"token_count": 73
} | 143 |
fileFormatVersion: 2
guid: e2a25a771a90c4a8680f28e4f53a36a4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Model/Server/Demo/Robot/Case.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Server/Demo/Robot/Case.meta",
"repo_id": "ET",
"token_count": 73
} | 144 |
using System.Collections.Generic;
using Unity.Mathematics;
namespace ET.Server
{
[ComponentOf(typeof(Unit))]
public class AOIEntity: Entity, IAwake<int, float3>, IDestroy
{
public Unit Unit => this.GetParent<Unit>();
public int ViewDistance;
private EntityRef<Cell> cell;
... | ET/Unity/Assets/Scripts/Model/Server/Module/AOI/AOIEntity.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Server/Module/AOI/AOIEntity.cs",
"repo_id": "ET",
"token_count": 776
} | 145 |
fileFormatVersion: 2
guid: 850082c851b74ff419893672cb613cf3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Model/Server/Module/Http/IHttpHandler.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Server/Module/Http/IHttpHandler.cs.meta",
"repo_id": "ET",
"token_count": 92
} | 146 |
fileFormatVersion: 2
guid: bd01ac0fb84bbf64db1fcba8deb29db6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Model/Server/Module/Router.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Server/Module/Router.meta",
"repo_id": "ET",
"token_count": 69
} | 147 |
using System;
namespace ET
{
[EnableMethod]
public abstract partial class LSEntity: Entity
{
public new K AddComponent<K>(bool isFromPool = false) where K : LSEntity, IAwake, new()
{
return this.AddComponentWithId<K>(this.GetId(), isFromPool);
}
public new K Add... | ET/Unity/Assets/Scripts/Model/Share/LockStep/LSEntity.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Share/LockStep/LSEntity.cs",
"repo_id": "ET",
"token_count": 1269
} | 148 |
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using MemoryPack;
using TrueSync;
namespace ET
{
public static class LSWorldSystem
{
public static LSWorld LSWorld(this LSEntity entity)
{
return entity.IScene as LSWorld;
}
... | ET/Unity/Assets/Scripts/Model/Share/LockStep/LSWorld.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Share/LockStep/LSWorld.cs",
"repo_id": "ET",
"token_count": 1773
} | 149 |
using System;
using System.Collections.Generic;
namespace ET
{
[Code]
public class AIDispatcherComponent: Singleton<AIDispatcherComponent>, ISingletonAwake
{
private readonly Dictionary<string, AAIHandler> aiHandlers = new();
public void Awake()
{
var types = Co... | ET/Unity/Assets/Scripts/Model/Share/Module/AI/AIDispatcherComponent.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Share/Module/AI/AIDispatcherComponent.cs",
"repo_id": "ET",
"token_count": 479
} | 150 |
using System;
namespace ET
{
public interface IMessageSessionHandler
{
void Handle(Session session, object message);
Type GetMessageType();
Type GetResponseType();
}
} | ET/Unity/Assets/Scripts/Model/Share/Module/Message/IMessageSessionHandler.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Share/Module/Message/IMessageSessionHandler.cs",
"repo_id": "ET",
"token_count": 75
} | 151 |
namespace ET
{
// 刚accept的session只持续5秒,必须通过验证,否则断开
[ComponentOf(typeof(Session))]
public class SessionAcceptTimeoutComponent: Entity, IAwake, IDestroy
{
public long Timer;
}
} | ET/Unity/Assets/Scripts/Model/Share/Module/Message/SessionAcceptTimeoutComponent.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Share/Module/Message/SessionAcceptTimeoutComponent.cs",
"repo_id": "ET",
"token_count": 118
} | 152 |
using System;
namespace ET
{
[AttributeUsage(AttributeTargets.Class)]
public class NumericWatcherAttribute : BaseAttribute
{
public SceneType SceneType { get; }
public int NumericType { get; }
public NumericWatcherAttribute(SceneType sceneType, int type)
{
this.SceneType = sceneType;
this.Numeric... | ET/Unity/Assets/Scripts/Model/Share/Module/Numeric/NumericWatcherAttribute.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Share/Module/Numeric/NumericWatcherAttribute.cs",
"repo_id": "ET",
"token_count": 123
} | 153 |
using System.Diagnostics;
using MongoDB.Bson.Serialization.Attributes;
using Unity.Mathematics;
namespace ET
{
[ChildOf(typeof(UnitComponent))]
[DebuggerDisplay("ViewName,nq")]
public partial class Unit: Entity, IAwake<int>
{
public int ConfigId { get; set; } //配置表id
[BsonElement]
... | ET/Unity/Assets/Scripts/Model/Share/Module/Unit/Unit.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Share/Module/Unit/Unit.cs",
"repo_id": "ET",
"token_count": 768
} | 154 |
{
"name": "Unity.Model",
"rootNamespace": "ET",
"references": [
"Unity.ThirdParty",
"Unity.Core",
"Unity.Mathematics",
"MemoryPack"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledRef... | ET/Unity/Assets/Scripts/Model/Unity.Model.asmdef/0 | {
"file_path": "ET/Unity/Assets/Scripts/Model/Unity.Model.asmdef",
"repo_id": "ET",
"token_count": 224
} | 155 |
using UnityEngine;
using UnityEngine.UI;
namespace ET.Client
{
[ComponentOf(typeof(UI))]
public class UILobbyComponent : Entity, IAwake
{
public GameObject enterMap;
public Text text;
}
}
| ET/Unity/Assets/Scripts/ModelView/Client/Demo/UI/UILobby/UILobbyComponent.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ModelView/Client/Demo/UI/UILobby/UILobbyComponent.cs",
"repo_id": "ET",
"token_count": 75
} | 156 |
using System.Collections.Generic;
using UnityEngine;
namespace ET.Client
{
[ComponentOf]
public class LSAnimatorComponent : Entity, IAwake, IUpdate, IDestroy
{
public Dictionary<string, AnimationClip> animationClips = new();
public HashSet<string> Parameter = new();
public MotionType MotionType;
public fl... | ET/Unity/Assets/Scripts/ModelView/Client/LockStep/LSAnimatorComponent.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ModelView/Client/LockStep/LSAnimatorComponent.cs",
"repo_id": "ET",
"token_count": 135
} | 157 |
using UnityEngine;
using UnityEngine.UI;
namespace ET.Client
{
[ComponentOf(typeof(UI))]
public class UILSRoomComponent: Entity, IAwake, IUpdate
{
public Button saveReplay;
public InputField saveName;
public Text totalFrame;
public Text frameText;
public Text predict... | ET/Unity/Assets/Scripts/ModelView/Client/LockStep/UI/UILSRoom/UILSRoomComponent.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ModelView/Client/LockStep/UI/UILSRoom/UILSRoomComponent.cs",
"repo_id": "ET",
"token_count": 199
} | 158 |
fileFormatVersion: 2
guid: 871912424dfff414b83ffac903b92716
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ModelView/Client/Module/UI/UIComponent.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ModelView/Client/Module/UI/UIComponent.cs.meta",
"repo_id": "ET",
"token_count": 92
} | 159 |
fileFormatVersion: 2
guid: 5aaea4ae92be1594f8eb20d6db2ddf82
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast.meta",
"repo_id": "ET",
"token_count": 70
} | 160 |
fileFormatVersion: 2
guid: ef4176267ba8b1842a1f6b474fcb1936
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Core/Loader.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Core/Loader.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 161 |
fileFormatVersion: 2
guid: c84e6e08809926d458b3830320482d42
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Core/RcByteOrder.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Core/RcByteOrder.cs.meta",
"repo_id": "ET",
"token_count": 93
} | 162 |
fileFormatVersion: 2
guid: 65437c9b2bb5abe4395808f3d5358c6e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Core/RcImmutableArray.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Core/RcImmutableArray.cs.meta",
"repo_id": "ET",
"token_count": 96
} | 163 |
namespace DotRecast.Detour.Crowd
{
/// Provides neighbor data for agents managed by the crowd.
/// @ingroup crowd
/// @see dtCrowdAgent::neis, dtCrowd
public readonly struct DtCrowdNeighbour
{
public readonly DtCrowdAgent agent;
/// < The index of the neighbor in the crowd.
... | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Crowd/DtCrowdNeighbour.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Crowd/DtCrowdNeighbour.cs",
"repo_id": "ET",
"token_count": 237
} | 164 |
using DotRecast.Core;
namespace DotRecast.Detour.Crowd
{
public class DtObstacleSegment
{
/** End points of the obstacle segment */
public RcVec3f p = new RcVec3f();
/** End points of the obstacle segment */
public RcVec3f q = new RcVec3f();
public bool touch;
}
} | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Crowd/DtObstacleSegment.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Crowd/DtObstacleSegment.cs",
"repo_id": "ET",
"token_count": 144
} | 165 |
fileFormatVersion: 2
guid: 68e95d7709e4e77479c519b6e150a90b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Crowd/Tracking/DtCrowdAgentDebugInfo.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Crowd/Tracking/DtCrowdAgentDebugInfo.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 166 |
fileFormatVersion: 2
guid: de753262ef6b4094b8d6460981df9e8d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Dynamic/Colliders/ConvexTrimeshCollider.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Dynamic/Colliders/ConvexTrimeshCollider.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 167 |
/*
recast4j copyright (c) 2021 Piotr Piastucki piotr@jtilia.org
DotRecast Copyright (c) 2023 Choi Ikpil ikpil@naver.com
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted t... | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Dynamic/VoxelQuery.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Dynamic/VoxelQuery.cs",
"repo_id": "ET",
"token_count": 4087
} | 168 |
using DotRecast.Core;
namespace DotRecast.Detour.Extras.Jumplink
{
public class GroundSample
{
public RcVec3f p = new RcVec3f();
public bool validTrajectory;
public bool validHeight;
}
} | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Extras/Jumplink/GroundSample.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Extras/Jumplink/GroundSample.cs",
"repo_id": "ET",
"token_count": 100
} | 169 |
namespace DotRecast.Detour.Extras.Jumplink
{
public class JumpSegment
{
public int groundSegment;
public int startSample;
public int samples;
}
} | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Extras/Jumplink/JumpSegment.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Extras/Jumplink/JumpSegment.cs",
"repo_id": "ET",
"token_count": 78
} | 170 |
/*
recast4j copyright (c) 2015-2019 Piotr Piastucki piotr@jtilia.org
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
incl... | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Extras/PolyUtils.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.Extras/PolyUtils.cs",
"repo_id": "ET",
"token_count": 1840
} | 171 |
fileFormatVersion: 2
guid: 0b3773df0ab70d448ab20cb61a5f44b5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.TileCache/DtTileCacheBuilder.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour.TileCache/DtTileCacheBuilder.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 172 |
namespace DotRecast.Detour
{
public class BVItem
{
public readonly int[] bmin = new int[3];
public readonly int[] bmax = new int[3];
public int i;
};
} | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/BVItem.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/BVItem.cs",
"repo_id": "ET",
"token_count": 88
} | 173 |
using System.Runtime.InteropServices;
namespace DotRecast.Detour
{
public readonly struct DtConnectPoly
{
public readonly long refs;
public readonly float tmin;
public readonly float tmax;
public DtConnectPoly(long refs, float tmin, float tmax)
{
this.refs ... | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/DtConnectPoly.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/DtConnectPoly.cs",
"repo_id": "ET",
"token_count": 197
} | 174 |
/*
Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
recast4j copyright (c) 2015-2019 Piotr Piastucki piotr@jtilia.org
DotRecast Copyright (c) 2023 Choi Ikpil ikpil@naver.com
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
ar... | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/DtNavMeshBuilder.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/DtNavMeshBuilder.cs",
"repo_id": "ET",
"token_count": 15109
} | 175 |
using DotRecast.Core;
namespace DotRecast.Detour
{
public class DtQueryNoOpFilter : IDtQueryFilter
{
public static readonly DtQueryNoOpFilter Shared = new DtQueryNoOpFilter();
private DtQueryNoOpFilter()
{
}
public bool PassFilter(long refs, DtMeshTile tile, DtPoly po... | ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/DtQueryNoOpFilter.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/DtQueryNoOpFilter.cs",
"repo_id": "ET",
"token_count": 300
} | 176 |
fileFormatVersion: 2
guid: a403e6d52bac9f54e82aeb34895369c1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/Io/DtMeshSetReader.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/Io/DtMeshSetReader.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 177 |
fileFormatVersion: 2
guid: 7555d7b60be8d16479a0dbf21a80faff
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/PathUtils.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Detour/PathUtils.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 178 |
fileFormatVersion: 2
guid: 316a6545c5aa3b64c8edbac232d4d430
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RcContourHoleComparer.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RcContourHoleComparer.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 179 |
fileFormatVersion: 2
guid: e820b921c79702c4cb41a044df1955d7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RcLayerRegion.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RcLayerRegion.cs.meta",
"repo_id": "ET",
"token_count": 94
} | 180 |
fileFormatVersion: 2
guid: 1e808d2b5893de147bd2b47c1d85a268
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RcRegion.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RcRegion.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 181 |
fileFormatVersion: 2
guid: 2c927b4f438f7234ba83295a2fc28169
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RecastCommon.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RecastCommon.cs.meta",
"repo_id": "ET",
"token_count": 94
} | 182 |
fileFormatVersion: 2
guid: 1be7bba3f28c1cd4cb767b060b5a0a46
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RecastRasterization.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/DotRecast/Recast/RecastRasterization.cs.meta",
"repo_id": "ET",
"token_count": 97
} | 183 |
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace ET
{
[AsyncMethodBuilder(typeof (AsyncETTaskCompletedMethodBuilder))]
public struct ETTaskCompleted: ICriticalNotifyCompletion
{
[DebuggerHidden]
public ETTaskCompleted GetAwaiter()
{
... | ET/Unity/Assets/Scripts/ThirdParty/ETTask/ETTaskCompleted.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/ETTask/ETTaskCompleted.cs",
"repo_id": "ET",
"token_count": 310
} | 184 |
fileFormatVersion: 2
guid: 8268fb22100eff945b4afe255bacc0ea
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/ThirdParty/NativeCollection/List.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/NativeCollection/List.cs.meta",
"repo_id": "ET",
"token_count": 91
} | 185 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace NativeCollection.UnsafeType
{
public unsafe struct MultiMap<T, K> : IEnumerable<MultiMapPair<T, K>>, IDisposable
where T : unmanaged, IEquatable<T>, IComparable<T> where K : unmanaged, IEq... | ET/Unity/Assets/Scripts/ThirdParty/NativeCollection/UnsafeType/MultiMap/MultiMap.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/NativeCollection/UnsafeType/MultiMap/MultiMap.cs",
"repo_id": "ET",
"token_count": 2128
} | 186 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Text;
namespace NativeCollection.UnsafeType
{
public unsafe struct UnOrderMap<T,K> : IEnumerable<MapPair<T, K>>
where T : unmanaged, IEquatable<T>, IComparable<T> ... | ET/Unity/Assets/Scripts/ThirdParty/NativeCollection/UnsafeType/UnOrderMap/UnOrderMap.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/NativeCollection/UnsafeType/UnOrderMap/UnOrderMap.cs",
"repo_id": "ET",
"token_count": 8296
} | 187 |
/* Copyright (C) <2009-2011> <Thorben Linneweber, Jitter Physics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any... | ET/Unity/Assets/Scripts/ThirdParty/TrueSync/TSMatrix4x4.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/ThirdParty/TrueSync/TSMatrix4x4.cs",
"repo_id": "ET",
"token_count": 25028
} | 188 |
fileFormatVersion: 2
guid: 71645c2e495da4f479dc650dcca520a3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Settings.meta/0 | {
"file_path": "ET/Unity/Assets/Settings.meta",
"repo_id": "ET",
"token_count": 68
} | 189 |
fileFormatVersion: 2
guid: 1d02808fba1938d429693b69b6a091a8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Settings/IgnoreAsmdef/HotfixView/Client/Ignore.asmdef.DISABLED.meta/0 | {
"file_path": "ET/Unity/Assets/Settings/IgnoreAsmdef/HotfixView/Client/Ignore.asmdef.DISABLED.meta",
"repo_id": "ET",
"token_count": 65
} | 190 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1200 &1
AutoStreamingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
mSearchMode: 7
mCustomSearchFile:
mTextures: []
mAudios: []
mMeshes: []
mScenes: []
mConfigCCD:
useCCD: 0
cosKey:
projectGuid:
bucketUuid:
bucketName:
b... | ET/Unity/ProjectSettings/AutoStreamingSettings.asset/0 | {
"file_path": "ET/Unity/ProjectSettings/AutoStreamingSettings.asset",
"repo_id": "ET",
"token_count": 154
} | 191 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Management.Automation;
using System.Text;
using ICSharpCode.Decompiler.CSharp;
using ICSharpCode.Decompiler.TypeSystem;
namespace ICSharpCode.Decompiler.PowerShell
{
[Cmdlet(VerbsCommon.Get, "DecompiledSource")]
[OutputType(typeof(string... | ILSpy/ICSharpCode.Decompiler.PowerShell/GetDecompiledSourceCmdlet.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.PowerShell/GetDecompiledSourceCmdlet.cs",
"repo_id": "ILSpy",
"token_count": 421
} | 192 |
// Copyright (c) 2020 Siegfried Pammer
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// pub... | ILSpy/ICSharpCode.Decompiler.Tests/Helpers/RoslynToolset.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/Helpers/RoslynToolset.cs",
"repo_id": "ILSpy",
"token_count": 1631
} | 193 |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, m... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Correctness/Async.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Correctness/Async.cs",
"repo_id": "ILSpy",
"token_count": 3604
} | 194 |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, m... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs",
"repo_id": "ILSpy",
"token_count": 4253
} | 195 |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, m... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Correctness/UndocumentedExpressions.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Correctness/UndocumentedExpressions.cs",
"repo_id": "ILSpy",
"token_count": 875
} | 196 |
using System;
internal class CallIndirect
{
private unsafe void Test(IntPtr f)
{
((delegate* unmanaged[Stdcall]<int, void>)f)(42);
}
private unsafe void UnmanagedDefaultCall(IntPtr f)
{
((delegate* unmanaged<int, void>)f)(42);
}
private unsafe void CustomCall(IntPtr f)
{
((delegate* unmanaged[Custom]<in... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/CallIndirect.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/CallIndirect.cs",
"repo_id": "ILSpy",
"token_count": 177
} | 197 |
using System;
using System.IO;
public static class FSharpUsingPatterns
{
public static void sample1()
{
using (FileStream fileStream = File.Create("x.txt"))
{
fileStream.WriteByte((byte)1);
}
}
public static void sample2()
{
Console.WriteLine("some text");
using (FileStream fileStream = File.Create... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/FSharpUsing_Debug.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/FSharpUsing_Debug.cs",
"repo_id": "ILSpy",
"token_count": 496
} | 198 |
public enum Enum0
{
// error: enumerator has no value
const_0,
// error: enumerator has no value
const_1,
// error: enumerator has no value
const_2,
// error: enumerator has no value
const_3
} | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue1323.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue1323.cs",
"repo_id": "ILSpy",
"token_count": 75
} | 199 |
.assembly issue2104
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = (
01 00 08 00 00 00 00 00
)
.custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = (
01 00 01 00 54 02 16 57 72 61 70 4e 6f 6e 45... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue2104.il/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue2104.il",
"repo_id": "ILSpy",
"token_count": 1109
} | 200 |
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
.ver 4:0:0:0
}
.assembly MonoFixed
{
.ver 1:0:0:0
}
.module MonoFixed.exe
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0003 // WindowsCui
.corflags 0x00000001 // ILOnly
.custom instance void [mscorl... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/MonoFixed.il/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/MonoFixed.il",
"repo_id": "ILSpy",
"token_count": 826
} | 201 |
namespace ICSharpCode.Decompiler.Tests.TestCases.CovariantReturns
{
public abstract class Base
{
public abstract Base Instance { get; }
public abstract Base this[int index] { get; }
public virtual Base Build()
{
throw null;
}
protected abstract Base SetParent(object parent);
}
public class Deriv... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CovariantReturns.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CovariantReturns.cs",
"repo_id": "ILSpy",
"token_count": 287
} | 202 |
#if !(CS110 && NET70)
using System;
#endif
using System.Text;
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
{
public class FunctionPointerAddressOf
{
public static void Overloaded()
{
}
public static void Overloaded(int a)
{
}
public unsafe delegate*<void> GetAddress()
{
return &Overlo... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/FunctionPointers.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/FunctionPointers.cs",
"repo_id": "ILSpy",
"token_count": 1490
} | 203 |
// Copyright (c) 2020 Daniel Grunwald
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publ... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/NativeInts.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/NativeInts.cs",
"repo_id": "ILSpy",
"token_count": 2358
} | 204 |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, m... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ShortCircuit.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ShortCircuit.cs",
"repo_id": "ILSpy",
"token_count": 2680
} | 205 |
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
{
internal class VariableNamingWithoutSymbols
{
private class C
{
public string Name;
public string Text;
}
private void Test(string text, C c)
{
#if CS70
_ = c.Name;
#else
string name = c.Name;
#endif
}
private void Test2(string tex... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/VariableNamingWithoutSymbols.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Pretty/VariableNamingWithoutSymbols.cs",
"repo_id": "ILSpy",
"token_count": 181
} | 206 |
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace ICSharpCode.Decompiler.Tests.TestCases.Ugly
{
public class NoDecimalConstants
{
[DecimalConstant(1, 0, 0u, 0u, 10u)]
private static readonly decimal constant = 1.0m;
private void MethodWithOptionalParameter([Optional][Decim... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Ugly/NoDecimalConstants.Expected.cs/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Ugly/NoDecimalConstants.Expected.cs",
"repo_id": "ILSpy",
"token_count": 141
} | 207 |
// Metadata version: v4.0.30319
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
.ver 4:0:0:0
}
.assembly prqfqkbt
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 0... | ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Ugly/NoForEachStatement.opt.il/0 | {
"file_path": "ILSpy/ICSharpCode.Decompiler.Tests/TestCases/Ugly/NoForEachStatement.opt.il",
"repo_id": "ILSpy",
"token_count": 2126
} | 208 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.