mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 00:39:55 +00:00
add IsInShip to PlayerInfo
This commit is contained in:
parent
548d12f1b6
commit
34c8369e91
@ -31,6 +31,7 @@ public partial class PlayerInfo
|
|||||||
public bool IsInMoon { get; set; }
|
public bool IsInMoon { get; set; }
|
||||||
public bool IsInShrine { get; set; }
|
public bool IsInShrine { get; set; }
|
||||||
public bool IsInEyeShuttle { get; set; }
|
public bool IsInEyeShuttle { get; set; }
|
||||||
|
public bool IsInShip { get; set; }
|
||||||
public IQSBQuantumObject EntangledObject { get; set; }
|
public IQSBQuantumObject EntangledObject { get; set; }
|
||||||
public QSBPlayerAudioController AudioController { get; set; }
|
public QSBPlayerAudioController AudioController { get; set; }
|
||||||
public bool IsLocalPlayer => TransformSync.isLocalPlayer; // if TransformSync is ever null, i give permission for nebula to make fun of me about it for the rest of time - johncorby
|
public bool IsLocalPlayer => TransformSync.isLocalPlayer; // if TransformSync is ever null, i give permission for nebula to make fun of me about it for the rest of time - johncorby
|
||||||
|
@ -165,12 +165,14 @@ internal class ShipManager : WorldObjectManager
|
|||||||
|
|
||||||
public void AddPlayerToShip(PlayerInfo player)
|
public void AddPlayerToShip(PlayerInfo player)
|
||||||
{
|
{
|
||||||
|
player.IsInShip = true;
|
||||||
_playersInShip.Add(player);
|
_playersInShip.Add(player);
|
||||||
UpdateElectricalComponent();
|
UpdateElectricalComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemovePlayerFromShip(PlayerInfo player)
|
public void RemovePlayerFromShip(PlayerInfo player)
|
||||||
{
|
{
|
||||||
|
player.IsInShip = false;
|
||||||
_playersInShip.Remove(player);
|
_playersInShip.Remove(player);
|
||||||
UpdateElectricalComponent();
|
UpdateElectricalComponent();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user