Reorganize projects
This commit is contained in:
parent
8f926b3b58
commit
01bb7d0bc8
|
@ -1,4 +1,4 @@
|
||||||
namespace ExampleWorld;//.wit.exports.component.witguest;
|
namespace ExampleWorld;
|
||||||
|
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
@ -7,12 +7,23 @@ using ExampleWorld.wit.imports.lyra.api;
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
struct Vec3(float x, float y, float z)
|
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 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
|
public class ExampleWorldImpl : IExampleWorld
|
Loading…
Reference in New Issue