Skip to content

Commit d2b2987

Browse files
author
White
committed
Removed namespace from XNA types, allowing it to be used without a using statement.
Added PacketTypes.cs, which must be updated for all the new packets.
1 parent f47acc2 commit d2b2987

File tree

100 files changed

+3861
-3826
lines changed

Some content is hidden

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

100 files changed

+3861
-3826
lines changed

IPackedVector.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
3+
public interface IPackedVector
4+
{
5+
void PackFromVector4(Vector4 vector);
6+
Vector4 ToVector4();
7+
}
8+
public interface IPackedVector<TPacked> : IPackedVector
9+
{
10+
TPacked PackedValue
11+
{
12+
get;
13+
set;
14+
}
15+
}

PacketTypes.cs

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
using System;
2+
public enum PacketTypes
3+
{
4+
ConnectRequest = 1,
5+
Disconnect,
6+
ContinueConnecting,
7+
PlayerInfo,
8+
PlayerSlot,
9+
ContinueConnecting2,
10+
WorldInfo,
11+
TileGetSection,
12+
Status,
13+
TileSendSection,
14+
TileFrameSection,
15+
PlayerSpawn,
16+
PlayerUpdate,
17+
PlayerActive,
18+
SyncPlayers,
19+
PlayerHp,
20+
Tile,
21+
TimeSet,
22+
DoorUse,
23+
TileSendSquare,
24+
ItemDrop,
25+
ItemOwner,
26+
NpcUpdate,
27+
NpcItemStrike,
28+
ChatText,
29+
PlayerDamage,
30+
ProjectileNew,
31+
NpcStrike,
32+
ProjectileDestroy,
33+
TogglePvp,
34+
ChestGetContents,
35+
ChestItem,
36+
ChestOpen,
37+
TileKill,
38+
EffectHeal,
39+
Zones,
40+
PasswordRequired,
41+
PasswordSend,
42+
ItemUnknown,
43+
NpcTalk,
44+
PlayerAnimation,
45+
PlayerMana,
46+
EffectMana,
47+
PlayerKillMe,
48+
PlayerTeam,
49+
SignRead,
50+
SignNew,
51+
LiquidSet,
52+
PlayerSpawnSelf,
53+
PlayerBuff,
54+
NpcSpecial,
55+
ChestUnlock,
56+
NpcAddBuff,
57+
NpcUpdateBuff,
58+
PlayerAddBuff,
59+
UpdateNPCName,
60+
UpdateGoodEvil,
61+
PlayHarp,
62+
HitSwitch,
63+
UpdateNPCHome,
64+
SpawnBossorInvasion,
65+
PlayerDodge,
66+
PaintTile,
67+
PaintWall,
68+
Teleport,
69+
PlayerHealOther,
70+
Placeholder,
71+
ClientUUID,
72+
ChestName,
73+
CatchNPC,
74+
ReleaseNPC,
75+
SetShop,
76+
TeleportationPotion,
77+
AnglerQuest,
78+
CompleteAnglerQuest,
79+
NumberOfAnglerQuestsCompleted,
80+
}

Terraria/Chest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using XNA;
1+
22
using System;
33
using Terraria.DataStructures;
44
using Terraria.GameContent.Achievements;

Terraria/Cloud.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using XNA;
1+
22
using System;
33

44
namespace Terraria

Terraria/Collision.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using XNA;
1+
22
using System;
33
using System.Collections.Generic;
44

Terraria/CombatText.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using XNA;
1+
22
using System;
33

44
namespace Terraria

Terraria/DataStructures/DrawAnimation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using XNA;
1+
22
using System;
33
using Terraria;
44

Terraria/DataStructures/DrawAnimationVertical.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using XNA;
1+
22
using System;
33
using Terraria;
44

Terraria/DataStructures/DrillDebugDraw.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using XNA;
1+
22
using System;
33

44
namespace Terraria.DataStructures

Terraria/DataStructures/Point16.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using XNA;
1+
22
using System;
33

44
namespace Terraria.DataStructures

0 commit comments

Comments
 (0)