Skip to content

Commit cc4ea60

Browse files
committed
1.0.4.1
0 parents  commit cc4ea60

110 files changed

Lines changed: 122106 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AssemblyInfo.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
using System.Security.Permissions;
5+
6+
[assembly: Extension]
7+
[assembly: AssemblyProduct("TerrariaXDK")]
8+
[assembly: AssemblyCompany("Engine Software")]
9+
[assembly: AssemblyCopyright("Copyright © Engine Software 2012")]
10+
[assembly: AssemblyTitle("TerrariaXDK")]
11+
[assembly: AssemblyDescription("")]
12+
[assembly: AssemblyTrademark("")]
13+
[assembly: ComVisible(false)]
14+
[assembly: Guid("a1bb9f25-54df-4f2e-a41f-8360dde42e71")]
15+
[assembly: AssemblyVersion("1.0.4.1")]
16+
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
XDK_v4.0.HiDef
1.99 KB
Binary file not shown.

NetMessageId.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Type: NetMessageId
2+
// Assembly: game, Version=1.0.4.1, Culture=neutral, PublicKeyToken=null
3+
// MVID: D0F84B30-D7A0-41D8-8306-C72BB0D9D9CF
4+
// Assembly location: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe
5+
6+
internal enum NetMessageId
7+
{
8+
CLIENT_SAY_HELLO = 1,
9+
CLIENT_NAME_HEAD = 4,
10+
CLIENT_INVENTORY = 5,
11+
CLIENT_INVENTORY_END = 6,
12+
CLIENT_REQ_STARTING_DATA = 8,
13+
CLIENT_REQ_RESYNC = 15,
14+
MSG_PLAYER_LIFE = 16,
15+
MSG_WORLD_CHANGED = 17,
16+
MSG_PLAYER_DAMAGE = 26,
17+
MSG_PROJECTILE_INTO = 27,
18+
MSG_HIT_NPC = 28,
19+
MSG_KILL_PROJECTILE = 29,
20+
MSG_PLAYER_VS_PLAYER = 30,
21+
MSG_REQ_CHEST_ITEM = 31,
22+
MSG_CHEST_ITEM = 32,
23+
MSG_PLAYER_CHEST_VAR = 33,
24+
CLIENT_REQ_KILL_TILE = 34,
25+
MSG_PLAYER_HEAL_EFFECT = 35,
26+
MSG_PLAYER_ZONE_INFO = 36,
27+
MSG_PASSWORD = 38,
28+
MSG_PLAYER_NPC_TALK = 40,
29+
MSG_PLAYER_GUN_ROTATION = 41,
30+
MSG_PLAYER_MANA = 42,
31+
MSG_PLAYER_BUFFS = 50,
32+
}

NetMode.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Type: NetMode
2+
// Assembly: game, Version=1.0.4.1, Culture=neutral, PublicKeyToken=null
3+
// MVID: D0F84B30-D7A0-41D8-8306-C72BB0D9D9CF
4+
// Assembly location: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe
5+
6+
internal enum NetMode
7+
{
8+
LOCAL,
9+
CLIENT,
10+
SERVER,
11+
}

SendDataId.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Type: SendDataId
2+
// Assembly: game, Version=1.0.4.1, Culture=neutral, PublicKeyToken=null
3+
// MVID: D0F84B30-D7A0-41D8-8306-C72BB0D9D9CF
4+
// Assembly location: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe
5+
6+
internal enum SendDataId
7+
{
8+
SERVER_REQ_LEAVE = 2,
9+
SERVER_REQ_PLAYER_INFO = 3,
10+
SERVER_WORLD_INFO = 7,
11+
SERVER_TILE_DATA_START = 9,
12+
SERVER_TILE_DATA = 10,
13+
SERVER_REQ_CHECK_TILE_DATA_IN_RANGE = 11,
14+
SERVER_PLAYER_SPAWNED = 12,
15+
SERVER_PLAYER_POSITION_CONTROLS_ITEM = 13,
16+
SERVER_PLAYER_ACTIVE = 14,
17+
SERVER_WORLD_ITEM_xx = 21,
18+
SERVER_WORLD_ITEM_yy = 22,
19+
SERVER_WORLD_NPC = 23,
20+
SERVER_REQ_PASSWORD = 37,
21+
SERVER_REQ_RELEASE_ITEM = 39,
22+
SERVER_WORLD_DONE = 49,
23+
SERVER_NPC_NAMES = 56,
24+
SERVER_GOOD_EVIL_STATUS = 57,
25+
}

StorageDeviceManager.cs

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
// Type: StorageDeviceManager
2+
// Assembly: game, Version=1.0.4.1, Culture=neutral, PublicKeyToken=null
3+
// MVID: D0F84B30-D7A0-41D8-8306-C72BB0D9D9CF
4+
// Assembly location: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe
5+
6+
using Microsoft.Xna.Framework;
7+
using Microsoft.Xna.Framework.GamerServices;
8+
using Microsoft.Xna.Framework.Storage;
9+
using System;
10+
11+
public class StorageDeviceManager : GameComponent
12+
{
13+
public bool isDone = true;
14+
private bool wasDeviceConnected;
15+
private bool showDeviceSelector;
16+
public StorageDevice Device;
17+
public PlayerIndex? Player;
18+
public PlayerIndex PlayerToPrompt;
19+
public int RequiredBytes;
20+
21+
public event EventHandler DeviceSelected;
22+
23+
public event EventHandler<EventArgs> DeviceSelectorCanceled;
24+
25+
public event EventHandler<EventArgs> DeviceDisconnected;
26+
27+
public StorageDeviceManager(Game game)
28+
: this(game, new PlayerIndex?(), 0)
29+
{
30+
}
31+
32+
public StorageDeviceManager(Game game, PlayerIndex player)
33+
: this(game, player, 0)
34+
{
35+
}
36+
37+
public StorageDeviceManager(Game game, int requiredBytes)
38+
: this(game, new PlayerIndex?(), requiredBytes)
39+
{
40+
}
41+
42+
public StorageDeviceManager(Game game, PlayerIndex player, int requiredBytes)
43+
: this(game, new PlayerIndex?(player), requiredBytes)
44+
{
45+
}
46+
47+
private StorageDeviceManager(Game game, PlayerIndex? player, int requiredBytes)
48+
: base(game)
49+
{
50+
this.Player = player;
51+
this.RequiredBytes = requiredBytes;
52+
this.PlayerToPrompt = PlayerIndex.One;
53+
}
54+
55+
public void PromptForDevice()
56+
{
57+
if (!this.isDone)
58+
return;
59+
this.isDone = false;
60+
this.showDeviceSelector = true;
61+
}
62+
63+
public override void Update(GameTime gameTime)
64+
{
65+
bool flag = false;
66+
if (this.Device != null)
67+
{
68+
flag = this.Device.IsConnected;
69+
if (!flag)
70+
{
71+
if (this.wasDeviceConnected)
72+
this.FireDeviceDisconnectedEvent();
73+
}
74+
}
75+
try
76+
{
77+
if (!Guide.IsVisible)
78+
{
79+
if (this.showDeviceSelector)
80+
{
81+
this.showDeviceSelector = false;
82+
if (this.Player.HasValue)
83+
StorageDevice.BeginShowSelector(this.Player.Value, this.RequiredBytes, 0, new AsyncCallback(this.deviceSelectorCallback), (object) null);
84+
else
85+
StorageDevice.BeginShowSelector(this.RequiredBytes, 0, new AsyncCallback(this.deviceSelectorCallback), (object) null);
86+
}
87+
}
88+
}
89+
catch (GamerServicesNotAvailableException ex)
90+
{
91+
}
92+
catch (GuideAlreadyVisibleException ex)
93+
{
94+
}
95+
this.wasDeviceConnected = flag;
96+
}
97+
98+
private void deviceSelectorCallback(IAsyncResult ar)
99+
{
100+
this.Device = StorageDevice.EndShowSelector(ar);
101+
if (this.Device != null)
102+
{
103+
if (this.DeviceSelected != null)
104+
this.DeviceSelected((object) this, (EventArgs) null);
105+
this.wasDeviceConnected = true;
106+
}
107+
else
108+
{
109+
if (this.DeviceSelectorCanceled != null)
110+
this.DeviceSelectorCanceled((object) this, (EventArgs) null);
111+
this.showDeviceSelector = false;
112+
}
113+
this.isDone = true;
114+
}
115+
116+
private void FireDeviceDisconnectedEvent()
117+
{
118+
this.Device = (StorageDevice) null;
119+
if (this.DeviceDisconnected != null)
120+
this.DeviceDisconnected((object) this, (EventArgs) null);
121+
this.showDeviceSelector = false;
122+
}
123+
}

Terraria.csproj

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<!--Project was exported from assembly: C:\Users\DartPower\Downloads\Terraria.Xbox.360.Edition.XBLA.XBOX360-MoNGoLS\5841128F\000D0000\Terraria\Terraria.exe\ASSEMBLY.exe-->
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AssemblyName>game</AssemblyName>
10+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
11+
<TargetFrameworkProfile />
12+
<ApplicationVersion>1.0.4.1</ApplicationVersion>
13+
<FileAlignment>512</FileAlignment>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<PlatformTarget>AnyCPU</PlatformTarget>
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="Microsoft.Xna.Framework.Game" />
38+
<Reference Include="Microsoft.Xna.Framework.GamerServices" />
39+
<Reference Include="Microsoft.Xna.Framework" />
40+
<Reference Include="System.Core" />
41+
<Reference Include="Microsoft.Xna.Framework.Graphics" />
42+
<Reference Include="System" />
43+
<Reference Include="Microsoft.Xna.Framework.Net" />
44+
<Reference Include="Microsoft.Xna.Framework.Storage" />
45+
<Reference Include="Microsoft.Xna.Framework.Xact" />
46+
</ItemGroup>
47+
<ItemGroup>
48+
<Compile Include="ToStringExtensions.cs" />
49+
<Compile Include="NetMode.cs" />
50+
<Compile Include="NetMessageId.cs" />
51+
<Compile Include="SendDataId.cs" />
52+
<Compile Include="StorageDeviceManager.cs" />
53+
<Compile Include="_sheetSprites.cs" />
54+
<Compile Include="_sheetTiles.cs" />
55+
<Compile Include="Terraria\BoxGraphic.cs" />
56+
<Compile Include="Terraria\Buff.cs" />
57+
<Compile Include="Terraria\Chest.cs" />
58+
<Compile Include="Terraria\Cloud.cs" />
59+
<Compile Include="Terraria\Collision.cs" />
60+
<Compile Include="Terraria\CombatText.cs" />
61+
<Compile Include="Terraria\ItemTextPool.cs" />
62+
<Compile Include="Terraria\ItemText.cs" />
63+
<Compile Include="Terraria\CompiledText.cs" />
64+
<Compile Include="Terraria\AnimationUtils.cs" />
65+
<Compile Include="Terraria\CRC32.cs" />
66+
<Compile Include="Terraria\Credits.cs" />
67+
<Compile Include="Terraria\DustPool.cs" />
68+
<Compile Include="Terraria\Dust.cs" />
69+
<Compile Include="Terraria\FastRandom.cs" />
70+
<Compile Include="Terraria\GameMode.cs" />
71+
<Compile Include="Terraria\Gore.cs" />
72+
<Compile Include="Terraria\Item.cs" />
73+
<Compile Include="Terraria\Lang.cs" />
74+
<Compile Include="Terraria\Lighting.cs" />
75+
<Compile Include="Terraria\LiquidBuffer.cs" />
76+
<Compile Include="Terraria\Liquid.cs" />
77+
<Compile Include="Terraria\MessageBox.cs" />
78+
<Compile Include="Terraria\MiniMap.cs" />
79+
<Compile Include="Terraria\NetMessage.cs" />
80+
<Compile Include="Terraria\NetClient.cs" />
81+
<Compile Include="Terraria\JoinableSession.cs" />
82+
<Compile Include="Terraria\Netplay.cs" />
83+
<Compile Include="Terraria\ChatLine.cs" />
84+
<Compile Include="Terraria\NPC.cs" />
85+
<Compile Include="Terraria\Player.cs" />
86+
<Compile Include="Terraria\NetPlayer.cs" />
87+
<Compile Include="Terraria\Pet.cs" />
88+
<Compile Include="Terraria\Projectile.cs" />
89+
<Compile Include="Terraria\Program.cs" />
90+
<Compile Include="Terraria\Size.cs" />
91+
<Compile Include="Terraria\Tutorial.cs" />
92+
<Compile Include="Terraria\Main.cs" />
93+
<Compile Include="Terraria\Recipe.cs" />
94+
<Compile Include="Terraria\SfxInstancePool.cs" />
95+
<Compile Include="Terraria\Sign.cs" />
96+
<Compile Include="Terraria\Slider.cs" />
97+
<Compile Include="Terraria\ActivatableSlider.cs" />
98+
<Compile Include="Terraria\SpriteSheet`1.cs" />
99+
<Compile Include="Terraria\Star.cs" />
100+
<Compile Include="Terraria\StatisticEntry.cs" />
101+
<Compile Include="Terraria\Statistics.cs" />
102+
<Compile Include="Terraria\TextSequenceBlock.cs" />
103+
<Compile Include="Terraria\Tile.cs" />
104+
<Compile Include="Terraria\Time.cs" />
105+
<Compile Include="Terraria\MenuType.cs" />
106+
<Compile Include="Terraria\MenuMode.cs" />
107+
<Compile Include="Terraria\ControlDesc.cs" />
108+
<Compile Include="Terraria\UI.cs" />
109+
<Compile Include="Terraria\UserString.cs" />
110+
<Compile Include="Terraria\Location.cs" />
111+
<Compile Include="Terraria\Vector2i.cs" />
112+
<Compile Include="Terraria\Mech.cs" />
113+
<Compile Include="Terraria\WorldGen.cs" />
114+
<Compile Include="Terraria\WorldSelect.cs" />
115+
<Compile Include="Terraria\WorldView.cs" />
116+
<Compile Include="Terraria\Achievements\Achievement.cs" />
117+
<Compile Include="Terraria\Achievements\EarnedAchievementsCallback.cs" />
118+
<Compile Include="Terraria\Achievements\AchievementSystem.cs" />
119+
<Compile Include="Terraria\Achievements\Trigger.cs" />
120+
<Compile Include="Terraria\Achievements\TriggerSystem.cs" />
121+
<Compile Include="Terraria\CreateCharacter\IAttributeWidget.cs" />
122+
<Compile Include="Terraria\CreateCharacter\AttributeWidget`1.cs" />
123+
<Compile Include="Terraria\CreateCharacter\HairAttributeWidget.cs" />
124+
<Compile Include="Terraria\CreateCharacter\ColorAttributeWidget.cs" />
125+
<Compile Include="Terraria\CreateCharacter\GenderAttributeWidget.cs" />
126+
<Compile Include="Terraria\CreateCharacter\DifficultyAttributeWidget.cs" />
127+
<Compile Include="Terraria\CreateCharacter\CategorySelector.cs" />
128+
<Compile Include="Terraria\CreateCharacter\ISelector.cs" />
129+
<Compile Include="Terraria\CreateCharacter\ColorSelector.cs" />
130+
<Compile Include="Terraria\CreateCharacter\CategoryIcon.cs" />
131+
<Compile Include="Terraria\CreateCharacter\Assets.cs" />
132+
<Compile Include="Terraria\CreateCharacter\UI.cs" />
133+
<Compile Include="Terraria\CreateCharacter\Difficulty.cs" />
134+
<Compile Include="Terraria\CreateCharacter\DifficultySelector.cs" />
135+
<Compile Include="Terraria\CreateCharacter\HairSelector.cs" />
136+
<Compile Include="Terraria\CreateCharacter\HorizontalListSelector.cs" />
137+
<Compile Include="Terraria\CreateCharacter\PlayerModifier.cs" />
138+
<Compile Include="Terraria\CreateCharacter\RandomCharacter.cs" />
139+
<Compile Include="Terraria\CreateCharacter\WidgetAnimation.cs" />
140+
<Compile Include="Terraria\HowToPlay\HowToPlayLayout.cs" />
141+
<Compile Include="Terraria\HowToPlay\Assets.cs" />
142+
<Compile Include="Terraria\HowToPlay\UI.cs" />
143+
<Compile Include="Terraria\HowToPlay\TextBlock.cs" />
144+
<Compile Include="Terraria\Leaderboards\LeaderboardData.cs" />
145+
<Compile Include="Terraria\Leaderboards\Leaderboard.cs" />
146+
<Compile Include="Terraria\Leaderboards\Column.cs" />
147+
<Compile Include="Terraria\Leaderboards\LeaderboardInfo.cs" />
148+
<Compile Include="Terraria\Leaderboards\Assets.cs" />
149+
<Compile Include="Terraria\Leaderboards\LeaderboardsUI.cs" />
150+
<Compile Include="Terraria\Leaderboards\MockReader.cs" />
151+
<Compile Include="Terraria\SoundUI\Assets.cs" />
152+
<Compile Include="Terraria\SoundUI\UI.cs" />
153+
<Compile Include="AssemblyInfo.cs" />
154+
</ItemGroup>
155+
<ItemGroup>
156+
<EmbeddedResource Include="Microsoft\Xna\Framework.RuntimeProfile" />
157+
<EmbeddedResource Include="Microsoft\Xna\Framework.XlastConfiguration" />
158+
</ItemGroup>
159+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
160+
</Project>

Terraria.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "game", "Terraria.csproj", "{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{3BBD0376-9DF9-4346-A5AA-54019DC1CA46}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

0 commit comments

Comments
 (0)