27 lines
No EOL
634 B
C#
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);
|
|
}
|
|
}
|
|
} |