switch from Unity version control to git

This commit is contained in:
Leo Qu
2026-01-07 23:54:53 -05:00
commit a098ec74d9
10166 changed files with 1614580 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Runtime.InteropServices;
using System;
using Google.FlatBuffers;
public class ControlLibrary : MonoBehaviour
{
[DllImport("libcontrol")]
public static extern void init();
[DllImport("libcontrol")]
public static extern void cleanup();
[DllImport("libcontrol")]
public static extern int send_angle_control(int module_id, int angle);
[DllImport("libcontrol")]
private static extern IntPtr get_configuration(out int module_id); // the data this points to will be invalidated when called again
public static Frontend.RobotConfiguration getRobotConfiguration() // this is not thread safe
{
int size;
IntPtr ptr = get_configuration(out size);
byte[] buffer = new byte[size];
Marshal.Copy(ptr, buffer, 0, size);
ByteBuffer bb = new ByteBuffer(buffer);
var myObject = Frontend.RobotConfiguration.GetRootAsRobotConfiguration(bb);
return myObject;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 54578cde37c4844c9b593676e0296381
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@@ -0,0 +1,63 @@
fileFormatVersion: 2
guid: 2e245339cbf750a4f9521fd4f064e92f
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 1
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude Win: 0
Exclude Win64: 0
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: x86_64
DefaultValueInitialized: true
OS: Windows
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: None
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: x86_64
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@@ -0,0 +1,33 @@
fileFormatVersion: 2
guid: 1e106a4fd65ba469d815025f404d1916
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
DefaultValueInitialized: true
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant: