Skip to content

Commit

Permalink
feat: Merge c# models into one file (#19)
Browse files Browse the repository at this point in the history
* Combine fmt steps into one

* One file C# models

* Replace multiple files with single, reset models folder on build

* Stripped extra spaces

* merged with main
  • Loading branch information
kjy5 authored Mar 27, 2024
1 parent b3c0336 commit 0621786
Show file tree
Hide file tree
Showing 66 changed files with 408 additions and 499 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/autoformat-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
- name: 📦 Install Hatch
run: pip install hatch

- name: 📝 Format Code
run: hatch fmt -f
- name: 📝 Static Analysis
run: hatch fmt

- name: ✅ Commit code format changes
if: github.ref != 'refs/heads/main'
Expand All @@ -50,7 +50,4 @@ jobs:
commit-message: "Autoformat code"
title: "chore: Autoformat code"
branch: "autoformat-code"
delete-branch: true

- name: 🔍 Lint
run: hatch fmt --check
delete-branch: true
8 changes: 0 additions & 8 deletions models/csharp/dock/BucketModel.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/dock/LoadModel.cs

This file was deleted.

9 changes: 0 additions & 9 deletions models/csharp/dock/SaveManagerModel.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/dock/SaveModel.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/dock/UploadModel.cs

This file was deleted.

24 changes: 24 additions & 0 deletions models/csharp/dock_models.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
public struct BucketModel
{
public string Token;
public string Password;
}

public struct LoadModel
{
public string Bucket;
public string Password;
}

public struct SaveModel
{
public string Bucket;
public string Password;
}

public struct UploadModel
{
public string Data;
public string Password;
}

8 changes: 0 additions & 8 deletions models/csharp/ephys_link/AngularResponse.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/ephys_link/BooleanStateResponse.cs

This file was deleted.

9 changes: 0 additions & 9 deletions models/csharp/ephys_link/CanWriteRequest.cs

This file was deleted.

9 changes: 0 additions & 9 deletions models/csharp/ephys_link/DriveToDepthRequest.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/ephys_link/DriveToDepthResponse.cs

This file was deleted.

10 changes: 0 additions & 10 deletions models/csharp/ephys_link/GetManipulatorsResponse.cs

This file was deleted.

9 changes: 0 additions & 9 deletions models/csharp/ephys_link/GotoPositionRequest.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/ephys_link/InsideBrainRequest.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/ephys_link/PositionalResponse.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/ephys_link/ShankCountResponse.cs

This file was deleted.

70 changes: 70 additions & 0 deletions models/csharp/ephys_link_models.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
using UnityEngine;

public struct AngularResponse
{
public Vector3 Angles;
public string Error;
}

public struct BooleanStateResponse
{
public bool State;
public string Error;
}

public struct CanWriteRequest
{
public string ManipulatorId;
public bool CanWrite;
public float Hours;
}

public struct DriveToDepthRequest
{
public string ManipulatorId;
public float Depth;
public float Speed;
}

public struct DriveToDepthResponse
{
public float Depth;
public string Error;
}


public struct GetManipulatorsResponse
{
public string[] Manipulators;
public int NumAxes;
public Vector4 Dimensions;
public string Error;
}


public struct GotoPositionRequest
{
public string ManipulatorId;
public Vector4 Position;
public float Speed;
}

public struct InsideBrainRequest
{
public string ManipulatorId;
public bool Inside;
}


public struct PositionalResponse
{
public Vector4 Position;
public string Error;
}

public struct ShankCountResponse
{
public int ShankCount;
public string Error;
}

8 changes: 0 additions & 8 deletions models/csharp/generic/BoolData.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/BoolList.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/ColorData.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/ColorList.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/FloatData.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/FloatList.cs

This file was deleted.

7 changes: 0 additions & 7 deletions models/csharp/generic/IDData.cs

This file was deleted.

7 changes: 0 additions & 7 deletions models/csharp/generic/IDList.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/IDListBoolData.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/IDListBoolList.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/IDListColorData.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/IDListColorList.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/IDListFloatData.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/IDListFloatList.cs

This file was deleted.

8 changes: 0 additions & 8 deletions models/csharp/generic/IDListIntData.cs

This file was deleted.

Loading

0 comments on commit 0621786

Please sign in to comment.