garbage day

This commit is contained in:
2025-09-02 17:10:17 -04:00
parent b5c2250d4d
commit c55f1be807
136 changed files with 2271 additions and 2 deletions

6
src/netit/BitBasher.cs Normal file
View File

@@ -0,0 +1,6 @@
namespace netit;
public class BitBasher
{
}

View File

@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
using System.Dynamic;
namespace netit;
public interface INetSerializeable
{
public string PacketName(); // basically like a static public string that can be set by implementations of inetserializeable
static public byte packetIndex;
static abstract public INetSerializeable deSerialize(byte[] bytes);
static abstract public byte[] Serialize();
}

View File

@@ -0,0 +1,8 @@
namespace netit;
// An INetSyncable is a class that can be sent and
public interface INetSyncable : INetSerializeable
{
public void Send();
public void Recieve();
}

6
src/netit/Packet.cs Normal file
View File

@@ -0,0 +1,6 @@
namespace netit;
public class Packet
{
}

View File

@@ -0,0 +1,22 @@
using System.Reflection.Emit;
namespace netit;
// TransportDefinition
// Defines identifiers of each packet by type (basically the first byte of every packet indicated that packets type)
public class TransportDefinition
{
private string[] _packetTypes;
public string[] packetTypes { get => _packetTypes; }
public TransportDefinition()
{
this._packetTypes = new string[256];
}
public void addType(INetSerializeable type)
{
//a parameter for
if (_packetTypes.Length >= 256) throw new Exception("Packet type limit reached.");
}
}

View File

@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"netit/1.0.0": {
"runtime": {
"netit.dll": {}
}
}
}
},
"libraries": {
"netit/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

8
src/netit/netit.cs Normal file
View File

@@ -0,0 +1,8 @@
namespace netit;
using System;
using System.Net.Sockets;
public class NetIt
{
}

9
src/netit/netit.csproj Normal file
View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("netit")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b5c2250d4d5a9ff08b645aacf71eed288c38183e")]
[assembly: System.Reflection.AssemblyProductAttribute("netit")]
[assembly: System.Reflection.AssemblyTitleAttribute("netit")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
72f2a468e482fccaf14cc377466bf8a209114007c0090e6884fbd2b1a7e32833

View File

@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = netit
build_property.ProjectDir = /home/apexfight/Desktop/DotNetNetIt/src/netit/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =

View File

@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

Binary file not shown.

View File

@@ -0,0 +1 @@
1a740d65a9bb003b1de07ea716bb0ffd215486af0c228340e9a77bf5f6a4d6b6

View File

@@ -0,0 +1,11 @@
/home/apexfight/Desktop/DotNetNetIt/src/netit/bin/Debug/net8.0/netit.deps.json
/home/apexfight/Desktop/DotNetNetIt/src/netit/bin/Debug/net8.0/netit.dll
/home/apexfight/Desktop/DotNetNetIt/src/netit/bin/Debug/net8.0/netit.pdb
/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/Debug/net8.0/netit.GeneratedMSBuildEditorConfig.editorconfig
/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/Debug/net8.0/netit.AssemblyInfoInputs.cache
/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/Debug/net8.0/netit.AssemblyInfo.cs
/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/Debug/net8.0/netit.csproj.CoreCompileInputs.cache
/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/Debug/net8.0/netit.dll
/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/Debug/net8.0/refint/netit.dll
/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/Debug/net8.0/netit.pdb
/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/Debug/net8.0/ref/netit.dll

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,61 @@
{
"format": 1,
"restore": {
"/home/apexfight/Desktop/DotNetNetIt/src/netit/netit.csproj": {}
},
"projects": {
"/home/apexfight/Desktop/DotNetNetIt/src/netit/netit.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/apexfight/Desktop/DotNetNetIt/src/netit/netit.csproj",
"projectName": "netit",
"projectPath": "/home/apexfight/Desktop/DotNetNetIt/src/netit/netit.csproj",
"packagesPath": "/home/apexfight/.nuget/packages/",
"outputPath": "/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/apexfight/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/nix/store/cpgj5qzpngdwv248vwdmszp95lb11ak2-dotnet-sdk-8.0.119/share/dotnet/sdk/8.0.119/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/apexfight/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/apexfight/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/apexfight/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@@ -0,0 +1,66 @@
{
"version": 3,
"targets": {
"net8.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net8.0": []
},
"packageFolders": {
"/home/apexfight/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/apexfight/Desktop/DotNetNetIt/src/netit/netit.csproj",
"projectName": "netit",
"projectPath": "/home/apexfight/Desktop/DotNetNetIt/src/netit/netit.csproj",
"packagesPath": "/home/apexfight/.nuget/packages/",
"outputPath": "/home/apexfight/Desktop/DotNetNetIt/src/netit/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/apexfight/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/nix/store/cpgj5qzpngdwv248vwdmszp95lb11ak2-dotnet-sdk-8.0.119/share/dotnet/sdk/8.0.119/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "OMqM86g/20YJ8bQ+I/jwsiC5ArfovoqSbIVEc3OCYq9pf0Son+JI4d1fLifsHH2sc4c5eBJVnOLPS3LDJU4w6w==",
"success": true,
"projectFilePath": "/home/apexfight/Desktop/DotNetNetIt/src/netit/netit.csproj",
"expectedPackageFiles": [],
"logs": []
}