Reorganize projects

This commit is contained in:
SeanOMik 2024-11-07 18:10:57 -05:00
parent 8f926b3b58
commit 01bb7d0bc8
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
25 changed files with 16 additions and 5 deletions

View File

@ -1,4 +1,4 @@
namespace ExampleWorld;//.wit.exports.component.witguest;
namespace ExampleWorld;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
@ -7,12 +7,23 @@ using ExampleWorld.wit.imports.lyra.api;
[StructLayout(LayoutKind.Sequential)]
struct Vec3(float x, float y, float z)
{
/// <summary>
/// Unique TypeId of Vec3 that the host can use. This corresponds to the type id of vec3 on the host.
/// </summary>
public const ulong TypeId = 4124409524;
public float X { get; set; } = x;
public float Y { get; set; } = y;
public float Z { get; set; } = z;
public const ulong HostSize = sizeof(float) * 3;
/// <summary>
/// The X component.
/// </summary>
public float X { get; set; } = x;
/// <summary>
/// The Y component
/// </summary>
public float Y { get; set; } = y;
/// <summary>
/// The Z component
/// </summary>
public float Z { get; set; } = z;
}
public class ExampleWorldImpl : IExampleWorld