text stringlengths 7 35.3M | id stringlengths 11 185 | metadata dict | __index_level_0__ int64 0 2.14k |
|---|---|---|---|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef air_CarRpcLibClient_hpp
#define air_CarRpcLibClient_hpp
#include "common/Common.hpp"
#include <functional>
#include "common/CommonStructs.hpp"
#include "vehicles/car/api/CarApiBase.hpp"
#include "api/RpcLibClientBa... | AirSim/AirLib/include/vehicles/car/api/CarRpcLibClient.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/car/api/CarRpcLibClient.hpp",
"repo_id": "AirSim",
"token_count": 348
} | 14 |
#ifndef msr_airlib_ArduCopterSoloApi_h
#define msr_airlib_ArduCopterSoloApi_h
#include "AdHocConnection.hpp"
#include "vehicles/multirotor/MultiRotorPhysicsBody.hpp"
#include "vehicles/multirotor/firmwares/mavlink/MavLinkMultirotorApi.hpp"
namespace msr
{
namespace airlib
{
class ArduCopterSoloApi : public MavLi... | AirSim/AirLib/include/vehicles/multirotor/firmwares/mavlink/ArduCopterSoloApi.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/mavlink/ArduCopterSoloApi.hpp",
"repo_id": "AirSim",
"token_count": 4095
} | 15 |
#pragma once
#include <vector>
#include <algorithm>
#include "Params.hpp"
#include "interfaces/CommonStructs.hpp"
namespace simple_flight
{
class Mixer
{
public:
Mixer(const Params* params)
: params_(params)
{
}
void getMotorOutput(const Axis4r& controls, std::vector<float>& motor_outputs) c... | AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/Mixer.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/Mixer.hpp",
"repo_id": "AirSim",
"token_count": 1192
} | 16 |
#pragma once
namespace simple_flight
{
class IBoardSensors
{
public:
virtual void readAccel(float accel[3]) const = 0; //accel in m/s^2
virtual void readGyro(float gyro[3]) const = 0; //angular velocity vector rad/sec
virtual ~IBoardSensors() = default;
};
}
| AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IBoardSensors.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IBoardSensors.hpp",
"repo_id": "AirSim",
"token_count": 103
} | 17 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//in header only mode, control library is not available
#ifndef AIRLIB_HEADER_ONLY
#include "vehicles/multirotor/api/MultirotorApiBase.hpp"
#include <functional>
#include <exception>
#include <vector>
#include <iostream>
#... | AirSim/AirLib/src/vehicles/multirotor/api/MultirotorApiBase.cpp/0 | {
"file_path": "AirSim/AirLib/src/vehicles/multirotor/api/MultirotorApiBase.cpp",
"repo_id": "AirSim",
"token_count": 17719
} | 18 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.27428.2043
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DroneShell", "DroneShell\DroneShell.vcxproj", "{9FE9234B-373A-4D5A-AD6B-FB0B593312DD}"
EndProject
... | AirSim/AirSim.sln/0 | {
"file_path": "AirSim/AirSim.sln",
"repo_id": "AirSim",
"token_count": 12463
} | 19 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <iostream>
#include <iomanip>
#include "common/Common.hpp"
#include "common/common_utils/ProsumerQueue.hpp"
#include "common/common_utils/FileSystem.hpp"
#include "common/ClockFactory.hpp"
#include "v... | AirSim/Examples/DataCollection/StereoImageGenerator.hpp/0 | {
"file_path": "AirSim/Examples/DataCollection/StereoImageGenerator.hpp",
"repo_id": "AirSim",
"token_count": 4065
} | 20 |
# Welcome to GazeboDrone
This page has moved [here](https://github.com/microsoft/AirSim/blob/main/docs/gazebo_drone.md). | AirSim/GazeboDrone/README.md/0 | {
"file_path": "AirSim/GazeboDrone/README.md",
"repo_id": "AirSim",
"token_count": 45
} | 21 |
using LogViewer.Gestures;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documen... | AirSim/LogViewer/LogViewer/Controls/MeshViewer.xaml.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Controls/MeshViewer.xaml.cs",
"repo_id": "AirSim",
"token_count": 3746
} | 22 |
using LogViewer.Utilities;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Microsoft.Networking.Mavlink.MAVLink;
using System.Threading;
namespace LogViewer.Model
{
cl... | AirSim/LogViewer/LogViewer/Model/JSonDataLog.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Model/JSonDataLog.cs",
"repo_id": "AirSim",
"token_count": 4409
} | 23 |
using System;
using System.Windows.Media;
namespace LogViewer.Utilities
{
public class HlsColor
{
private byte red = 0;
private byte green = 0;
private byte blue = 0;
private float hue = 0;
private float luminance = 0;
private float saturation = 0;
///... | AirSim/LogViewer/LogViewer/Utilities/HlsColor.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Utilities/HlsColor.cs",
"repo_id": "AirSim",
"token_count": 5008
} | 24 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.15
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MavLinkMoCap", "MavlinkMoCap.vcxproj", "{9E9D74CE-235C-4A96-BFED-A3E9AC8D9039}"
EndProject
Project("{8BC9CEB... | AirSim/MavLinkCom/MavLinkMoCap/MavLinkMoCap.sln/0 | {
"file_path": "AirSim/MavLinkCom/MavLinkMoCap/MavLinkMoCap.sln",
"repo_id": "AirSim",
"token_count": 1310
} | 25 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "UnitTests.h"
#include <thread>
#include <chrono>
#include "Utils.hpp"
#include "FileSystem.hpp"
#include "MavLinkVehicle.hpp"
#include "MavLinkMessages.hpp"
#include "MavLinkConnection.hpp"
#include "MavLinkVideoS... | AirSim/MavLinkCom/MavLinkTest/UnitTests.cpp/0 | {
"file_path": "AirSim/MavLinkCom/MavLinkTest/UnitTests.cpp",
"repo_id": "AirSim",
"token_count": 7234
} | 26 |
#ifndef MavLinkCom_UdpSocket_hpp
#define MavLinkCom_UdpSocket_hpp
#include <string>
#include <memory>
namespace mavlinkcom_impl
{
class UdpSocketImpl;
}
namespace mavlinkcom
{
class UdpSocket;
// This class represents a simple single-threaded Socket interface specific for Udp connections
// Basic socket functions ... | AirSim/MavLinkCom/include/UdpSocket.hpp/0 | {
"file_path": "AirSim/MavLinkCom/include/UdpSocket.hpp",
"repo_id": "AirSim",
"token_count": 463
} | 27 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "MavLinkFtpClient.hpp"
#include "impl/MavLinkFtpClientImpl.hpp"
using namespace mavlinkcom;
using namespace mavlinkcom_impl;
MavLinkFtpClient::MavLinkFtpClient(int localSystemId, int localComponentId)
: MavLi... | AirSim/MavLinkCom/src/MavLinkFtpClient.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/MavLinkFtpClient.cpp",
"repo_id": "AirSim",
"token_count": 738
} | 28 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "MavLinkNodeImpl.hpp"
#include "Utils.hpp"
#include "MavLinkMessages.hpp"
#include "Semaphore.hpp"
#include "ThreadUtils.hpp"
using namespace mavlink_utils;
using namespace mavlinkcom_impl;
const int heartbeatMi... | AirSim/MavLinkCom/src/impl/MavLinkNodeImpl.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/impl/MavLinkNodeImpl.cpp",
"repo_id": "AirSim",
"token_count": 8689
} | 29 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "SocketInit.hpp"
#include "Utils.hpp"
#include <stdexcept>
#ifdef _WIN32
#include <Windows.h>
#endif
using namespace mavlink_utils;
bool SocketInit::socket_initialized_ = false;
SocketInit::SocketInit()
{
if... | AirSim/MavLinkCom/src/serial_com/SocketInit.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/serial_com/SocketInit.cpp",
"repo_id": "AirSim",
"token_count": 271
} | 30 |
import numpy as np
import matplotlib.pyplot as plt
import re
import sys
import pdb
def read_pfm(file):
""" Read a pfm file """
file = open(file, 'rb')
color = None
width = None
height = None
scale = None
endian = None
header = file.readline().rstrip()
header = str(bytes.decode(he... | AirSim/PythonClient/airsim/pfm.py/0 | {
"file_path": "AirSim/PythonClient/airsim/pfm.py",
"repo_id": "AirSim",
"token_count": 998
} | 31 |
import setup_path
import airsim
import time
import sys
import threading
def runSingleCar(id: int):
client = airsim.CarClient()
client.confirmConnection()
vehicle_name = f"Car_{id}"
pose = airsim.Pose(airsim.Vector3r(0, 7*id, 0),
airsim.Quaternionr(0, 0, 0, 0))
print(f"Crea... | AirSim/PythonClient/car/runtime_car.py/0 | {
"file_path": "AirSim/PythonClient/car/runtime_car.py",
"repo_id": "AirSim",
"token_count": 815
} | 32 |
import setup_path
import airsim
import cv2
import numpy as np
import pprint
# connect to the AirSim simulator
client = airsim.VehicleClient()
client.confirmConnection()
# set camera name and image type to request images and detections
camera_name = "0"
image_type = airsim.ImageType.Scene
# set detection radius in ... | AirSim/PythonClient/detection/detection.py/0 | {
"file_path": "AirSim/PythonClient/detection/detection.py",
"repo_id": "AirSim",
"token_count": 683
} | 33 |
import random
import csv
from PIL import Image
import numpy as np
import pandas as pd
import sys
import os
import errno
from collections import OrderedDict
import h5py
from pathlib import Path
import copy
import re
# This constant is used as an upper bound for normalizing the car's speed to be between 0 and 1
MAX_S... | AirSim/PythonClient/imitation_learning/Cooking.py/0 | {
"file_path": "AirSim/PythonClient/imitation_learning/Cooking.py",
"repo_id": "AirSim",
"token_count": 4200
} | 34 |
import setup_path
import airsim
import time
# connect to the AirSim simulator
client = airsim.MultirotorClient()
client.confirmConnection()
client.enableApiControl(True)
client.armDisarm(True)
# MultirotorClient.wait_key('Press any key to takeoff')
print("Taking off")
client.takeoffAsync().join()
print("Ready")
for... | AirSim/PythonClient/multirotor/gimbal.py/0 | {
"file_path": "AirSim/PythonClient/multirotor/gimbal.py",
"repo_id": "AirSim",
"token_count": 333
} | 35 |
import setup_path
import airsim
import numpy as np
import math
import time
import gym
from gym import spaces
from airgym.envs.airsim_env import AirSimEnv
class AirSimCarEnv(AirSimEnv):
def __init__(self, ip_address, image_shape):
super().__init__(image_shape)
self.image_shape = image_shape
... | AirSim/PythonClient/reinforcement_learning/airgym/envs/car_env.py/0 | {
"file_path": "AirSim/PythonClient/reinforcement_learning/airgym/envs/car_env.py",
"repo_id": "AirSim",
"token_count": 2138
} | 36 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// by Sudipta Sinha
// adapted for AirSim by Matthias Mueller
#pragma once
#include <stdio.h> /* printf */
#include <string>
struct SGMOptions
{
std::string inputDir; // folder contains input images
std::string ou... | AirSim/SGM/src/stereoPipeline/SGMOptions.h/0 | {
"file_path": "AirSim/SGM/src/stereoPipeline/SGMOptions.h",
"repo_id": "AirSim",
"token_count": 1012
} | 37 |
#include "PawnSimApi.h"
#include "common/ClockFactory.hpp"
#include "common/EarthUtils.hpp"
#include "PInvokeWrapper.h"
#include "AirSimStructs.hpp"
#include "UnityUtilities.hpp"
PawnSimApi::PawnSimApi(const Params& params)
: params_(params), ned_transform_(*params.global_transform)
{
}
void PawnSimApi::initializ... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/PawnSimApi.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/PawnSimApi.cpp",
"repo_id": "AirSim",
"token_count": 4140
} | 38 |
//#pragma once
#include <thread>
#include "UnityUtilities.hpp"
#include "SimHUD/SimHUD.h"
#include "Logger.h"
#ifdef _WIN32
#define EXPORT __declspec(dllexport)
#else
#define EXPORT __attribute__((visibility("default")))
#endif
static SimHUD* key = nullptr;
void StartServerThread(std::string sim_mode_name, int port... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/UnityToAirSimCalls.h/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/UnityToAirSimCalls.h",
"repo_id": "AirSim",
"token_count": 631
} | 39 |
#include "SimModeWorldMultiRotor.h"
#include "vehicles/multirotor/api/MultirotorApiBase.hpp"
#include "MultirotorPawnSimApi.h"
#include "vehicles/multirotor/api/MultirotorRpcLibServer.hpp"
SimModeWorldMultiRotor::SimModeWorldMultiRotor(int port_number)
: SimModeWorldBase(port_number)
{
}
void SimModeWorldMultiRot... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Multirotor/SimModeWorldMultiRotor.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Multirotor/SimModeWorldMultiRotor.cpp",
"repo_id": "AirSim",
"token_count": 1648
} | 40 |
fileFormatVersion: 2
guid: 31ca9a6d3b881974c8d8c580a7eb28ec
timeCreated: 1462197775
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Materials/Hexacopter_Body.mat.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Materials/Hexacopter_Body.mat.meta",
"repo_id": "AirSim",
"token_count": 73
} | 41 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &8816652036562285266
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8816652036562285271}
- component: {fileID: 881... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/AirSimGlobal.prefab/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/AirSimGlobal.prefab",
"repo_id": "AirSim",
"token_count": 830
} | 42 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1710384515616978}
m_IsPrefabParent: ... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/WindowCameras.prefab/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/WindowCameras.prefab",
"repo_id": "AirSim",
"token_count": 3445
} | 43 |
using System;
using System.IO;
using AirSimUnity;
using UnityEditor;
using UnityEngine;
using UnityEngine.SceneManagement;
public class InitializeAirSim : MonoBehaviour
{
void Awake()
{
if (GetAirSimSettingsFileName() != string.Empty)
{
if(AirSimSettings.Initialize())
{
... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/InitializeAirSim.cs/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/InitializeAirSim.cs",
"repo_id": "AirSim",
"token_count": 2084
} | 44 |
fileFormatVersion: 2
guid: 143128f730c3edd44bd3c7cd0baf09f1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities/DataManager.cs.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities/DataManager.cs.meta",
"repo_id": "AirSim",
"token_count": 94
} | 45 |
using System;
using System.Collections.Generic;
using AirSimUnity.DroneStructs;
using UnityEngine;
namespace AirSimUnity {
/*
* Drone component that is used to control the drone object in the scene. This is based on Vehicle class that is communicating with AirLib.
* This class depends on the AirLib's dr... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Vehicles/Multirotor/Drone.cs/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Vehicles/Multirotor/Drone.cs",
"repo_id": "AirSim",
"token_count": 1406
} | 46 |
fileFormatVersion: 2
guid: f557b0d47a81a7a448a4c0d85b02e8ba
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Weather.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Weather.meta",
"repo_id": "AirSim",
"token_count": 73
} | 47 |
fileFormatVersion: 2
guid: d3236a44a708bd94c9c6113ce63afaa7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Materials.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Materials.meta",
"repo_id": "AirSim",
"token_count": 69
} | 48 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!55 &1
PhysicsManager:
m_ObjectHideFlags: 0
serializedVersion: 7
m_Gravity: {x: 0, y: -9.81, z: 0}
m_DefaultMaterial: {fileID: 0}
m_BounceThreshold: 2
m_SleepThreshold: 0.005
m_DefaultContactOffset: 0.01
m_DefaultSolverIterations: 6
m_DefaultSolverVelocit... | AirSim/Unity/UnityDemo/ProjectSettings/DynamicsManager.asset/0 | {
"file_path": "AirSim/Unity/UnityDemo/ProjectSettings/DynamicsManager.asset",
"repo_id": "AirSim",
"token_count": 401
} | 49 |
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/SceneComponent.h"
#include "ObjectFilter.h"
#include "DetectionComponent.generated.h"
USTRUCT()
struct FDetectionInfo
{
GENERATED_BODY()
UPROPERTY()
AActor* Actor;
... | AirSim/Unreal/Plugins/AirSim/Source/DetectionComponent.h/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/DetectionComponent.h",
"repo_id": "AirSim",
"token_count": 601
} | 50 |
#pragma once
#include "CoreMinimal.h"
#include "HAL/Runnable.h"
#include "AirBlueprintLib.h"
#include "api/VehicleSimApiBase.hpp"
#include "Recording/RecordingFile.h"
#include "physics/Kinematics.hpp"
#include <memory>
#include "common/ClockFactory.hpp"
#include "common/AirSimSettings.hpp"
#include "common/WorkerThre... | AirSim/Unreal/Plugins/AirSim/Source/Recording/RecordingThread.h/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/Recording/RecordingThread.h",
"repo_id": "AirSim",
"token_count": 669
} | 51 |
#include "TextureShuffleActor.h"
void ATextureShuffleActor::SwapTexture_Implementation(int tex_id, int component_id, int material_id)
{
if (SwappableTextures.Num() < 1)
return;
if (!MaterialCacheInitialized) {
TArray<UStaticMeshComponent*> components;
GetComponents<UStaticMeshComponent... | AirSim/Unreal/Plugins/AirSim/Source/TextureShuffleActor.cpp/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/TextureShuffleActor.cpp",
"repo_id": "AirSim",
"token_count": 419
} | 52 |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "CarWheelFront.h"
#include "TireConfig.h"
#include "UObject/ConstructorHelpers.h"
UCarWheelFront::UCarWheelFront()
{
ShapeRadius = 18.f;
ShapeWidth = 15.0f;
Mass = 20.0f;
DampingRate = 0.25f;
bAffectedByHandbrake = false;
St... | AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Car/CarWheelFront.cpp/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Car/CarWheelFront.cpp",
"repo_id": "AirSim",
"token_count": 306
} | 53 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "SimModeWorldMultiRotor.h"
#include "UObject/ConstructorHelpers.h"
#include "Logging/MessageLog.h"
#include "Engine/World.h"
#include "GameFramework/PlayerController.h"
#include "AirBlueprintLib.h"
#include "vehic... | AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Multirotor/SimModeWorldMultiRotor.cpp/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Multirotor/SimModeWorldMultiRotor.cpp",
"repo_id": "AirSim",
"token_count": 2099
} | 54 |
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"VmName": {
"type": "string",
"metadata": {
"description": "Name for the VM can be whatever you want, but can't be chan... | AirSim/azure/azure-env-creation/vm-arm-template.json/0 | {
"file_path": "AirSim/azure/azure-env-creation/vm-arm-template.json",
"repo_id": "AirSim",
"token_count": 5722
} | 55 |
# Camera Views
The camera views that are shown on screen are the camera views you can fetch via the [simGetImages API](image_apis.md).

From left to right is the depth view, segmentation view and the FPV view. See [Image APIs](image_apis.md) for description of various available views.
... | AirSim/docs/camera_views.md/0 | {
"file_path": "AirSim/docs/camera_views.md",
"repo_id": "AirSim",
"token_count": 803
} | 56 |
# Busy Hard Drive
It is not required, but we recommend running your Unreal Environment on a Solid State Drive (SSD).
Between debugging, logging, and Unreal asset loading
the hard drive can become your bottle neck. It is normal that your hard drive will be slammed while Unreal is loading
the environment, but if your ... | AirSim/docs/hard_drive.md/0 | {
"file_path": "AirSim/docs/hard_drive.md",
"repo_id": "AirSim",
"token_count": 709
} | 57 |
# Runtime Texture Swapping
## How to Make An Actor Retexturable
To be made texture-swappable, an actor must derive from the parent class TextureShuffleActor.
The parent class can be set via the settings tab in the actor's blueprint.

After setting the parent class to Tex... | AirSim/docs/retexturing.md/0 | {
"file_path": "AirSim/docs/retexturing.md",
"repo_id": "AirSim",
"token_count": 824
} | 58 |
# Who is Using AirSim?
#### Would you like to see your own group or project here?
Just add a [GitHub issue](https://github.com/microsoft/airsim/issues) with quick details and link to your website.
* [NASA Ames Research Center – Systems Analysis Office](https://www.nasa.gov/ames)
* [Astrobotic](https://www.astroboti... | AirSim/docs/who_is_using.md/0 | {
"file_path": "AirSim/docs/who_is_using.md",
"repo_id": "AirSim",
"token_count": 634
} | 59 |
<?xml version="1.0"?>
<package format="2">
<name>airsim_ros_pkgs</name>
<version>0.0.1</version>
<description>ROS Wrapper over AirSim's C++ client library</description>
<maintainer email="ratneshmadaan@gmail.com">Ratnesh Madaan</maintainer>
<license>MIT</license>
<buildtool_depend>catkin</buildtool_depen... | AirSim/ros/src/airsim_ros_pkgs/package.xml/0 | {
"file_path": "AirSim/ros/src/airsim_ros_pkgs/package.xml",
"repo_id": "AirSim",
"token_count": 559
} | 60 |
# AirSim ROS Tutorials
This page has moved [here](https://github.com/microsoft/AirSim/blob/main/docs/airsim_tutorial_pkgs.md). | AirSim/ros/src/airsim_tutorial_pkgs/README.md/0 | {
"file_path": "AirSim/ros/src/airsim_tutorial_pkgs/README.md",
"repo_id": "AirSim",
"token_count": 44
} | 61 |
#include "common/common_utils/StrictMode.hpp"
STRICT_MODE_OFF //todo what does this do?
#ifndef RPCLIB_MSGPACK
#define RPCLIB_MSGPACK clmdep_msgpack
#endif // !RPCLIB_MSGPACK
#include "rpc/rpc_error.h"
STRICT_MODE_ON
#include "airsim_settings_parser.h"
#include "common/AirSimSettings.hpp"
#include "common/common_u... | AirSim/ros2/src/airsim_ros_pkgs/include/airsim_ros_wrapper.h/0 | {
"file_path": "AirSim/ros2/src/airsim_ros_pkgs/include/airsim_ros_wrapper.h",
"repo_id": "AirSim",
"token_count": 7437
} | 62 |
#include <airsim_ros_wrapper.h>
#include "common/AirSimSettings.hpp"
#include <tf2_sensor_msgs/tf2_sensor_msgs.h>
using namespace std::placeholders;
constexpr char AirsimROSWrapper::CAM_YML_NAME[];
constexpr char AirsimROSWrapper::WIDTH_YML_NAME[];
constexpr char AirsimROSWrapper::HEIGHT_YML_NAME[];
constexpr char Ai... | AirSim/ros2/src/airsim_ros_pkgs/src/airsim_ros_wrapper.cpp/0 | {
"file_path": "AirSim/ros2/src/airsim_ros_pkgs/src/airsim_ros_wrapper.cpp",
"repo_id": "AirSim",
"token_count": 30188
} | 63 |
// CommandLineParser.cs
using System;
using System.Collections;
namespace SevenZip.CommandLineParser
{
public enum SwitchType
{
Simple,
PostMinus,
LimitedPostString,
UnLimitedPostString,
PostChar
}
public class SwitchForm
{
public string IDString;
public SwitchType Type;
public bool Multi;
pub... | AssetStudio/AssetStudio/7zip/Common/CommandLineParser.cs/0 | {
"file_path": "AssetStudio/AssetStudio/7zip/Common/CommandLineParser.cs",
"repo_id": "AssetStudio",
"token_count": 2903
} | 64 |
using System.Buffers;
namespace AssetStudio
{
public static class BigArrayPool<T>
{
private static readonly ArrayPool<T> s_shared = ArrayPool<T>.Create(64 * 1024 * 1024, 3);
public static ArrayPool<T> Shared => s_shared;
}
}
| AssetStudio/AssetStudio/BigArrayPool.cs/0 | {
"file_path": "AssetStudio/AssetStudio/BigArrayPool.cs",
"repo_id": "AssetStudio",
"token_count": 100
} | 65 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public enum BuildTarget
{
NoTarget = -2,
AnyPlayer = -1,
ValidPlayer = 1,
StandaloneOSX = 2,
StandaloneOSXPPC = 3,
StandaloneOSXIntel = 4,
Stand... | AssetStudio/AssetStudio/BuildTarget.cs/0 | {
"file_path": "AssetStudio/AssetStudio/BuildTarget.cs",
"repo_id": "AssetStudio",
"token_count": 649
} | 66 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public sealed class Font : NamedObject
{
public byte[] m_FontData;
public Font(ObjectReader reader) : base(reader)
{
if ((version[0] == 5 && version[1] >= 5) || ve... | AssetStudio/AssetStudio/Classes/Font.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Classes/Font.cs",
"repo_id": "AssetStudio",
"token_count": 2588
} | 67 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public abstract class RuntimeAnimatorController : NamedObject
{
protected RuntimeAnimatorController(ObjectReader reader) : base(reader)
{
}
}
}
| AssetStudio/AssetStudio/Classes/RuntimeAnimatorController.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Classes/RuntimeAnimatorController.cs",
"repo_id": "AssetStudio",
"token_count": 104
} | 68 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public class FileIdentifier
{
public Guid guid;
public int type; //enum { kNonAssetType = 0, kDeprecatedCachedAssetType = 1, kSerializedAssetType = 2, kMetaAssetType = 3 };
pub... | AssetStudio/AssetStudio/FileIdentifier.cs/0 | {
"file_path": "AssetStudio/AssetStudio/FileIdentifier.cs",
"repo_id": "AssetStudio",
"token_count": 153
} | 69 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public class ObjectInfo
{
public long byteStart;
public uint byteSize;
public int typeID;
public int classID;
public ushort isDestroyed;
public byte str... | AssetStudio/AssetStudio/ObjectInfo.cs/0 | {
"file_path": "AssetStudio/AssetStudio/ObjectInfo.cs",
"repo_id": "AssetStudio",
"token_count": 168
} | 70 |
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="源文件">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;def;odl;idl;hpj;bat;asm;asmx</Ext... | AssetStudio/AssetStudioFBXNative/AssetStudioFBXNative.vcxproj.filters/0 | {
"file_path": "AssetStudio/AssetStudioFBXNative/AssetStudioFBXNative.vcxproj.filters",
"repo_id": "AssetStudio",
"token_count": 1187
} | 71 |
#pragma once
struct Vector3 {
float X;
float Y;
float Z;
Vector3();
Vector3(float x, float y, float z);
};
struct Quaternion {
float X;
float Y;
float Z;
float W;
Quaternion();
Quaternion(float x, float y, float z);
Quaternion(float x, float y, float z, float w);
};
Vector3 QuaternionToEuler(Quater... | AssetStudio/AssetStudioFBXNative/utils.h/0 | {
"file_path": "AssetStudio/AssetStudioFBXNative/utils.h",
"repo_id": "AssetStudio",
"token_count": 150
} | 72 |
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using AssetStudio;
namespace AssetStudioGUI
{
internal class TypeTreeItem : ListViewItem
{
private TypeTree m_Type;
public TypeTreeItem(int typeID, TypeTree m_Type)
{
this.m_Type = m_Type;
... | AssetStudio/AssetStudioGUI/Components/TypeTreeItem.cs/0 | {
"file_path": "AssetStudio/AssetStudioGUI/Components/TypeTreeItem.cs",
"repo_id": "AssetStudio",
"token_count": 425
} | 73 |
/* ========================================================================================== */
/* */
/* FMOD Studio - C# Wrapper . Copyright (c), Firelight Technologies Pty, Ltd. 2004-2016. */
/* ... | AssetStudio/AssetStudioUtility/FMOD Studio API/fmod.cs/0 | {
"file_path": "AssetStudio/AssetStudioUtility/FMOD Studio API/fmod.cs",
"repo_id": "AssetStudio",
"token_count": 95317
} | 74 |
using System;
using System.Runtime.CompilerServices;
using Texture2DDecoder;
namespace AssetStudio
{
public class Texture2DConverter
{
private ResourceReader reader;
private int m_Width;
private int m_Height;
private TextureFormat m_TextureFormat;
private int[] version;... | AssetStudio/AssetStudioUtility/Texture2DConverter.cs/0 | {
"file_path": "AssetStudio/AssetStudioUtility/Texture2DConverter.cs",
"repo_id": "AssetStudio",
"token_count": 15732
} | 75 |
#include "astc.h"
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "color.h"
#include "fp16.h"
static const int BitReverseTable[] = {
0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60, 0xE0, 0x10, 0x90, 0x50, 0xD0, 0x30, 0xB0, 0x70, 0xF0, 0x08, 0x88, 0x48,
0xC8, 0x28, 0xA8, 0x68, 0xE8,... | AssetStudio/Texture2DDecoderNative/astc.cpp/0 | {
"file_path": "AssetStudio/Texture2DDecoderNative/astc.cpp",
"repo_id": "AssetStudio",
"token_count": 27816
} | 76 |
#include "etc.h"
#include <stdint.h>
#include <string.h>
#include "color.h"
const uint_fast8_t WriteOrderTable[16] = {0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15};
const uint_fast8_t WriteOrderTableRev[16] = {15, 11, 7, 3, 14, 10, 6, 2, 13, 9, 5, 1, 12, 8, 4, 0};
const uint_fast8_t Etc1ModifierTable[8][2] = {... | AssetStudio/Texture2DDecoderNative/etc.cpp/0 | {
"file_path": "AssetStudio/Texture2DDecoderNative/etc.cpp",
"repo_id": "AssetStudio",
"token_count": 11479
} | 77 |
using System;
using System.Runtime.InteropServices;
using AssetStudio.PInvoke;
namespace Texture2DDecoder
{
public static unsafe partial class TextureDecoder
{
static TextureDecoder()
{
DllLoader.PreloadDll(T2DDll.DllName);
}
public static bool DecodeDXT1(byte[] d... | AssetStudio/Texture2DDecoderWrapper/TextureDecoder.cs/0 | {
"file_path": "AssetStudio/Texture2DDecoderWrapper/TextureDecoder.cs",
"repo_id": "AssetStudio",
"token_count": 4233
} | 78 |
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>ET</RootNamespace>
<LangVersion>12</LangVersion>
<AssemblyName>Hotfix</AssemblyName>
</PropertyGroup>
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false<... | ET/DotNet/Hotfix/DotNet.Hotfix.csproj/0 | {
"file_path": "ET/DotNet/Hotfix/DotNet.Hotfix.csproj",
"repo_id": "ET",
"token_count": 948
} | 79 |
using System;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace ET.Analyzer
{
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public cla... | ET/Share/Analyzer/Analyzer/AsyncMethodReturnTypeAnalyzer.cs/0 | {
"file_path": "ET/Share/Analyzer/Analyzer/AsyncMethodReturnTypeAnalyzer.cs",
"repo_id": "ET",
"token_count": 838
} | 80 |
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace ET.Analyze... | ET/Share/Analyzer/Analyzer/StaticClassCircularDependencyAnalyzer.cs/0 | {
"file_path": "ET/Share/Analyzer/Analyzer/StaticClassCircularDependencyAnalyzer.cs",
"repo_id": "ET",
"token_count": 4327
} | 81 |
#ifndef INVOKE_HELPER_H
#define INVOKE_HELPER_H
#if !RECASTNAVIGATION_STATIC && WIN32
#define RECAST_DLL _declspec(dllexport)
#else
#define RECAST_DLL
#endif
#include "DetourNavMesh.h"
#include <cstdint>
#include <string>
#include <map>
#ifdef __cplusplus
extern "C" {
#endif
class NavMeshContex;
RECAST_DLL NavMeshC... | ET/Share/Libs/RecastDll/Include/InvokeHelper.h/0 | {
"file_path": "ET/Share/Libs/RecastDll/Include/InvokeHelper.h",
"repo_id": "ET",
"token_count": 393
} | 82 |
using System.Collections.Generic;
using System.Text;
using ET.Analyzer;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace ET.Generator;
[Generator(LanguageNames.CSharp)]
public class ETEntitySerializeFormatterGenerator : ISourceGenerator
{
pub... | ET/Share/Share.SourceGenerator/Generator/ETEntitySerializeFormatterGenerator.cs/0 | {
"file_path": "ET/Share/Share.SourceGenerator/Generator/ETEntitySerializeFormatterGenerator.cs",
"repo_id": "ET",
"token_count": 3159
} | 83 |
# ET-EUI
基于ET框架的封装的WebSocket,支持WebGL
#### 使用方式
- 在SceneFactory的CreateZoneScene上添加
zoneScene.AddComponent<NetWSJSComponent, int>(SessionStreamDispatcherType.SessionStreamDispatcherClientOuter);
- 在使用的时候先创建Session
Session gateSession = zoneScene.GetComponent<NetWSJSComponent>().Create($"ws://{r2CLoginZone.GateAddrss... | ET/Store/WebSocketJs.md/0 | {
"file_path": "ET/Store/WebSocketJs.md",
"repo_id": "ET",
"token_count": 272
} | 84 |
## 使用说明
双击打开RecastDemo.exe文件
(如果出现报错说明是电脑本身缺少VisualC++库,可以下载一个Visual Studio然后安装如图所示模块即可)

随后选中模型,并进行参数调控与Nav数据烘焙即可
]
public class EntitySystemAttribute: BaseAttribute
{
}
} | ET/Unity/Assets/Scripts/Core/Entity/EntitySystemAttribute.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Entity/EntitySystemAttribute.cs",
"repo_id": "ET",
"token_count": 52
} | 93 |
using System;
namespace ET
{
public interface ISerialize
{
}
public interface ISerializeSystem: ISystemType
{
void Run(Entity o);
}
/// <summary>
/// 序列化前执行的System
/// </summary>
/// <typeparam name="T"></typeparam>
[EntitySystem]
public abstract class SerializeSystem<T> : SystemObject, ISerializeSys... | ET/Unity/Assets/Scripts/Core/Entity/ISerializeSystem.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Entity/ISerializeSystem.cs",
"repo_id": "ET",
"token_count": 280
} | 94 |
fileFormatVersion: 2
guid: 2fd29b3ff6f09434a9de8b2a26016ea8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Core/Fiber.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Fiber.meta",
"repo_id": "ET",
"token_count": 71
} | 95 |
fileFormatVersion: 2
guid: 45dca9d6f16557645a7ce5b1dfad7176
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Core/Fiber/Module/Actor/MessageSenderStruct.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Fiber/Module/Actor/MessageSenderStruct.cs.meta",
"repo_id": "ET",
"token_count": 96
} | 96 |
using System;
using System.Threading;
namespace ET
{
[Invoke(TimerCoreInvokeType.CoroutineTimeout)]
public class WaitCoroutineLockTimer: ATimer<WaitCoroutineLock>
{
protected override void Run(WaitCoroutineLock waitCoroutineLock)
{
if (waitCoroutineLock.IsDisposed())
... | ET/Unity/Assets/Scripts/Core/Fiber/Module/CoroutineLock/WaitCoroutineLock.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Fiber/Module/CoroutineLock/WaitCoroutineLock.cs",
"repo_id": "ET",
"token_count": 820
} | 97 |
using System.Text;
namespace ET
{
public static class ByteHelper
{
public static string ToHex(this byte b)
{
return b.ToString("X2");
}
public static string ToHex(this byte[] bytes)
{
StringBuilder stringBuilder = new StringBuilder();
foreach (byte b in bytes)
{
stringBuilder.Append(b.ToS... | ET/Unity/Assets/Scripts/Core/Helper/ByteHelper.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Helper/ByteHelper.cs",
"repo_id": "ET",
"token_count": 1289
} | 98 |
using System;
using System.Collections.Generic;
using Random = System.Random;
namespace ET
{
// 支持多线程
public static class RandomGenerator
{
[StaticField]
[ThreadStatic]
private static Random random;
private static Random GetRandom()
{
return random ??= ... | ET/Unity/Assets/Scripts/Core/Helper/RandomGenerator.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Helper/RandomGenerator.cs",
"repo_id": "ET",
"token_count": 1270
} | 99 |
using System;
using System.Net;
using System.Net.Sockets;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
namespace ET
{
public interface IKcpTransport: IDisposable
{
void Send(byte[] bytes, int index, int length, EndPoint endPoint);
int Recv(byte[] buf... | ET/Unity/Assets/Scripts/Core/Network/IKcpTransport.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Network/IKcpTransport.cs",
"repo_id": "ET",
"token_count": 3157
} | 100 |
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
namespace ET
{
public enum NetworkProtocol
{
TCP,
KCP,
Websocket,
UDP,
}
public class NetServices: Singleton<NetServices>, ISingletonAwake
{
private long idGenera... | ET/Unity/Assets/Scripts/Core/Network/NetServices.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Network/NetServices.cs",
"repo_id": "ET",
"token_count": 432
} | 101 |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
namespace ET
{
public enum TcpOp
{
StartSend,
StartRecv,
Connect,
}
public struct TArgs
{
public TcpOp Op;
public long ChannelId;
publ... | ET/Unity/Assets/Scripts/Core/Network/TService.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Network/TService.cs",
"repo_id": "ET",
"token_count": 2647
} | 102 |
fileFormatVersion: 2
guid: 90d2aa9a80bc74140bc36eef78a1a34e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Core/Object/ProtoObject.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/Object/ProtoObject.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 103 |
using System;
using System.Collections.Generic;
namespace ET
{
public class UnOrderMultiMap<T, K>: Dictionary<T, List<K>>
{
public void Add(T t, K k)
{
List<K> list;
this.TryGetValue(t, out list);
if (list == null)
{
list = new List<K>();
base[t] = list;
}
list.Add(k);
}
public bo... | ET/Unity/Assets/Scripts/Core/UnOrderMultiMap.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/UnOrderMultiMap.cs",
"repo_id": "ET",
"token_count": 745
} | 104 |
fileFormatVersion: 2
guid: e502791ab03091f4b8bd9e6a3292dff2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Core/World/Module/Actor/MessageDispatcher.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/World/Module/Actor/MessageDispatcher.cs.meta",
"repo_id": "ET",
"token_count": 96
} | 105 |
namespace ET
{
public class InvokeAttribute: BaseAttribute
{
public long Type { get; }
public InvokeAttribute(long type = 0)
{
this.Type = type;
}
}
} | ET/Unity/Assets/Scripts/Core/World/Module/EventSystem/InvokeAttribute.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/World/Module/EventSystem/InvokeAttribute.cs",
"repo_id": "ET",
"token_count": 101
} | 106 |
fileFormatVersion: 2
guid: 7267a4e71eb917547afb0bdd52d9a360
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Core/World/Module/Fiber/ThreadScheduler.cs.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/World/Module/Fiber/ThreadScheduler.cs.meta",
"repo_id": "ET",
"token_count": 95
} | 107 |
fileFormatVersion: 2
guid: b0ae23f776aa91d40a8d8b6a21ba483f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Core/World/Module/Options.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Core/World/Module/Options.meta",
"repo_id": "ET",
"token_count": 71
} | 108 |
fileFormatVersion: 2
guid: 52a0058e2cd667648a8ba92689e0263c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Editor/AssetPostProcessor.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/AssetPostProcessor.meta",
"repo_id": "ET",
"token_count": 69
} | 109 |
using System;
using UnityEditor;
namespace ET
{
[TypeDrawer]
public class BoolTypeDrawer: ITypeDrawer
{
public bool HandlesType(Type type)
{
return type == typeof (bool);
}
public object DrawAndGetNewValue(Type memberType, string memberName, object value, object... | ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/BoolTypeDrawer.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/BoolTypeDrawer.cs",
"repo_id": "ET",
"token_count": 185
} | 110 |
using System;
using UnityEditor;
namespace ET
{
[TypeDrawer]
public class EnumTypeDrawer: ITypeDrawer
{
public bool HandlesType(Type type)
{
return type.IsEnum;
}
public object DrawAndGetNewValue(Type memberType, string memberName, object value, object target)
... | ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/EnumTypeDrawer.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/EnumTypeDrawer.cs",
"repo_id": "ET",
"token_count": 410
} | 111 |
using System;
using Unity.Mathematics;
using UnityEditor;
using UnityEngine;
namespace ET
{
[TypeDrawer]
public class QuaternionTypeDrawer: ITypeDrawer
{
public bool HandlesType(Type type)
{
return type == typeof (quaternion);
}
public object DrawAndGetNewValue(... | ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/QuaternionTypeDrawer.cs/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/ComponentViewEditor/TypeDrawer/QuaternionTypeDrawer.cs",
"repo_id": "ET",
"token_count": 229
} | 112 |
fileFormatVersion: 2
guid: 10ce5e5130790b9468addf1a602cf8f0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Scripts/Editor/GlobalConfigEditor.meta/0 | {
"file_path": "ET/Unity/Assets/Scripts/Editor/GlobalConfigEditor.meta",
"repo_id": "ET",
"token_count": 69
} | 113 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.