Browse Source

feat: 🐛 update server

tags/0.1.0
gsy1519 2 years ago
parent
commit
e280f426a1
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      logic/Gaming/Game.cs
  2. +1
    -1
      logic/Server/GameServer.cs

+ 1
- 1
logic/Gaming/Game.cs View File

@@ -39,7 +39,7 @@ namespace Gaming

XY pos = gameMap.BirthPointList[playerInitInfo.birthPointIndex];
// Console.WriteLine($"x,y: {pos.x},{pos.y}");
Character newPlayer = (GameData.IsGhost(playerInitInfo.characterType)) ? new Ghost(pos, GameData.characterRadius, gameMap.GetPlaceType(pos), playerInitInfo.characterType) : new Student(pos, GameData.characterRadius, gameMap.GetPlaceType(pos), playerInitInfo.characterType);
gameMap.GameObjLockDict[GameObjType.Character].EnterWriteLock();
try


+ 1
- 1
logic/Server/GameServer.cs View File

@@ -256,7 +256,7 @@ namespace Server
public override Task<BoolRes> SendMessage(SendMsg request, ServerCallContext context)
{
return base.SendMessage(request, context);
}
}

public override Task<BoolRes> UseProp(IDMsg request, ServerCallContext context)
{


Loading…
Cancel
Save