Code: Select all
public class TagCollection
{
public TagDefinition[] TagDefinitions = new TagDefinition[]
{
new fx (), new adlg(), new ant (), new bipd(), new bitm(), new bloc(), new bsdt(), new HaloPlugins.Xbox.Char(),
new clwd(), new coll(), new colo(), new cont(), new crea(), new ctrl(), new deca(), new DECR(),
new effe(), new egor(), new eqip(), new fog (), new foot(), new fpch(), new garb(), new gldf(),
new goof(), new hlmt(), new hudg(), new itmc(), new jmad(), new jpt (), new lens(), new ligh(),
new lsnd(), new ltmp(), new mach(), new matg(), new mdlg(), new MGS2(), new mode(), new mulg(),
new nhdt(), new phmo(), new phys(), new pmov(), new pphy(), new proj(), new prt3(), new PRTM(),
new sbsp(), new scen(), new scnr(), new sfx (), new shad(), new sily(), new skin(), new sky (),
new sncl(), new snd (), new snde(), new snmx(), new spas(), new spk (), new ssce(), new stem(),
new styl(), new tdtl(), new trak(), new udlg(), new ugh (), new unic(), new vehc(), new vehi(),
new vrtx(), new weap(), new weat(), new wgit(), new wgtz(), new wigl()
};
public string[] TagTypes = new string[]
{
"<fx>", "adlg", "ant!", "bipd", "bitm", "bloc", "bsdt", "char", "clwd", "coll", "colo", "cont",
"crea", "ctrl", "deca", "DECR", "effe", "egor", "eqip", "fog ", "foot", "fpch", "garb", "gldf",
"goof", "hlmt", "hudg", "itmc", "jmad", "jpt!", "lens", "ligh", "lsnd", "ltmp", "mach", "matg",
"mdlg", "MGS2", "mode", "mulg", "nhdt", "phmo", "phys", "pmov", "pphy", "proj", "prt3", "PRTM",
"sbsp", "scen", "scnr", "sfx+", "shad", "sily", "skin", "sky ", "sncl", "snd!", "snde", "snmx",
"spas", "spk!", "ssce", "stem", "styl", "tdtl", "trak", "udlg", "ugh!", "unic", "vehc", "vehi",
"vrtx", "weap", "weat", "wgit", "wgtz", "wigl"
};
public string[] TagExtensions = new string[]
{
"sound_effect_template", "ai_dialogue_globals", "antenna", "biped", "bitmap", "crate", "breakable_surface",
"character", "cloth", "collision_model", "color_table", "contrail", "creature", "control", "decal",
"decorator", "effect", "screen_effect", "equipment", "fog", "material_effect", "fog_patch", "garbage",
"global_lighting", "multiplayer_variant_settings", "object_properties", "hud_globals", "item_collection",
"model_animation_graph", "damage_effect", "lens_flare", "light", "looping_sound", "lightmap", "machine",
"match_globals", "ai_mission_dialogue", "light_volume", "render_model", "multiplayer_globals", "hud_interface",
"physics_model", "physics", "particle_physics", "point_physics", "projectile", "particle", "particle_model",
"scenario_structure_bsp", "scenery", "scenario", "sound_effect_collection", "shader", "ui_option",
"user_interface_list_skin_definition", "sky", "sound_class", "sound", "sound_environment", "sound_mixture",
"shader_pass", "speak", "sound_scenery", "shader_template", "style", "beam_trail", "camera_track", "unit_dialog",
"sound_diagnostics", "unicode_string_list", "vehicle_collection", "vehicle", "vertex_shader", "weapon",
"weather_system", "user_interface_screen_widget_definition", "user_interface_globals_definition",
"user_interface_shared_globals_definition"
};
public int FindTag(string Key)
{
// Check Types
for (int i = 0; i < TagTypes.Length; i++)
{
if (TagTypes[i] == Key)
return i;
}
// Search Extensions if null
for (int i = 0; i < TagExtensions.Length; i++)
{
if (TagExtensions[i] == Key)
return i;
}
// Return
return -1;
}
}
Code: Select all
public class itmc : TagDefinition
{
public itmc() : base("itmc", "item_collection", 12)
{
Fields.AddRange(new IMetaNode[] {
new TagBlock("Item Permutations", 16, 32, new IMetaNode[] {
new Value("Weight", typeof(float)),
new TagReference("Item", "item"),
new StringId("Variant Name"),
}),
new Value("Unused Spawn Time (in seconds, 0 = default)", typeof(uint)),
});
}
}