Namespace: CreepyTowers
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Tests: CreepyTowers.Tests.PlayerTests
2 unit tests call CreepyTowers.Player.ProgressLevel
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Int32Remarks
Examples
[Test, CloseAfterFirstFrame] public void TotalPlayerLevelIsSumOfAvatarLevels() { player.Avatar.ProgressLevel = 2; Assert.AreEqual(2, player.Avatar.ProgressLevel); player.UnlockAvatar(CreepyTowers.Content.Avatars.Penguin); player.ChangeAvatar(CreepyTowers.Content.Avatars.Penguin); player.Avatar.ProgressLevel = 4; Assert.AreEqual(4, player.Avatar.ProgressLevel); Assert.AreEqual(6, player.ProgressLevel); }
[Test, CloseAfterFirstFrame] public void SwitchingBackToOldAvatarRestoresOldAvatarAndData() { player.Avatar.Xp = 10; player.Avatar.ProgressLevel = 2; player.UnlockAvatar(CreepyTowers.Content.Avatars.PiggyBank); player.ChangeAvatar(CreepyTowers.Content.Avatars.PiggyBank); player.Avatar.Xp = 25; player.Avatar.ProgressLevel = 4; player.ChangeAvatar(CreepyTowers.Content.Avatars.Dragon); Assert.AreEqual(10, player.Avatar.Xp); Assert.AreEqual(2, player.Avatar.ProgressLevel); }
See Also