forked from NeDether/Rattler-Spore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlaceDrill.cpp
45 lines (35 loc) · 878 Bytes
/
PlaceDrill.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "stdafx.h"
#include "PlaceDrill.h"
#include "DrillBuilding.h"
#include <Spore/Simulator/cGameplayMarker.h>
#include <Spore/Simulator/cGameTerrainCursor.h>
using namespace Simulator;
PlaceDrill::PlaceDrill()
{
}
PlaceDrill::~PlaceDrill()
{
}
// For internal use, do not modify.
int PlaceDrill::AddRef()
{
return DefaultRefCounted::AddRef();
}
// For internal use, do not modify.
int PlaceDrill::Release()
{
return DefaultRefCounted::Release();
}
// You can extend this function to return any other types your class implements.
void* PlaceDrill::Cast(uint32_t type) const
{
CLASS_CAST(Object);
CLASS_CAST(PlaceDrill);
return nullptr;
}
bool PlaceDrill::OnHit(Simulator::cSpaceToolData* pTool, const Vector3& position, Simulator::SpaceToolHit hitType, int)
{
App::ConsolePrintF("Landed...");
FactoryManagerA.CreateBuilding(position, 0);
return false;
}