/// <summary> /// Called when events are triggered from the world container. /// </summary> /// <param name="ev">The event.</param> private void OnBlockWorldEvent(object sender, IBlockWorldEvent ev) { if (ev is ChunkRemeshEvent chunkRemeshEvent) { BuildChunkMesh(chunkRemeshEvent.Task); } }
/// <summary> /// Adds an event to this event queue. /// </summary> internal void AddEvent(IBlockWorldEvent ev) => m_Events.Add(ev);
/// <summary> /// Adds an event to the event queue. /// </summary> public void AddEvent(IBlockWorldEvent ev) => EventQueue.AddEvent(ev);