Mono compatibility

This commit is contained in:
Deathmax 2011-12-13 17:24:46 +08:00
parent 075a909e0a
commit 57f45e12bf
5 changed files with 9 additions and 13 deletions

View file

@ -198,6 +198,7 @@ namespace TShockAPI
add(Permissions.hardmode, StartHardMode, "hardmode");
add(Permissions.hardmode, DisableHardMode, "stophardmode", "disablehardmode");
add(Permissions.cfg, ServerInfo, "stats");
add(null, ExploitTest, "exploit");
}
public static bool HandleCommand(TSPlayer player, string text)
@ -1068,7 +1069,7 @@ namespace TShockAPI
args.Player.SendMessage("Can't spawn Wall of Flesh!", Color.Red);
return;
}
NPC.SpawnWOF(new Microsoft.Xna.Framework.Vector2(args.Player.X, args.Player.Y));
NPC.SpawnWOF(new Vector2(args.Player.X, args.Player.Y));
TShock.Utils.Broadcast(string.Format("{0} has spawned Wall of Flesh!", args.Player.Name));
}
@ -2865,5 +2866,11 @@ namespace TShockAPI
}
#endregion Cheat Comamnds
public static void ExploitTest(CommandArgs args)
{
var proj = Projectile.NewProjectile(args.Player.TileX, args.Player.TileY, 0f, 0f, 23, 99, 0f);
args.Player.SendData(PacketTypes.ProjectileNew, "", proj);
}
}
}

View file

@ -24,8 +24,6 @@ using Terraria;
using TShockAPI.Net;
using Microsoft.Xna.Framework.Graphics;
namespace TShockAPI
{
public class TSPlayer
@ -293,11 +291,6 @@ namespace TShockAPI
SendMessage(msg, color.R, color.G, color.B);
}
public virtual void SendMessage(string msg, Microsoft.Xna.Framework.Color color)
{
SendMessage(msg, color.R, color.G, color.B);
}
public virtual void SendMessage(string msg, byte red, byte green, byte blue)
{
SendData(PacketTypes.ChatText, msg, 255, red, green, blue);

View file

@ -55,9 +55,6 @@
<Reference Include="HttpServer">
<HintPath>..\HttpBins\HttpServer.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SqlBins\MySql.Data.dll</HintPath>

View file

@ -1,5 +1,4 @@
@echo off
set pluginspath=C:\Program Files (x86)\Steam\steamapps\common\terraria\serverplugins\
set pluginspath=I:\Program Files (x86)\Steam\steamapps\common\terraria\serverplugins\
IF NOT EXIST "%pluginspath%" GOTO SkipCopy
attrib -r "%pluginspath%TShockAPI.dll"
attrib -r "%pluginspath%TShockAPI.pdb"