Skip to content

Commit

Permalink
set AddShip static
Browse files Browse the repository at this point in the history
  • Loading branch information
panxuc committed May 11, 2024
1 parent dd2011e commit 928b931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logic/Gaming/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public long AddPlayer(PlayerInitInfo playerInitInfo)
default:
return GameObj.invalidID;
}
Ship? newShip = shipManager.AddShip(playerInitInfo.teamID,
Ship? newShip = ShipManager.AddShip(playerInitInfo.teamID,
playerInitInfo.playerID,
playerInitInfo.shipType,
teamList[(int)playerInitInfo.teamID].MoneyPool);
Expand Down
2 changes: 1 addition & 1 deletion logic/Gaming/ShipManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private class ShipManager(Game game, Map gameMap)
{
private readonly Game game = game;
private readonly Map gameMap = gameMap;
public Ship? AddShip(long teamID, long playerID, ShipType shipType, MoneyPool moneyPool)
public static Ship? AddShip(long teamID, long playerID, ShipType shipType, MoneyPool moneyPool)
{
Ship newShip = new(GameData.ShipRadius, shipType, moneyPool);
newShip.TeamID.SetROri(teamID);
Expand Down

0 comments on commit 928b931

Please sign in to comment.