From d819544490acc2b184b876ed18fb18ca8d9884d0 Mon Sep 17 00:00:00 2001 From: Shank Date: Mon, 30 May 2011 00:40:33 -0600 Subject: [PATCH] Requested --- TShockAPI/Properties/AssemblyInfo.cs | 36 ++++++++++ TShockAPI/TShock.cs | 63 ++++++++++++++++++ TShockAPI/TShockAPI.csproj | 61 +++++++++++++++++ ...gnTimeResolveAssemblyReferencesInput.cache | Bin 0 -> 6155 bytes Terraria.sln | 22 ++++++ 5 files changed, 182 insertions(+) create mode 100644 TShockAPI/Properties/AssemblyInfo.cs create mode 100644 TShockAPI/TShock.cs create mode 100644 TShockAPI/TShockAPI.csproj create mode 100644 TShockAPI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..677ab039 --- /dev/null +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("TShockAPI")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("TShockAPI")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("01e38989-993c-410c-9011-487f824a606d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs new file mode 100644 index 00000000..af0ffe76 --- /dev/null +++ b/TShockAPI/TShock.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Terraria; +using TerrariaAPI; +using TerrariaAPI.Hooks; +using Microsoft.Xna.Framework; + +namespace TShockAPI +{ + public class TShock : TerrariaPlugin + { + public override string Name + { + get { return "TShock"; } + } + + public override string Author + { + get { return "nicatronTg, High, Mav, and Zach"; } + } + + public override string Description + { + get { return "The administration modification of the future."; } + } + + public TShock(Main game) : base (game) + { + GameHooks.OnPreInitialize += OnPreInit; + GameHooks.OnPostInitialize += OnPostInit; + GameHooks.OnUpdate += new Action(OnUpdate); + GameHooks.OnLoadContent += new Action(OnLoadContent); + ServerHooks.Chat += OnChat; + } + + void OnLoadContent(Microsoft.Xna.Framework.Content.ContentManager obj) + { + + } + + void OnPreInit() + { + + } + + void OnPostInit() + { + + } + + void OnUpdate(GameTime time) + { + + } + + void OnChat(int ply, string msg) + { + + } + } +} \ No newline at end of file diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj new file mode 100644 index 00000000..56ad2eb0 --- /dev/null +++ b/TShockAPI/TShockAPI.csproj @@ -0,0 +1,61 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {49606449-072B-4CF5-8088-AA49DA586694} + Library + Properties + TShockAPI + TShockAPI + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + .\Terraria.exe + + + .\TerrariaAPI.dll + + + + + + + + + \ No newline at end of file diff --git a/TShockAPI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/TShockAPI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000000000000000000000000000000000000..303b254c1e9d2b9739a4b79cf23c65fa3ffd984b GIT binary patch literal 6155 zcmeHLZBH9V5VpZwFoYJX0|q8Td3u7?)(g!WkUqHcm>j{fO{_Ct@|3JXug-M*#v17nOygqfmV|^_&)PI zaR}~;QqZV+t<@t9K3S#4uyB zU4FTW2cOiR9c6mxr_vY9EN}^q7LtP+Z@QYv5-{oPZ8E*5Mw?R9Fd*c_goHX*TDDHx z)98l=ir5s6JL~%yrIQz$-U^@ZgM4&(b%Cp<$65qXfr+U1Ah$*B8QH-Qh^f*KUciKey z77D5!rax&CBPfhf6ba)tidV5GtWAaO6ZkZEwD`jK0v|@G%9@>-%`K(x;QtJTm*Q-Ei6UjWo@WsA zNm+0N8HzeZ)3}SGj-kMGSw}u&hV;gKf?A*2k=14=hDZU<#5ywSeAI0+db{VUakD1F zQ#I@-X&3KHW*!zT$As!zBe1{LIHN5>w5~UA`{y9sC<5S6m zJRcv7?@`=4&R=@*c49oi)`{bvxUcC3YE9xjAFh!T<0;lp9hWb^W@?=n&#=80XNMn9 z&)9L19THQfYp4?=i&dqbWveRpJI9F(of5(z{)i88yd^p)P`MSp5`v;K_(y+x`KKG{ M{`L~xGFC?a26(~)NB{r; literal 0 HcmV?d00001 diff --git a/Terraria.sln b/Terraria.sln index 645d6950..c377a61d 100644 --- a/Terraria.sln +++ b/Terraria.sln @@ -3,16 +3,38 @@ Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Terraria", "Terraria.csproj", "{1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TShockAPI", "TShockAPI\TShockAPI.csproj", "{49606449-072B-4CF5-8088-AA49DA586694}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Debug|Any CPU.ActiveCfg = Debug|x86 + {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 + {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Debug|Mixed Platforms.Build.0 = Debug|x86 {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Debug|x86.ActiveCfg = Debug|x86 {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Debug|x86.Build.0 = Debug|x86 + {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Release|Any CPU.ActiveCfg = Release|x86 + {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Release|Mixed Platforms.ActiveCfg = Release|x86 + {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Release|Mixed Platforms.Build.0 = Release|x86 {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Release|x86.ActiveCfg = Release|x86 {1528EA3F-A6D2-49F6-BF75-7A842CF4D97B}.Release|x86.Build.0 = Release|x86 + {49606449-072B-4CF5-8088-AA49DA586694}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Debug|Any CPU.Build.0 = Debug|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Debug|x86.ActiveCfg = Debug|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Release|Any CPU.ActiveCfg = Release|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Release|Any CPU.Build.0 = Release|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {49606449-072B-4CF5-8088-AA49DA586694}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE