summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/ShipStatus.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assembly-CSharp/ShipStatus.cs')
-rw-r--r--Client/Assembly-CSharp/ShipStatus.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Client/Assembly-CSharp/ShipStatus.cs b/Client/Assembly-CSharp/ShipStatus.cs
index e83100f..e51a3d3 100644
--- a/Client/Assembly-CSharp/ShipStatus.cs
+++ b/Client/Assembly-CSharp/ShipStatus.cs
@@ -7,7 +7,8 @@ using InnerNet;
using PowerTools;
using UnityEngine;
-//场景中的物件,包含门的开启等,在这里同步
+//c 场景中的物件,包含门的开启等,在这里同步
+// 这个结构由host玩家管理,所有者是host玩家,类似GameData
public class ShipStatus : InnerNetObject
{
public ShipRoom[] AllRooms { get; private set; }
@@ -699,7 +700,7 @@ public class ShipStatus : InnerNetObject
// 关门
public void RpcCloseDoorsOfType(SystemTypes type)
{
- if (AmongUsClient.Instance.AmHost)
+ if (AmongUsClient.Instance.AmHost)
{
this.CloseDoorsOfType(type);
return;
@@ -712,8 +713,8 @@ public class ShipStatus : InnerNetObject
// 修复
public void RpcRepairSystem(SystemTypes systemType, int amount)
{
- if (AmongUsClient.Instance.AmHost)
- {
+ if (AmongUsClient.Instance.AmHost)
+ {
this.RepairSystem(systemType, PlayerControl.LocalPlayer, (byte)amount);
return;
}