Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

IGVisualEffectsSubsystem.VisualEffectSpecification


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
class VisualEffectSpecification extends IGEffectsSystem.EffectSpecification
	within VisualEffectsSubsystem
	PerObjectConfig;

var config array<Material.EMaterialVisualType> MaterialType;
var config array< class<Actor> > EffectClass;

simulated function Init(EffectsSubsystem EffectsSubsystem)
{
    assert(EffectsSubsystem != None);

    // If no material type is specified, then 
    //  1) there may be only one specification, and
    //  2) that specification is automatically for the 'Default' material type

    if (MaterialType.length == 0)
    {
        assertWithDescription(EffectClass.length == 1,
            "The visual effect "$name
            $" has more than one EffectClass, but no MaterialTypes.  If an effect specifies more than one EffectClass, then it must have a MaterialType for *each* EffectClass");

        MaterialType[0] = MVT_Default; 
    }
    else
        assertWithDescription(EffectClass.length == MaterialType.length,
            "The visual effect "$name
            $" does not specify the same number of MaterialTypes and EffectClasses.  If an Effect specifies any MaterialType(s), then the number of MaterialTypes specified must equal the number of EffectClasses specified.");
}


Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 16:02:14.000 - Creation time: st 23.5.2018 00:10:50.487 - Created with UnCodeX