You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System;
|
|
|
|
using gaemstone.ECS;
|
|
|
|
using gaemstone.Flecs;
|
|
|
|
using static gaemstone.Bloxel.Components.CoreComponents;
|
|
|
|
|
|
|
|
namespace Immersion;
|
|
|
|
|
|
|
|
[Module]
|
|
|
|
[DependsOn<gaemstone.Bloxel.Components.CoreComponents>]
|
|
|
|
[DependsOn<gaemstone.Client.Components.RenderingComponents>]
|
|
|
|
public class ObserverTest
|
|
|
|
{
|
|
|
|
[Observer<ObserverEvent.OnSet>]
|
|
|
|
[Expression("[in] Chunk, [none] (MeshHandle, *)")]
|
|
|
|
public static void DoObserver(in Chunk chunk)
|
|
|
|
=> Console.WriteLine($"Chunk at {chunk.Position} now has a Mesh!");
|
|
|
|
}
|