public ModuleBase(ModuleInit init) { Init = init; var inputFileName = Path.Combine(InputWorkingPath, InputFileName); if (File.Exists(inputFileName)) { try { if (OpenFileData(inputFileName)) { if (!string.IsNullOrEmpty(init.OutputFileName)) { OutputFileName = init.OutputFileName; } else { OutputFileName = GetOutputFileName(); } InputFileNames = GetSecondaryInputFileNames() .Union(new[] { InputFileName }); OutputFileNames = GetSecondaryOutputFileNames() .Union(new[] { OutputFileName }); IsValid = true; } else { Log.Error($"File {inputFileName} is not recognized as valid."); } } catch (Exception e) { Log.Error($"File {inputFileName} rasied an exception: {e.Message}"); } } else { IsValid = false; Log.Error($"File {inputFileName} does not exists."); } }
public Tiledmap(ModuleInit init) : base(init) { }
public IModule CreateInstance(ModuleInit settings) { settings.Type = Type; return(Activator.CreateInstance(Type, new object[] { settings }) as IModule); }
public ParticleAnim(ModuleInit init) : base(init) { }
public Image(ModuleInit init) : base(init) { }
public Font(ModuleInit init) : base(init) { }
public TileCollision(ModuleInit init) : base(init) { }
public Animation(ModuleInit init) : base(init) { }
public Copy(ModuleInit init) : base(init) { }