Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00031 00032 00033 00034 00035 00036 00037 00038 |
/** * Provides data about a powerup currently in inventory. * * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. */ class PowerupDataProvider extends InventoryDataProvider native(inherit); /** * Script hook for preventing a particular child of DataClass from being represented by this dynamic data provider. * * @param PotentialDataSourceClass a child class of DataClass that is being considered as a candidate for binding by this provider. * * @return return FALSE to prevent PotentialDataSourceClass's properties from being added to the UI editor's list of bindable * properties for this data provider; also prevents any instances of PotentialDataSourceClass from binding to this provider * at runtime. */ event bool IsValidDataSourceClass( class PotentialDataSourceClass ) { local bool bResult; bResult = Super.IsValidDataSourceClass(PotentialDataSourceClass); if ( bResult ) { // weapons are handled by their own provider type bResult = !ClassIsChildOf(PotentialDataSourceClass, class'Engine.Weapon'); } return bResult; } defaultproperties { DataClass=Class'Engine.Inventory' Name="Default__PowerupDataProvider" ObjectArchetype=InventoryDataProvider'Engine.Default__InventoryDataProvider' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |