Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
TileTypeRoof.cs
Go to the documentation of this file.
1
public
class
TileTypeRoof
:
TileTypeObj
2
{
3
public
override
string
LangPlaceType
=>
"place_Roof"
;
4
5
public
override
bool
CanStack
=>
false
;
6
7
public
override
bool
IsUseBlockDir
=>
true
;
8
9
public
override
bool
CanRotate
(
bool
buildMode)
10
{
11
return
false
;
12
}
13
14
protected
override
HitResult
HitTest
(
Point
pos)
15
{
16
if
(!pos.
cell
.
HasSlope
)
17
{
18
return
HitResult
.Default;
19
}
20
if
(pos.
HasObj
)
21
{
22
return
HitResult
.Invalid;
23
}
24
return
HitResult
.Valid;
25
}
26
}
HitResult
HitResult
Definition:
HitResult.cs:2
Cell.HasSlope
bool HasSlope
Definition:
Cell.cs:853
Point
Definition:
Point.cs:9
Point.HasObj
bool HasObj
Definition:
Point.cs:137
Point.cell
Cell cell
Definition:
Point.cs:51
TileTypeObj
Definition:
TileTypeObj.cs:2
TileTypeRoof
Definition:
TileTypeRoof.cs:2
TileTypeRoof.LangPlaceType
override string LangPlaceType
Definition:
TileTypeRoof.cs:3
TileTypeRoof.HitTest
override HitResult HitTest(Point pos)
Definition:
TileTypeRoof.cs:14
TileTypeRoof.CanRotate
override bool CanRotate(bool buildMode)
Definition:
TileTypeRoof.cs:9
TileTypeRoof.CanStack
override bool CanStack
Definition:
TileTypeRoof.cs:5
TileTypeRoof.IsUseBlockDir
override bool IsUseBlockDir
Definition:
TileTypeRoof.cs:7
Elin
TileTypeRoof.cs
Generated by
1.9.6