mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
remove EcsWorldCmp
This commit is contained in:
parent
a0c2aab4bc
commit
121e33a307
@ -3,18 +3,9 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace DCFApixels.DragonECS
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 4, Size = 4)]
|
||||
public struct EcsWorldCmp<T> where T : struct
|
||||
{
|
||||
private short _worldID;
|
||||
public EcsWorldCmp(short worldID) { _worldID = worldID; }
|
||||
public EcsWorld World { get { return EcsWorld.GetWorld(_worldID); } }
|
||||
public ref T Value { get { return ref EcsWorld.GetData<T>(_worldID); } }
|
||||
}
|
||||
public partial class EcsWorld
|
||||
{
|
||||
private const short NULL_WORLD_ID = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user