support powers data

This commit is contained in:
Chris Forbes
2009-12-22 20:54:05 +13:00
parent d695344a05
commit e491dbc241
4 changed files with 99 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ namespace OpenRa.Game
public static InfoLoader<WarheadInfo> WarheadInfo;
public static InfoLoader<ProjectileInfo> ProjectileInfo;
public static InfoLoader<VoiceInfo> VoiceInfo;
public static InfoLoader<SupportPowerInfo> SupportPowerInfo;
public static GeneralInfo General;
public static AftermathInfo Aftermath;
public static TechTree TechTree;
@@ -72,7 +73,8 @@ namespace OpenRa.Game
"Weapon",
"Warhead",
"Projectile",
"Voice");
"Voice",
"SupportPower");
WeaponInfo = new InfoLoader<WeaponInfo>(
Pair.New<string, Func<string, WeaponInfo>>("Weapon", _ => new WeaponInfo()));
@@ -82,6 +84,8 @@ namespace OpenRa.Game
Pair.New<string, Func<string, ProjectileInfo>>("Projectile", _ => new ProjectileInfo()));
VoiceInfo = new InfoLoader<VoiceInfo>(
Pair.New<string, Func<string, VoiceInfo>>("Voice", _ => new VoiceInfo()));
SupportPowerInfo = new InfoLoader<SupportPowerInfo>(
Pair.New<string, Func<string, SupportPowerInfo>>("SupportPower", _ => new SupportPowerInfo()));
TechTree = new TechTree();
Map = new Map( AllRules );

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Game.GameRules
{
public class SupportPowerInfo
{
public readonly bool Powered = true;
public readonly bool OneShot = false;
public readonly int ChargeTime = 0;
public readonly string Image;
public readonly string Description = "";
public readonly string LongDesc = "";
public readonly string[] Prerequisite = { };
public readonly int TechLevel = -1;
}
}