コード例 #1
0
        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);
        }
コード例 #2
0
 internal void Initialize(IMcgStructChild[] children, McgStruct extends)
 {
     _localChildren = children;
     _extends       = extends;
 }
コード例 #3
0
 internal void Initialize(IMcgStructChild[] children, McgEmptyField emptyField, McgStruct extends, McgType collectionType)
 {
     base.Initialize(children, extends);
     _emptyField     = emptyField;
     _collectionType = collectionType;
 }