change document formatting

merge conflits
This commit is contained in:
2025-12-07 11:47:04 +09:00
parent 02084c1e47
commit f44208b502
4 changed files with 12 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ using Ghost.Test.Core;
using Misaki.HighPerformance.Jobs; using Misaki.HighPerformance.Jobs;
using Misaki.HighPerformance.LowLevel.Buffer; using Misaki.HighPerformance.LowLevel.Buffer;
using Misaki.HighPerformance.Mathematics; using Misaki.HighPerformance.Mathematics;
using System;
namespace Ghost.Entities.Test; namespace Ghost.Entities.Test;

View File

@@ -2,7 +2,6 @@ using Ghost.Core;
using Misaki.HighPerformance.LowLevel.Buffer; using Misaki.HighPerformance.LowLevel.Buffer;
using Misaki.HighPerformance.LowLevel.Collections; using Misaki.HighPerformance.LowLevel.Collections;
using Misaki.HighPerformance.LowLevel.Utilities; using Misaki.HighPerformance.LowLevel.Utilities;
using System;
using System.Diagnostics; using System.Diagnostics;
namespace Ghost.Entities; namespace Ghost.Entities;

View File

@@ -2,16 +2,15 @@ using Ghost.Core;
using Misaki.HighPerformance.LowLevel.Buffer; using Misaki.HighPerformance.LowLevel.Buffer;
using Misaki.HighPerformance.LowLevel.Collections; using Misaki.HighPerformance.LowLevel.Collections;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
namespace Ghost.Entities; namespace Ghost.Entities;
public partial class World public partial class World
{ {
private static List<World?> s_worlds = new(4); private static readonly List<World?> s_worlds = new(4);
private static Queue<Identifier<World>> s_freeWorldSlots = new(); private static readonly Queue<Identifier<World>> s_freeWorldSlots = new();
internal static Identifier<Archetype> EmptyArchetypeID => new Identifier<Archetype>(0); internal static Identifier<Archetype> EmptyArchetypeID => new (0);
public static int WorldCount => s_worlds.Count - s_freeWorldSlots.Count; public static int WorldCount => s_worlds.Count - s_freeWorldSlots.Count;
@@ -43,10 +42,7 @@ public partial class World
} }
var world = s_worlds[id.value]; var world = s_worlds[id.value];
if (world is not null) world?.Dispose();
{
world.Dispose();
}
} }
} }
@@ -72,8 +68,8 @@ public partial class World : IIdentifierType, IDisposable, IEquatable<World>
{ {
private readonly Identifier<World> _id; private readonly Identifier<World> _id;
private EntityManager _entityManager; private readonly EntityManager _entityManager;
private EntityCommandBuffer _entityCommandBuffer; private readonly EntityCommandBuffer _entityCommandBuffer;
private UnsafeList<Archetype> _archetypes; private UnsafeList<Archetype> _archetypes;
private UnsafeList<EntityQuery> _entityQueries; private UnsafeList<EntityQuery> _entityQueries;

6
omnisharp.json Normal file
View File

@@ -0,0 +1,6 @@
{
"Logging":
{
"LogLevel": "Error"
}
}