Ejemplo n.º 1
0
 public DebugEntry()
 {
     SNOID           = 0;
     Name            = String.Empty;
     ActorType       = PluginActorType.Invalid;
     GizmoType       = PluginGizmoType.None;
     TargetType      = TargetType.None;
     DroppedItemType = PluginDroppedItemTypes.Unknown;
 }
Ejemplo n.º 2
0
        public DebugEntry(int snoid, string name, PluginActorType actortype, PluginGizmoType gizmotype = PluginGizmoType.None)
        {
            SNOID     = snoid;
            Name      = name;
            ActorType = actortype;
            GizmoType = gizmotype;

            if (ActorType == PluginActorType.Item)
            {
                DroppedItemType = ItemFunc.DetermineDroppedItemType(Name, SNOID);
            }
        }
Ejemplo n.º 3
0
        public DebugEntry(CachedSNOEntry entry)
        {
            SNOID      = entry.SNOID;
            Name       = entry.InternalName;
            ActorType  = entry.Actortype.HasValue ? (PluginActorType)Enum.Parse(typeof(PluginActorType), entry.Actortype.Value.ToString()) : PluginActorType.Invalid;
            GizmoType  = entry.Gizmotype.HasValue ? (PluginGizmoType)Enum.Parse(typeof(PluginGizmoType), entry.Gizmotype.Value.ToString()) : PluginGizmoType.None;
            TargetType = entry.targetType.HasValue ? entry.targetType.Value : TargetType.None;

            if (ActorType == PluginActorType.Item)
            {
                DroppedItemType = ItemFunc.DetermineDroppedItemType(Name, SNOID);
            }
        }
Ejemplo n.º 4
0
 public DroppedItemEntry(int snoID, PluginDroppedItemTypes objectType, string internalname="")
     : base(snoID)
 {
     InternalName=internalname;
     _objectType = objectType;
 }
Ejemplo n.º 5
0
 public CacheDroppedItemEntry(int snoID, PluginDroppedItemTypes objectType, string internalname = "")
     : base(snoID)
 {
     InternalName = internalname;
     _objectType  = objectType;
 }
Ejemplo n.º 6
0
 public static bool DetermineIsTwoSlot(PluginDroppedItemTypes thisPluginItemTypes)
 {
     if (thisPluginItemTypes == PluginDroppedItemTypes.Axe || thisPluginItemTypes == PluginDroppedItemTypes.CeremonialKnife || thisPluginItemTypes == PluginDroppedItemTypes.Dagger ||
          thisPluginItemTypes == PluginDroppedItemTypes.FistWeapon || thisPluginItemTypes == PluginDroppedItemTypes.Mace || thisPluginItemTypes == PluginDroppedItemTypes.MightyWeapon ||
          thisPluginItemTypes == PluginDroppedItemTypes.Spear || thisPluginItemTypes == PluginDroppedItemTypes.Sword || thisPluginItemTypes == PluginDroppedItemTypes.Wand ||
          thisPluginItemTypes == PluginDroppedItemTypes.Daibo || thisPluginItemTypes == PluginDroppedItemTypes.Crossbow || thisPluginItemTypes == PluginDroppedItemTypes.MaceTwoHanded ||
          thisPluginItemTypes == PluginDroppedItemTypes.MightyWeaponTwoHanded || thisPluginItemTypes == PluginDroppedItemTypes.Polearm || thisPluginItemTypes == PluginDroppedItemTypes.Staff ||
          thisPluginItemTypes == PluginDroppedItemTypes.SwordTwoHanded || thisPluginItemTypes == PluginDroppedItemTypes.AxeTwoHanded || thisPluginItemTypes == PluginDroppedItemTypes.HandCrossbow ||
          thisPluginItemTypes == PluginDroppedItemTypes.Bow || thisPluginItemTypes == PluginDroppedItemTypes.Mojo || thisPluginItemTypes == PluginDroppedItemTypes.Source ||
          thisPluginItemTypes == PluginDroppedItemTypes.Quiver || thisPluginItemTypes == PluginDroppedItemTypes.Shield || thisPluginItemTypes == PluginDroppedItemTypes.Boots ||
          thisPluginItemTypes == PluginDroppedItemTypes.Bracers || thisPluginItemTypes == PluginDroppedItemTypes.Chest ||
          thisPluginItemTypes == PluginDroppedItemTypes.Gloves || thisPluginItemTypes == PluginDroppedItemTypes.Helm || thisPluginItemTypes == PluginDroppedItemTypes.Pants ||
          thisPluginItemTypes == PluginDroppedItemTypes.Shoulders ||
          thisPluginItemTypes == PluginDroppedItemTypes.Helm ||
          thisPluginItemTypes == PluginDroppedItemTypes.Flail || thisPluginItemTypes == PluginDroppedItemTypes.FlailTwoHanded || thisPluginItemTypes == PluginDroppedItemTypes.CrusaderShield)
         return true;
     return false;
 }
Ejemplo n.º 7
0
 public static bool DetermineIsStackable(PluginDroppedItemTypes thisPluginItemTypes)
 {
     bool bIsStackable = thisPluginItemTypes == PluginDroppedItemTypes.CraftingMaterial || thisPluginItemTypes == PluginDroppedItemTypes.Ruby ||
                               thisPluginItemTypes == PluginDroppedItemTypes.Diamond || thisPluginItemTypes == PluginDroppedItemTypes.Emerald || thisPluginItemTypes == PluginDroppedItemTypes.Topaz || thisPluginItemTypes == PluginDroppedItemTypes.Amethyst ||
                               thisPluginItemTypes == PluginDroppedItemTypes.Potion ||
                               thisPluginItemTypes == PluginDroppedItemTypes.InfernalKey || thisPluginItemTypes == PluginDroppedItemTypes.KeyFragment;
     return bIsStackable;
 }
Ejemplo n.º 8
0
        public static PluginBaseItemTypes DetermineBaseItemType(PluginDroppedItemTypes dropitemtype)
        {
            switch (dropitemtype)
            {
                case PluginDroppedItemTypes.HealthGlobe:
                case PluginDroppedItemTypes.PowerGlobe:
                    return PluginBaseItemTypes.HealthGlobe;

                case PluginDroppedItemTypes.LoreBook:
                case PluginDroppedItemTypes.InfernalKey:
                case PluginDroppedItemTypes.KeyFragment:
                case PluginDroppedItemTypes.CraftingMaterial:
                case PluginDroppedItemTypes.Potion:
                case PluginDroppedItemTypes.LegendaryPotion:
                case PluginDroppedItemTypes.Gold:
                case PluginDroppedItemTypes.BloodShard:
                case PluginDroppedItemTypes.RamaladnisGift:
                    return PluginBaseItemTypes.Misc;

                case PluginDroppedItemTypes.Amethyst:
                case PluginDroppedItemTypes.Diamond:
                case PluginDroppedItemTypes.Emerald:
                case PluginDroppedItemTypes.Ruby:
                case PluginDroppedItemTypes.Topaz:
                case PluginDroppedItemTypes.LegendaryGem:
                    return PluginBaseItemTypes.Gem;

                case PluginDroppedItemTypes.Belt:
                case PluginDroppedItemTypes.Boots:
                case PluginDroppedItemTypes.Bracers:
                case PluginDroppedItemTypes.Chest:
                case PluginDroppedItemTypes.Gloves:
                case PluginDroppedItemTypes.Helm:
                case PluginDroppedItemTypes.Pants:
                case PluginDroppedItemTypes.Shoulders:
                    return PluginBaseItemTypes.Armor;

                case PluginDroppedItemTypes.Axe:
                case PluginDroppedItemTypes.CeremonialKnife:
                case PluginDroppedItemTypes.Dagger:
                case PluginDroppedItemTypes.FistWeapon:
                case PluginDroppedItemTypes.Flail:
                case PluginDroppedItemTypes.Mace:
                case PluginDroppedItemTypes.MightyWeapon:
                case PluginDroppedItemTypes.Spear:
                case PluginDroppedItemTypes.Sword:
                case PluginDroppedItemTypes.Wand:
                    return PluginBaseItemTypes.WeaponOneHand;

                case PluginDroppedItemTypes.AxeTwoHanded:
                case PluginDroppedItemTypes.Daibo:
                case PluginDroppedItemTypes.FlailTwoHanded:
                case PluginDroppedItemTypes.MaceTwoHanded:
                case PluginDroppedItemTypes.MightyWeaponTwoHanded:
                case PluginDroppedItemTypes.Polearm:
                case PluginDroppedItemTypes.Staff:
                case PluginDroppedItemTypes.SwordTwoHanded:
                    return PluginBaseItemTypes.WeaponTwoHand;

                case PluginDroppedItemTypes.Bow:
                case PluginDroppedItemTypes.Crossbow:
                case PluginDroppedItemTypes.HandCrossbow:
                    return PluginBaseItemTypes.WeaponRange;

                case PluginDroppedItemTypes.CrusaderShield:
                case PluginDroppedItemTypes.Mojo:
                case PluginDroppedItemTypes.Quiver:
                case PluginDroppedItemTypes.Shield:
                case PluginDroppedItemTypes.Source:
                    return PluginBaseItemTypes.Offhand;

                case PluginDroppedItemTypes.Ring:
                case PluginDroppedItemTypes.Amulet:
                    return PluginBaseItemTypes.Jewelry;

                case PluginDroppedItemTypes.FollowerTrinket:
                    return PluginBaseItemTypes.FollowerItem;
            }
            return PluginBaseItemTypes.Unknown;
        }
Ejemplo n.º 9
0
 public ItemStringEntry(string name, PluginDroppedItemTypes objectType)
     : base(name)
 {
     _objectType = objectType;
 }
Ejemplo n.º 10
0
 public ItemStringEntry(string name, PluginDroppedItemTypes objectType)
     : base(name)
 {
     _objectType = objectType;
 }
Ejemplo n.º 11
0
 public SNO(int sno, string internalname, ActorType? actortype = null, TargetType? targettype = null, float? collisionradius = null, int? interactrange=null, bool? canburrow = null, bool? isbarricade = null, ObstacleType? obstacletype = null, float? actorsphereradius = null, GizmoType? gimzotype = null, PluginDroppedItemTypes? baseitemtype = null, UnitFlags? unitflags = null, GizmoTargetTypes? gizmotargettypes = null, CacheEntry snoentry = null)
 {
     //Creates the perm data
     SNOID = sno;
     _actortype = actortype;
     _targettype = targettype;
     _collisionradius = collisionradius;
     _internalname = internalname;
     _CanBurrow = canburrow;
     _IsBarricade = isbarricade;
     _obstacletype = obstacletype;
     _actorsphereradius = actorsphereradius;
     _gizmotype = gimzotype;
     _itemdroptype = baseitemtype;
     _unitflags = unitflags;
     _gizmoTargetTypes = gizmotargettypes;
     _snoentry = snoentry;
     UpdateLookUpFinalValues();
     IsFinalized = true;
 }
Ejemplo n.º 12
0
 public CachedSNOEntry(int sno, string internalname, ActorType? actortype = null, TargetType? targettype = null, float? collisionradius = null, int? interactrange=null, bool? canburrow = null, bool? isbarricade = null, ObstacleType? obstacletype = null, float? actorsphereradius = null, GizmoType? gizmotype = null, PluginDroppedItemTypes? baseitemtype = null, UnitFlags? unitflags = null, GizmoTargetTypes? gizmotargettypes = null, CacheEntry snoentry = null)
     : base(sno, internalname,  actortype,  targettype, collisionradius, interactrange,  canburrow, isbarricade,  obstacletype,  actorsphereradius,  gizmotype,  baseitemtype,  unitflags, gizmotargettypes, snoentry)
 {
 }