-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cc4ea60
Showing
110 changed files
with
122,106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
using System.Security.Permissions; | ||
|
||
[assembly: Extension] | ||
[assembly: AssemblyProduct("TerrariaXDK")] | ||
[assembly: AssemblyCompany("Engine Software")] | ||
[assembly: AssemblyCopyright("Copyright © Engine Software 2012")] | ||
[assembly: AssemblyTitle("TerrariaXDK")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: ComVisible(false)] | ||
[assembly: Guid("a1bb9f25-54df-4f2e-a41f-8360dde42e71")] | ||
[assembly: AssemblyVersion("1.0.4.1")] | ||
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
XDK_v4.0.HiDef |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Type: NetMessageId | ||
// Assembly: game, Version=1.0.4.1, Culture=neutral, PublicKeyToken=null | ||
// MVID: D0F84B30-D7A0-41D8-8306-C72BB0D9D9CF | ||
// Assembly location: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe | ||
|
||
internal enum NetMessageId | ||
{ | ||
CLIENT_SAY_HELLO = 1, | ||
CLIENT_NAME_HEAD = 4, | ||
CLIENT_INVENTORY = 5, | ||
CLIENT_INVENTORY_END = 6, | ||
CLIENT_REQ_STARTING_DATA = 8, | ||
CLIENT_REQ_RESYNC = 15, | ||
MSG_PLAYER_LIFE = 16, | ||
MSG_WORLD_CHANGED = 17, | ||
MSG_PLAYER_DAMAGE = 26, | ||
MSG_PROJECTILE_INTO = 27, | ||
MSG_HIT_NPC = 28, | ||
MSG_KILL_PROJECTILE = 29, | ||
MSG_PLAYER_VS_PLAYER = 30, | ||
MSG_REQ_CHEST_ITEM = 31, | ||
MSG_CHEST_ITEM = 32, | ||
MSG_PLAYER_CHEST_VAR = 33, | ||
CLIENT_REQ_KILL_TILE = 34, | ||
MSG_PLAYER_HEAL_EFFECT = 35, | ||
MSG_PLAYER_ZONE_INFO = 36, | ||
MSG_PASSWORD = 38, | ||
MSG_PLAYER_NPC_TALK = 40, | ||
MSG_PLAYER_GUN_ROTATION = 41, | ||
MSG_PLAYER_MANA = 42, | ||
MSG_PLAYER_BUFFS = 50, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Type: NetMode | ||
// Assembly: game, Version=1.0.4.1, Culture=neutral, PublicKeyToken=null | ||
// MVID: D0F84B30-D7A0-41D8-8306-C72BB0D9D9CF | ||
// Assembly location: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe | ||
|
||
internal enum NetMode | ||
{ | ||
LOCAL, | ||
CLIENT, | ||
SERVER, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Type: SendDataId | ||
// Assembly: game, Version=1.0.4.1, Culture=neutral, PublicKeyToken=null | ||
// MVID: D0F84B30-D7A0-41D8-8306-C72BB0D9D9CF | ||
// Assembly location: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe | ||
|
||
internal enum SendDataId | ||
{ | ||
SERVER_REQ_LEAVE = 2, | ||
SERVER_REQ_PLAYER_INFO = 3, | ||
SERVER_WORLD_INFO = 7, | ||
SERVER_TILE_DATA_START = 9, | ||
SERVER_TILE_DATA = 10, | ||
SERVER_REQ_CHECK_TILE_DATA_IN_RANGE = 11, | ||
SERVER_PLAYER_SPAWNED = 12, | ||
SERVER_PLAYER_POSITION_CONTROLS_ITEM = 13, | ||
SERVER_PLAYER_ACTIVE = 14, | ||
SERVER_WORLD_ITEM_xx = 21, | ||
SERVER_WORLD_ITEM_yy = 22, | ||
SERVER_WORLD_NPC = 23, | ||
SERVER_REQ_PASSWORD = 37, | ||
SERVER_REQ_RELEASE_ITEM = 39, | ||
SERVER_WORLD_DONE = 49, | ||
SERVER_NPC_NAMES = 56, | ||
SERVER_GOOD_EVIL_STATUS = 57, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
// Type: StorageDeviceManager | ||
// Assembly: game, Version=1.0.4.1, Culture=neutral, PublicKeyToken=null | ||
// MVID: D0F84B30-D7A0-41D8-8306-C72BB0D9D9CF | ||
// Assembly location: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe | ||
|
||
using Microsoft.Xna.Framework; | ||
using Microsoft.Xna.Framework.GamerServices; | ||
using Microsoft.Xna.Framework.Storage; | ||
using System; | ||
|
||
public class StorageDeviceManager : GameComponent | ||
{ | ||
public bool isDone = true; | ||
private bool wasDeviceConnected; | ||
private bool showDeviceSelector; | ||
public StorageDevice Device; | ||
public PlayerIndex? Player; | ||
public PlayerIndex PlayerToPrompt; | ||
public int RequiredBytes; | ||
|
||
public event EventHandler DeviceSelected; | ||
|
||
public event EventHandler<EventArgs> DeviceSelectorCanceled; | ||
|
||
public event EventHandler<EventArgs> DeviceDisconnected; | ||
|
||
public StorageDeviceManager(Game game) | ||
: this(game, new PlayerIndex?(), 0) | ||
{ | ||
} | ||
|
||
public StorageDeviceManager(Game game, PlayerIndex player) | ||
: this(game, player, 0) | ||
{ | ||
} | ||
|
||
public StorageDeviceManager(Game game, int requiredBytes) | ||
: this(game, new PlayerIndex?(), requiredBytes) | ||
{ | ||
} | ||
|
||
public StorageDeviceManager(Game game, PlayerIndex player, int requiredBytes) | ||
: this(game, new PlayerIndex?(player), requiredBytes) | ||
{ | ||
} | ||
|
||
private StorageDeviceManager(Game game, PlayerIndex? player, int requiredBytes) | ||
: base(game) | ||
{ | ||
this.Player = player; | ||
this.RequiredBytes = requiredBytes; | ||
this.PlayerToPrompt = PlayerIndex.One; | ||
} | ||
|
||
public void PromptForDevice() | ||
{ | ||
if (!this.isDone) | ||
return; | ||
this.isDone = false; | ||
this.showDeviceSelector = true; | ||
} | ||
|
||
public override void Update(GameTime gameTime) | ||
{ | ||
bool flag = false; | ||
if (this.Device != null) | ||
{ | ||
flag = this.Device.IsConnected; | ||
if (!flag) | ||
{ | ||
if (this.wasDeviceConnected) | ||
this.FireDeviceDisconnectedEvent(); | ||
} | ||
} | ||
try | ||
{ | ||
if (!Guide.IsVisible) | ||
{ | ||
if (this.showDeviceSelector) | ||
{ | ||
this.showDeviceSelector = false; | ||
if (this.Player.HasValue) | ||
StorageDevice.BeginShowSelector(this.Player.Value, this.RequiredBytes, 0, new AsyncCallback(this.deviceSelectorCallback), (object) null); | ||
else | ||
StorageDevice.BeginShowSelector(this.RequiredBytes, 0, new AsyncCallback(this.deviceSelectorCallback), (object) null); | ||
} | ||
} | ||
} | ||
catch (GamerServicesNotAvailableException ex) | ||
{ | ||
} | ||
catch (GuideAlreadyVisibleException ex) | ||
{ | ||
} | ||
this.wasDeviceConnected = flag; | ||
} | ||
|
||
private void deviceSelectorCallback(IAsyncResult ar) | ||
{ | ||
this.Device = StorageDevice.EndShowSelector(ar); | ||
if (this.Device != null) | ||
{ | ||
if (this.DeviceSelected != null) | ||
this.DeviceSelected((object) this, (EventArgs) null); | ||
this.wasDeviceConnected = true; | ||
} | ||
else | ||
{ | ||
if (this.DeviceSelectorCanceled != null) | ||
this.DeviceSelectorCanceled((object) this, (EventArgs) null); | ||
this.showDeviceSelector = false; | ||
} | ||
this.isDone = true; | ||
} | ||
|
||
private void FireDeviceDisconnectedEvent() | ||
{ | ||
this.Device = (StorageDevice) null; | ||
if (this.DeviceDisconnected != null) | ||
this.DeviceDisconnected((object) this, (EventArgs) null); | ||
this.showDeviceSelector = false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!--Project was exported from assembly: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe--> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}</ProjectGuid> | ||
<OutputType>Exe</OutputType> | ||
<AssemblyName>game</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<TargetFrameworkProfile /> | ||
<ApplicationVersion>1.0.4.1</ApplicationVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Microsoft.Xna.Framework.Game" /> | ||
<Reference Include="Microsoft.Xna.Framework.GamerServices" /> | ||
<Reference Include="Microsoft.Xna.Framework" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="Microsoft.Xna.Framework.Graphics" /> | ||
<Reference Include="System" /> | ||
<Reference Include="Microsoft.Xna.Framework.Net" /> | ||
<Reference Include="Microsoft.Xna.Framework.Storage" /> | ||
<Reference Include="Microsoft.Xna.Framework.Xact" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="ToStringExtensions.cs" /> | ||
<Compile Include="NetMode.cs" /> | ||
<Compile Include="NetMessageId.cs" /> | ||
<Compile Include="SendDataId.cs" /> | ||
<Compile Include="StorageDeviceManager.cs" /> | ||
<Compile Include="_sheetSprites.cs" /> | ||
<Compile Include="_sheetTiles.cs" /> | ||
<Compile Include="Terraria\BoxGraphic.cs" /> | ||
<Compile Include="Terraria\Buff.cs" /> | ||
<Compile Include="Terraria\Chest.cs" /> | ||
<Compile Include="Terraria\Cloud.cs" /> | ||
<Compile Include="Terraria\Collision.cs" /> | ||
<Compile Include="Terraria\CombatText.cs" /> | ||
<Compile Include="Terraria\ItemTextPool.cs" /> | ||
<Compile Include="Terraria\ItemText.cs" /> | ||
<Compile Include="Terraria\CompiledText.cs" /> | ||
<Compile Include="Terraria\AnimationUtils.cs" /> | ||
<Compile Include="Terraria\CRC32.cs" /> | ||
<Compile Include="Terraria\Credits.cs" /> | ||
<Compile Include="Terraria\DustPool.cs" /> | ||
<Compile Include="Terraria\Dust.cs" /> | ||
<Compile Include="Terraria\FastRandom.cs" /> | ||
<Compile Include="Terraria\GameMode.cs" /> | ||
<Compile Include="Terraria\Gore.cs" /> | ||
<Compile Include="Terraria\Item.cs" /> | ||
<Compile Include="Terraria\Lang.cs" /> | ||
<Compile Include="Terraria\Lighting.cs" /> | ||
<Compile Include="Terraria\LiquidBuffer.cs" /> | ||
<Compile Include="Terraria\Liquid.cs" /> | ||
<Compile Include="Terraria\MessageBox.cs" /> | ||
<Compile Include="Terraria\MiniMap.cs" /> | ||
<Compile Include="Terraria\NetMessage.cs" /> | ||
<Compile Include="Terraria\NetClient.cs" /> | ||
<Compile Include="Terraria\JoinableSession.cs" /> | ||
<Compile Include="Terraria\Netplay.cs" /> | ||
<Compile Include="Terraria\ChatLine.cs" /> | ||
<Compile Include="Terraria\NPC.cs" /> | ||
<Compile Include="Terraria\Player.cs" /> | ||
<Compile Include="Terraria\NetPlayer.cs" /> | ||
<Compile Include="Terraria\Pet.cs" /> | ||
<Compile Include="Terraria\Projectile.cs" /> | ||
<Compile Include="Terraria\Program.cs" /> | ||
<Compile Include="Terraria\Size.cs" /> | ||
<Compile Include="Terraria\Tutorial.cs" /> | ||
<Compile Include="Terraria\Main.cs" /> | ||
<Compile Include="Terraria\Recipe.cs" /> | ||
<Compile Include="Terraria\SfxInstancePool.cs" /> | ||
<Compile Include="Terraria\Sign.cs" /> | ||
<Compile Include="Terraria\Slider.cs" /> | ||
<Compile Include="Terraria\ActivatableSlider.cs" /> | ||
<Compile Include="Terraria\SpriteSheet`1.cs" /> | ||
<Compile Include="Terraria\Star.cs" /> | ||
<Compile Include="Terraria\StatisticEntry.cs" /> | ||
<Compile Include="Terraria\Statistics.cs" /> | ||
<Compile Include="Terraria\TextSequenceBlock.cs" /> | ||
<Compile Include="Terraria\Tile.cs" /> | ||
<Compile Include="Terraria\Time.cs" /> | ||
<Compile Include="Terraria\MenuType.cs" /> | ||
<Compile Include="Terraria\MenuMode.cs" /> | ||
<Compile Include="Terraria\ControlDesc.cs" /> | ||
<Compile Include="Terraria\UI.cs" /> | ||
<Compile Include="Terraria\UserString.cs" /> | ||
<Compile Include="Terraria\Location.cs" /> | ||
<Compile Include="Terraria\Vector2i.cs" /> | ||
<Compile Include="Terraria\Mech.cs" /> | ||
<Compile Include="Terraria\WorldGen.cs" /> | ||
<Compile Include="Terraria\WorldSelect.cs" /> | ||
<Compile Include="Terraria\WorldView.cs" /> | ||
<Compile Include="Terraria\Achievements\Achievement.cs" /> | ||
<Compile Include="Terraria\Achievements\EarnedAchievementsCallback.cs" /> | ||
<Compile Include="Terraria\Achievements\AchievementSystem.cs" /> | ||
<Compile Include="Terraria\Achievements\Trigger.cs" /> | ||
<Compile Include="Terraria\Achievements\TriggerSystem.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\IAttributeWidget.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\AttributeWidget`1.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\HairAttributeWidget.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\ColorAttributeWidget.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\GenderAttributeWidget.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\DifficultyAttributeWidget.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\CategorySelector.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\ISelector.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\ColorSelector.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\CategoryIcon.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\Assets.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\UI.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\Difficulty.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\DifficultySelector.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\HairSelector.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\HorizontalListSelector.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\PlayerModifier.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\RandomCharacter.cs" /> | ||
<Compile Include="Terraria\CreateCharacter\WidgetAnimation.cs" /> | ||
<Compile Include="Terraria\HowToPlay\HowToPlayLayout.cs" /> | ||
<Compile Include="Terraria\HowToPlay\Assets.cs" /> | ||
<Compile Include="Terraria\HowToPlay\UI.cs" /> | ||
<Compile Include="Terraria\HowToPlay\TextBlock.cs" /> | ||
<Compile Include="Terraria\Leaderboards\LeaderboardData.cs" /> | ||
<Compile Include="Terraria\Leaderboards\Leaderboard.cs" /> | ||
<Compile Include="Terraria\Leaderboards\Column.cs" /> | ||
<Compile Include="Terraria\Leaderboards\LeaderboardInfo.cs" /> | ||
<Compile Include="Terraria\Leaderboards\Assets.cs" /> | ||
<Compile Include="Terraria\Leaderboards\LeaderboardsUI.cs" /> | ||
<Compile Include="Terraria\Leaderboards\MockReader.cs" /> | ||
<Compile Include="Terraria\SoundUI\Assets.cs" /> | ||
<Compile Include="Terraria\SoundUI\UI.cs" /> | ||
<Compile Include="AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="Microsoft\Xna\Framework.RuntimeProfile" /> | ||
<EmbeddedResource Include="Microsoft\Xna\Framework.XlastConfiguration" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "game", "Terraria.csproj", "{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Oops, something went wrong.