private static bool UsesHandles_Helper(McgStruct structType) { foreach (McgField field in structType.AllUceFields) { if (field.IsAnimated) { return(true); } McgResource fieldResource = field.Type as McgResource; if (fieldResource != null && !fieldResource.IsValueType) { return(true); } } foreach (McgResource potentialExtender in structType._ResourceModel.Resources) { if (potentialExtender.Extends == structType && UsesHandles_Helper(potentialExtender)) { return(true); } } return(false); }
internal void Initialize(IMcgStructChild[] children, McgStruct extends) { _localChildren = children; _extends = extends; }
internal void Initialize(IMcgStructChild[] children, McgEmptyField emptyField, McgStruct extends, McgType collectionType) { base.Initialize(children, extends); _emptyField = emptyField; _collectionType = collectionType; }