P0-02 补齐数据表:组件、敌人、波次、节点、事件、商店商品
- 组件:
- 底座:Assets\GameMain\DataTables\BaseComp.txt
- 轴承:Assets\GameMain\DataTables\BearingComp.txt
- 枪口:Assets\GameMain\DataTables\MuzzleComp.txt
- 敌人:Assets\GameMain\DataTables\Enemy.txt
- 波次:
- 关卡:Assets\GameMain\DataTables\Level.txt
- 关卡阶段(波次):Assets\GameMain\DataTables\LevelPhase.txt
- 波次条目(波次出怪规则):Assets\GameMain\DataTables\LevelSpawnEntry.txt
- 事件:Assets\GameMain\DataTables\Event.txt
- 商店:Assets\GameMain\DataTables\ShopPrice.txt
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public class AddGoldEffect : EventEffectBase
|
||||
{
|
||||
public override EventEffectType EffectType => EventEffectType.AddGold;
|
||||
public override EventEffectParam Param => _param;
|
||||
private AddGoldParam _param;
|
||||
|
||||
public AddGoldEffect(AddGoldParam param, float? probability = null)
|
||||
{
|
||||
_param = param;
|
||||
Probability = probability;
|
||||
}
|
||||
}
|
||||
|
||||
public class AddGoldParam : EventEffectParam
|
||||
{
|
||||
public int Count;
|
||||
|
||||
public AddGoldParam(int count)
|
||||
{
|
||||
Count = count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 75cacc997d8f414ca73f381cad303b5b
|
||||
timeCreated: 1772101474
|
||||
@@ -0,0 +1,28 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public class AddRandomCompsEffect : EventEffectBase
|
||||
{
|
||||
public override EventEffectType EffectType => EventEffectType.AddRandomComps;
|
||||
public override EventEffectParam Param => _param;
|
||||
private AddRandomCompsParam _param;
|
||||
|
||||
public AddRandomCompsEffect(AddRandomCompsParam param, float? probability = null)
|
||||
{
|
||||
_param = param;
|
||||
Probability = probability;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class AddRandomCompsParam : EventEffectParam
|
||||
{
|
||||
public int Count;
|
||||
public RarityType Rarity;
|
||||
|
||||
public AddRandomCompsParam(int count, RarityType rarity)
|
||||
{
|
||||
Count = count;
|
||||
Rarity = rarity;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 35656d42c28448268d0547c19938b2d8
|
||||
timeCreated: 1772101530
|
||||
@@ -0,0 +1,34 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public class DamageRandomTowerEnduranceEffect : EventEffectBase
|
||||
{
|
||||
public override EventEffectType EffectType => EventEffectType.DamageRandomTowersEndurance;
|
||||
public override EventEffectParam Param => _param;
|
||||
private DamageRandomTowerEnduranceParam _param;
|
||||
|
||||
public DamageRandomTowerEnduranceEffect(DamageRandomTowerEnduranceParam param, float? probability = null)
|
||||
{
|
||||
_param = param;
|
||||
Probability = probability;
|
||||
}
|
||||
}
|
||||
|
||||
public class DamageRandomTowerEnduranceParam : EventEffectParam
|
||||
{
|
||||
/// <summary>
|
||||
/// 减少耐久的防御塔数量
|
||||
/// </summary>
|
||||
public int Count;
|
||||
|
||||
/// <summary>
|
||||
/// 防御塔耐久减少的量
|
||||
/// </summary>
|
||||
public int Amount;
|
||||
|
||||
public DamageRandomTowerEnduranceParam(int count, int amount)
|
||||
{
|
||||
Count = count;
|
||||
Amount = amount;
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1b06f274c054844ad68b1db02d3737a
|
||||
timeCreated: 1772101563
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public abstract class EventEffectBase
|
||||
{
|
||||
public abstract EventEffectType EffectType { get; }
|
||||
public abstract EventEffectParam Param { get; }
|
||||
public float? Probability;
|
||||
}
|
||||
|
||||
public class EventEffectParam
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2be5a7ff782240f79bde2dd0310d11ea
|
||||
timeCreated: 1772101392
|
||||
@@ -0,0 +1,27 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public class RemoveRandomCompsEffect : EventEffectBase
|
||||
{
|
||||
public override EventEffectType EffectType => EventEffectType.RemoveRandomComps;
|
||||
public override EventEffectParam Param => _param;
|
||||
private RemoveRandomCompsParam _param;
|
||||
|
||||
public RemoveRandomCompsEffect(RemoveRandomCompsParam param, float? probability = null)
|
||||
{
|
||||
_param = param;
|
||||
Probability = probability;
|
||||
}
|
||||
}
|
||||
|
||||
public class RemoveRandomCompsParam : EventEffectParam
|
||||
{
|
||||
public int Count;
|
||||
public RarityType Rarity;
|
||||
|
||||
public RemoveRandomCompsParam(int Count, RarityType Rarity)
|
||||
{
|
||||
this.Count = Count;
|
||||
this.Rarity = Rarity;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 77f8e0d1879b48108e6ad5faca07d7f7
|
||||
timeCreated: 1772101548
|
||||
Reference in New Issue
Block a user