Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
1
2.32k
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Xml.Linq;
using Barotrauma.Extensions;
using Barotrauma.Networking;
using Microsoft.Xna.Framework;
namespace Barotrauma
{
// Token: 0x0200004E RID: 78
internal class AbandonedOutpostMission : Mission
{
// Token: 0x17000308 RID: 776
// (get) Token: 0x06000B04 RID: 2820 RVA: 0x00066B76 File Offset: 0x00064D76
// (set) Token: 0x06000B05 RID: 2821 RVA: 0x00066B7E File Offset: 0x00064D7E
public override int State
{
get
{
return base.State;
}
set
{
if (this.state != value)
{
base.State = value;
if (this.state == 5 && !this.hostagesKilledMessage.IsNullOrEmpty())
{
base.CreateMessageBox(string.Empty, this.hostagesKilledMessage);
}
}
}
}
// Token: 0x17000309 RID: 777
// (get) Token: 0x06000B06 RID: 2822 RVA: 0x00066BBC File Offset: 0x00064DBC
public override bool DisplayAsCompleted
{
get
{
return !this.DisplayAsFailed && this.State > 0 && this.requireRescue.None(null);
}
}
// Token: 0x1700030A RID: 778
// (get) Token: 0x06000B07 RID: 2823 RVA: 0x00066BDD File Offset: 0x00064DDD
public override bool DisplayAsFailed
{
get
{
return this.State == 5;
}
}
// Token: 0x06000B08 RID: 2824 RVA: 0x00066BE8 File Offset: 0x00064DE8
public override void ClientReadInitial(IReadMessage msg)
{
base.ClientReadInitial(msg);
ushort num = msg.ReadUInt16();
for (int i = 0; i < (int)num; i++)
{
Item item = Item.ReadSpawnData(msg, true);
this.items.Add(item);
}
byte b = msg.ReadByte();
for (int j = 0; j < (int)b; j++)
{
Character character = Character.ReadSpawnData(msg);
this.characters.Add(character);
if (msg.ReadBoolean())
{
this.requireKill.Add(character);
}
if (msg.ReadBoolean())
{
this.requireRescue.Add(character);
if (this.allowOrderingRescuees)
{
CrewManager crewManager = GameMain.GameSession.CrewManager;
if (crewManager != null)
{
crewManager.AddCharacterToCrewList(character);
}
}
}
ushort num2 = msg.ReadUInt16();
for (int k = 0; k < (int)num2; k++)
{
Item.ReadSpawnData(msg, true);
}
if (character.Submarine != null)
{
EnemyAIController enemyAIController = character.AIController as EnemyAIController;
if (enemyAIController != null)
{
enemyAIController.UnattackableSubmarines.Add(character.Submarine);
if (Submarine.MainSub != null)
{
enemyAIController.UnattackableSubmarines.Add(Submarine.MainSub);
foreach (Submarine item2 in Submarine.MainSub.DockedTo)
{
enemyAIController.UnattackableSubmarines.Add(item2);
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
6