规范类命名
This commit is contained in:
+2
-2
@@ -3,9 +3,9 @@ using GeometryTD.Definition;
|
||||
|
||||
namespace GeometryTD.CustomComponent
|
||||
{
|
||||
internal readonly struct EnemyDropResolveContext
|
||||
internal readonly struct EnemyDropContext
|
||||
{
|
||||
public EnemyDropResolveContext(DREnemy enemy, int displayPhaseIndex, LevelThemeType themeType)
|
||||
public EnemyDropContext(DREnemy enemy, int displayPhaseIndex, LevelThemeType themeType)
|
||||
{
|
||||
Enemy = enemy;
|
||||
DisplayPhaseIndex = displayPhaseIndex;
|
||||
+3
-3
@@ -31,12 +31,12 @@ namespace GeometryTD.CustomComponent
|
||||
_nextDropItemInstanceId = 1;
|
||||
}
|
||||
|
||||
public EnemyDropResolveResult Resolve(in EnemyDropResolveContext context)
|
||||
public EnemyDropResult Resolve(in EnemyDropContext context)
|
||||
{
|
||||
DREnemy enemy = context.Enemy;
|
||||
if (enemy == null)
|
||||
{
|
||||
return EnemyDropResolveResult.Empty;
|
||||
return EnemyDropResult.Empty;
|
||||
}
|
||||
|
||||
int coin = Mathf.Max(0, enemy.DropCoin);
|
||||
@@ -58,7 +58,7 @@ namespace GeometryTD.CustomComponent
|
||||
lootItem = droppedItem;
|
||||
}
|
||||
|
||||
return new EnemyDropResolveResult(coin, gold, lootItem);
|
||||
return new EnemyDropResult(coin, gold, lootItem);
|
||||
}
|
||||
|
||||
public IReadOnlyList<TowerCompItemData> RollSettlementRewardCandidates(
|
||||
|
||||
+3
-3
@@ -2,11 +2,11 @@ using GeometryTD.Definition;
|
||||
|
||||
namespace GeometryTD.CustomComponent
|
||||
{
|
||||
internal readonly struct EnemyDropResolveResult
|
||||
internal readonly struct EnemyDropResult
|
||||
{
|
||||
public static EnemyDropResolveResult Empty => new(0, 0, null);
|
||||
public static EnemyDropResult Empty => new(0, 0, null);
|
||||
|
||||
public EnemyDropResolveResult(int coin, int gold, TowerCompItemData lootItem)
|
||||
public EnemyDropResult(int coin, int gold, TowerCompItemData lootItem)
|
||||
{
|
||||
Coin = coin;
|
||||
Gold = gold;
|
||||
Reference in New Issue
Block a user