/// <summary> /// Add /// </summary> /// <param name="type">Type</param> /// <param name="positionMatrix">Position matrix</param> public static void Add(AnimatedTypes type, Matrix positionMatrix, AnimatedGameObject.DropObject dropObject) { animatedObjects.Add(new AnimatedGameObject(type, positionMatrix, dropObject)); }
/// <summary> /// Get drop percentages /// </summary> /// <param name="type">Type</param> /// <returns>Drop object</returns> public static AnimatedGameObject.DropObject GetDropPercentages( AnimatedTypes type) { for (int i = 0; i < 3; i++) if (RandomHelper.GetRandomFloat(0, 1) < MonsterWeaponDropPercentages[(int)type, i]) return (AnimatedGameObject.DropObject) ((int)AnimatedGameObject.DropObject.Club + i); return AnimatedGameObject.DropObject.None; }
/// <summary> /// Add /// </summary> /// <param name="type">Type</param> /// <param name="positionMatrix">Position matrix</param> public static void Add(AnimatedTypes type, Matrix positionMatrix) { animatedObjects.Add(new AnimatedGameObject(type, positionMatrix)); }