mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 21:53:37 +00:00
19 lines
339 B
C++
19 lines
339 B
C++
#pragma once
|
|
#include "Vec3.h"
|
|
|
|
class HitResult {
|
|
public:
|
|
enum Type { TILE, ENTITY };
|
|
|
|
Type type;
|
|
int x, y, z, f;
|
|
Vec3 pos;
|
|
std::shared_ptr<Entity> entity;
|
|
|
|
HitResult(int x, int y, int z, int f, const Vec3& pos);
|
|
|
|
HitResult(std::shared_ptr<Entity> entity);
|
|
|
|
double distanceTo(std::shared_ptr<Entity> e);
|
|
};
|