forked from BAndysc/WoWDatabaseEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SmartScript] Add support for AreaTriggers SAI
- Loading branch information
Showing
28 changed files
with
370 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
using WDE.Common.CoreVersion; | ||
using System; | ||
using System.Collections.Generic; | ||
using WDE.Common.CoreVersion; | ||
using WDE.Common.Database; | ||
using WDE.Module.Attributes; | ||
|
||
namespace WDE.AzerothCore | ||
{ | ||
[AutoRegister] | ||
[SingleInstance] | ||
public class AzerothCoreVersion : ICoreVersion | ||
public class AzerothCoreVersion : ICoreVersion, IDatabaseFeatures, ISmartScriptFeatures | ||
{ | ||
public string Tag => "Azeroth"; | ||
public string FriendlyName => "AzerothCore Wrath of the Lich King"; | ||
public ISmartScriptFeatures SmartScriptFeatures => this; | ||
public IDatabaseFeatures DatabaseFeatures => this; | ||
|
||
public ISet<Type> UnsupportedTables { get; } = new HashSet<Type>{typeof(IAreaTriggerTemplate)}; | ||
public ISet<SmartScriptType> SupportedTypes { get; } = new HashSet<SmartScriptType> | ||
{ | ||
SmartScriptType.Creature, | ||
SmartScriptType.GameObject, | ||
SmartScriptType.AreaTrigger, | ||
SmartScriptType.TimedActionList, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
using WDE.Common.CoreVersion; | ||
using System; | ||
using System.Collections.Generic; | ||
using WDE.Common.CoreVersion; | ||
using WDE.Common.Database; | ||
using WDE.Module.Attributes; | ||
|
||
namespace WDE.Trinity | ||
{ | ||
[AutoRegister] | ||
[SingleInstance] | ||
public class TrinityCataclysmVersion : ICoreVersion | ||
public class TrinityCataclysmVersion : ICoreVersion, IDatabaseFeatures, ISmartScriptFeatures | ||
{ | ||
public string Tag => "TrinityCata"; | ||
public string FriendlyName => "The Cataclysm Preservation Project"; | ||
|
||
public IDatabaseFeatures DatabaseFeatures => this; | ||
public ISmartScriptFeatures SmartScriptFeatures => this; | ||
|
||
public ISet<Type> UnsupportedTables { get; } = new HashSet<Type>{typeof(IAreaTriggerTemplate)}; | ||
public ISet<SmartScriptType> SupportedTypes { get; } = new HashSet<SmartScriptType> | ||
{ | ||
SmartScriptType.Creature, | ||
SmartScriptType.GameObject, | ||
SmartScriptType.AreaTrigger, | ||
SmartScriptType.TimedActionList, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
using WDE.Common.CoreVersion; | ||
using WDE.Common.Services; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using WDE.Common.CoreVersion; | ||
using WDE.Common.Database; | ||
using WDE.Module.Attributes; | ||
|
||
namespace WDE.Trinity | ||
{ | ||
[AutoRegister] | ||
[SingleInstance] | ||
public class TrinityMasterVersion : ICoreVersion | ||
public class TrinityMasterVersion : ICoreVersion, IDatabaseFeatures, ISmartScriptFeatures | ||
{ | ||
public string Tag => "TrinityMaster"; | ||
public string FriendlyName => "TrinityCore Shadowlands"; | ||
public ISmartScriptFeatures SmartScriptFeatures => this; | ||
public IDatabaseFeatures DatabaseFeatures => this; | ||
|
||
public ISet<Type> UnsupportedTables { get; } = new HashSet<Type>(); | ||
public ISet<SmartScriptType> SupportedTypes { get; } = new HashSet<SmartScriptType> | ||
{ | ||
SmartScriptType.Creature, | ||
SmartScriptType.GameObject, | ||
SmartScriptType.AreaTrigger, | ||
SmartScriptType.TimedActionList, | ||
SmartScriptType.AreaTriggerEntity, | ||
SmartScriptType.AreaTriggerEntityServerSide | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
using WDE.Common.CoreVersion; | ||
using System; | ||
using System.Collections.Generic; | ||
using WDE.Common.CoreVersion; | ||
using WDE.Common.Database; | ||
using WDE.Module.Attributes; | ||
|
||
namespace WDE.Trinity | ||
{ | ||
[AutoRegister] | ||
[SingleInstance] | ||
public class TrinityWrathVersion : ICoreVersion | ||
public class TrinityWrathVersion : ICoreVersion, IDatabaseFeatures, ISmartScriptFeatures | ||
{ | ||
public string Tag => "TrinityWrath"; | ||
public string FriendlyName => "TrinityCore Wrath of the Lich King"; | ||
public ISmartScriptFeatures SmartScriptFeatures => this; | ||
public IDatabaseFeatures DatabaseFeatures => this; | ||
|
||
public ISet<Type> UnsupportedTables { get; } = new HashSet<Type>{typeof(IAreaTriggerTemplate)}; | ||
public ISet<SmartScriptType> SupportedTypes { get; } = new HashSet<SmartScriptType> | ||
{ | ||
SmartScriptType.Creature, | ||
SmartScriptType.GameObject, | ||
SmartScriptType.AreaTrigger, | ||
SmartScriptType.TimedActionList, | ||
}; | ||
} | ||
} |
Oops, something went wrong.