Magically import images and more into Gamecraft as blocks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
568B

  1. using System;
  2. using GamecraftModdingAPI.Utility;
  3. using Svelto.ECS;
  4. using Unity.Mathematics;
  5. using RobocraftX.Physics;
  6. using RobocraftX.Character;
  7. namespace Pixi
  8. {
  9. internal class PlayerLocationEngine : IApiEngine
  10. {
  11. public string Name => "PixiPlayerLocationGameEngine";
  12. public EntitiesDB entitiesDB { set; private get; }
  13. public void Dispose() {}
  14. public void Ready() {}
  15. public float3 GetPlayerLocation(uint playerId)
  16. {
  17. return entitiesDB.QueryEntity<RigidBodyEntityStruct>(playerId, CharacterExclusiveGroups.OnFootGroup).position;
  18. }
  19. }
  20. }