|
@ -13,7 +13,7 @@ namespace GWConquest |
|
|
|
|
|
|
|
|
private NetworkVariable<int> storageCapacity = new NetworkVariable<int>(); |
|
|
private NetworkVariable<int> storageCapacity = new NetworkVariable<int>(); |
|
|
private NetworkVariable<int> controllingPlayerID = new NetworkVariable<int>(); |
|
|
private NetworkVariable<int> controllingPlayerID = new NetworkVariable<int>(); |
|
|
public Inventory Inventory = new Inventory(); |
|
|
|
|
|
|
|
|
public Inventory Inventory; |
|
|
private NetworkVariable<float> itemProductionCooldown = new NetworkVariable<float>(); |
|
|
private NetworkVariable<float> itemProductionCooldown = new NetworkVariable<float>(); |
|
|
private NetworkVariable<int> zoneID = new NetworkVariable<int>(); |
|
|
private NetworkVariable<int> zoneID = new NetworkVariable<int>(); |
|
|
private NetworkVariable<NetworkBehaviourReference> planet = new NetworkVariable<NetworkBehaviourReference>(); |
|
|
private NetworkVariable<NetworkBehaviourReference> planet = new NetworkVariable<NetworkBehaviourReference>(); |
|
@ -21,8 +21,8 @@ namespace GWConquest |
|
|
private NetworkVariable<DistrictType> districtType = new NetworkVariable<DistrictType>(); |
|
|
private NetworkVariable<DistrictType> districtType = new NetworkVariable<DistrictType>(); |
|
|
private NetworkVariable<FixedString128Bytes> districtName = new NetworkVariable<FixedString128Bytes>(); |
|
|
private NetworkVariable<FixedString128Bytes> districtName = new NetworkVariable<FixedString128Bytes>(); |
|
|
private NetworkVariable<Vector3> relativePosition = new NetworkVariable<Vector3>(); |
|
|
private NetworkVariable<Vector3> relativePosition = new NetworkVariable<Vector3>(); |
|
|
private GWNetworkList<NetworkBehaviourReference> connectedDistricts = new GWNetworkList<NetworkBehaviourReference>(); |
|
|
|
|
|
private GWNetworkList<ushort> upgrades = new GWNetworkList<ushort>(); |
|
|
|
|
|
|
|
|
private GWNetworkList<NetworkBehaviourReference> connectedDistricts; |
|
|
|
|
|
private GWNetworkList<ushort> upgrades; |
|
|
private NetworkVariable<float> captureCooldown = new NetworkVariable<float>(); |
|
|
private NetworkVariable<float> captureCooldown = new NetworkVariable<float>(); |
|
|
|
|
|
|
|
|
public bool DistrictStatic; |
|
|
public bool DistrictStatic; |
|
@ -98,6 +98,13 @@ namespace GWConquest |
|
|
get => captureCooldown.Value; |
|
|
get => captureCooldown.Value; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Awake() |
|
|
|
|
|
{ |
|
|
|
|
|
connectedDistricts = new(); |
|
|
|
|
|
upgrades = new(); |
|
|
|
|
|
Inventory = new(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public override void OnNetworkSpawn() |
|
|
public override void OnNetworkSpawn() |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|