1
0
KF2-Dev-Scripts/Engine/Classes/SeqVar_Bool.uc

36 lines
725 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class SeqVar_Bool extends SequenceVariable
native(Sequence);
cpptext
{
virtual UBOOL* GetRef()
{
return (UBOOL*)&bValue;
}
FString GetValueStr()
{
return bValue ? GTrue : GFalse;
}
virtual UBOOL SupportsProperty(UProperty *Property)
{
return (Property->IsA(UBoolProperty::StaticClass()));
}
virtual void PublishValue(USequenceOp *Op, UProperty *Property, FSeqVarLink &VarLink);
virtual void PopulateValue(USequenceOp *Op, UProperty *Property, FSeqVarLink &VarLink);
}
var() int bValue;
// Red bool - gives you wings!
defaultproperties
{
ObjName="Bool"
ObjColor=(R=255,G=0,B=0,A=255) // red
}