Beispiel #1
0
 public CacheGizmoEntry(int snoID, GizmoType objectType, string internalname = "", GizmoTargetTypes targettype = GizmoTargetTypes.None)
     : base(snoID)
 {
     InternalName    = internalname;
     _objectType     = objectType;
     GizmotargetType = targettype;
 }
Beispiel #2
0
        public CacheGizmoEntry(GizmoEntry entry)
        {
            InternalName = entry.InternalName;
            var pluginGizmoType = (PluginGizmoType)entry.ObjectType;

            _objectType     = (GizmoType)Enum.Parse(typeof(GizmoType), pluginGizmoType.ToString());
            GizmotargetType = entry.GizmotargetType;
        }
Beispiel #3
0
 public CacheGizmoEntry(int snoID, GizmoType objectType, string internalname = "", GizmoTargetTypes targettype = GizmoTargetTypes.None, int interactRange = -1, int collisionRadius = -1)
     : base(snoID)
 {
     InternalName    = internalname;
     _objectType     = objectType;
     GizmotargetType = targettype;
     InteractRange   = interactRange;
     CollisionRadius = collisionRadius;
 }
Beispiel #4
0
        public CacheGizmoEntry(GizmoEntry entry) : base(entry.SnoId)
        {
            InternalName = entry.InternalName;
            var pluginGizmoType = (PluginGizmoType)entry.ObjectType;

            _objectType     = (GizmoType)Enum.Parse(typeof(GizmoType), pluginGizmoType.ToString());
            GizmotargetType = entry.GizmotargetType;
            InteractRange   = entry.InteractRange;
            CollisionRadius = entry.CollisionRadius;
        }
Beispiel #5
0
 internal static bool CheckFlag(GizmoTargetTypes property, GizmoTargetTypes flag)
 {
     return((property & flag) != 0);
 }
Beispiel #6
0
 public GizmoEntry(int snoID, PluginGizmoType objectType, string internalname = "", GizmoTargetTypes targettype = GizmoTargetTypes.None, int interactRange = -1, int collisionRadius = -1)
     : base(snoID)
 {
     InternalName = internalname;
     _objectType = objectType;
     GizmotargetType = targettype;
     InteractRange = interactRange;
     CollisionRadius = collisionRadius;
 }
Beispiel #7
0
 internal static bool CheckFlag(GizmoTargetTypes property, GizmoTargetTypes flag)
 {
     return (property & flag) != 0;
 }
Beispiel #8
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;
 }
Beispiel #9
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)
 {
 }