1
This commit is contained in:
parent
a23de49951
commit
21a5be0d4f
@ -4284,5 +4284,19 @@ void Human::DoGetOnWithCar(Car* car)
|
|||||||
|
|
||||||
void Human::CheckSpecObject()
|
void Human::CheckSpecObject()
|
||||||
{
|
{
|
||||||
|
long long spec_flags = 0;
|
||||||
|
a8::SetBitFlag(spec_flags, kColliderTag_Grass);
|
||||||
|
a8::SetBitFlag(spec_flags, kColliderTag_Water);
|
||||||
|
a8::SetBitFlag(spec_flags, kColliderTag_Ice);
|
||||||
|
std::set<ColliderComponent*> colliders;
|
||||||
|
room->map_service->GetSpecColliders(spec_flags, room, GetPos().x, GetPos().y, colliders);
|
||||||
|
|
||||||
|
for (const ColliderComponent* collider : colliders) {
|
||||||
|
switch (collider->owner->GetEntityType()) {
|
||||||
|
case ET_Loot:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user