Exemple #1
0
        private static string GenerateMonobehaviourClass(ITypeRelationalMapper mapper, IEnumerable <ITestityBuildStep> buildSteps, Type typeToBuildFrom)
        {
            IClassBuilder builder = new TestityClassBuilder(typeToBuildFrom.Name + "Script", MemberImplementationModifier.Public | MemberImplementationModifier.Sealed);

            foreach (ITestityBuildStep step in buildSteps)
            {
                step.Process(builder, typeToBuildFrom);
            }

            return(builder.ToString());
        }
Exemple #2
0
		private static string GenerateMonobehaviourClass(ITypeRelationalMapper mapper, IEnumerable<ITestityBuildStep> buildSteps, Type typeToBuildFrom)
		{
			IClassBuilder builder = new TestityClassBuilder(typeToBuildFrom.Name + "Script", MemberImplementationModifier.Public | MemberImplementationModifier.Sealed);

			foreach (ITestityBuildStep step in buildSteps)
			{
				step.Process(builder, typeToBuildFrom);
			}

			return builder.ToString();
		}
Exemple #3
0
        private static string GenerateTestityGenericEventSerializableClass(string genericEventNewTypeName, IEnumerable <Type> genericTypeArgs)
        {
            IClassBuilder builder = new TestityClassBuilder(genericEventNewTypeName);

            return(builder.ToString());
        }
Exemple #4
0
		private static string GenerateTestityGenericEventSerializableClass(string genericEventNewTypeName, IEnumerable<Type> genericTypeArgs)
		{
			IClassBuilder builder = new TestityClassBuilder(genericEventNewTypeName);

			return builder.ToString();
		}