예제 #1
0
 /// <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);
     }
 }
예제 #2
0
 /// <summary>
 /// Adds an event to this event queue.
 /// </summary>
 internal void AddEvent(IBlockWorldEvent ev) => m_Events.Add(ev);
예제 #3
0
 /// <summary>
 /// Adds an event to the event queue.
 /// </summary>
 public void AddEvent(IBlockWorldEvent ev) => EventQueue.AddEvent(ev);