From a965808afe15e7b4330ce6b88f4c7a3131ecb4a2 Mon Sep 17 00:00:00 2001 From: Ray Koopa Date: Tue, 25 Apr 2017 20:43:31 +0200 Subject: [PATCH] Added enum for WWP points for weapons indices. --- src/Syroot.Worms/Gen2/WorldParty/Team.cs | 240 ++++++++++++++++++++++- 1 file changed, 239 insertions(+), 1 deletion(-) diff --git a/src/Syroot.Worms/Gen2/WorldParty/Team.cs b/src/Syroot.Worms/Gen2/WorldParty/Team.cs index f5a377c..8241341 100644 --- a/src/Syroot.Worms/Gen2/WorldParty/Team.cs +++ b/src/Syroot.Worms/Gen2/WorldParty/Team.cs @@ -168,7 +168,8 @@ namespace Syroot.Worms.Gen2.WorldParty public int UnknownTrainingMissionTime { get; set; } /// - /// Gets or sets the 46 weapons which were bought for points. + /// Gets or sets the 46 weapons which were bought for points. Specific weapons can be accessed with the + /// enumeration. /// public byte[] WeaponPoints { get; set; } @@ -303,4 +304,241 @@ namespace Syroot.Worms.Gen2.WorldParty public int Attempts; public int Medal; } + + /// + /// Represents the weapons and utilities being an index into the array to store the + /// amount the team bought. + /// + public enum TeamWeaponPoints + { + /// + /// The Bazooka weapon. + /// + Bazooka, + + /// + /// The Homing Missile weapon. + /// + HomingMissile, + + /// + /// The Mortar weapon. + /// + Mortar, + + /// + /// The Grenade weapon. + /// + Grenade, + + /// + /// The Cluster Bomb weapon. + /// + ClusterBomb, + + /// + /// The Skunk weapon. + /// + Skunk, + + /// + /// The Petrol Bomb weapon. + /// + PetrolBomb, + + /// + /// The Banana Bomb weapon. + /// + BananaBomb, + + /// + /// The Handgun weapon. + /// + Handgun, + + /// + /// The Shotgun weapon. + /// + Shotgun, + + /// + /// The Uzi weapon. + /// + Uzi, + + /// + /// The Minigun weapon. + /// + Minigun, + + /// + /// The Longbow weapon. + /// + Longbow, + + /// + /// The Air Strike weapon. + /// + AirStrike, + + /// + /// The Napalm Strike weapon. + /// + NapalmStrike, + + /// + /// The Mine weapon. + /// + Mine, + + /// + /// The Fire Punch weapon. + /// + FirePunch, + + /// + /// The Dragon Ball weapon. + /// + DragonBall, + + /// + /// The Kamikaze weapon. + /// + Kamikaze, + + /// + /// The Prod weapon. + /// + Prod, + + /// + /// The Battle Axe weapon. + /// + BattleAxe, + + /// + /// The Blow Torch weapon. + /// + BlowTorch, + + /// + /// The Pneumatic Drill weapon. + /// + PneumaticDrill, + + /// + /// The Girder weapon. + /// + Girder, + + /// + /// The Ninja Rope weapon. + /// + NinjaRope, + + /// + /// The Parachute weapon. + /// + Parachute, + + /// + /// The Bungee weapon. + /// + Bungee, + + /// + /// The Teleport weapon. + /// + Teleport, + + /// + /// The Dynamite weapon. + /// + Dynamite, + + /// + /// The Sheep weapon. + /// + Sheep, + + /// + /// The Baseball Bat weapon. + /// + BaseballBat, + + /// + /// The Flame Thrower weapon. + /// + FlameThrower, + + /// + /// The Homing Pigeon weapon. + /// + HomingPigeon, + + /// + /// The Mad Cow weapon. + /// + MadCow, + + /// + /// The Holy Hand Grenade weapon. + /// + HolyHandGrenade, + + /// + /// The Old Woman weapon. + /// + OldWoman, + + /// + /// The Sheep Launcher weapon. + /// + SheepLauncher, + + /// + /// The Super Sheep or Aqua Sheep weapon. + /// + SuperSheep, + + /// + /// The Mole Bomb weapon. + /// + MoleBomb, + + /// + /// The Jet Pack utility. + /// + JetPack, + + /// + /// The Low Gravity utility. + /// + LowGravity, + + /// + /// The Laser Sight utility. + /// + LaserSight, + + /// + /// The Fast Walk utility. + /// + FastWalk, + + /// + /// The Invisibility utility. + /// + Invisibility, + + /// + /// The Suicide Bomber weapon. + /// + SuicideBomber, + + /// + /// The Worm Select utility. + /// + WormSelect + } }