TechbloxModdingAPI/TechbloxModdingAPI/Players/FlyCamEngine.cs
NorbiPeti b6b9a29a3c
Convert more things to use EcsObjectBase
Though the major benefit is only for blocks right now (using initializers)
2021-05-12 00:49:01 +02:00

27 lines
No EOL
634 B
C#

using Svelto.ECS;
using Techblox.FlyCam;
using TechbloxModdingAPI.Engines;
using TechbloxModdingAPI.Utility;
namespace TechbloxModdingAPI.Players
{
public class FlyCamEngine : IApiEngine
{
public void Ready()
{
}
public EntitiesDB entitiesDB { get; set; }
public void Dispose()
{
}
public string Name => "TechbloxModdingAPIFlyCamEngine";
public bool isRemovable => false;
public ref T GetComponent<T>(FlyCam cam) where T : unmanaged, IEntityComponent
{
return ref entitiesDB.QueryEntityOrDefault<T>(cam);
}
}
}