removed unused functions
parent
63d41323d1
commit
42da94cd63
|
@ -148,7 +148,6 @@ public partial class World : Node
|
||||||
}
|
}
|
||||||
|
|
||||||
root.AddChild(map);
|
root.AddChild(map);
|
||||||
InitTilemap(map);
|
|
||||||
|
|
||||||
CurrentMap = map;
|
CurrentMap = map;
|
||||||
CurrentMap.Active = true;
|
CurrentMap.Active = true;
|
||||||
|
@ -235,11 +234,6 @@ public partial class World : Node
|
||||||
return CurrentPlayer;
|
return CurrentPlayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitTilemap(Map map)
|
|
||||||
{
|
|
||||||
// this is being replaced with interaction triggers
|
|
||||||
}
|
|
||||||
|
|
||||||
private void MovePlayerToConnector(string name)
|
private void MovePlayerToConnector(string name)
|
||||||
{
|
{
|
||||||
var marker = CurrentMap.Markers.GetNode<Marker2D>(name);
|
var marker = CurrentMap.Markers.GetNode<Marker2D>(name);
|
||||||
|
@ -267,14 +261,6 @@ public partial class World : Node
|
||||||
MovePlayerToConnector(connector);
|
MovePlayerToConnector(connector);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void _on_area_2d_requested_enter(
|
|
||||||
BoundingBoxes.ConnectorBox box,
|
|
||||||
Player player)
|
|
||||||
{
|
|
||||||
GD.Print("Requesting to enter " + box.ToConnector);
|
|
||||||
MoveToArea(box.ToArea, box.ToConnector);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SaveGame()
|
public void SaveGame()
|
||||||
{
|
{
|
||||||
SetSpawn(CurrentPlayer.GlobalPosition);
|
SetSpawn(CurrentPlayer.GlobalPosition);
|
||||||
|
|
Loading…
Reference in New Issue