Core/Scripts: Remove some unused GetAI methods

This commit is contained in:
hondacrx
2018-06-27 17:03:35 -04:00
parent 1973d4f2ce
commit 2af1ddc5ea
9 changed files with 4 additions and 40 deletions
-10
View File
@@ -45,16 +45,6 @@ namespace Game.Scripting
// whether or not this script type must be assigned in the database.
public virtual bool IsDatabaseBound() { return false; }
public static T GetInstanceAI<T>(WorldObject obj, string scriptName) where T : class
{
InstanceMap instance = obj.GetMap().ToInstanceMap();
if (instance != null && instance.GetInstanceScript() != null)
if (instance.GetScriptName() == scriptName)
return (T)Activator.CreateInstance(typeof(T), obj);
return null;
}
public static T GetInstanceAI<T>(WorldObject obj) where T : class
{
InstanceMap instance = obj.GetMap().ToInstanceMap();