Terraria 1.3.5.3 Source Code
This commit is contained in:
commit
4b21dac4b6
503 changed files with 409032 additions and 0 deletions
29
Social/Base/AchievementsSocialModule.cs
Normal file
29
Social/Base/AchievementsSocialModule.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Decompiled with JetBrains decompiler
|
||||
// Type: Terraria.Social.Base.AchievementsSocialModule
|
||||
// Assembly: Terraria, Version=1.3.5.3, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 68659D26-2BE6-448F-8663-74FA559E6F08
|
||||
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
|
||||
|
||||
namespace Terraria.Social.Base
|
||||
{
|
||||
public abstract class AchievementsSocialModule : ISocialModule
|
||||
{
|
||||
public abstract void Initialize();
|
||||
|
||||
public abstract void Shutdown();
|
||||
|
||||
public abstract byte[] GetEncryptionKey();
|
||||
|
||||
public abstract string GetSavePath();
|
||||
|
||||
public abstract void UpdateIntStat(string name, int value);
|
||||
|
||||
public abstract void UpdateFloatStat(string name, float value);
|
||||
|
||||
public abstract void CompleteAchievement(string name);
|
||||
|
||||
public abstract bool IsAchievementCompleted(string name);
|
||||
|
||||
public abstract void StoreStats();
|
||||
}
|
||||
}
|
48
Social/Base/CloudSocialModule.cs
Normal file
48
Social/Base/CloudSocialModule.cs
Normal file
|
@ -0,0 +1,48 @@
|
|||
// Decompiled with JetBrains decompiler
|
||||
// Type: Terraria.Social.Base.CloudSocialModule
|
||||
// Assembly: Terraria, Version=1.3.5.3, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 68659D26-2BE6-448F-8663-74FA559E6F08
|
||||
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Terraria.IO;
|
||||
|
||||
namespace Terraria.Social.Base
|
||||
{
|
||||
public abstract class CloudSocialModule : ISocialModule
|
||||
{
|
||||
public bool EnabledByDefault;
|
||||
|
||||
public virtual void Initialize()
|
||||
{
|
||||
Main.Configuration.OnLoad += (Action<Preferences>) (preferences => this.EnabledByDefault = preferences.Get<bool>("CloudSavingDefault", false));
|
||||
Main.Configuration.OnSave += (Action<Preferences>) (preferences => preferences.Put("CloudSavingDefault", (object) this.EnabledByDefault));
|
||||
}
|
||||
|
||||
public abstract void Shutdown();
|
||||
|
||||
public abstract IEnumerable<string> GetFiles();
|
||||
|
||||
public abstract bool Write(string path, byte[] data, int length);
|
||||
|
||||
public abstract void Read(string path, byte[] buffer, int length);
|
||||
|
||||
public abstract bool HasFile(string path);
|
||||
|
||||
public abstract int GetFileSize(string path);
|
||||
|
||||
public abstract bool Delete(string path);
|
||||
|
||||
public byte[] Read(string path)
|
||||
{
|
||||
byte[] buffer = new byte[this.GetFileSize(path)];
|
||||
this.Read(path, buffer, buffer.Length);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
public void Read(string path, byte[] buffer) => this.Read(path, buffer, buffer.Length);
|
||||
|
||||
public bool Write(string path, byte[] data) => this.Write(path, data, data.Length);
|
||||
}
|
||||
}
|
19
Social/Base/FriendsSocialModule.cs
Normal file
19
Social/Base/FriendsSocialModule.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Decompiled with JetBrains decompiler
|
||||
// Type: Terraria.Social.Base.FriendsSocialModule
|
||||
// Assembly: Terraria, Version=1.3.5.3, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 68659D26-2BE6-448F-8663-74FA559E6F08
|
||||
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
|
||||
|
||||
namespace Terraria.Social.Base
|
||||
{
|
||||
public abstract class FriendsSocialModule : ISocialModule
|
||||
{
|
||||
public abstract string GetUsername();
|
||||
|
||||
public abstract void OpenJoinInterface();
|
||||
|
||||
public abstract void Initialize();
|
||||
|
||||
public abstract void Shutdown();
|
||||
}
|
||||
}
|
45
Social/Base/NetSocialModule.cs
Normal file
45
Social/Base/NetSocialModule.cs
Normal file
|
@ -0,0 +1,45 @@
|
|||
// Decompiled with JetBrains decompiler
|
||||
// Type: Terraria.Social.Base.NetSocialModule
|
||||
// Assembly: Terraria, Version=1.3.5.3, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 68659D26-2BE6-448F-8663-74FA559E6F08
|
||||
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
|
||||
|
||||
using System.Diagnostics;
|
||||
using Terraria.Net;
|
||||
using Terraria.Net.Sockets;
|
||||
|
||||
namespace Terraria.Social.Base
|
||||
{
|
||||
public abstract class NetSocialModule : ISocialModule
|
||||
{
|
||||
public abstract void Initialize();
|
||||
|
||||
public abstract void Shutdown();
|
||||
|
||||
public abstract void Close(RemoteAddress address);
|
||||
|
||||
public abstract bool IsConnected(RemoteAddress address);
|
||||
|
||||
public abstract void Connect(RemoteAddress address);
|
||||
|
||||
public abstract bool Send(RemoteAddress address, byte[] data, int length);
|
||||
|
||||
public abstract int Receive(RemoteAddress address, byte[] data, int offset, int length);
|
||||
|
||||
public abstract bool IsDataAvailable(RemoteAddress address);
|
||||
|
||||
public abstract void LaunchLocalServer(Process process, ServerMode mode);
|
||||
|
||||
public abstract bool CanInvite();
|
||||
|
||||
public abstract void OpenInviteInterface();
|
||||
|
||||
public abstract void CancelJoin();
|
||||
|
||||
public abstract bool StartListening(SocketConnectionAccepted callback);
|
||||
|
||||
public abstract void StopListening();
|
||||
|
||||
public abstract ulong GetLobbyId();
|
||||
}
|
||||
}
|
26
Social/Base/OverlaySocialModule.cs
Normal file
26
Social/Base/OverlaySocialModule.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Decompiled with JetBrains decompiler
|
||||
// Type: Terraria.Social.Base.OverlaySocialModule
|
||||
// Assembly: Terraria, Version=1.3.5.3, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 68659D26-2BE6-448F-8663-74FA559E6F08
|
||||
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
|
||||
|
||||
namespace Terraria.Social.Base
|
||||
{
|
||||
public abstract class OverlaySocialModule : ISocialModule
|
||||
{
|
||||
public abstract void Initialize();
|
||||
|
||||
public abstract void Shutdown();
|
||||
|
||||
public abstract bool IsGamepadTextInputActive();
|
||||
|
||||
public abstract bool ShowGamepadTextInput(
|
||||
string description,
|
||||
uint maxLength,
|
||||
bool multiLine = false,
|
||||
string existingText = "",
|
||||
bool password = false);
|
||||
|
||||
public abstract string GetGamepadText();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue