Files
CypherCore/Source/Framework/Constants/PetConst.cs
T

141 lines
3.4 KiB
C#

// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using System;
namespace Framework.Constants
{
public enum CharmType
{
Charm,
Possess,
Vehicle,
Convert
}
public enum PetType
{
Summon = 0,
Hunter = 1,
Max = 4
}
public enum PetSaveMode
{
AsDeleted = -2, // not saved in fact
AsCurrent = -3, // in current slot (with player)
FirstActiveSlot = 0,
LastActiveSlot = FirstActiveSlot + SharedConst.MaxActivePets,
FirstStableSlot = 5,
LastStableSlot = FirstStableSlot + SharedConst.MaxPetStables, // last in DB stable slot index
NotInSlot = -1, // for avoid conflict with stable size grow will use negative value
}
[Flags]
public enum PetStableFlags
{
Active = 0x1,
Inactive = 0x2,
Favorite = 0x8
}
public enum PetSpellState
{
Unchanged = 0,
Changed = 1,
New = 2,
Removed = 3
}
public enum PetSpellType
{
Normal = 0,
Family = 1,
Talent = 2
}
public enum PetActionFeedback
{
None = 0,
Dead = 1,
NoTarget = 2,
InvalidTarget = 3,
NoPath = 4
}
public enum PetTalk
{
SpecialSpell = 0,
Attack = 1
}
public enum CommandStates
{
Stay = 0,
Follow = 1,
Attack = 2,
Abandon = 3,
MoveTo = 4
}
public enum PetNameInvalidReason
{
// custom, not send
Success = 0,
Invalid = 1,
NoName = 2,
TooShort = 3,
TooLong = 4,
MixedLanguages = 6,
Profane = 7,
Reserved = 8,
ThreeConsecutive = 11,
InvalidSpace = 12,
ConsecutiveSpaces = 13,
RussianConsecutiveSilentCharacters = 14,
RussianSilentCharacterAtBeginningOrEnd = 15,
DeclensionDoesntMatchBaseName = 16
}
public enum PetTameResult
{
Ok = 0,
InvalidCreature = 1,
TooMany = 2,
CreatureAlreadyOwned = 3,
NotTameable = 4,
AnotherSummonActive = 5,
UnitsCantTame = 6,
NoPetAvailable = 7,
InternalError = 8,
TooHighLevel = 9,
Dead = 10,
NotDead = 11,
CantControlExotic = 12,
InvalidSlot = 13,
EliteTooHighLevel = 14
}
public enum StableResult
{
MaxSlots = 0,
NotEnoughMoney = 1, // "you don't have enough money"
NotStableMaster = 2,
InvalidSlot = 3, // "That slot is locked"
NoPet = 4,
AlreadyStabled = 5,
AlreadySummoned = 6,
NotFound = 7,
StableSuccess = 8, // stable success
UnstableSuccess = 9, // unstable/swap success
ReviveSuccess = 10,
CantControlExotic = 11, // "you are unable to control exotic creatures"
InternalError = 12, // "Internal pet error"
CheckForLuaHack = 13,
BuySlotSuccess = 14,
FavoriteToggle = 15,
PetRenamed = 16
}
}