summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/ShipStatus.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-06 18:58:27 +0800
committerchai <chaifix@163.com>2021-01-06 18:58:27 +0800
commitd653a7a8b6ec4efb40d39a455805880bf494e785 (patch)
treef76c75dc8b1bd7a140ed5a1603814cec057dc443 /Client/Assembly-CSharp/ShipStatus.cs
parentaf50160ef5c9a55506157d7d94e20c17cd28ed42 (diff)
*网络
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;
}