2031 lines
60 KiB
C#
2031 lines
60 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using RecRoom.Activities;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000A23 RID: 2595
|
|
[Serializable]
|
|
public class GameTeamManager : TeamManager, ICODODCIFPG
|
|
{
|
|
// Token: 0x170007A7 RID: 1959
|
|
// (get) Token: 0x06013834 RID: 79924 RVA: 0x005854D0 File Offset: 0x005836D0
|
|
protected override string PlayerTeamSerializationKey
|
|
{
|
|
get
|
|
{
|
|
return "TEAM";
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013835 RID: 79925 RVA: 0x005854D8 File Offset: 0x005836D8
|
|
public virtual void LFEBHHFENDK()
|
|
{
|
|
base.CMBEDBCPNIA();
|
|
if (this.gameManager != null)
|
|
{
|
|
this.gameManager.DHMMKCJAKLD -= this.PLPNGJFPFOF;
|
|
this.gameManager.NDKFCMNIHJJ -= this.FDHDLEOPKFP;
|
|
this.gameManager.GEOKEJAICBG -= this.IFEDJHKGCHJ;
|
|
this.gameManager.FPEIIEIDIDK -= this.EBFPNPPDMNM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013836 RID: 79926 RVA: 0x00585558 File Offset: 0x00583758
|
|
protected virtual void DBLOMMJOKEN(Player JEFGMHBLLKI)
|
|
{
|
|
base.IMNABMKLMHK(JEFGMHBLLKI);
|
|
this.FKCPHFEAHND();
|
|
}
|
|
|
|
// Token: 0x06013837 RID: 79927 RVA: 0x00585568 File Offset: 0x00583768
|
|
public void IMEHKLDCHEK(LNJFBGIBLHA JEFGMHBLLKI, bool HNCNIBIIMEH = true)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = ((!HNCNIBIIMEH) ? IPBDFPEPNIM.INVALID : base.JDIDHDHLGAE(JEFGMHBLLKI));
|
|
this.gameManager.OMNGGJICBBI.RPC("RpcMasterRequestTeam", IHCPDNLJMMD.MasterClient, new object[]
|
|
{
|
|
JEFGMHBLLKI.BADMPMDONAH,
|
|
(int)ipbdfpepnim,
|
|
-1
|
|
});
|
|
}
|
|
|
|
// Token: 0x06013838 RID: 79928 RVA: 0x005855C8 File Offset: 0x005837C8
|
|
public override IPBDFPEPNIM[] NDIGJDEDINA()
|
|
{
|
|
TeamManager.INSTANTANEOUS_TEAMS.Clear();
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs.Length; i++)
|
|
{
|
|
TeamManager.INSTANTANEOUS_TEAMS.Add(this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team);
|
|
}
|
|
return TeamManager.INSTANTANEOUS_TEAMS.ToArray();
|
|
}
|
|
|
|
// Token: 0x06013839 RID: 79929 RVA: 0x00585644 File Offset: 0x00583844
|
|
public void NOMGHKHHMKO(bool LIEGPIPEAPJ)
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
}
|
|
|
|
// Token: 0x0601383A RID: 79930 RVA: 0x0058564C File Offset: 0x0058384C
|
|
public bool GKLIDAEEFCA()
|
|
{
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 0 : base.BBFPDKGBBDM(array));
|
|
return this.AEFOGJOBFGP(this.gameManager.PNOOBNCKAMJ.COLPNIDAIAF().GameAutomaticStartTeamRequirement, num, num2);
|
|
}
|
|
|
|
// Token: 0x0601383B RID: 79931 RVA: 0x005856A4 File Offset: 0x005838A4
|
|
protected virtual string NFCBMHGHBII()
|
|
{
|
|
return "Error serializing Tool {0}: Data already specified.";
|
|
}
|
|
|
|
// Token: 0x0601383C RID: 79932 RVA: 0x005856AC File Offset: 0x005838AC
|
|
private IPBDFPEPNIM EFIMOJMMNLC(IPBDFPEPNIM NELGMANHCIP = IPBDFPEPNIM.INVALID)
|
|
{
|
|
int num = -1;
|
|
IPBDFPEPNIM ipbdfpepnim = IPBDFPEPNIM.INVALID;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.FFNBAIDLEFJ().TeamConfigs.Length; i++)
|
|
{
|
|
IPBDFPEPNIM team = this.gameManager.PNOOBNCKAMJ.BNFPHELBAHD().TeamConfigs[i].Team;
|
|
if (team != NELGMANHCIP && base.PCFEHEIKKJI(team) != 0)
|
|
{
|
|
int num2 = base.NCKPGCOLJBL(team);
|
|
if (num2 > num)
|
|
{
|
|
num = num2;
|
|
ipbdfpepnim = team;
|
|
}
|
|
}
|
|
}
|
|
return ipbdfpepnim;
|
|
}
|
|
|
|
// Token: 0x0601383D RID: 79933 RVA: 0x00585740 File Offset: 0x00583940
|
|
public virtual int IHOLAHMAHAE()
|
|
{
|
|
int num = 1;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.PMJFCCDFALB().TeamConfigs.Length; i++)
|
|
{
|
|
num += this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().TeamConfigs[i].MaxTeamSize;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0601383E RID: 79934 RVA: 0x005857A4 File Offset: 0x005839A4
|
|
protected virtual void CCLCLAKFPJO(LNJFBGIBLHA FNGMABCOENN)
|
|
{
|
|
this.FKCPHFEAHND();
|
|
base.FNLOKKHNOLL(FNGMABCOENN);
|
|
}
|
|
|
|
// Token: 0x170007AA RID: 1962
|
|
// (get) Token: 0x0601383F RID: 79935 RVA: 0x005857B4 File Offset: 0x005839B4
|
|
public int MaxTeamCount
|
|
{
|
|
get
|
|
{
|
|
return (!(this.gameManager != null) || !(this.gameManager.PNOOBNCKAMJ != null)) ? 0 : this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs.Length;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013840 RID: 79936 RVA: 0x00585808 File Offset: 0x00583A08
|
|
public void ICLILHDBGAN(bool LIEGPIPEAPJ)
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
}
|
|
|
|
// Token: 0x06013841 RID: 79937 RVA: 0x00585810 File Offset: 0x00583A10
|
|
private void EBFPNPPDMNM()
|
|
{
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x06013842 RID: 79938 RVA: 0x00585818 File Offset: 0x00583A18
|
|
public void PMMEACOOCED(DNIDEHCOLPK LIILFFHNPEB, out int LPHFFAFFHPL, out int IOOOGPBNOKH)
|
|
{
|
|
switch (LIILFFHNPEB + 0)
|
|
{
|
|
default:
|
|
LPHFFAFFHPL = -151;
|
|
IOOOGPBNOKH = 11;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 6;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_THREE_PLAYERS:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 5;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_FOUR_PLAYERS:
|
|
LPHFFAFFHPL = 8;
|
|
IOOOGPBNOKH = 5;
|
|
break;
|
|
case DNIDEHCOLPK.THREE_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 4;
|
|
break;
|
|
case DNIDEHCOLPK.THREE_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 0;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.FOUR_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.FOUR_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.ONE_TEAM_ANY_PLAYERS:
|
|
LPHFFAFFHPL = 1;
|
|
IOOOGPBNOKH = 7;
|
|
break;
|
|
case DNIDEHCOLPK.ONE_TEAM_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 0;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.FIVE_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 0;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.SIX_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 5;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.SEVEN_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 6;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.EIGHT_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 5;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.NO_REQUIREMENTS:
|
|
LPHFFAFFHPL = 7;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case (DNIDEHCOLPK)15:
|
|
LPHFFAFFHPL = 173;
|
|
IOOOGPBNOKH = 57;
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013843 RID: 79939 RVA: 0x00585934 File Offset: 0x00583B34
|
|
protected virtual string DAMKJBDDALJ()
|
|
{
|
|
return "Tie Round";
|
|
}
|
|
|
|
// Token: 0x06013844 RID: 79940 RVA: 0x0058593C File Offset: 0x00583B3C
|
|
private bool HOKNEIDFPIJ(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
if (ipbdfpepnim == IPBDFPEPNIM.INVALID)
|
|
{
|
|
return this.GameStartTeamRequirementsMet;
|
|
}
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 0 : base.BBFPDKGBBDM(array));
|
|
int num3 = base.NCKPGCOLJBL(ipbdfpepnim) - 1;
|
|
if (num3 == 0)
|
|
{
|
|
num--;
|
|
}
|
|
else if (num3 < num2)
|
|
{
|
|
num2 = num3;
|
|
}
|
|
return this.BHIGPHMCAJM(this.gameManager.PNOOBNCKAMJ.KJPIMAGIOPC.GameStartTeamRequirement, num, num2);
|
|
}
|
|
|
|
// Token: 0x06013845 RID: 79941 RVA: 0x005859D4 File Offset: 0x00583BD4
|
|
private IPBDFPEPNIM JLMNJJHKDMO(IPBDFPEPNIM NELGMANHCIP = IPBDFPEPNIM.INVALID)
|
|
{
|
|
int num = -1;
|
|
IPBDFPEPNIM ipbdfpepnim = IPBDFPEPNIM.INVALID;
|
|
for (int i = 1; i < this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().TeamConfigs.Length; i++)
|
|
{
|
|
IPBDFPEPNIM team = this.gameManager.PNOOBNCKAMJ.JAFNIIBEMNE().TeamConfigs[i].Team;
|
|
if (team != NELGMANHCIP && base.PCFEHEIKKJI(team) != 0)
|
|
{
|
|
int num2 = base.NCKPGCOLJBL(team);
|
|
if (num2 > num)
|
|
{
|
|
num = num2;
|
|
ipbdfpepnim = team;
|
|
}
|
|
}
|
|
}
|
|
return ipbdfpepnim;
|
|
}
|
|
|
|
// Token: 0x06013846 RID: 79942 RVA: 0x00585A68 File Offset: 0x00583C68
|
|
public bool ENOKHHJEJKL()
|
|
{
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 1 : base.BBFPDKGBBDM(array));
|
|
return this.AEFOGJOBFGP(this.gameManager.PNOOBNCKAMJ.FFEANPIBBBH().GameAutomaticStartTeamRequirement, num, num2);
|
|
}
|
|
|
|
// Token: 0x06013847 RID: 79943 RVA: 0x00585AC0 File Offset: 0x00583CC0
|
|
public void FMLLPIEKMMA(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD, IPBDFPEPNIM NELGMANHCIP)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.OGBBFKIGNAK(GKJLABBENHD);
|
|
IPBDFPEPNIM ipbdfpepnim2;
|
|
if (GKJLABBENHD != IPBDFPEPNIM.INVALID && base.PCFEHEIKKJI(GKJLABBENHD) > 0 && base.NCKPGCOLJBL(GKJLABBENHD) <= base.NCKPGCOLJBL(ipbdfpepnim))
|
|
{
|
|
ipbdfpepnim2 = GKJLABBENHD;
|
|
}
|
|
else if (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamSelectionMethod == GOFGNODFNMC.LARGEST_TEAM_INDEX_ORDER)
|
|
{
|
|
ipbdfpepnim2 = this.FCONKBANGNK(NELGMANHCIP);
|
|
}
|
|
else
|
|
{
|
|
ipbdfpepnim2 = this.MODFMIHDGHE(NELGMANHCIP);
|
|
}
|
|
if (ipbdfpepnim2 == IPBDFPEPNIM.INVALID)
|
|
{
|
|
Debug.LogWarning("Unable to assign a team to " + ((JEFGMHBLLKI == null) ? "null player" : JEFGMHBLLKI.KODHOHBEAOP));
|
|
}
|
|
else
|
|
{
|
|
base.HDBHFPPPGDB(JEFGMHBLLKI, ipbdfpepnim2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013848 RID: 79944 RVA: 0x00585B7C File Offset: 0x00583D7C
|
|
private void GPGDMPIBHEG()
|
|
{
|
|
if (!this.gameManager.DMLPFMKFOBB || this.gameManager.NKCBOCMOBCA.IALADJLKIFN(IHFKMIAHBFP.JEFGMHBLLKI) || (!this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsTeammateBeacons && !this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsOpponentBeacons))
|
|
{
|
|
for (int i = 0; i < this.beacons.Length; i++)
|
|
{
|
|
this.beacons[i].gameObject.SetActive(false);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
LNJFBGIBLHA[] array = this.gameManager.NKCBOCMOBCA.MBFGHAJFLFJ();
|
|
int j = 0;
|
|
while (j < array.Length && j < this.beacons.Length)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim2 = this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(array[j]);
|
|
if (array[j] != IHFKMIAHBFP.JEFGMHBLLKI && ((this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsTeammateBeacons && ipbdfpepnim2 == ipbdfpepnim) || (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsOpponentBeacons && ipbdfpepnim2 != ipbdfpepnim)))
|
|
{
|
|
this.beacons[j].gameObject.SetActive(true);
|
|
this.beacons[j].GBLPHKFPELB = PBMLOBHPIMG.OMKFIIOOMJB(ipbdfpepnim2);
|
|
this.beacons[j].Player = array[j].JHJGDFHNBLO();
|
|
}
|
|
else
|
|
{
|
|
this.beacons[j].gameObject.SetActive(false);
|
|
}
|
|
j++;
|
|
}
|
|
while (j < this.beacons.Length)
|
|
{
|
|
this.beacons[j].gameObject.SetActive(false);
|
|
j++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013849 RID: 79945 RVA: 0x00585D74 File Offset: 0x00583F74
|
|
private void PMDMHKBLKIM()
|
|
{
|
|
this.IDCCAFHOBJN();
|
|
}
|
|
|
|
// Token: 0x0601384A RID: 79946 RVA: 0x00585D7C File Offset: 0x00583F7C
|
|
public virtual int LMDDPEGAECN()
|
|
{
|
|
int num = 0;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.CFIIJCMCNMI().TeamConfigs.Length; i += 0)
|
|
{
|
|
num += this.gameManager.PNOOBNCKAMJ.IDIMOMPPJLN().TeamConfigs[i].MaxTeamSize;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0601384B RID: 79947 RVA: 0x00585DE0 File Offset: 0x00583FE0
|
|
public void GAOJCPLIHND(bool LIEGPIPEAPJ)
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
}
|
|
|
|
// Token: 0x0601384C RID: 79948 RVA: 0x00585DE8 File Offset: 0x00583FE8
|
|
private IPBDFPEPNIM FCONKBANGNK(IPBDFPEPNIM NELGMANHCIP = IPBDFPEPNIM.INVALID)
|
|
{
|
|
int num = -1;
|
|
IPBDFPEPNIM ipbdfpepnim = IPBDFPEPNIM.INVALID;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs.Length; i++)
|
|
{
|
|
IPBDFPEPNIM team = this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team;
|
|
if (team != NELGMANHCIP && base.PCFEHEIKKJI(team) != 0)
|
|
{
|
|
int num2 = base.NCKPGCOLJBL(team);
|
|
if (num2 > num)
|
|
{
|
|
num = num2;
|
|
ipbdfpepnim = team;
|
|
}
|
|
}
|
|
}
|
|
return ipbdfpepnim;
|
|
}
|
|
|
|
// Token: 0x0601384D RID: 79949 RVA: 0x00585E7C File Offset: 0x0058407C
|
|
public virtual void ELAGLNJBHJD()
|
|
{
|
|
base.EOLCMCIOBIE();
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x0601384E RID: 79950 RVA: 0x00585E8C File Offset: 0x0058408C
|
|
private void IDCCAFHOBJN()
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
this.FIAICINKHNH();
|
|
}
|
|
|
|
// Token: 0x0601384F RID: 79951 RVA: 0x00585E9C File Offset: 0x0058409C
|
|
public void KKGDFKGGEFB(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD)
|
|
{
|
|
this.gameManager.OMNGGJICBBI.RPC("RpcMasterRequestTeam", IHCPDNLJMMD.MasterClient, new object[]
|
|
{
|
|
JEFGMHBLLKI.BADMPMDONAH,
|
|
(int)GKJLABBENHD,
|
|
-1
|
|
});
|
|
}
|
|
|
|
// Token: 0x06013850 RID: 79952 RVA: 0x00585EDC File Offset: 0x005840DC
|
|
private void IKCFBEDAFBM()
|
|
{
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x06013851 RID: 79953 RVA: 0x00585EE4 File Offset: 0x005840E4
|
|
private IPBDFPEPNIM MODFMIHDGHE(IPBDFPEPNIM NELGMANHCIP = IPBDFPEPNIM.INVALID)
|
|
{
|
|
if (base.CLCLMEFLDGB() <= 0)
|
|
{
|
|
return IPBDFPEPNIM.INVALID;
|
|
}
|
|
int num = -1;
|
|
List<IPBDFPEPNIM> list = new List<IPBDFPEPNIM>();
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs.Length; i++)
|
|
{
|
|
if (base.PCFEHEIKKJI(this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team) != 0)
|
|
{
|
|
int num2 = base.NCKPGCOLJBL(this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team);
|
|
if ((NELGMANHCIP == IPBDFPEPNIM.INVALID || NELGMANHCIP != this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team) && (num < 0 || num2 <= num))
|
|
{
|
|
if (num < 0 || num2 < num)
|
|
{
|
|
list.Clear();
|
|
num = num2;
|
|
}
|
|
list.Add(this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team);
|
|
}
|
|
}
|
|
}
|
|
if (list.Count == 0)
|
|
{
|
|
return IPBDFPEPNIM.INVALID;
|
|
}
|
|
if (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamSelectionMethod == GOFGNODFNMC.SMALLEST_TEAM_INDEX_ORDER)
|
|
{
|
|
list.Sort(new Comparison<IPBDFPEPNIM>(GameTeamManager.JLHPIFHJBIE));
|
|
if (NELGMANHCIP != IPBDFPEPNIM.INVALID)
|
|
{
|
|
for (int j = 0; j < list.Count; j++)
|
|
{
|
|
if (list[j] > NELGMANHCIP)
|
|
{
|
|
return list[j];
|
|
}
|
|
}
|
|
}
|
|
return list[0];
|
|
}
|
|
if (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamSelectionMethod == GOFGNODFNMC.SMALLEST_TEAM_LOWEST_SCORE)
|
|
{
|
|
int num3 = int.MaxValue;
|
|
IPBDFPEPNIM ipbdfpepnim = IPBDFPEPNIM.INVALID;
|
|
for (int k = 0; k < list.Count; k++)
|
|
{
|
|
int num4 = this.gameManager.APOAHJMLMEG.LDKEEKDKJPL(list[k]);
|
|
if (num4 < num3)
|
|
{
|
|
ipbdfpepnim = list[k];
|
|
num3 = num4;
|
|
}
|
|
}
|
|
return ipbdfpepnim;
|
|
}
|
|
return list[global::UnityEngine.Random.Range(0, list.Count)];
|
|
}
|
|
|
|
// Token: 0x06013852 RID: 79954 RVA: 0x00586130 File Offset: 0x00584330
|
|
public virtual void ILDLMHEHJLP()
|
|
{
|
|
base.CMBEDBCPNIA();
|
|
if (this.gameManager != null)
|
|
{
|
|
this.gameManager.DHMMKCJAKLD -= this.PLPNGJFPFOF;
|
|
this.gameManager.NDKFCMNIHJJ -= this.FDHDLEOPKFP;
|
|
this.gameManager.GEOKEJAICBG -= this.IFEDJHKGCHJ;
|
|
this.gameManager.FPEIIEIDIDK -= this.LIALDCBNODH;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013853 RID: 79955 RVA: 0x005861B0 File Offset: 0x005843B0
|
|
public void CIBJIEDMHMJ(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD, IPBDFPEPNIM NELGMANHCIP)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.OGBBFKIGNAK(GKJLABBENHD);
|
|
IPBDFPEPNIM ipbdfpepnim2;
|
|
if (GKJLABBENHD != IPBDFPEPNIM.INVALID && base.PCFEHEIKKJI(GKJLABBENHD) > 1 && base.NCKPGCOLJBL(GKJLABBENHD) <= base.NCKPGCOLJBL(ipbdfpepnim))
|
|
{
|
|
ipbdfpepnim2 = GKJLABBENHD;
|
|
}
|
|
else if (this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().TeamSelectionMethod == (GOFGNODFNMC)6)
|
|
{
|
|
ipbdfpepnim2 = this.EFIMOJMMNLC(NELGMANHCIP);
|
|
}
|
|
else
|
|
{
|
|
ipbdfpepnim2 = this.MODFMIHDGHE(NELGMANHCIP);
|
|
}
|
|
if (ipbdfpepnim2 == IPBDFPEPNIM.INVALID)
|
|
{
|
|
Debug.LogWarning("Skipping EstablishEncryption. Protocol is secure." + ((JEFGMHBLLKI == null) ? "playerCount" : JEFGMHBLLKI.NFNJPKGKHCP()));
|
|
}
|
|
else
|
|
{
|
|
base.HDBHFPPPGDB(JEFGMHBLLKI, ipbdfpepnim2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013854 RID: 79956 RVA: 0x0058626C File Offset: 0x0058446C
|
|
public int GMIPMJJEIJB()
|
|
{
|
|
return (!(this.gameManager != null) || !(this.gameManager.PNOOBNCKAMJ != null)) ? 1 : this.gameManager.PNOOBNCKAMJ.GEMAGCEAFEP().TeamConfigs.Length;
|
|
}
|
|
|
|
// Token: 0x06013855 RID: 79957 RVA: 0x005862C0 File Offset: 0x005844C0
|
|
public void LMKHNJEJDDH()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013856 RID: 79958 RVA: 0x005862C4 File Offset: 0x005844C4
|
|
private IPBDFPEPNIM PNEANLDAHAL(IPBDFPEPNIM NELGMANHCIP = IPBDFPEPNIM.INVALID)
|
|
{
|
|
int num = -1;
|
|
IPBDFPEPNIM ipbdfpepnim = IPBDFPEPNIM.INVALID;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().TeamConfigs.Length; i += 0)
|
|
{
|
|
IPBDFPEPNIM team = this.gameManager.PNOOBNCKAMJ.FAGFKKAMBBL().TeamConfigs[i].Team;
|
|
if (team != NELGMANHCIP && base.PCFEHEIKKJI(team) != 0)
|
|
{
|
|
int num2 = base.NCKPGCOLJBL(team);
|
|
if (num2 > num)
|
|
{
|
|
num = num2;
|
|
ipbdfpepnim = team;
|
|
}
|
|
}
|
|
}
|
|
return ipbdfpepnim;
|
|
}
|
|
|
|
// Token: 0x06013857 RID: 79959 RVA: 0x00586358 File Offset: 0x00584558
|
|
public virtual int JIGCAGHIKJE()
|
|
{
|
|
int num = 0;
|
|
for (int i = 1; i < this.gameManager.PNOOBNCKAMJ.IDIMOMPPJLN().TeamConfigs.Length; i++)
|
|
{
|
|
num += this.gameManager.PNOOBNCKAMJ.AINHLENAIFO().TeamConfigs[i].MaxTeamSize;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06013858 RID: 79960 RVA: 0x005863BC File Offset: 0x005845BC
|
|
public void KJJBIDDEEIF(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD)
|
|
{
|
|
PhotonView photonView = this.gameManager.OMNGGJICBBI;
|
|
string text = "No current phone number";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.OthersBuffered;
|
|
object[] array = new object[3];
|
|
array[0] = JEFGMHBLLKI.BADMPMDONAH;
|
|
array[0] = (int)GKJLABBENHD;
|
|
array[2] = -1;
|
|
photonView.RPC(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x06013859 RID: 79961 RVA: 0x005863FC File Offset: 0x005845FC
|
|
public virtual int LOCGOBFELLK(IPBDFPEPNIM CLCIODCPAFC)
|
|
{
|
|
int num = 1;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.FNMEBIBFDNC().TeamConfigs.Length; i += 0)
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.APOIFFPMCFE().TeamConfigs[i].Team == CLCIODCPAFC)
|
|
{
|
|
num = this.gameManager.PNOOBNCKAMJ.FFNBAIDLEFJ().TeamConfigs[i].MaxTeamSize;
|
|
break;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0601385A RID: 79962 RVA: 0x0058648C File Offset: 0x0058468C
|
|
public void PFNEGHLIKJI(GameManager FMBELJHPBCG)
|
|
{
|
|
base.PFNEGHLIKJI();
|
|
this.gameManager = FMBELJHPBCG;
|
|
GameObject gameObject = new GameObject("GamePlayerBeacons");
|
|
gameObject.transform.SetParent(FMBELJHPBCG.transform);
|
|
this.beacons = new PlayerHighlightBeam[FMBELJHPBCG.KCNDBBJLONI];
|
|
global::UnityEngine.Object @object = Resources.Load("[PlayerHighlightBeam]");
|
|
for (int i = 0; i < this.beacons.Length; i++)
|
|
{
|
|
GameObject gameObject2 = global::UnityEngine.Object.Instantiate(@object) as GameObject;
|
|
this.beacons[i] = gameObject2.GetComponent<PlayerHighlightBeam>();
|
|
if (this.beacons[i] != null)
|
|
{
|
|
this.beacons[i].transform.SetParent(gameObject.transform);
|
|
}
|
|
}
|
|
FMBELJHPBCG.DHMMKCJAKLD += this.NAGDPMEHNGN;
|
|
FMBELJHPBCG.NDKFCMNIHJJ += this.FDHDLEOPKFP;
|
|
FMBELJHPBCG.GEOKEJAICBG += this.MBCMGFOJJBC;
|
|
FMBELJHPBCG.FPEIIEIDIDK += this.JLOEBGDCGNO;
|
|
}
|
|
|
|
// Token: 0x170007A9 RID: 1961
|
|
// (get) Token: 0x0601385B RID: 79963 RVA: 0x00586584 File Offset: 0x00584784
|
|
public bool GameAutomaticStartTeamRequirementsMet
|
|
{
|
|
get
|
|
{
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 0 : base.BBFPDKGBBDM(array));
|
|
return this.BHIGPHMCAJM(this.gameManager.PNOOBNCKAMJ.KJPIMAGIOPC.GameAutomaticStartTeamRequirement, num, num2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601385C RID: 79964 RVA: 0x005865DC File Offset: 0x005847DC
|
|
public void OPNJNKMDICB(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
PhotonView photonView = this.gameManager.LJILHDMCKME();
|
|
string text = "Connected timed out";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.AllViaServer;
|
|
object[] array = new object[7];
|
|
array[0] = JEFGMHBLLKI.BADMPMDONAH;
|
|
array[0] = -1;
|
|
array[1] = (int)base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
photonView.RPC(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x0601385D RID: 79965 RVA: 0x0058662C File Offset: 0x0058482C
|
|
protected virtual void GEEMGEONFOM(Player JEFGMHBLLKI)
|
|
{
|
|
base.IMNABMKLMHK(JEFGMHBLLKI);
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x0601385E RID: 79966 RVA: 0x0058663C File Offset: 0x0058483C
|
|
private void JOHPEPKLNGM(Player AJBEPNLOODH, IPBDFPEPNIM NEELAKJGMCM, Color JHPHHEHDKDI)
|
|
{
|
|
if (AJBEPNLOODH == null)
|
|
{
|
|
return;
|
|
}
|
|
bool flag = !(AJBEPNLOODH.BGIBHPOALJG != null) || AJBEPNLOODH.DGEOJLGFGNG().LPBPJANEHIN != null;
|
|
bool flag2 = AJBEPNLOODH.KEJBPANGFKK != null && AJBEPNLOODH.KEJBPANGFKK.BMBAGHFDMIE() != null;
|
|
if (NEELAKJGMCM == IPBDFPEPNIM.INVALID || this.gameManager.HLBLCPCDKHA || !this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().SupportsPlayerTeleportLaserTeamColor)
|
|
{
|
|
if (flag)
|
|
{
|
|
AJBEPNLOODH.DGEOJLGFGNG().LPBPJANEHIN.CHLHFJMDEGI = null;
|
|
}
|
|
if (flag2)
|
|
{
|
|
AJBEPNLOODH.KEJBPANGFKK.LPBPJANEHIN.MDPBCAKOOIO(null);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (flag)
|
|
{
|
|
AJBEPNLOODH.DGEOJLGFGNG().BMBAGHFDMIE().MDPBCAKOOIO(new Color?(JHPHHEHDKDI));
|
|
}
|
|
if (flag2)
|
|
{
|
|
AJBEPNLOODH.KEJBPANGFKK.LPBPJANEHIN.DJLGGDCCHGI(new Color?(JHPHHEHDKDI));
|
|
}
|
|
}
|
|
bool flag3 = NEELAKJGMCM == IPBDFPEPNIM.INVALID || this.gameManager.HLBLCPCDKHA || this.gameManager.PNOOBNCKAMJ.BNFPHELBAHD().SupportsPlayerTeleportDecalCylinder;
|
|
if (flag)
|
|
{
|
|
AJBEPNLOODH.DGEOJLGFGNG().BMBAGHFDMIE().DecalCylinderVisible = flag3;
|
|
}
|
|
if (flag2)
|
|
{
|
|
AJBEPNLOODH.KEJBPANGFKK.BMBAGHFDMIE().DecalCylinderVisible = flag3;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601385F RID: 79967 RVA: 0x005867B8 File Offset: 0x005849B8
|
|
public override bool DFCBPKKAIPJ(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return !base.IALADJLKIFN(JEFGMHBLLKI) && this.HOKNEIDFPIJ(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x06013860 RID: 79968 RVA: 0x005867D0 File Offset: 0x005849D0
|
|
public void IBEIPPLDFGC()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013861 RID: 79969 RVA: 0x005867D4 File Offset: 0x005849D4
|
|
private void AEHBLBJCOCP()
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
this.FIAICINKHNH();
|
|
}
|
|
|
|
// Token: 0x06013862 RID: 79970 RVA: 0x005867E4 File Offset: 0x005849E4
|
|
public void ACMFLCKEIJI()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013863 RID: 79971 RVA: 0x005867E8 File Offset: 0x005849E8
|
|
private void JLOEBGDCGNO()
|
|
{
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x06013864 RID: 79972 RVA: 0x005867F0 File Offset: 0x005849F0
|
|
private void CFEEBBFGNLC(Player AJBEPNLOODH, IPBDFPEPNIM NEELAKJGMCM, Color JHPHHEHDKDI)
|
|
{
|
|
if (NEELAKJGMCM == IPBDFPEPNIM.INVALID || this.gameManager.HLBLCPCDKHA || !this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsTeamOutfits || (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsTeamOutfitsOnlyDuringGame && !this.gameManager.IKEANLCCGNK))
|
|
{
|
|
AJBEPNLOODH.NMPMNBCNGBE.TeamOutfitColorEmissionEnabled = false;
|
|
AJBEPNLOODH.NMPMNBCNGBE.TeamOutfitColorEmissionAmount = 0f;
|
|
AJBEPNLOODH.NMPMNBCNGBE.NEGLDNHHEOB = null;
|
|
AJBEPNLOODH.POJAICMNOFI.TeamColor = null;
|
|
}
|
|
else
|
|
{
|
|
AJBEPNLOODH.NMPMNBCNGBE.TeamOutfitColorEmissionEnabled = this.gameManager.DGICKNCDBCM.TeamOutfitColorEmissionEnabled;
|
|
AJBEPNLOODH.NMPMNBCNGBE.TeamOutfitColorEmissionAmount = this.gameManager.DGICKNCDBCM.TeamOutfitColorEmissionAmount;
|
|
AJBEPNLOODH.NMPMNBCNGBE.NEGLDNHHEOB = new Color?(JHPHHEHDKDI);
|
|
AJBEPNLOODH.POJAICMNOFI.TeamColor = new Color?(JHPHHEHDKDI);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013865 RID: 79973 RVA: 0x00586908 File Offset: 0x00584B08
|
|
private bool BHIGPHMCAJM(DNIDEHCOLPK LIILFFHNPEB, int KNCPBGOMIAO, int FGCOBJHCAKI)
|
|
{
|
|
int num;
|
|
int num2;
|
|
this.BGPMOEFKCKN(LIILFFHNPEB, out num, out num2);
|
|
return KNCPBGOMIAO >= num && FGCOBJHCAKI >= num2;
|
|
}
|
|
|
|
// Token: 0x06013866 RID: 79974 RVA: 0x00586934 File Offset: 0x00584B34
|
|
public void HCKOOBPIPFP(bool LIEGPIPEAPJ)
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
}
|
|
|
|
// Token: 0x06013867 RID: 79975 RVA: 0x0058693C File Offset: 0x00584B3C
|
|
private void IFEDJHKGCHJ()
|
|
{
|
|
this.FKCPHFEAHND();
|
|
}
|
|
|
|
// Token: 0x06013868 RID: 79976 RVA: 0x00586944 File Offset: 0x00584B44
|
|
[CompilerGenerated]
|
|
private static int JLHPIFHJBIE(IPBDFPEPNIM FKOFGIJFIKA, IPBDFPEPNIM GNNBOMAEBGK)
|
|
{
|
|
int num = (int)FKOFGIJFIKA;
|
|
return num.CompareTo((int)GNNBOMAEBGK);
|
|
}
|
|
|
|
// Token: 0x06013869 RID: 79977 RVA: 0x0058695C File Offset: 0x00584B5C
|
|
public virtual int MHKJIGANALF(IPBDFPEPNIM CLCIODCPAFC)
|
|
{
|
|
int num = 0;
|
|
for (int i = 1; i < this.gameManager.PNOOBNCKAMJ.JAFNIIBEMNE().TeamConfigs.Length; i += 0)
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team == CLCIODCPAFC)
|
|
{
|
|
num = this.gameManager.PNOOBNCKAMJ.IDIMOMPPJLN().TeamConfigs[i].MaxTeamSize;
|
|
break;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0601386A RID: 79978 RVA: 0x005869EC File Offset: 0x00584BEC
|
|
public void GEEBIFCLMNG(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
PhotonView photonView = this.gameManager.MLNMONBHHBO();
|
|
string text = "The chatPeer is null.";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.AllViaServer;
|
|
object[] array = new object[] { JEFGMHBLLKI.BADMPMDONAH };
|
|
array[0] = -1;
|
|
array[4] = (int)base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
photonView.JJLACCMJEMB(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x0601386B RID: 79979 RVA: 0x00586A3C File Offset: 0x00584C3C
|
|
protected virtual string PAPJNBEGGPH()
|
|
{
|
|
return "Loss ";
|
|
}
|
|
|
|
// Token: 0x0601386C RID: 79980 RVA: 0x00586A44 File Offset: 0x00584C44
|
|
public void ICMGBJNDHLI(DNIDEHCOLPK LIILFFHNPEB, out int LPHFFAFFHPL, out int IOOOGPBNOKH)
|
|
{
|
|
switch (LIILFFHNPEB + 1)
|
|
{
|
|
default:
|
|
LPHFFAFFHPL = 114;
|
|
IOOOGPBNOKH = 146;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 7;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_THREE_PLAYERS:
|
|
LPHFFAFFHPL = 3;
|
|
IOOOGPBNOKH = 8;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_FOUR_PLAYERS:
|
|
LPHFFAFFHPL = 4;
|
|
IOOOGPBNOKH = 5;
|
|
break;
|
|
case DNIDEHCOLPK.THREE_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 6;
|
|
IOOOGPBNOKH = 7;
|
|
break;
|
|
case DNIDEHCOLPK.THREE_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.FOUR_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 8;
|
|
IOOOGPBNOKH = 7;
|
|
break;
|
|
case DNIDEHCOLPK.FOUR_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 6;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.ONE_TEAM_ANY_PLAYERS:
|
|
LPHFFAFFHPL = 0;
|
|
IOOOGPBNOKH = 8;
|
|
break;
|
|
case DNIDEHCOLPK.ONE_TEAM_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 1;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.FIVE_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 1;
|
|
IOOOGPBNOKH = 3;
|
|
break;
|
|
case DNIDEHCOLPK.SIX_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 4;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.SEVEN_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 7;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.EIGHT_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 3;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.NO_REQUIREMENTS:
|
|
LPHFFAFFHPL = 3;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case (DNIDEHCOLPK)15:
|
|
LPHFFAFFHPL = 140;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601386D RID: 79981 RVA: 0x00586B60 File Offset: 0x00584D60
|
|
public virtual void HDOGBJGCKNM()
|
|
{
|
|
base.EOLCMCIOBIE();
|
|
this.IDCCAFHOBJN();
|
|
}
|
|
|
|
// Token: 0x0601386E RID: 79982 RVA: 0x00586B70 File Offset: 0x00584D70
|
|
public bool DNGCDONCKPF()
|
|
{
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 1 : base.BBFPDKGBBDM(array));
|
|
return this.BHIGPHMCAJM(this.gameManager.PNOOBNCKAMJ.HIAMPCPHHLM().GameStartTeamRequirement, num, num2);
|
|
}
|
|
|
|
// Token: 0x0601386F RID: 79983 RVA: 0x00586BC8 File Offset: 0x00584DC8
|
|
private static int EEMILLCFNKD(IPBDFPEPNIM FKOFGIJFIKA, IPBDFPEPNIM GNNBOMAEBGK)
|
|
{
|
|
int num = (int)FKOFGIJFIKA;
|
|
return num.CompareTo((int)GNNBOMAEBGK);
|
|
}
|
|
|
|
// Token: 0x06013870 RID: 79984 RVA: 0x00586BE0 File Offset: 0x00584DE0
|
|
public virtual string CLFMCCDHKEA(IPBDFPEPNIM CLCIODCPAFC)
|
|
{
|
|
if (!this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().UseTeamNamesInFeedback)
|
|
{
|
|
LNJFBGIBLHA[] array = base.FJIEEIDKJLA(CLCIODCPAFC);
|
|
if (array.Length > 0)
|
|
{
|
|
return array[1].KODHOHBEAOP;
|
|
}
|
|
}
|
|
return base.FPGHAMAAFIP(CLCIODCPAFC);
|
|
}
|
|
|
|
// Token: 0x170007A8 RID: 1960
|
|
// (get) Token: 0x06013871 RID: 79985 RVA: 0x00586C2C File Offset: 0x00584E2C
|
|
public bool GameStartTeamRequirementsMet
|
|
{
|
|
get
|
|
{
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 0 : base.BBFPDKGBBDM(array));
|
|
return this.BHIGPHMCAJM(this.gameManager.PNOOBNCKAMJ.KJPIMAGIOPC.GameStartTeamRequirement, num, num2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013872 RID: 79986 RVA: 0x00586C84 File Offset: 0x00584E84
|
|
private static int MHGPNFNPIDG(IPBDFPEPNIM FKOFGIJFIKA, IPBDFPEPNIM GNNBOMAEBGK)
|
|
{
|
|
int num = (int)FKOFGIJFIKA;
|
|
return num.CompareTo((int)GNNBOMAEBGK);
|
|
}
|
|
|
|
// Token: 0x06013873 RID: 79987 RVA: 0x00586C9C File Offset: 0x00584E9C
|
|
private IPBDFPEPNIM PKMCKPFCOHN(IPBDFPEPNIM NELGMANHCIP = IPBDFPEPNIM.INVALID)
|
|
{
|
|
int num = -1;
|
|
IPBDFPEPNIM ipbdfpepnim = IPBDFPEPNIM.INVALID;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.GEMAGCEAFEP().TeamConfigs.Length; i++)
|
|
{
|
|
IPBDFPEPNIM team = this.gameManager.PNOOBNCKAMJ.AINHLENAIFO().TeamConfigs[i].Team;
|
|
if (team != NELGMANHCIP && base.PCFEHEIKKJI(team) != 0)
|
|
{
|
|
int num2 = base.NCKPGCOLJBL(team);
|
|
if (num2 > num)
|
|
{
|
|
num = num2;
|
|
ipbdfpepnim = team;
|
|
}
|
|
}
|
|
}
|
|
return ipbdfpepnim;
|
|
}
|
|
|
|
// Token: 0x06013874 RID: 79988 RVA: 0x00586D30 File Offset: 0x00584F30
|
|
public void BGPMOEFKCKN(DNIDEHCOLPK LIILFFHNPEB, out int LPHFFAFFHPL, out int IOOOGPBNOKH)
|
|
{
|
|
switch (LIILFFHNPEB + 1)
|
|
{
|
|
default:
|
|
LPHFFAFFHPL = int.MaxValue;
|
|
IOOOGPBNOKH = int.MaxValue;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_THREE_PLAYERS:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 2;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_FOUR_PLAYERS:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 3;
|
|
break;
|
|
case DNIDEHCOLPK.THREE_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 4;
|
|
break;
|
|
case DNIDEHCOLPK.THREE_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 3;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.FOUR_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 3;
|
|
IOOOGPBNOKH = 2;
|
|
break;
|
|
case DNIDEHCOLPK.FOUR_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 4;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.ONE_TEAM_ANY_PLAYERS:
|
|
LPHFFAFFHPL = 4;
|
|
IOOOGPBNOKH = 2;
|
|
break;
|
|
case DNIDEHCOLPK.ONE_TEAM_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 1;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.FIVE_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 1;
|
|
IOOOGPBNOKH = 2;
|
|
break;
|
|
case DNIDEHCOLPK.SIX_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 5;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.SEVEN_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 6;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.EIGHT_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 7;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.NO_REQUIREMENTS:
|
|
LPHFFAFFHPL = 8;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case (DNIDEHCOLPK)15:
|
|
LPHFFAFFHPL = int.MinValue;
|
|
IOOOGPBNOKH = int.MinValue;
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013875 RID: 79989 RVA: 0x00586E4C File Offset: 0x0058504C
|
|
private bool AEFOGJOBFGP(DNIDEHCOLPK LIILFFHNPEB, int KNCPBGOMIAO, int FGCOBJHCAKI)
|
|
{
|
|
int num;
|
|
int num2;
|
|
this.BGPMOEFKCKN(LIILFFHNPEB, out num, out num2);
|
|
return KNCPBGOMIAO < num || FGCOBJHCAKI < num2;
|
|
}
|
|
|
|
// Token: 0x06013876 RID: 79990 RVA: 0x00586E78 File Offset: 0x00585078
|
|
private void NAGDPMEHNGN()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
Dictionary<LNJFBGIBLHA, IPBDFPEPNIM> dictionary = new Dictionary<LNJFBGIBLHA, IPBDFPEPNIM>();
|
|
foreach (LNJFBGIBLHA lnjfbgiblha in IHFKMIAHBFP.NCLHHNLDGNE)
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.PreserveTeamsWhenChangingToThisMode)
|
|
{
|
|
dictionary.Add(lnjfbgiblha, base.KKPAEEHBNGE(lnjfbgiblha));
|
|
}
|
|
else
|
|
{
|
|
dictionary.Add(lnjfbgiblha, base.JDIDHDHLGAE(lnjfbgiblha));
|
|
}
|
|
}
|
|
base.HMDGPIKHCKP();
|
|
foreach (LNJFBGIBLHA lnjfbgiblha2 in IHFKMIAHBFP.NCLHHNLDGNE)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = dictionary[lnjfbgiblha2];
|
|
this.FMLLPIEKMMA(lnjfbgiblha2, ipbdfpepnim, IPBDFPEPNIM.INVALID);
|
|
}
|
|
}
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x06013877 RID: 79991 RVA: 0x00586F3C File Offset: 0x0058513C
|
|
public void CHCAMBPJDIE()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013878 RID: 79992 RVA: 0x00586F40 File Offset: 0x00585140
|
|
private bool GAEOKBLDCEN(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
if (ipbdfpepnim == IPBDFPEPNIM.INVALID)
|
|
{
|
|
return this.DNGCDONCKPF();
|
|
}
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 0 : base.BBFPDKGBBDM(array));
|
|
int num3 = base.NCKPGCOLJBL(ipbdfpepnim) - 0;
|
|
if (num3 == 0)
|
|
{
|
|
num -= 0;
|
|
}
|
|
else if (num3 < num2)
|
|
{
|
|
num2 = num3;
|
|
}
|
|
return this.AEFOGJOBFGP(this.gameManager.PNOOBNCKAMJ.FECAJMOGBGM().GameStartTeamRequirement, num, num2);
|
|
}
|
|
|
|
// Token: 0x06013879 RID: 79993 RVA: 0x00586FD8 File Offset: 0x005851D8
|
|
private void FNJMDNCGJPA(Player AJBEPNLOODH, IPBDFPEPNIM NEELAKJGMCM, Color JHPHHEHDKDI)
|
|
{
|
|
if (AJBEPNLOODH == null)
|
|
{
|
|
return;
|
|
}
|
|
bool flag = AJBEPNLOODH.BGIBHPOALJG != null && AJBEPNLOODH.BGIBHPOALJG.LPBPJANEHIN != null;
|
|
bool flag2 = AJBEPNLOODH.KEJBPANGFKK != null && AJBEPNLOODH.KEJBPANGFKK.LPBPJANEHIN != null;
|
|
if (NEELAKJGMCM == IPBDFPEPNIM.INVALID || this.gameManager.HLBLCPCDKHA || !this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsPlayerTeleportLaserTeamColor)
|
|
{
|
|
if (flag)
|
|
{
|
|
AJBEPNLOODH.BGIBHPOALJG.LPBPJANEHIN.CHLHFJMDEGI = null;
|
|
}
|
|
if (flag2)
|
|
{
|
|
AJBEPNLOODH.KEJBPANGFKK.LPBPJANEHIN.CHLHFJMDEGI = null;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (flag)
|
|
{
|
|
AJBEPNLOODH.BGIBHPOALJG.LPBPJANEHIN.CHLHFJMDEGI = new Color?(JHPHHEHDKDI);
|
|
}
|
|
if (flag2)
|
|
{
|
|
AJBEPNLOODH.KEJBPANGFKK.LPBPJANEHIN.CHLHFJMDEGI = new Color?(JHPHHEHDKDI);
|
|
}
|
|
}
|
|
bool flag3 = NEELAKJGMCM != IPBDFPEPNIM.INVALID && !this.gameManager.HLBLCPCDKHA && this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsPlayerTeleportDecalCylinder;
|
|
if (flag)
|
|
{
|
|
AJBEPNLOODH.BGIBHPOALJG.LPBPJANEHIN.DecalCylinderVisible = flag3;
|
|
}
|
|
if (flag2)
|
|
{
|
|
AJBEPNLOODH.KEJBPANGFKK.LPBPJANEHIN.DecalCylinderVisible = flag3;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601387A RID: 79994 RVA: 0x00587154 File Offset: 0x00585354
|
|
public void HJOGJFAGCJG(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD, IPBDFPEPNIM NELGMANHCIP)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.OGBBFKIGNAK(GKJLABBENHD);
|
|
IPBDFPEPNIM ipbdfpepnim2;
|
|
if (GKJLABBENHD != IPBDFPEPNIM.INVALID && base.PCFEHEIKKJI(GKJLABBENHD) > 0 && base.NCKPGCOLJBL(GKJLABBENHD) <= base.NCKPGCOLJBL(ipbdfpepnim))
|
|
{
|
|
ipbdfpepnim2 = GKJLABBENHD;
|
|
}
|
|
else if (this.gameManager.PNOOBNCKAMJ.AINHLENAIFO().TeamSelectionMethod == (GOFGNODFNMC)6)
|
|
{
|
|
ipbdfpepnim2 = this.FCONKBANGNK(NELGMANHCIP);
|
|
}
|
|
else
|
|
{
|
|
ipbdfpepnim2 = this.MODFMIHDGHE(NELGMANHCIP);
|
|
}
|
|
if (ipbdfpepnim2 == IPBDFPEPNIM.INVALID)
|
|
{
|
|
Debug.LogWarning("-" + ((JEFGMHBLLKI == null) ? "X3ZpZXdfaWQYAiABKAxCE6oCEFJlY1Jvb20uUHJvdG9idWZiBnByb3RvMw==" : JEFGMHBLLKI.NFNJPKGKHCP()));
|
|
}
|
|
else
|
|
{
|
|
base.HDBHFPPPGDB(JEFGMHBLLKI, ipbdfpepnim2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601387B RID: 79995 RVA: 0x00587210 File Offset: 0x00585410
|
|
public void LEOKMNFDEPK()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601387C RID: 79996 RVA: 0x00587214 File Offset: 0x00585414
|
|
public void FEJPNOCFFGB(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD)
|
|
{
|
|
PhotonView photonView = this.gameManager.JNFDHNMMHGN();
|
|
string text = "Build";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.MasterClient;
|
|
object[] array = new object[1];
|
|
array[0] = JEFGMHBLLKI.BADMPMDONAH;
|
|
array[1] = (int)GKJLABBENHD;
|
|
array[7] = -1;
|
|
photonView.JJLACCMJEMB(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x0601387D RID: 79997 RVA: 0x00587254 File Offset: 0x00585454
|
|
public void IFKPLNLIJKM(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD, IPBDFPEPNIM NELGMANHCIP)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.OGBBFKIGNAK(GKJLABBENHD);
|
|
IPBDFPEPNIM ipbdfpepnim2;
|
|
if (GKJLABBENHD != IPBDFPEPNIM.INVALID && base.PCFEHEIKKJI(GKJLABBENHD) > 0 && base.NCKPGCOLJBL(GKJLABBENHD) <= base.NCKPGCOLJBL(ipbdfpepnim))
|
|
{
|
|
ipbdfpepnim2 = GKJLABBENHD;
|
|
}
|
|
else if (this.gameManager.PNOOBNCKAMJ.APOIFFPMCFE().TeamSelectionMethod == GOFGNODFNMC.RANDOM)
|
|
{
|
|
ipbdfpepnim2 = this.FCONKBANGNK(NELGMANHCIP);
|
|
}
|
|
else
|
|
{
|
|
ipbdfpepnim2 = this.MODFMIHDGHE(NELGMANHCIP);
|
|
}
|
|
if (ipbdfpepnim2 == IPBDFPEPNIM.INVALID)
|
|
{
|
|
Debug.LogWarning("LineRenderer_" + ((JEFGMHBLLKI == null) ? "graphicsDeviceVersion" : JEFGMHBLLKI.JFCNNPBCMMN()));
|
|
}
|
|
else
|
|
{
|
|
base.HDBHFPPPGDB(JEFGMHBLLKI, ipbdfpepnim2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601387E RID: 79998 RVA: 0x00587310 File Offset: 0x00585510
|
|
public void EFDFIAHGLHH()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601387F RID: 79999 RVA: 0x00587314 File Offset: 0x00585514
|
|
public virtual void DLDEANIBOOL()
|
|
{
|
|
base.EOLCMCIOBIE();
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x06013880 RID: 80000 RVA: 0x00587324 File Offset: 0x00585524
|
|
public void NKCADDBNJJN()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013881 RID: 80001 RVA: 0x00587328 File Offset: 0x00585528
|
|
public override bool OKOEACELJGP(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
bool flag = false;
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs.Length; i++)
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team != ipbdfpepnim)
|
|
{
|
|
if (this.gameManager.HPCKCOBKJLK == PDBEIFOBGIM.GAME_RUNNING && this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.SupportsGameRunningTeamChange && base.NCKPGCOLJBL(ipbdfpepnim) - base.NCKPGCOLJBL(base.OGBBFKIGNAK(ipbdfpepnim)) > 0)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
if (this.gameManager.HPCKCOBKJLK != PDBEIFOBGIM.GAME_RUNNING && base.PCFEHEIKKJI(this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team) > 0)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06013882 RID: 80002 RVA: 0x00587434 File Offset: 0x00585634
|
|
protected virtual void PDILDLFMJKI(LNJFBGIBLHA FNGMABCOENN)
|
|
{
|
|
this.IDCCAFHOBJN();
|
|
base.FNLOKKHNOLL(FNGMABCOENN);
|
|
}
|
|
|
|
// Token: 0x06013883 RID: 80003 RVA: 0x00587444 File Offset: 0x00585644
|
|
private void CAKBAPICIHK()
|
|
{
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.NCLHHNLDGNE;
|
|
LNJFBGIBLHA[] array2 = array;
|
|
for (int i = 0; i < array2.Length; i += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array2[i];
|
|
Player player = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (!(player == null))
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(lnjfbgiblha);
|
|
Color color = PBMLOBHPIMG.OMKFIIOOMJB(ipbdfpepnim);
|
|
this.CFEEBBFGNLC(player, ipbdfpepnim, color);
|
|
this.FNJMDNCGJPA(player, ipbdfpepnim, color);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013884 RID: 80004 RVA: 0x005874B8 File Offset: 0x005856B8
|
|
public void NLEFJAHMKGM(GameManager FMBELJHPBCG)
|
|
{
|
|
base.PFNEGHLIKJI();
|
|
this.gameManager = FMBELJHPBCG;
|
|
GameObject gameObject = new GameObject("IgnoreBuffer");
|
|
gameObject.transform.SetParent(FMBELJHPBCG.transform);
|
|
this.beacons = new PlayerHighlightBeam[FMBELJHPBCG.KCNDBBJLONI];
|
|
global::UnityEngine.Object @object = Resources.Load("offline");
|
|
for (int i = 0; i < this.beacons.Length; i++)
|
|
{
|
|
GameObject gameObject2 = global::UnityEngine.Object.Instantiate(@object) as GameObject;
|
|
this.beacons[i] = gameObject2.GetComponent<PlayerHighlightBeam>();
|
|
if (this.beacons[i] != null)
|
|
{
|
|
this.beacons[i].transform.SetParent(gameObject.transform);
|
|
}
|
|
}
|
|
FMBELJHPBCG.DHMMKCJAKLD += this.PLPNGJFPFOF;
|
|
FMBELJHPBCG.NDKFCMNIHJJ += this.FDHDLEOPKFP;
|
|
FMBELJHPBCG.GEOKEJAICBG += this.IFEDJHKGCHJ;
|
|
FMBELJHPBCG.FPEIIEIDIDK += this.GDKABOIANAG;
|
|
}
|
|
|
|
// Token: 0x06013885 RID: 80005 RVA: 0x005875B0 File Offset: 0x005857B0
|
|
public virtual IPBDFPEPNIM[] OEMJMEGFOIE()
|
|
{
|
|
TeamManager.INSTANTANEOUS_TEAMS.Clear();
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.PMJFCCDFALB().TeamConfigs.Length; i++)
|
|
{
|
|
TeamManager.INSTANTANEOUS_TEAMS.Add(this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team);
|
|
}
|
|
return TeamManager.INSTANTANEOUS_TEAMS.ToArray();
|
|
}
|
|
|
|
// Token: 0x06013886 RID: 80006 RVA: 0x0058762C File Offset: 0x0058582C
|
|
public int MOLHIKPHGMB()
|
|
{
|
|
return (!(this.gameManager != null) || !(this.gameManager.PNOOBNCKAMJ != null)) ? 0 : this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().TeamConfigs.Length;
|
|
}
|
|
|
|
// Token: 0x06013887 RID: 80007 RVA: 0x00587680 File Offset: 0x00585880
|
|
public virtual int GCHPDDCAMMK(IPBDFPEPNIM CLCIODCPAFC)
|
|
{
|
|
int num = 1;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.AINHLENAIFO().TeamConfigs.Length; i++)
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.PMJFCCDFALB().TeamConfigs[i].Team == CLCIODCPAFC)
|
|
{
|
|
num = this.gameManager.PNOOBNCKAMJ.HKKJELCJCLG().TeamConfigs[i].MaxTeamSize;
|
|
break;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06013888 RID: 80008 RVA: 0x00587710 File Offset: 0x00585910
|
|
private void FIAICINKHNH()
|
|
{
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.NCLHHNLDGNE;
|
|
foreach (LNJFBGIBLHA lnjfbgiblha in array)
|
|
{
|
|
Player player = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (!(player == null))
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(lnjfbgiblha);
|
|
Color color = PBMLOBHPIMG.OMKFIIOOMJB(ipbdfpepnim);
|
|
this.CFEEBBFGNLC(player, ipbdfpepnim, color);
|
|
this.FNJMDNCGJPA(player, ipbdfpepnim, color);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013889 RID: 80009 RVA: 0x00587784 File Offset: 0x00585984
|
|
public virtual void JMDBKMPOMCJ()
|
|
{
|
|
base.EOLCMCIOBIE();
|
|
this.FKCPHFEAHND();
|
|
}
|
|
|
|
// Token: 0x0601388A RID: 80010 RVA: 0x00587794 File Offset: 0x00585994
|
|
protected virtual string FKLAGBOAIOC()
|
|
{
|
|
return "sofa";
|
|
}
|
|
|
|
// Token: 0x0601388B RID: 80011 RVA: 0x0058779C File Offset: 0x0058599C
|
|
public void MEKHCKDFAPM()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601388C RID: 80012 RVA: 0x005877A0 File Offset: 0x005859A0
|
|
private void PLPNGJFPFOF()
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
Dictionary<LNJFBGIBLHA, IPBDFPEPNIM> dictionary = new Dictionary<LNJFBGIBLHA, IPBDFPEPNIM>();
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.NCLHHNLDGNE;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array[i];
|
|
if (this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().PreserveTeamsWhenChangingToThisMode)
|
|
{
|
|
dictionary.Add(lnjfbgiblha, base.KKPAEEHBNGE(lnjfbgiblha));
|
|
}
|
|
else
|
|
{
|
|
dictionary.Add(lnjfbgiblha, base.JDIDHDHLGAE(lnjfbgiblha));
|
|
}
|
|
}
|
|
base.HMDGPIKHCKP();
|
|
foreach (LNJFBGIBLHA lnjfbgiblha2 in IHFKMIAHBFP.NCLHHNLDGNE)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = dictionary[lnjfbgiblha2];
|
|
this.NHPDPJAIOOK(lnjfbgiblha2, ipbdfpepnim, IPBDFPEPNIM.INVALID);
|
|
}
|
|
}
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x0601388D RID: 80013 RVA: 0x00587864 File Offset: 0x00585A64
|
|
public void NAPOPFJFADI(GameManager FMBELJHPBCG)
|
|
{
|
|
base.PFNEGHLIKJI();
|
|
this.gameManager = FMBELJHPBCG;
|
|
GameObject gameObject = new GameObject("F2");
|
|
gameObject.transform.SetParent(FMBELJHPBCG.transform);
|
|
this.beacons = new PlayerHighlightBeam[FMBELJHPBCG.KCNDBBJLONI];
|
|
global::UnityEngine.Object @object = Resources.Load("SFXVolume");
|
|
for (int i = 0; i < this.beacons.Length; i++)
|
|
{
|
|
GameObject gameObject2 = global::UnityEngine.Object.Instantiate(@object) as GameObject;
|
|
this.beacons[i] = gameObject2.GetComponent<PlayerHighlightBeam>();
|
|
if (this.beacons[i] != null)
|
|
{
|
|
this.beacons[i].transform.SetParent(gameObject.transform);
|
|
}
|
|
}
|
|
FMBELJHPBCG.DHMMKCJAKLD += this.NAGDPMEHNGN;
|
|
FMBELJHPBCG.NDKFCMNIHJJ += this.FDHDLEOPKFP;
|
|
FMBELJHPBCG.GEOKEJAICBG += this.MBCMGFOJJBC;
|
|
FMBELJHPBCG.FPEIIEIDIDK += this.GDKABOIANAG;
|
|
}
|
|
|
|
// Token: 0x0601388E RID: 80014 RVA: 0x0058795C File Offset: 0x00585B5C
|
|
private void FDHDLEOPKFP(ushort PPJIGDPOGFH, ushort CHJBIHILBFO, ushort IHHBJKECADP, ushort BNCBHHCPCLE)
|
|
{
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x0601388F RID: 80015 RVA: 0x00587964 File Offset: 0x00585B64
|
|
public void ABFBLLODPLD(GameManager FMBELJHPBCG)
|
|
{
|
|
base.PFNEGHLIKJI();
|
|
this.gameManager = FMBELJHPBCG;
|
|
GameObject gameObject = new GameObject("Register your account for free to use the Lounge!");
|
|
gameObject.transform.SetParent(FMBELJHPBCG.transform);
|
|
this.beacons = new PlayerHighlightBeam[FMBELJHPBCG.KCNDBBJLONI];
|
|
global::UnityEngine.Object @object = Resources.Load("Must be exactly 2 GameRoots to merge. Something went wrong!");
|
|
for (int i = 1; i < this.beacons.Length; i++)
|
|
{
|
|
GameObject gameObject2 = global::UnityEngine.Object.Instantiate(@object) as GameObject;
|
|
this.beacons[i] = gameObject2.GetComponent<PlayerHighlightBeam>();
|
|
if (this.beacons[i] != null)
|
|
{
|
|
this.beacons[i].transform.SetParent(gameObject.transform);
|
|
}
|
|
}
|
|
FMBELJHPBCG.DHMMKCJAKLD += this.PLPNGJFPFOF;
|
|
FMBELJHPBCG.NDKFCMNIHJJ += this.FDHDLEOPKFP;
|
|
FMBELJHPBCG.GEOKEJAICBG += this.IFEDJHKGCHJ;
|
|
FMBELJHPBCG.FPEIIEIDIDK += this.EBFPNPPDMNM;
|
|
}
|
|
|
|
// Token: 0x06013890 RID: 80016 RVA: 0x00587A5C File Offset: 0x00585C5C
|
|
public void EHNICDMIEHL(bool LIEGPIPEAPJ)
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
}
|
|
|
|
// Token: 0x06013891 RID: 80017 RVA: 0x00587A64 File Offset: 0x00585C64
|
|
public void HOHIAAPDLGC(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
PhotonView photonView = this.gameManager.LHEPJEHMAEC();
|
|
string text = "Social Network";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.AllBuffered;
|
|
object[] array = new object[4];
|
|
array[0] = JEFGMHBLLKI.BADMPMDONAH;
|
|
array[1] = -1;
|
|
array[6] = (int)base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
photonView.JJLACCMJEMB(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x06013892 RID: 80018 RVA: 0x00587AB4 File Offset: 0x00585CB4
|
|
public virtual IPBDFPEPNIM[] IDLDPHDNMPJ()
|
|
{
|
|
TeamManager.INSTANTANEOUS_TEAMS.Clear();
|
|
for (int i = 1; i < this.gameManager.PNOOBNCKAMJ.FFNBAIDLEFJ().TeamConfigs.Length; i++)
|
|
{
|
|
TeamManager.INSTANTANEOUS_TEAMS.Add(this.gameManager.PNOOBNCKAMJ.CMNCEBAHKNB().TeamConfigs[i].Team);
|
|
}
|
|
return TeamManager.INSTANTANEOUS_TEAMS.ToArray();
|
|
}
|
|
|
|
// Token: 0x06013893 RID: 80019 RVA: 0x00587B30 File Offset: 0x00585D30
|
|
private void NGDFIKCLKNM()
|
|
{
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.NCLHHNLDGNE;
|
|
foreach (LNJFBGIBLHA lnjfbgiblha in array)
|
|
{
|
|
Player player = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (!(player == null))
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(lnjfbgiblha);
|
|
Color color = PBMLOBHPIMG.OMKFIIOOMJB(ipbdfpepnim);
|
|
this.CFEEBBFGNLC(player, ipbdfpepnim, color);
|
|
this.JOHPEPKLNGM(player, ipbdfpepnim, color);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013894 RID: 80020 RVA: 0x00587BA4 File Offset: 0x00585DA4
|
|
public override int BEEBHNIBKDM()
|
|
{
|
|
int num = 0;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs.Length; i++)
|
|
{
|
|
num += this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].MaxTeamSize;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06013895 RID: 80021 RVA: 0x00587C08 File Offset: 0x00585E08
|
|
private void MBCMGFOJJBC()
|
|
{
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x06013896 RID: 80022 RVA: 0x00587C10 File Offset: 0x00585E10
|
|
public void BNJKPFOGGPG(LNJFBGIBLHA JEFGMHBLLKI, bool HNCNIBIIMEH = true)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = ((!HNCNIBIIMEH) ? IPBDFPEPNIM.INVALID : base.JDIDHDHLGAE(JEFGMHBLLKI));
|
|
PhotonView photonView = this.gameManager.POOAOJPEDJD();
|
|
string text = "JsonData instance doesn't hold a string";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.AllBufferedViaServer;
|
|
object[] array = new object[2];
|
|
array[0] = JEFGMHBLLKI.BADMPMDONAH;
|
|
array[0] = (int)ipbdfpepnim;
|
|
array[8] = -1;
|
|
photonView.JJLACCMJEMB(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x06013898 RID: 80024 RVA: 0x00587C78 File Offset: 0x00585E78
|
|
public void PDKCNPAJLBK(bool LIEGPIPEAPJ)
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
}
|
|
|
|
// Token: 0x06013899 RID: 80025 RVA: 0x00587C80 File Offset: 0x00585E80
|
|
public virtual void PEALKHMDMKP()
|
|
{
|
|
base.CMBEDBCPNIA();
|
|
if (this.gameManager != null)
|
|
{
|
|
this.gameManager.DHMMKCJAKLD -= this.NAGDPMEHNGN;
|
|
this.gameManager.NDKFCMNIHJJ -= this.FDHDLEOPKFP;
|
|
this.gameManager.GEOKEJAICBG -= this.MBCMGFOJJBC;
|
|
this.gameManager.FPEIIEIDIDK -= this.PMDMHKBLKIM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601389A RID: 80026 RVA: 0x00587D00 File Offset: 0x00585F00
|
|
public virtual void ILAIKCEIIMJ()
|
|
{
|
|
base.EOLCMCIOBIE();
|
|
this.IDCCAFHOBJN();
|
|
}
|
|
|
|
// Token: 0x0601389B RID: 80027 RVA: 0x00587D10 File Offset: 0x00585F10
|
|
public void EBEAAKOEIIG(DNIDEHCOLPK LIILFFHNPEB, out int LPHFFAFFHPL, out int IOOOGPBNOKH)
|
|
{
|
|
switch (LIILFFHNPEB + 0)
|
|
{
|
|
default:
|
|
LPHFFAFFHPL = -152;
|
|
IOOOGPBNOKH = 44;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 5;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_THREE_PLAYERS:
|
|
LPHFFAFFHPL = 7;
|
|
IOOOGPBNOKH = 6;
|
|
break;
|
|
case DNIDEHCOLPK.TWO_TEAMS_FOUR_PLAYERS:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 2;
|
|
break;
|
|
case DNIDEHCOLPK.THREE_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.THREE_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 1;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.FOUR_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 5;
|
|
IOOOGPBNOKH = 2;
|
|
break;
|
|
case DNIDEHCOLPK.FOUR_TEAMS_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 1;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.ONE_TEAM_ANY_PLAYERS:
|
|
LPHFFAFFHPL = 3;
|
|
IOOOGPBNOKH = 7;
|
|
break;
|
|
case DNIDEHCOLPK.ONE_TEAM_TWO_PLAYERS:
|
|
LPHFFAFFHPL = 0;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.FIVE_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 1;
|
|
IOOOGPBNOKH = 2;
|
|
break;
|
|
case DNIDEHCOLPK.SIX_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 3;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case DNIDEHCOLPK.SEVEN_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 8;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.EIGHT_TEAMS_ONE_PLAYER:
|
|
LPHFFAFFHPL = 0;
|
|
IOOOGPBNOKH = 0;
|
|
break;
|
|
case DNIDEHCOLPK.NO_REQUIREMENTS:
|
|
LPHFFAFFHPL = 2;
|
|
IOOOGPBNOKH = 1;
|
|
break;
|
|
case (DNIDEHCOLPK)15:
|
|
LPHFFAFFHPL = 142;
|
|
IOOOGPBNOKH = -136;
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601389C RID: 80028 RVA: 0x00587E2C File Offset: 0x0058602C
|
|
private bool HIMNPKECAMO(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
if (ipbdfpepnim == IPBDFPEPNIM.INVALID)
|
|
{
|
|
return this.DNGCDONCKPF();
|
|
}
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 1 : array.Length);
|
|
int num2 = ((array == null) ? 1 : base.BBFPDKGBBDM(array));
|
|
int num3 = base.NCKPGCOLJBL(ipbdfpepnim) - 0;
|
|
if (num3 == 0)
|
|
{
|
|
num--;
|
|
}
|
|
else if (num3 < num2)
|
|
{
|
|
num2 = num3;
|
|
}
|
|
return this.AEFOGJOBFGP(this.gameManager.PNOOBNCKAMJ.NCCPCLMFGPO().GameStartTeamRequirement, num, num2);
|
|
}
|
|
|
|
// Token: 0x0601389D RID: 80029 RVA: 0x00587EC4 File Offset: 0x005860C4
|
|
public virtual string JMICEMBPGDM(IPBDFPEPNIM CLCIODCPAFC)
|
|
{
|
|
if (!this.gameManager.PNOOBNCKAMJ.PMJFCCDFALB().UseTeamNamesInFeedback)
|
|
{
|
|
LNJFBGIBLHA[] array = base.FJIEEIDKJLA(CLCIODCPAFC);
|
|
if (array.Length > 0)
|
|
{
|
|
return array[1].KNFIKFCMEPB();
|
|
}
|
|
}
|
|
return base.FPGHAMAAFIP(CLCIODCPAFC);
|
|
}
|
|
|
|
// Token: 0x0601389E RID: 80030 RVA: 0x00587F10 File Offset: 0x00586110
|
|
private static int LOPLAACKIIK(IPBDFPEPNIM FKOFGIJFIKA, IPBDFPEPNIM GNNBOMAEBGK)
|
|
{
|
|
int num = (int)FKOFGIJFIKA;
|
|
return num.CompareTo((int)GNNBOMAEBGK);
|
|
}
|
|
|
|
// Token: 0x0601389F RID: 80031 RVA: 0x00587F28 File Offset: 0x00586128
|
|
protected virtual string HEOMFAHOHIM()
|
|
{
|
|
return "&cid=";
|
|
}
|
|
|
|
// Token: 0x060138A0 RID: 80032 RVA: 0x00587F30 File Offset: 0x00586130
|
|
private bool OJGJHFDEPGP(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
if (ipbdfpepnim == IPBDFPEPNIM.INVALID)
|
|
{
|
|
return this.DNGCDONCKPF();
|
|
}
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 1 : base.BBFPDKGBBDM(array));
|
|
int num3 = base.NCKPGCOLJBL(ipbdfpepnim) - 1;
|
|
if (num3 == 0)
|
|
{
|
|
num--;
|
|
}
|
|
else if (num3 < num2)
|
|
{
|
|
num2 = num3;
|
|
}
|
|
return this.BHIGPHMCAJM(this.gameManager.PNOOBNCKAMJ.OPGDOJJNFAP().GameStartTeamRequirement, num, num2);
|
|
}
|
|
|
|
// Token: 0x060138A1 RID: 80033 RVA: 0x00587FC8 File Offset: 0x005861C8
|
|
public void CHKEPBPHBAB()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060138A2 RID: 80034 RVA: 0x00587FCC File Offset: 0x005861CC
|
|
public void OMOFNDGJDLA()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060138A3 RID: 80035 RVA: 0x00587FD0 File Offset: 0x005861D0
|
|
public void HHPOCJKFMIG()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060138A4 RID: 80036 RVA: 0x00587FD4 File Offset: 0x005861D4
|
|
protected virtual void APKPFGHLBFB(LNJFBGIBLHA FNGMABCOENN)
|
|
{
|
|
this.AEHBLBJCOCP();
|
|
base.FNLOKKHNOLL(FNGMABCOENN);
|
|
}
|
|
|
|
// Token: 0x060138A5 RID: 80037 RVA: 0x00587FE4 File Offset: 0x005861E4
|
|
public override void EOLCMCIOBIE()
|
|
{
|
|
base.EOLCMCIOBIE();
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x060138A6 RID: 80038 RVA: 0x00587FF4 File Offset: 0x005861F4
|
|
protected virtual void IKLMLKBEAHG(LNJFBGIBLHA FNGMABCOENN)
|
|
{
|
|
this.FKCPHFEAHND();
|
|
base.FNLOKKHNOLL(FNGMABCOENN);
|
|
}
|
|
|
|
// Token: 0x060138A7 RID: 80039 RVA: 0x00588004 File Offset: 0x00586204
|
|
public override string FPGHAMAAFIP(IPBDFPEPNIM CLCIODCPAFC)
|
|
{
|
|
if (!this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.UseTeamNamesInFeedback)
|
|
{
|
|
LNJFBGIBLHA[] array = base.FJIEEIDKJLA(CLCIODCPAFC);
|
|
if (array.Length > 0)
|
|
{
|
|
return array[0].KODHOHBEAOP;
|
|
}
|
|
}
|
|
return base.FPGHAMAAFIP(CLCIODCPAFC);
|
|
}
|
|
|
|
// Token: 0x060138A8 RID: 80040 RVA: 0x00588050 File Offset: 0x00586250
|
|
public void BAGFLAHBINI(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD)
|
|
{
|
|
this.gameManager.CEGDLFAENEJ().JJLACCMJEMB("T12345", IHCPDNLJMMD.OthersBuffered, new object[]
|
|
{
|
|
JEFGMHBLLKI.BADMPMDONAH,
|
|
(int)GKJLABBENHD,
|
|
null,
|
|
null,
|
|
-1
|
|
});
|
|
}
|
|
|
|
// Token: 0x060138A9 RID: 80041 RVA: 0x00588090 File Offset: 0x00586290
|
|
private static int MMHNELLBEJC(IPBDFPEPNIM FKOFGIJFIKA, IPBDFPEPNIM GNNBOMAEBGK)
|
|
{
|
|
int num = (int)FKOFGIJFIKA;
|
|
return num.CompareTo((int)GNNBOMAEBGK);
|
|
}
|
|
|
|
// Token: 0x060138AA RID: 80042 RVA: 0x005880A8 File Offset: 0x005862A8
|
|
public void KBKCGBMEDFM(GameManager FMBELJHPBCG)
|
|
{
|
|
base.PFNEGHLIKJI();
|
|
this.gameManager = FMBELJHPBCG;
|
|
GameObject gameObject = new GameObject("TEST_BOTH_ALWAYS_LOGINS");
|
|
gameObject.transform.SetParent(FMBELJHPBCG.transform);
|
|
this.beacons = new PlayerHighlightBeam[FMBELJHPBCG.KCNDBBJLONI];
|
|
global::UnityEngine.Object @object = Resources.Load("EDIT");
|
|
for (int i = 1; i < this.beacons.Length; i++)
|
|
{
|
|
GameObject gameObject2 = global::UnityEngine.Object.Instantiate(@object) as GameObject;
|
|
this.beacons[i] = gameObject2.GetComponent<PlayerHighlightBeam>();
|
|
if (this.beacons[i] != null)
|
|
{
|
|
this.beacons[i].transform.SetParent(gameObject.transform);
|
|
}
|
|
}
|
|
FMBELJHPBCG.DHMMKCJAKLD += this.PLPNGJFPFOF;
|
|
FMBELJHPBCG.NDKFCMNIHJJ += this.FDHDLEOPKFP;
|
|
FMBELJHPBCG.GEOKEJAICBG += this.IKCFBEDAFBM;
|
|
FMBELJHPBCG.FPEIIEIDIDK += this.EBFPNPPDMNM;
|
|
}
|
|
|
|
// Token: 0x060138AB RID: 80043 RVA: 0x005881A0 File Offset: 0x005863A0
|
|
public void BBNJAHNBGHD(bool LIEGPIPEAPJ)
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
}
|
|
|
|
// Token: 0x060138AC RID: 80044 RVA: 0x005881A8 File Offset: 0x005863A8
|
|
public bool BLKKBLKOGGE()
|
|
{
|
|
IPBDFPEPNIM[] array = base.KNNABLLLMIM();
|
|
int num = ((array == null) ? 0 : array.Length);
|
|
int num2 = ((array == null) ? 1 : base.BBFPDKGBBDM(array));
|
|
return this.BHIGPHMCAJM(this.gameManager.PNOOBNCKAMJ.NDCBDKBGEBN().GameAutomaticStartTeamRequirement, num, num2);
|
|
}
|
|
|
|
// Token: 0x060138AD RID: 80045 RVA: 0x00588200 File Offset: 0x00586400
|
|
public virtual IPBDFPEPNIM[] PDKGACKEJDA()
|
|
{
|
|
TeamManager.INSTANTANEOUS_TEAMS.Clear();
|
|
for (int i = 1; i < this.gameManager.PNOOBNCKAMJ.BNFPHELBAHD().TeamConfigs.Length; i += 0)
|
|
{
|
|
TeamManager.INSTANTANEOUS_TEAMS.Add(this.gameManager.PNOOBNCKAMJ.FNMEBIBFDNC().TeamConfigs[i].Team);
|
|
}
|
|
return TeamManager.INSTANTANEOUS_TEAMS.ToArray();
|
|
}
|
|
|
|
// Token: 0x060138AE RID: 80046 RVA: 0x0058827C File Offset: 0x0058647C
|
|
protected override void FNLOKKHNOLL(LNJFBGIBLHA FNGMABCOENN)
|
|
{
|
|
this.AEHBLBJCOCP();
|
|
base.FNLOKKHNOLL(FNGMABCOENN);
|
|
}
|
|
|
|
// Token: 0x060138AF RID: 80047 RVA: 0x0058828C File Offset: 0x0058648C
|
|
private void FKCPHFEAHND()
|
|
{
|
|
this.GPGDMPIBHEG();
|
|
this.FIAICINKHNH();
|
|
}
|
|
|
|
// Token: 0x060138B0 RID: 80048 RVA: 0x0058829C File Offset: 0x0058649C
|
|
public override int JCEFMBMDGAP(IPBDFPEPNIM CLCIODCPAFC)
|
|
{
|
|
int num = 0;
|
|
for (int i = 0; i < this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs.Length; i++)
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].Team == CLCIODCPAFC)
|
|
{
|
|
num = this.gameManager.PNOOBNCKAMJ.GEAFOCKCAJA.TeamConfigs[i].MaxTeamSize;
|
|
break;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x060138B1 RID: 80049 RVA: 0x0058832C File Offset: 0x0058652C
|
|
public void PBBFGEOFCAD(LNJFBGIBLHA JEFGMHBLLKI, bool HNCNIBIIMEH = true)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = ((!HNCNIBIIMEH) ? IPBDFPEPNIM.INVALID : base.JDIDHDHLGAE(JEFGMHBLLKI));
|
|
PhotonView photonView = this.gameManager.POOAOJPEDJD();
|
|
string text = "Adding the objective";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.All;
|
|
object[] array = new object[0];
|
|
array[1] = JEFGMHBLLKI.BADMPMDONAH;
|
|
array[1] = (int)ipbdfpepnim;
|
|
array[2] = -1;
|
|
photonView.PKOHKPEKJCJ(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x060138B2 RID: 80050 RVA: 0x0058838C File Offset: 0x0058658C
|
|
public override void CMBEDBCPNIA()
|
|
{
|
|
base.CMBEDBCPNIA();
|
|
if (this.gameManager != null)
|
|
{
|
|
this.gameManager.DHMMKCJAKLD -= this.NAGDPMEHNGN;
|
|
this.gameManager.NDKFCMNIHJJ -= this.FDHDLEOPKFP;
|
|
this.gameManager.GEOKEJAICBG -= this.MBCMGFOJJBC;
|
|
this.gameManager.FPEIIEIDIDK -= this.JLOEBGDCGNO;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060138B3 RID: 80051 RVA: 0x0058840C File Offset: 0x0058660C
|
|
private void DHMOEBLFEMM()
|
|
{
|
|
LNJFBGIBLHA[] array = IHFKMIAHBFP.NCLHHNLDGNE;
|
|
LNJFBGIBLHA[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
LNJFBGIBLHA lnjfbgiblha = array2[i];
|
|
Player player = lnjfbgiblha.JHJGDFHNBLO();
|
|
if (!(player == null))
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.KKPAEEHBNGE(lnjfbgiblha);
|
|
Color color = PBMLOBHPIMG.OMKFIIOOMJB(ipbdfpepnim);
|
|
this.CFEEBBFGNLC(player, ipbdfpepnim, color);
|
|
this.FNJMDNCGJPA(player, ipbdfpepnim, color);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060138B4 RID: 80052 RVA: 0x00588480 File Offset: 0x00586680
|
|
public void AOMEKPPCACD(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
PhotonView photonView = this.gameManager.ONAOMJAKKMA();
|
|
string text = "Document Host Name";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.AllViaServer;
|
|
object[] array = new object[5];
|
|
array[1] = JEFGMHBLLKI.BADMPMDONAH;
|
|
array[1] = -1;
|
|
array[0] = (int)base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
photonView.PKOHKPEKJCJ(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x060138B5 RID: 80053 RVA: 0x005884D0 File Offset: 0x005866D0
|
|
private void LIALDCBNODH()
|
|
{
|
|
this.IDCCAFHOBJN();
|
|
}
|
|
|
|
// Token: 0x060138B6 RID: 80054 RVA: 0x005884D8 File Offset: 0x005866D8
|
|
protected override void IMNABMKLMHK(Player JEFGMHBLLKI)
|
|
{
|
|
base.IMNABMKLMHK(JEFGMHBLLKI);
|
|
this.AEHBLBJCOCP();
|
|
}
|
|
|
|
// Token: 0x060138B7 RID: 80055 RVA: 0x005884E8 File Offset: 0x005866E8
|
|
public virtual bool NIEOPOHNEEF(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return !base.IALADJLKIFN(JEFGMHBLLKI) && this.OJGJHFDEPGP(JEFGMHBLLKI);
|
|
}
|
|
|
|
// Token: 0x060138B8 RID: 80056 RVA: 0x00588500 File Offset: 0x00586700
|
|
private void GDKABOIANAG()
|
|
{
|
|
this.FKCPHFEAHND();
|
|
}
|
|
|
|
// Token: 0x060138B9 RID: 80057 RVA: 0x00588508 File Offset: 0x00586708
|
|
public void KLKKFIEBOGG(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
PhotonView photonView = this.gameManager.JNFDHNMMHGN();
|
|
string text = "Rep";
|
|
IHCPDNLJMMD ihcpdnljmmd = IHCPDNLJMMD.AllBuffered;
|
|
object[] array = new object[6];
|
|
array[0] = JEFGMHBLLKI.BADMPMDONAH;
|
|
array[0] = -1;
|
|
array[3] = (int)base.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
photonView.PKOHKPEKJCJ(text, ihcpdnljmmd, array);
|
|
}
|
|
|
|
// Token: 0x060138BA RID: 80058 RVA: 0x00588558 File Offset: 0x00586758
|
|
public void LBJJGPGCEGP(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD, IPBDFPEPNIM NELGMANHCIP)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.OGBBFKIGNAK(GKJLABBENHD);
|
|
IPBDFPEPNIM ipbdfpepnim2;
|
|
if (GKJLABBENHD != IPBDFPEPNIM.INVALID && base.PCFEHEIKKJI(GKJLABBENHD) > 1 && base.NCKPGCOLJBL(GKJLABBENHD) <= base.NCKPGCOLJBL(ipbdfpepnim))
|
|
{
|
|
ipbdfpepnim2 = GKJLABBENHD;
|
|
}
|
|
else if (this.gameManager.PNOOBNCKAMJ.PMJFCCDFALB().TeamSelectionMethod == (GOFGNODFNMC)8)
|
|
{
|
|
ipbdfpepnim2 = this.JLMNJJHKDMO(NELGMANHCIP);
|
|
}
|
|
else
|
|
{
|
|
ipbdfpepnim2 = this.MODFMIHDGHE(NELGMANHCIP);
|
|
}
|
|
if (ipbdfpepnim2 == IPBDFPEPNIM.INVALID)
|
|
{
|
|
Debug.LogWarning("_UScale" + ((JEFGMHBLLKI == null) ? "JoinOrCreateRoom failed. A roomname is required. If you don't know one, how will you join?" : JEFGMHBLLKI.KODHOHBEAOP));
|
|
}
|
|
else
|
|
{
|
|
base.HDBHFPPPGDB(JEFGMHBLLKI, ipbdfpepnim2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060138BB RID: 80059 RVA: 0x00588614 File Offset: 0x00586814
|
|
public void NHPDPJAIOOK(LNJFBGIBLHA JEFGMHBLLKI, IPBDFPEPNIM GKJLABBENHD, IPBDFPEPNIM NELGMANHCIP)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
IPBDFPEPNIM ipbdfpepnim = base.OGBBFKIGNAK(GKJLABBENHD);
|
|
IPBDFPEPNIM ipbdfpepnim2;
|
|
if (GKJLABBENHD != IPBDFPEPNIM.INVALID && base.PCFEHEIKKJI(GKJLABBENHD) > 0 && base.NCKPGCOLJBL(GKJLABBENHD) <= base.NCKPGCOLJBL(ipbdfpepnim))
|
|
{
|
|
ipbdfpepnim2 = GKJLABBENHD;
|
|
}
|
|
else if (this.gameManager.PNOOBNCKAMJ.FAGFKKAMBBL().TeamSelectionMethod == (GOFGNODFNMC)8)
|
|
{
|
|
ipbdfpepnim2 = this.EFIMOJMMNLC(NELGMANHCIP);
|
|
}
|
|
else
|
|
{
|
|
ipbdfpepnim2 = this.MODFMIHDGHE(NELGMANHCIP);
|
|
}
|
|
if (ipbdfpepnim2 == IPBDFPEPNIM.INVALID)
|
|
{
|
|
Debug.LogWarning("Found " + ((JEFGMHBLLKI == null) ? "add" : JEFGMHBLLKI.HCPJJFHNCGC()));
|
|
}
|
|
else
|
|
{
|
|
base.HDBHFPPPGDB(JEFGMHBLLKI, ipbdfpepnim2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060138BC RID: 80060 RVA: 0x005886D0 File Offset: 0x005868D0
|
|
protected virtual void GHGMLAMHBKC(Player JEFGMHBLLKI)
|
|
{
|
|
base.IMNABMKLMHK(JEFGMHBLLKI);
|
|
this.FKCPHFEAHND();
|
|
}
|
|
|
|
// Token: 0x060138BD RID: 80061 RVA: 0x005886E0 File Offset: 0x005868E0
|
|
public void HLPEMPCAICM(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
this.gameManager.OMNGGJICBBI.RPC("RpcMasterRequestTeam", IHCPDNLJMMD.MasterClient, new object[]
|
|
{
|
|
JEFGMHBLLKI.BADMPMDONAH,
|
|
-1,
|
|
(int)base.KKPAEEHBNGE(JEFGMHBLLKI)
|
|
});
|
|
}
|
|
|
|
// Token: 0x040036CC RID: 14028
|
|
private GameManager gameManager;
|
|
|
|
// Token: 0x040036CD RID: 14029
|
|
private PlayerHighlightBeam[] beacons;
|
|
}
|