Aura.Mabi.Structs.UpgradeEffect.SetType C# (CSharp) 메소드

SetType() 공개 메소드

Changes effect's type.
public SetType ( UpgradeType type ) : void
type UpgradeType
리턴 void
		public void SetType(UpgradeType type)
		{
			Type = type;
		}

Usage Example

예제 #1
0
		public void UpgradeEffectStatEffect()
		{
			var effect = new UpgradeEffect(UpgradeType.Suffix);
			effect.SetStatEffect(UpgradeStat.STR, 20, UpgradeValueType.Fix);
			Assert.Equal((
				"01 00 00 00  00 00 00 00  00 00 00 00  0A 03 14 00" +
				"00 00 00 00  0A 00 00 00  00 00 00 00  0A 00 00 00" +
				"00 00 00 00"
				).Replace(" ", ""), ToHex(effect));

			effect.SetType(UpgradeType.Elemental);
			effect.SetStatEffect(UpgradeStat.Fire, 1, UpgradeValueType.Value);
			Assert.Equal((
				"02 00 00 00  00 00 00 00  02 00 00 00  1B 00 01 00" +
				"00 00 00 00  0A 00 00 00  00 00 00 00  0A 00 00 00" +
				"00 00 00 00"
				).Replace(" ", ""), ToHex(effect));
		}