清理各个 Component 里的判断以及调用规范
This commit is contained in:
@@ -27,7 +27,7 @@ namespace SepCore.CustomUtility
|
||||
WeaponType.Axe => new WeaponSlashData(entityId, config, ownerId, ownerCamp),
|
||||
WeaponType.Lightning => new WeaponLightningData(entityId, config, ownerId, ownerCamp),
|
||||
WeaponType.Lance => new WeaponLanceData(entityId, config, ownerId, ownerCamp),
|
||||
_ => throw new NotImplementedException()
|
||||
_ => throw new NotImplementedException($"Unsupported weapon type '{weaponType}'.")
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user