Skip to content

Commit

Permalink
修改接口返回值,完善文档注释
Browse files Browse the repository at this point in the history
  • Loading branch information
azurity committed Sep 14, 2018
1 parent 52f83f1 commit f7ebd5b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Binary file modified src/ControllerLib/ControllerLib/PlayerInterface.dll
Binary file not shown.
8 changes: 4 additions & 4 deletions src/PlayerInterface/IEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,21 @@ public interface IEntity
/// 获取指定角色位置
/// </summary>
/// <param name="PlayerIndex">指定玩家序号 范围1-4</param>
/// <returns>以[0]为行、[1]为列的一位数组座标</returns>
int?[] PlayerPosition(int PlayerIndex);
/// <returns>以[0]为行、[1]为列的一位数组座标,若未找到,返回null</returns>
int[] PlayerPosition(int PlayerIndex);

/// <summary>
/// 获取指定角色血量
/// </summary>
/// <param name="PlayerIndex">指定玩家序号 范围1-4</param>
/// <returns>指定角色血量</returns>
/// <returns>指定角色血量,若未找到,返回null</returns>
int? PlayerHealth(int PlayerIndex);

/// <summary>
/// 获取指定玩家分数
/// </summary>
/// <param name="PlayerIndex">指定玩家序号 范围1-4</param>
/// <returns></returns>
/// <returns>指定角色分数,若未找到,返回null</returns>
int? PlayerScore(int PlayerIndex);


Expand Down
Binary file modified src/PlayerInterface/bin/Debug/PlayerInterface.dll
Binary file not shown.
Binary file modified src/PlayerInterface/bin/Debug/PlayerInterface.pdb
Binary file not shown.
6 changes: 3 additions & 3 deletions src/PlayerInterface/bin/Debug/PlayerInterface.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified src/PlayerInterface/obj/Debug/PlayerInterface.dll
Binary file not shown.
Binary file modified src/PlayerInterface/obj/Debug/PlayerInterface.pdb
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Project/Assets/Scrpit/Turing/TuringOperate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ public bool CanBomb()
return GetComponent<PlayerBomb>().CanBomb();
}

public int?[] PlayerPosition(int PlayerIndex)
public int[] PlayerPosition(int PlayerIndex)
{
foreach(GameObject player in players)
{
if (PlayerIndex == player.GetComponent<PlayerScoreManager>().playerID)
{
int?[] position = { (int)(player.transform.position.x + 0.5), (int)(player.transform.position.z + 0.5) }; //四舍五入处理
int[] position = { (int)(player.transform.position.x + 0.5), (int)(player.transform.position.z + 0.5) }; //四舍五入处理
return position;
}
}
Expand Down
Binary file modified src/Project/Assets/lib/PlayerInterface.dll
Binary file not shown.

0 comments on commit f7ebd5b

Please sign in to comment.