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,26 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public class CompCountAtLeastRequirement : EventRequirementBase
|
||||
{
|
||||
public override EventRequirementType RequirementType => EventRequirementType.CompCountAtLeast;
|
||||
public override EventRequirementParam Param => _param;
|
||||
private CompCountAtLeastParam _param;
|
||||
|
||||
public CompCountAtLeastRequirement(CompCountAtLeastParam param)
|
||||
{
|
||||
_param = param;
|
||||
}
|
||||
}
|
||||
|
||||
public class CompCountAtLeastParam : EventRequirementParam
|
||||
{
|
||||
public int Count;
|
||||
public RarityType Rarity;
|
||||
|
||||
public CompCountAtLeastParam(int count, RarityType rarity)
|
||||
{
|
||||
Count = count;
|
||||
Rarity = rarity;
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b845abef81934b75b266a738597bb890
|
||||
timeCreated: 1772101103
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public abstract class EventRequirementBase
|
||||
{
|
||||
public abstract EventRequirementType RequirementType { get; }
|
||||
public abstract EventRequirementParam Param { get; }
|
||||
}
|
||||
|
||||
public class EventRequirementParam
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eaa757b9c4cd4bcca38d73a30ab06285
|
||||
timeCreated: 1772100961
|
||||
@@ -0,0 +1,24 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public class GoldAtLeastRequirement : EventRequirementBase
|
||||
{
|
||||
public override EventRequirementType RequirementType => EventRequirementType.GoldAtLeast;
|
||||
public override EventRequirementParam Param => _param;
|
||||
private GoldAtLeastParam _param;
|
||||
|
||||
public GoldAtLeastRequirement(GoldAtLeastParam param)
|
||||
{
|
||||
_param = param;
|
||||
}
|
||||
}
|
||||
|
||||
public class GoldAtLeastParam : EventRequirementParam
|
||||
{
|
||||
public int Gold;
|
||||
|
||||
public GoldAtLeastParam(int gold)
|
||||
{
|
||||
Gold = gold;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a2de86ff2b442dd9f7d6af64f518bb8
|
||||
timeCreated: 1772101058
|
||||
@@ -0,0 +1,24 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public class HasRelicRequirement : EventRequirementBase
|
||||
{
|
||||
public override EventRequirementType RequirementType => EventRequirementType.HasRelic;
|
||||
public override EventRequirementParam Param => _param;
|
||||
private HasRelicParam _param;
|
||||
|
||||
public HasRelicRequirement(HasRelicParam param)
|
||||
{
|
||||
_param = param;
|
||||
}
|
||||
}
|
||||
|
||||
public class HasRelicParam : EventRequirementParam
|
||||
{
|
||||
public int RelicId;
|
||||
|
||||
public HasRelicParam(int relicId)
|
||||
{
|
||||
RelicId = relicId;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b06e03ee597d4345b95c524c7a6a27d4
|
||||
timeCreated: 1772101234
|
||||
@@ -0,0 +1,24 @@
|
||||
namespace GeometryTD.Definition
|
||||
{
|
||||
public class TowerCountAtLeastRequirement : EventRequirementBase
|
||||
{
|
||||
public override EventRequirementType RequirementType => EventRequirementType.TowerCountAtLeast;
|
||||
public override EventRequirementParam Param => _param;
|
||||
private TowerCountAtLeastParam _param;
|
||||
|
||||
public TowerCountAtLeastRequirement(TowerCountAtLeastParam param)
|
||||
{
|
||||
_param = param;
|
||||
}
|
||||
}
|
||||
|
||||
public class TowerCountAtLeastParam : EventRequirementParam
|
||||
{
|
||||
public int Count;
|
||||
|
||||
public TowerCountAtLeastParam(int count)
|
||||
{
|
||||
Count = count;
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81a1102b3c0e4a53ae74ebb779ea7c19
|
||||
timeCreated: 1772101156
|
||||
Reference in New Issue
Block a user