File tree 1 file changed +1
-14
lines changed
logic/GameClass/GameObj/Map
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -81,22 +81,9 @@ public IOutOfBound GetOutOfBound(XY pos)
81
81
{
82
82
return ( Ship ? ) GameObjDict [ GameObjType . Ship ] . Find ( gameObj => ( teamID == ( ( Ship ) gameObj ) . TeamID ) && playerID == ( ( Ship ) gameObj ) . PlayerID ) ;
83
83
}
84
-
85
- public static bool WormholeInteract ( Wormhole gameObj , XY Pos )
86
- {
87
- foreach ( WormholeCell cell in gameObj . Cells )
88
- {
89
- if ( GameData . ApproachToInteract ( cell . Position , Pos ) )
90
- return true ;
91
- }
92
- return false ;
93
- }
94
84
public GameObj ? OneForInteract ( XY Pos , GameObjType gameObjType )
95
85
{
96
- return ( GameObj ? ) GameObjDict [ gameObjType ] . Find ( gameObj =>
97
- ( ( GameData . ApproachToInteract ( gameObj . Position , Pos ) ) ||
98
- ( gameObjType == GameObjType . Wormhole && WormholeInteract ( ( Wormhole ) gameObj , Pos ) ) )
99
- ) ;
86
+ return ( GameObj ? ) GameObjDict [ gameObjType ] . Find ( gameObj => GameData . ApproachToInteract ( gameObj . Position , Pos ) ) ;
100
87
}
101
88
public GameObj ? OneInTheSameCell ( XY Pos , GameObjType gameObjType )
102
89
{
You can’t perform that action at this time.
0 commit comments