public CacheGizmoEntry(int snoID, GizmoType objectType, string internalname = "", GizmoTargetTypes targettype = GizmoTargetTypes.None) : base(snoID) { InternalName = internalname; _objectType = objectType; GizmotargetType = targettype; }
public CacheGizmoEntry(GizmoEntry entry) { InternalName = entry.InternalName; var pluginGizmoType = (PluginGizmoType)entry.ObjectType; _objectType = (GizmoType)Enum.Parse(typeof(GizmoType), pluginGizmoType.ToString()); GizmotargetType = entry.GizmotargetType; }
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; }
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; }
internal static bool CheckFlag(GizmoTargetTypes property, GizmoTargetTypes flag) { return((property & flag) != 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; }
internal static bool CheckFlag(GizmoTargetTypes property, GizmoTargetTypes flag) { return (property & flag) != 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; }
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) { }