Пример #1
0
        public SharpCustomModule createSharpCustomModule(string name)
        {
            if (builderFileNames.Contains(name))
            {
                Debug.LogError($"builder: {name} is already created");
            }
            var builder = new SharpCustomModule()
            {
                name     = name,
                path     = pathToSharp,
                suffix   = "gen",
                stubMode = stubModel
            };

            builders.Add(builder);
            return(builder);
        }
Пример #2
0
        public SharpClassBuilder(SharpCustomModule module, string name, string namespaceName, bool isStruct, bool isSealed, bool isPartial, bool isStatic, bool stubMode)
        {
            this.module        = module;
            this.name          = name;
            this.namespaceName = namespaceName;
            this.isStruct      = isStruct;
            this.isSealed      = isSealed;
            this.isPartial     = isPartial;
            this.isStatic      = isStatic;
            this.stubMode      = stubMode;

            indent++;
            if (namespaceName.Valid())
            {
                indent++;
            }
        }