text stringlengths 7 35.3M | id stringlengths 11 185 | metadata dict | __index_level_0__ int64 0 2.14k |
|---|---|---|---|
@import "_common"
@import "_sidebar"
@import "_markdown"
nav
height 5rem
background-color $main-bg-color
position absolute
width 100%
z-index 9999
img
width 140px
height 42px
float left
position absolute
margin-top 1rem
.nav-link
li
... | xLua/docs/source/themes/catlib/source/css/page.styl/0 | {
"file_path": "xLua/docs/source/themes/catlib/source/css/page.styl",
"repo_id": "xLua",
"token_count": 1362
} | 2,041 |
<p align="center">
<img src="https://i.imgur.com/x8rtGr4.gif" alt="3D Game Shaders For Beginners" title="3D Game Shaders For Beginners">
</p>
# 3D Game Shaders For Beginners
Interested in adding
textures,
lighting,
shadows,
normal maps,
glowing objects,
ambient occlusion,
reflections,
refractions,
and more to your 3D... | 3d-game-shaders-for-beginners/README.md/0 | {
"file_path": "3d-game-shaders-for-beginners/README.md",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 896
} | 0 |
/*
(C) 2019 David Lettier
lettier.com
*/
#version 150
uniform vec2 gamma;
uniform sampler2D colorTexture;
out vec4 fragColor;
void main() {
vec2 texSize = textureSize(colorTexture, 0).xy;
vec2 texCoord = gl_FragCoord.xy / texSize;
fragColor = texture(colorTexture, texCoord);
fragColor.rgb = pow(f... | 3d-game-shaders-for-beginners/demonstration/shaders/fragment/gamma-correction.frag/0 | {
"file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/gamma-correction.frag",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 140
} | 1 |
/*
(C) 2019 David Lettier
lettier.com
*/
#version 150
uniform sampler2D colorTexture;
uniform sampler2D colorBlurTexture;
uniform sampler2D maskTexture;
out vec4 fragColor;
void main() {
vec2 texSize = textureSize(colorTexture, 0).xy;
vec2 texCoord = gl_FragCoord.xy / texSize;
vec4 mask = texture(m... | 3d-game-shaders-for-beginners/demonstration/shaders/fragment/reflection.frag/0 | {
"file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/reflection.frag",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 260
} | 2 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="description" content="Interested in adding textures, lighting, shadows, normal maps, glowi... | 3d-game-shaders-for-beginners/docs/blinn-phong.html/0 | {
"file_path": "3d-game-shaders-for-beginners/docs/blinn-phong.html",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 3782
} | 3 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="description" content="Interested in adding textures, lighting, shadows, normal maps, glowi... | 3d-game-shaders-for-beginners/docs/glsl.html/0 | {
"file_path": "3d-game-shaders-for-beginners/docs/glsl.html",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 3894
} | 4 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="description" content="Interested in adding textures, lighting, shadows, normal maps, glowi... | 3d-game-shaders-for-beginners/docs/sharpen.html/0 | {
"file_path": "3d-game-shaders-for-beginners/docs/sharpen.html",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 4467
} | 5 |
[:arrow_backward:](deferred-rendering.md)
[:arrow_double_up:](../README.md)
[:arrow_up_small:](#)
[:arrow_down_small:](#copyright)
[:arrow_forward:](blur.md)
# 3D Game Shaders For Beginners
## Fog
<p align="center">
<img src="https://i.imgur.com/uNRxZl4.gif" alt="Fog" title="Fog">
</p>
Fog (or mist as it's called i... | 3d-game-shaders-for-beginners/sections/fog.md/0 | {
"file_path": "3d-game-shaders-for-beginners/sections/fog.md",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 1233
} | 6 |
[:arrow_backward:](screen-space-reflection.md)
[:arrow_double_up:](../README.md)
[:arrow_up_small:](#)
[:arrow_down_small:](#copyright)
[:arrow_forward:](foam.md)
# 3D Game Shaders For Beginners
## Screen Space Refraction (SSR)
<p align="center">
<img src="https://i.imgur.com/8Mdcn4y.gif" alt="Screen Space Refractio... | 3d-game-shaders-for-beginners/sections/screen-space-refraction.md/0 | {
"file_path": "3d-game-shaders-for-beginners/sections/screen-space-refraction.md",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 3981
} | 7 |
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx... | AirSim/AirLib/AirLib.vcxproj.filters/0 | {
"file_path": "AirSim/AirLib/AirLib.vcxproj.filters",
"repo_id": "AirSim",
"token_count": 8497
} | 8 |
/*
Adopted from SunCalc by Vladimir Agafonkin
https://github.com/mourner/suncalc
*/
#ifndef airsim_core_EarthCelestial_hpp
#define airsim_core_EarthCelestial_hpp
#include "common/Common.hpp"
#include "EarthUtils.hpp"
#include <chrono>
#include <ctime>
namespace msr
{
namespace airlib
{
class EarthCelestial
... | AirSim/AirLib/include/common/EarthCelestial.hpp/0 | {
"file_path": "AirSim/AirLib/include/common/EarthCelestial.hpp",
"repo_id": "AirSim",
"token_count": 3589
} | 9 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef air_VectorMath_hpp
#define air_VectorMath_hpp
#include <cmath>
#include "common/common_utils/Utils.hpp"
#include "common_utils/RandomGenerator.hpp"
STRICT_MODE_OFF
//if not using unaligned types then disable vecto... | AirSim/AirLib/include/common/VectorMath.hpp/0 | {
"file_path": "AirSim/AirLib/include/common/VectorMath.hpp",
"repo_id": "AirSim",
"token_count": 13566
} | 10 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef airsim_core_FastPhysicsEngine_hpp
#define airsim_core_FastPhysicsEngine_hpp
#include "common/Common.hpp"
#include "physics/PhysicsEngineBase.hpp"
#include <iostream>
#include <sstream>
#include <fstream>
#include <... | AirSim/AirLib/include/physics/FastPhysicsEngine.hpp/0 | {
"file_path": "AirSim/AirLib/include/physics/FastPhysicsEngine.hpp",
"repo_id": "AirSim",
"token_count": 10636
} | 11 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_Barometer_hpp
#define msr_airlib_Barometer_hpp
#include <random>
#include "common/Common.hpp"
#include "common/EarthUtils.hpp"
#include "BarometerSimpleParams.hpp"
#include "BarometerBase.hpp"
#include "... | AirSim/AirLib/include/sensors/barometer/BarometerSimple.hpp/0 | {
"file_path": "AirSim/AirLib/include/sensors/barometer/BarometerSimple.hpp",
"repo_id": "AirSim",
"token_count": 1556
} | 12 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_MagnetometerSimpleParams_hpp
#define msr_airlib_MagnetometerSimpleParams_hpp
#include "common/Common.hpp"
namespace msr
{
namespace airlib
{
struct MagnetometerSimpleParams
{
enum Refer... | AirSim/AirLib/include/sensors/magnetometer/MagnetometerSimpleParams.hpp/0 | {
"file_path": "AirSim/AirLib/include/sensors/magnetometer/MagnetometerSimpleParams.hpp",
"repo_id": "AirSim",
"token_count": 862
} | 13 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef air_MultirotorRpcLibClient_hpp
#define air_MultirotorRpcLibClient_hpp
#include "common/Common.hpp"
#include <functional>
#include "common/CommonStructs.hpp"
#include "common/ImageCaptureBase.hpp"
#include "vehicles... | AirSim/AirLib/include/vehicles/multirotor/api/MultirotorRpcLibClient.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/api/MultirotorRpcLibClient.hpp",
"repo_id": "AirSim",
"token_count": 2848
} | 14 |
#pragma once
#include "interfaces/CommonStructs.hpp"
#include "interfaces/IBoardClock.hpp"
#include "interfaces/IAxisController.hpp"
#include "Params.hpp"
#include "PidController.hpp"
#include "common/common_utils/Utils.hpp"
#include <memory>
#include <string>
#include <exception>
namespace simple_flight
{
class An... | AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/AngleRateController.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/AngleRateController.hpp",
"repo_id": "AirSim",
"token_count": 753
} | 15 |
#pragma once
#include "IUpdatable.hpp"
#include "IBoardClock.hpp"
#include "IBoardInputPins.hpp"
#include "IBoardOutputPins.hpp"
#include "IBoardSensors.hpp"
namespace simple_flight
{
class IBoard : public IUpdatable
, public IBoardClock
, public IBoardInputPins
, public IBoardOutputPins
, public IBo... | AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IBoard.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IBoard.hpp",
"repo_id": "AirSim",
"token_count": 140
} | 16 |
// 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 <thread>
#include "safety/ObstacleMap.hpp"
#include "common/common_utils/Utils.hpp"
namespace msr
{
namespace airlib
{
Obsta... | AirSim/AirLib/src/safety/ObstacleMap.cpp/0 | {
"file_path": "AirSim/AirLib/src/safety/ObstacleMap.cpp",
"repo_id": "AirSim",
"token_count": 1778
} | 17 |
#ifndef msr_AirLibUnitTests_TestBase_hpp
#define msr_AirLibUnitTests_TestBase_hpp
#include <string>
#include <exception>
#include "common/common_utils/Utils.hpp"
namespace msr
{
namespace airlib
{
class TestBase
{
public:
virtual ~TestBase() = default;
virtual void run() = 0;
voi... | AirSim/AirLibUnitTests/TestBase.hpp/0 | {
"file_path": "AirSim/AirLibUnitTests/TestBase.hpp",
"repo_id": "AirSim",
"token_count": 337
} | 18 |
// 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/DataCollectorSGM.h/0 | {
"file_path": "AirSim/Examples/DataCollection/DataCollectorSGM.h",
"repo_id": "AirSim",
"token_count": 6815
} | 19 |
#pragma once
#include <memory>
#include "common/SteppableClock.hpp"
#include "physics/FastPhysicsEngine.hpp"
#include "physics/DebugPhysicsBody.hpp"
class StandAlonePhysics
{
public:
static void testCollision()
{
using namespace msr::airlib;
std::shared_ptr<SteppableClock> clock = std::make_s... | AirSim/Examples/StandAlonePhysics.hpp/0 | {
"file_path": "AirSim/Examples/StandAlonePhysics.hpp",
"repo_id": "AirSim",
"token_count": 1185
} | 20 |
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
| AirSim/LogViewer/LogViewer/App.config/0 | {
"file_path": "AirSim/LogViewer/LogViewer/App.config",
"repo_id": "AirSim",
"token_count": 78
} | 21 |
<UserControl x:Class="LogViewer.Controls.Console"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.... | AirSim/LogViewer/LogViewer/Controls/Console.xaml/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Controls/Console.xaml",
"repo_id": "AirSim",
"token_count": 356
} | 22 |
using LogViewer.Controls;
using LogViewer.Model;
using LogViewer.Model.ULog;
using LogViewer.Utilities;
using Microsoft.Maps.MapControl.WPF;
using Microsoft.Networking.Mavlink;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
using System.... | AirSim/LogViewer/LogViewer/MainWindow.xaml.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/MainWindow.xaml.cs",
"repo_id": "AirSim",
"token_count": 38278
} | 23 |
using System;
using System.Windows.Media;
namespace LogViewer.Utilities
{
/// <summary>
/// Helper extensions for manipulating colors.
/// </summary>
public static class ColorExtensions
{
public static int GetBrightness(this Color color)
{
return ((color.R * 299) + (co... | AirSim/LogViewer/LogViewer/Utilities/ColorExtensions.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Utilities/ColorExtensions.cs",
"repo_id": "AirSim",
"token_count": 3437
} | 24 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Networking.Mavlink
{
public class MavLinkMessage
{
public const byte Mavlink1Stx = 254;
public const by... | AirSim/LogViewer/Networking/Mavlink/MavlinkChannel.cs/0 | {
"file_path": "AirSim/LogViewer/Networking/Mavlink/MavlinkChannel.cs",
"repo_id": "AirSim",
"token_count": 12942
} | 25 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using System.Xml.Serialization;
namespace MavLinkComGenerator
{
... | AirSim/MavLinkCom/MavLinkComGenerator/MavlinkParser.cs/0 | {
"file_path": "AirSim/MavLinkCom/MavLinkComGenerator/MavlinkParser.cs",
"repo_id": "AirSim",
"token_count": 985
} | 26 |
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}") = "MavLinkTest", "MavLinkTest.vcxproj", "{25EB67BE-468A-4AA5-910F-07EFD58C5516}"
EndProject
Project("{8BC9CEB8-... | AirSim/MavLinkCom/MavLinkTest/MavLinkTest.sln/0 | {
"file_path": "AirSim/MavLinkCom/MavLinkTest/MavLinkTest.sln",
"repo_id": "AirSim",
"token_count": 1338
} | 27 |
#ifndef MavLinkCom_HighPriorityThread_hpp
#define MavLinkCom_HighPriorityThread_hpp
#include <thread>
#include <string>
namespace mavlink_utils
{
class CurrentThread
{
public:
// make the current thread run with maximum priority.
static bool setMaximumPriority();
// set a nice name on the current thread... | AirSim/MavLinkCom/common_utils/ThreadUtils.hpp/0 | {
"file_path": "AirSim/MavLinkCom/common_utils/ThreadUtils.hpp",
"repo_id": "AirSim",
"token_count": 133
} | 28 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef MavLinkCom_MavLinkTcpServer_hpp
#define MavLinkCom_MavLinkTcpServer_hpp
#include <string>
#include <memory>
#include "MavLinkConnection.hpp"
namespace mavlinkcom_impl
{
class MavLinkTcpServerImpl;
}
namespace mav... | AirSim/MavLinkCom/include/MavLinkTcpServer.hpp/0 | {
"file_path": "AirSim/MavLinkCom/include/MavLinkTcpServer.hpp",
"repo_id": "AirSim",
"token_count": 362
} | 29 |
#pragma once
// clang-format off
#include "string.h"
#include "mavlink_types.h"
/*
If you want MAVLink on a system that is native big-endian,
you need to define NATIVE_BIG_ENDIAN
*/
#ifdef NATIVE_BIG_ENDIAN
# define MAVLINK_NEED_BYTE_SWAP (MAVLINK_ENDIAN == MAVLINK_LITTLE_ENDIAN)
#else
# define MAVLINK_NEED_BYT... | AirSim/MavLinkCom/mavlink/protocol.h/0 | {
"file_path": "AirSim/MavLinkCom/mavlink/protocol.h",
"repo_id": "AirSim",
"token_count": 5829
} | 30 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "MavLinkMessages.hpp"
#include "MavLinkConnectionImpl.hpp"
#include "Utils.hpp"
#include "ThreadUtils.hpp"
#include "../serial_com/Port.h"
#include "../serial_com/SerialPort.hpp"
#include "../serial_com/UdpClientPo... | AirSim/MavLinkCom/src/impl/MavLinkConnectionImpl.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/impl/MavLinkConnectionImpl.cpp",
"repo_id": "AirSim",
"token_count": 8967
} | 31 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef ONECORE
#include "MavLinkConnection.hpp"
#include <Windows.h>
#include <ObjIdl.h>
#include <SetupAPI.h>
#include <Cfgmgr32.h>
#include <propkey.h>
#include <string>
using namespace mavlinkcom;
using namespace mavlin... | AirSim/MavLinkCom/src/impl/windows/WindowsFindSerialPorts.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/impl/windows/WindowsFindSerialPorts.cpp",
"repo_id": "AirSim",
"token_count": 2359
} | 32 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27428.2043
MinimumVisualStudioVersion = 10.0.40219.1
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "PythonClient", "PythonClient.pyproj", "{E2049E20-B6DD-474E-8BCA-1C8DC54725AA}"
EndProject
Global
GlobalSe... | AirSim/PythonClient/PythonClient.sln/0 | {
"file_path": "AirSim/PythonClient/PythonClient.sln",
"repo_id": "AirSim",
"token_count": 352
} | 33 |
import airsim
import cv2
import numpy as np
import os
import setup_path
import time
# Use below in settings.json with blocks environment
"""
{
"SettingsVersion": 1.2,
"SimMode": "Car",
"Vehicles": {
"Car1": {
"VehicleType": "PhysXCar",
"X": 4, "Y": 0, "Z": -2
},
"Car2": {
"VehicleType": "PhysXC... | AirSim/PythonClient/car/multi_agent_car.py/0 | {
"file_path": "AirSim/PythonClient/car/multi_agent_car.py",
"repo_id": "AirSim",
"token_count": 1711
} | 34 |
# In settings.json first activate computer vision mode:
# https://github.com/Microsoft/AirSim/blob/main/docs/image_apis.md#computer-vision-mode
import setup_path
import airsim
import pprint
client = airsim.VehicleClient()
client.confirmConnection()
# objects can be named in two ways:
# 1. In UE Editor, select and... | AirSim/PythonClient/computer_vision/objects.py/0 | {
"file_path": "AirSim/PythonClient/computer_vision/objects.py",
"repo_id": "AirSim",
"token_count": 973
} | 35 |
import airsim
import time
def RunConsoleCmd(client, cmd):
client.simRunConsoleCommand(cmd)
print(f"Running Unreal Console cmd '{cmd}' and sleeping for 1 second")
time.sleep(1.0)
def RunCmdList(client):
RunConsoleCmd(client, 'stat fps')
RunConsoleCmd(client, 'stat unit')
RunConsoleCmd(client, '... | AirSim/PythonClient/environment/unreal_console_commands.py/0 | {
"file_path": "AirSim/PythonClient/environment/unreal_console_commands.py",
"repo_id": "AirSim",
"token_count": 314
} | 36 |
import setup_path
import airsim
client = airsim.MultirotorClient()
client.armDisarm(False)
| AirSim/PythonClient/multirotor/disarm.py/0 | {
"file_path": "AirSim/PythonClient/multirotor/disarm.py",
"repo_id": "AirSim",
"token_count": 30
} | 37 |
import setup_path
import airsim
import sys
import time
print("""This script is designed to fly on the streets of the Neighborhood environment
and assumes the unreal position of the drone is [160, -1500, 120].""")
client = airsim.MultirotorClient()
client.confirmConnection()
client.enableApiControl(True)
print("armi... | AirSim/PythonClient/multirotor/path.py/0 | {
"file_path": "AirSim/PythonClient/multirotor/path.py",
"repo_id": "AirSim",
"token_count": 673
} | 38 |
###################################################################################################
#
# Project: Embedded Learning Library (ELL)
# File: wav_reader.py
# Authors: Chris Lovett
#
# Requires: Python 3.x
#
############################################################################################... | AirSim/PythonClient/multirotor/wav_reader.py/0 | {
"file_path": "AirSim/PythonClient/multirotor/wav_reader.py",
"repo_id": "AirSim",
"token_count": 2624
} | 39 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// by Sudipta Sinha
// adapted for AirSim by Matthias Mueller
#ifndef dsimage_h
#define dsimage_h
#include <stdio.h>
#include <limits.h>
#include <float.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#inclu... | AirSim/SGM/src/sgmstereo/dsimage.h/0 | {
"file_path": "AirSim/SGM/src/sgmstereo/dsimage.h",
"repo_id": "AirSim",
"token_count": 3435
} | 40 |
#include "NedTransform.h"
NedTransform::NedTransform(const AirSimUnity::UnityTransform& global_transform)
: global_transform_(global_transform)
{
local_ned_offset_ = AirSimUnity::AirSimVector(0.0f, 0.0f, 0.0f);
}
NedTransform::NedTransform(const NedTransform& global_transform)
: global_transform_(global_t... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/NedTransform.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/NedTransform.cpp",
"repo_id": "AirSim",
"token_count": 123
} | 41 |
#pragma once
#include "sensors/distance/DistanceSimple.hpp"
#include "../NedTransform.h"
class UnityDistanceSensor : public msr::airlib::DistanceSimple
{
private:
using Vector3r = msr::airlib::Vector3r;
using VectorMath = msr::airlib::VectorMath;
private:
std::string vehicle_name_;
const NedTransform... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/UnitySensors/UnityDistanceSensor.h/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/UnitySensors/UnityDistanceSensor.h",
"repo_id": "AirSim",
"token_count": 186
} | 42 |
#include "MultirotorPawnEvents.h"
MultirotorPawnEvents::ActuatorsSignal& MultirotorPawnEvents::getActuatorSignal()
{
return actuator_signal_;
} | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Multirotor/MultirotorPawnEvents.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Multirotor/MultirotorPawnEvents.cpp",
"repo_id": "AirSim",
"token_count": 57
} | 43 |
fileFormatVersion: 2
guid: d5746c3f216f7b84db940c7a63b44924
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Materials/BoxMatte.mat.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Materials/BoxMatte.mat.meta",
"repo_id": "AirSim",
"token_count": 75
} | 44 |
fileFormatVersion: 2
guid: 4e4f776850f4b674b82eae8fffd345a3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Models.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Models.meta",
"repo_id": "AirSim",
"token_count": 71
} | 45 |
%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: 1785388642459644}
m_IsPrefabParent: ... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/RecorderCamera.prefab/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/RecorderCamera.prefab",
"repo_id": "AirSim",
"token_count": 1250
} | 46 |
using UnityEngine;
using UnityEngine.UI;
namespace AirSimUnity {
/// <summary>
/// HUD class that manage weather-related UI elements.
/// </summary>
public class WeatherHUD : MonoBehaviour {
[SerializeField] private RectTransform rootPanel = default;
[SerializeField] private Toggle wea... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/HUD/WeatherHUD.cs/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/HUD/WeatherHUD.cs",
"repo_id": "AirSim",
"token_count": 711
} | 47 |
fileFormatVersion: 2
guid: 9cc58e6de68c02747a4aa12440551a3b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: -50
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities/AirSimTick.cs.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities/AirSimTick.cs.meta",
"repo_id": "AirSim",
"token_count": 95
} | 48 |
fileFormatVersion: 2
guid: f59d16aa1e7f4604fb096f0482db4819
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Weather/WeatherParamScalarCollection.cs.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Weather/WeatherParamScalarCollection.cs.meta",
"repo_id": "AirSim",
"token_count": 95
} | 49 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7321015775731177144
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2122546159185921841}
- component: {fileID: 877... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Weather/WeatherFX/Prefabs/WeatherFX.prefab/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Weather/WeatherFX/Prefabs/WeatherFX.prefab",
"repo_id": "AirSim",
"token_count": 2093
} | 50 |
fileFormatVersion: 2
guid: c7a2a8bd86543e4488e32b1cbfaefaa3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/Scenes/WeatherTest.unity.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/Scenes/WeatherTest.unity.meta",
"repo_id": "AirSim",
"token_count": 67
} | 51 |
fileFormatVersion: 2
guid: 965a4c3cf8f0acb408f15384c947b3fd
NativeFormatImporter:
userData:
assetBundleName:
| AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Materials/SkyCarWheelGrey.mat.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Materials/SkyCarWheelGrey.mat.meta",
"repo_id": "AirSim",
"token_count": 52
} | 52 |
fileFormatVersion: 2
guid: 9486e5d1d37e86246b9bd1e314a8a721
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap... | AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Textures/SkyCarWheelOcclusion.png.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Textures/SkyCarWheelOcclusion.png.meta",
"repo_id": "AirSim",
"token_count": 502
} | 53 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!78 &1
TagManager:
serializedVersion: 2
tags:
- CaptureCameras
- ViewCameras
layers:
- Default
- TransparentFX
- Ignore Raycast
-
- Water
- UI
-
-
- PostProcessing
- Vehicle
-
-
-
-
-
-
-
-
-
-
-
-
-
... | AirSim/Unity/UnityDemo/ProjectSettings/TagManager.asset/0 | {
"file_path": "AirSim/Unity/UnityDemo/ProjectSettings/TagManager.asset",
"repo_id": "AirSim",
"token_count": 229
} | 54 |
[/Script/Engine.InputSettings]
bAltEnterTogglesFullscreen=True
bF11TogglesFullscreen=True
bUseMouseForTouch=False
bEnableMouseSmoothing=True
bEnableFOVScaling=True
FOVScale=0.011110
DoubleClickTime=0.200000
bCaptureMouseOnLaunch=False
DefaultViewportMouseCaptureMode=NoCapture
bDefaultViewportMouseLock=False
DefaultView... | AirSim/Unreal/Environments/Blocks/Config/DefaultInput.ini/0 | {
"file_path": "AirSim/Unreal/Environments/Blocks/Config/DefaultInput.ini",
"repo_id": "AirSim",
"token_count": 171
} | 55 |
#! /bin/bash
# get path of current script: https://stackoverflow.com/a/39340259/207661
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd "$SCRIPT_DIR" >/dev/null
set -e
set -x
# clean temporary unreal folders
rm -rf Binaries
rm -rf Intermediate
rm -rf Saved
rm -rf Plugins/AirSim/Binaries
rm -rf Pl... | AirSim/Unreal/Environments/Blocks/clean.sh/0 | {
"file_path": "AirSim/Unreal/Environments/Blocks/clean.sh",
"repo_id": "AirSim",
"token_count": 170
} | 56 |
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "GameFramework/GameUserSettings.h"
#include "AirSimGameMode.generated.h"
/**
*
*/
UCLASS()
class AIRSIM_API AAirSimGameMode : public AGameModeBase
{... | AirSim/Unreal/Plugins/AirSim/Source/AirSimGameMode.h/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/AirSimGameMode.h",
"repo_id": "AirSim",
"token_count": 174
} | 57 |
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "Particles/ParticleSystemComponent.h"
#include "UnrealImageCapture.h"
#include <vector>
#include <memory>
#include "common/Common.hpp"
#include "common/common_utils/Signal.hpp"
#include "common/CommonStructs.hpp"
#include "common/GeodeticC... | AirSim/Unreal/Plugins/AirSim/Source/PawnSimApi.h/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/PawnSimApi.h",
"repo_id": "AirSim",
"token_count": 2755
} | 58 |
#include "SimModeBase.h"
#include "Recording/RecordingThread.h"
#include "Misc/MessageDialog.h"
#include "Misc/EngineVersion.h"
#include "Runtime/Launch/Resources/Version.h"
#include "UObject/ConstructorHelpers.h"
#include "Kismet/GameplayStatics.h"
#include "Misc/OutputDeviceNull.h"
#include "Engine/World.h"
#include... | AirSim/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp",
"repo_id": "AirSim",
"token_count": 14644
} | 59 |
#include "CarPawnApi.h"
#include "AirBlueprintLib.h"
#include "PhysXVehicleManager.h"
CarPawnApi::CarPawnApi(ACarPawn* pawn, const msr::airlib::Kinematics::State* pawn_kinematics,
msr::airlib::CarApiBase* vehicle_api)
: pawn_(pawn), pawn_kinematics_(pawn_kinematics), vehicle_api_(vehicle_ap... | AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Car/CarPawnApi.cpp/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Car/CarPawnApi.cpp",
"repo_id": "AirSim",
"token_count": 1319
} | 60 |
import airsim
import pprint
def print_state(client):
state = client.getMultirotorState()
s = pprint.pformat(state)
print("state: %s" % s)
imu_data = client.getImuData()
s = pprint.pformat(imu_data)
print("imu_data: %s" % s)
barometer_data = client.getBarometerData()
s = pprint.pformat... | AirSim/azure/app/multirotor.py/0 | {
"file_path": "AirSim/azure/app/multirotor.py",
"repo_id": "AirSim",
"token_count": 453
} | 61 |
#! /bin/bash
# get path of current script: https://stackoverflow.com/a/39340259/207661
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd "$SCRIPT_DIR" >/dev/null
set -x
git clean -ffdx
git pull
set -e
./setup.sh
./build.sh | AirSim/clean_rebuild.sh/0 | {
"file_path": "AirSim/clean_rebuild.sh",
"repo_id": "AirSim",
"token_count": 107
} | 62 |
#!/bin/bash
set -x
if ! which unzip; then
sudo apt-get install unzip
fi
wget -c https://github.com/microsoft/AirSim/releases/download/v1.6.0-linux/Blocks.zip
unzip -q Blocks.zip
rm Blocks.zip
| AirSim/docker/download_blocks_env_binary.sh/0 | {
"file_path": "AirSim/docker/download_blocks_env_binary.sh",
"repo_id": "AirSim",
"token_count": 80
} | 63 |
# FAQ
---
## Windows build
* [How to force Unreal to use Visual Studio 2019?](#how-to-force-unreal-to-use-visual-studio-2019)
* [I get error: 'where' is not recognized as an internal or external command](#i-get-error-where-is-not-recognized-as-an-internal-or-external-command)
* [I'm getting error `<MyProject> could ... | AirSim/docs/build_faq.md/0 | {
"file_path": "AirSim/docs/build_faq.md",
"repo_id": "AirSim",
"token_count": 3033
} | 64 |
AirSim provides a Python-based event camera simulator, aimed at performance and ability to run in real-time along with the sim.
#### Event cameras
An event camera is a special vision sensor that measures changes in logarithmic brightness and only reports 'events'. Each event is a set of four values that gets generated... | AirSim/docs/event_sim.md/0 | {
"file_path": "AirSim/docs/event_sim.md",
"repo_id": "AirSim",
"token_count": 1221
} | 65 |
# Setting up PX4 Software-in-Loop
The [PX4](http://dev.px4.io) software provides a "software-in-loop" simulation (SITL) version of
their stack that runs in Linux. If you are on Windows then you can use the [Cygwin
Toolchain](https://dev.px4.io/master/en/setup/dev_env_windows_cygwin.html) or you can use the
[Windows su... | AirSim/docs/px4_sitl.md/0 | {
"file_path": "AirSim/docs/px4_sitl.md",
"repo_id": "AirSim",
"token_count": 3190
} | 66 |
# Upgrading Settings
The settings schema in AirSim 1.2 is changed for more flexibility and cleaner interface. If you have older [settings.json](settings.md) file then you can either delete it and restart AirSim or use this guide to make manual upgrade.
## Quicker Way
We recommend simply deleting the [settings.json](s... | AirSim/docs/upgrade_settings.md/0 | {
"file_path": "AirSim/docs/upgrade_settings.md",
"repo_id": "AirSim",
"token_count": 369
} | 67 |
#ifndef _PID_POSITION_CONTROLLER_SIMPLE_H_
#define _PID_POSITION_CONTROLLER_SIMPLE_H_
#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 "c... | AirSim/ros/src/airsim_ros_pkgs/include/pd_position_controller_simple.h/0 | {
"file_path": "AirSim/ros/src/airsim_ros_pkgs/include/pd_position_controller_simple.h",
"repo_id": "AirSim",
"token_count": 1748
} | 68 |
bool wait_on_last_task
---
bool success
| AirSim/ros2/src/airsim_interfaces/srv/Takeoff.srv/0 | {
"file_path": "AirSim/ros2/src/airsim_interfaces/srv/Takeoff.srv",
"repo_id": "AirSim",
"token_count": 14
} | 69 |
<?xml version='1.0' encoding='utf-8'?>
<package format="3">
<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>ament_... | AirSim/ros2/src/airsim_ros_pkgs/package.xml/0 | {
"file_path": "AirSim/ros2/src/airsim_ros_pkgs/package.xml",
"repo_id": "AirSim",
"token_count": 670
} | 70 |
@echo off
REM //---------- set up variable ----------
setlocal
set ROOT_DIR=%~dp0
pushd %~dp0
:success
@echo "Task completed."
goto end
:failed
@echo "Task has failed."
goto end
:end
popd | AirSim/tools/template.bat/0 | {
"file_path": "AirSim/tools/template.bat",
"repo_id": "AirSim",
"token_count": 73
} | 71 |
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
namespace AssetStudio.PInvoke
{
public static class DllLoader
{
public static void PreloadDll(string dllName)
{
var dllDir = GetDirectedDllDirectory();
... | AssetStudio/AssetStudio.PInvoke/DllLoader.cs/0 | {
"file_path": "AssetStudio/AssetStudio.PInvoke/DllLoader.cs",
"repo_id": "AssetStudio",
"token_count": 2228
} | 72 |
using System;
namespace SevenZip.Compression.RangeCoder
{
struct BitTreeEncoder
{
BitEncoder[] Models;
int NumBitLevels;
public BitTreeEncoder(int numBitLevels)
{
NumBitLevels = numBitLevels;
Models = new BitEncoder[1 << numBitLevels];
}
public void Init()
{
for (uint i = 1; i < (1 << NumBit... | AssetStudio/AssetStudio/7zip/Compress/RangeCoder/RangeCoderBitTree.cs/0 | {
"file_path": "AssetStudio/AssetStudio/7zip/Compress/RangeCoder/RangeCoderBitTree.cs",
"repo_id": "AssetStudio",
"token_count": 1562
} | 73 |
/* Copyright 2015 Google Inc. All Rights Reserved.
Distributed under MIT license.
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
namespace Org.Brotli.Dec
{
internal sealed class State
{
internal int runningState = Org.Brotli.Dec.RunningState.Uninitialized;
internal int nextRunning... | AssetStudio/AssetStudio/Brotli/State.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Brotli/State.cs",
"repo_id": "AssetStudio",
"token_count": 1509
} | 74 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public abstract class Behaviour : Component
{
public byte m_Enabled;
protected Behaviour(ObjectReader reader) : base(reader)
{
m_Enabled = reader.ReadByte();
... | AssetStudio/AssetStudio/Classes/Behaviour.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Classes/Behaviour.cs",
"repo_id": "AssetStudio",
"token_count": 152
} | 75 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public sealed class PlayerSettings : Object
{
public string companyName;
public string productName;
public PlayerSettings(ObjectReader reader) : base(reader)
{
... | AssetStudio/AssetStudio/Classes/PlayerSettings.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Classes/PlayerSettings.cs",
"repo_id": "AssetStudio",
"token_count": 919
} | 76 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AssetStudio
{
public enum EndianType
{
LittleEndian,
BigEndian
}
}
| AssetStudio/AssetStudio/EndianType.cs/0 | {
"file_path": "AssetStudio/AssetStudio/EndianType.cs",
"repo_id": "AssetStudio",
"token_count": 91
} | 77 |
using System;
using System.Runtime.InteropServices;
namespace AssetStudio
{
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct Quaternion : IEquatable<Quaternion>
{
public float X;
public float Y;
public float Z;
public float W;
public Quaternion(float x... | AssetStudio/AssetStudio/Math/Quaternion.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Math/Quaternion.cs",
"repo_id": "AssetStudio",
"token_count": 1333
} | 78 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public class TypeTreeNode
{
public string m_Type;
public string m_Name;
public int m_ByteSize;
public int m_Index;
public int m_TypeFlags; //m_IsArray
p... | AssetStudio/AssetStudio/TypeTreeNode.cs/0 | {
"file_path": "AssetStudio/AssetStudio/TypeTreeNode.cs",
"repo_id": "AssetStudio",
"token_count": 364
} | 79 |
#define AS_API(ret_type)
| AssetStudio/AssetStudioFBXNative/cpp.hint/0 | {
"file_path": "AssetStudio/AssetStudioFBXNative/cpp.hint",
"repo_id": "AssetStudio",
"token_count": 11
} | 80 |
using System.Windows.Forms;
using AssetStudio;
namespace AssetStudioGUI
{
internal class AssetItem : ListViewItem
{
public Object Asset;
public SerializedFile SourceFile;
public string Container = string.Empty;
public string TypeString;
public long m_PathID;
pub... | AssetStudio/AssetStudioGUI/Components/AssetItem.cs/0 | {
"file_path": "AssetStudio/AssetStudioGUI/Components/AssetItem.cs",
"repo_id": "AssetStudio",
"token_count": 511
} | 81 |
using System;
using System.IO;
using System.Runtime.CompilerServices;
namespace SpirV
{
internal sealed class Reader
{
public Reader(BinaryReader reader)
{
reader_ = reader;
uint magicNumber = reader_.ReadUInt32();
if (magicNumber == Meta.MagicNumber)
{
littleEndian_ = true;
}
else if (Reve... | AssetStudio/AssetStudioUtility/CSspv/Reader.cs/0 | {
"file_path": "AssetStudio/AssetStudioUtility/CSspv/Reader.cs",
"repo_id": "AssetStudio",
"token_count": 393
} | 82 |
using System;
using System.IO;
using System.Text;
namespace Smolv
{
public static class SmolvDecoder
{
public static int GetDecodedBufferSize(byte[] data)
{
if (data == null)
{
throw new ArgumentNullException(nameof(data));
}
if (!CheckSmolHeader(data))
{
return 0;
}
int size = Bit... | AssetStudio/AssetStudioUtility/Smolv/SmolvDecoder.cs/0 | {
"file_path": "AssetStudio/AssetStudioUtility/Smolv/SmolvDecoder.cs",
"repo_id": "AssetStudio",
"token_count": 4906
} | 83 |
# AssetStudio
[](https://ci.appveyor.com/project/Perfare/assetstudio/branch/master/artifacts)
**None of the repo, the tool, nor the repo owner is affiliated with, or sponsored or authorized by, Unity Technologies or its affiliates.**... | AssetStudio/README.md/0 | {
"file_path": "AssetStudio/README.md",
"repo_id": "AssetStudio",
"token_count": 1014
} | 84 |
// File: crnlib.h - Advanced DXTn texture compression library.
// Copyright (c) 2010-2016 Richard Geldreich, Jr. All rights reserved.
// See copyright notice and license at the end of this file.
//
// This header file contains the public crnlib declarations for DXTn,
// clustered DXTn, and CRN compression/decompression... | AssetStudio/Texture2DDecoderNative/crunch/crnlib.h/0 | {
"file_path": "AssetStudio/Texture2DDecoderNative/crunch/crnlib.h",
"repo_id": "AssetStudio",
"token_count": 10389
} | 85 |
<Project>
<PropertyGroup>
<LangVersion>11.0</LangVersion>
<NoWarn>0169,0649,3021,8981</NoWarn>
</PropertyGroup>
</Project> | ET/DotNet/Directory.Build.props/0 | {
"file_path": "ET/DotNet/Directory.Build.props",
"repo_id": "ET",
"token_count": 62
} | 86 |
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace ET.Analyzer
{
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class EntityMethodDeclaratio... | ET/Share/Analyzer/Analyzer/EntityMethodDeclarationAnalyzer.cs/0 | {
"file_path": "ET/Share/Analyzer/Analyzer/EntityMethodDeclarationAnalyzer.cs",
"repo_id": "ET",
"token_count": 1867
} | 87 |
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IncludeBuildOutput>false</IncludeBuildOutput>
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>
</PropertyGroup>
<PropertyGroup>
<AppendTargetFrameworkToOutp... | ET/Share/Analyzer/Share.Analyzer.csproj/0 | {
"file_path": "ET/Share/Analyzer/Share.Analyzer.csproj",
"repo_id": "ET",
"token_count": 478
} | 88 |
mkdir build64 & pushd build64
cmake -G "Visual Studio 16 2019" -A x64 ..
popd
cmake --build build64 --config Release
md Plugins\x86_64
copy /Y build64\Release\RecastDll.dll Plugins\x86_64\RecastDll.dll
rmdir /S /Q build64
pause
| ET/Share/Libs/RecastDll/make_win64.bat/0 | {
"file_path": "ET/Share/Libs/RecastDll/make_win64.bat",
"repo_id": "ET",
"token_count": 89
} | 89 |
# ET8-Luban
基于ET8.1集成了功能更完善的Luban(新版)配置工具,导出时支持自定义数据校验,为上线项目配置的数据安全提供了足够的保障。
**使用方式**:点击'ET-BuildTool-ExcelExporter',实际开发时建议自行扩展成按快捷键调用ToolsEditor.ExcelExporter()
**项目链接**:[ET8-Luban](https://github.com/EP-Toushirou/ET8-Luban) | ET/Store/LubanExtension.md/0 | {
"file_path": "ET/Store/LubanExtension.md",
"repo_id": "ET",
"token_count": 261
} | 90 |
fileFormatVersion: 2
guid: 3f452063ceb5f4150bbbfe795c0aca90
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Bundles/Config/UnitConfigCategory.bytes.meta/0 | {
"file_path": "ET/Unity/Assets/Bundles/Config/UnitConfigCategory.bytes.meta",
"repo_id": "ET",
"token_count": 65
} | 91 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!... | ET/Unity/Assets/Bundles/Scenes/Map2.unity/0 | {
"file_path": "ET/Unity/Assets/Bundles/Scenes/Map2.unity",
"repo_id": "ET",
"token_count": 31400
} | 92 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1386170326414932
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 224438795553994780}
- component: {fileID: 1431576... | ET/Unity/Assets/Bundles/UI/Demo/UILobby.prefab/0 | {
"file_path": "ET/Unity/Assets/Bundles/UI/Demo/UILobby.prefab",
"repo_id": "ET",
"token_count": 5101
} | 93 |
fileFormatVersion: 2
guid: 631281e989abb6c4e80106b0502d46a8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Config/Excel/StartConfig/Localhost/StartProcessConfig@s.xlsx.meta/0 | {
"file_path": "ET/Unity/Assets/Config/Excel/StartConfig/Localhost/StartProcessConfig@s.xlsx.meta",
"repo_id": "ET",
"token_count": 64
} | 94 |
fileFormatVersion: 2
guid: 16cd92ca656d43543947a17e27d46057
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Config/Excel/StartConfig/RouterTest/StartMachineConfig@s.xlsx.meta/0 | {
"file_path": "ET/Unity/Assets/Config/Excel/StartConfig/RouterTest/StartMachineConfig@s.xlsx.meta",
"repo_id": "ET",
"token_count": 62
} | 95 |
syntax = "proto3";
package ET;
// ResponseType G2C_Match
message C2G_Match // ISessionRequest
{
int32 RpcId = 1;
}
message G2C_Match // ISessionResponse
{
int32 RpcId = 1;
int32 Error = 2;
string Message = 3;
}
/// 匹配成功,通知客户端切换场景
message Match2G_NotifyMatchSuccess // IMessage
{
int32 RpcId = 1;
/// 房间的ActorId
... | ET/Unity/Assets/Config/Proto/LockStepOuter_C_11001.proto/0 | {
"file_path": "ET/Unity/Assets/Config/Proto/LockStepOuter_C_11001.proto",
"repo_id": "ET",
"token_count": 555
} | 96 |
fileFormatVersion: 2
guid: edbdf76e36a24834fbc00ccc22cec493
folderAsset: yes
timeCreated: 1506157957
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Res/Unit/Skeleton.meta/0 | {
"file_path": "ET/Unity/Assets/Res/Unit/Skeleton.meta",
"repo_id": "ET",
"token_count": 74
} | 97 |
fileFormatVersion: 2
guid: 595f7cae6f82a6146b20ca287fe7c859
timeCreated: 1506158117
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 9100000
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Res/Unit/Skeleton/SkeletonController.controller.meta/0 | {
"file_path": "ET/Unity/Assets/Res/Unit/Skeleton/SkeletonController.controller.meta",
"repo_id": "ET",
"token_count": 83
} | 98 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.