mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 04:43:37 +00:00
18 lines
333 B
C++
18 lines
333 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, Vec3* pos);
|
|
|
|
HitResult(std::shared_ptr<Entity> entity);
|
|
|
|
double distanceTo(std::shared_ptr<Entity> e);
|
|
}; |