NScumm.Scumm.ScummEngine6.GetDepth C# (CSharp) Метод

GetDepth() приватный статический Метод

private static GetDepth ( Type type ) : int
type System.Type
Результат int
        private static int GetDepth(Type type)
        {
            int depth = 0;
            if (type.BaseType != null)
            {
                depth = 1 + GetDepth(type.BaseType);
            }
            return depth;
        }
ScummEngine6