当前位置: 首页>>代码示例>>C#>>正文


C# Loader.Load方法代码示例

本文整理汇总了C#中Loader.Load方法的典型用法代码示例。如果您正苦于以下问题:C# Loader.Load方法的具体用法?C# Loader.Load怎么用?C# Loader.Load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Loader的用法示例。


在下文中一共展示了Loader.Load方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateWorld

 IWorld CreateWorld(params string[] args)
 {
     var loader = new Loader();
     loader.AddLevel("Demo", "Level1", () => new DemoCompetitions.Level1());
     loader.AddLevel("RoboMovies", "Level1", () => new RMCompetitions.Level1());
     return loader.Load(args);
 }
开发者ID:kentmkmb,项目名称:StrategyTester,代码行数:7,代码来源:WorldCreator.cs

示例2: RunTests

 //Method:       RunTests
 //Purpose:      tests every method in the Loader class
 //Variables:    myOptions - Options handle to options to class
 public static void RunTests(Options myOptions)
 {
     myOptions.SetFileName("test1.exe");
     Memory myRam = new Memory(myOptions.GetMemSize());
     Loader myLoader = new Loader(myOptions, myRam);
     Console.WriteLine("testing Loader...");
     myLoader.Load();
     Console.Write("verifying MD5 hash...");
     Debug.Assert(myRam.getMDF() == "3500A8BEF72DFED358B25B61B7602CF1");
     Console.WriteLine("success!");
 }
开发者ID:wiglz4,项目名称:ARMsim,代码行数:14,代码来源:TestLoader.cs

示例3: Computer

 //Method:       Constructor
 //Purpose:      Sets Computer up for use.
 //Variables:    toOptions -   Options parsed from command line input.
 public Computer(Options toOptions)
 {
     myOptions = toOptions;
     myRam = new Memory(myOptions.GetMemSize());
     myRam.myComputer = this;
     myLoader = new Loader(myOptions, myRam);
     myLoader.Load();
     myRegisters = new Registers();
     myCPU = new CPU(myRam, myRegisters, myLoader.getProgramCounter());
     trace = true;
     FileStream myFileStream = new FileStream("trace.log", FileMode.Create);
     myFileStream.Close();
     stepNum = 0;
     storedBranchPC = 0;
     input = new Queue<char>();
     outputQ = new Queue<char>();
 }
开发者ID:wiglz4,项目名称:ARMsim,代码行数:20,代码来源:Computer.cs

示例4: CreateWorld

    IWorld CreateWorld(params string[] args)
    {
        var loader = new Loader();
        loader.AddLevel("Demo", "Level1", () => new DemoCompetitions.Level1());
        loader.AddLevel("RoboMovies", "Level1", () => new RMCompetitions.Level1());
        //loader.AddLevel("RepairTheStarship", "Level1", () => new RepairTheStarship.Level1());

        ////для Насти:
        //loader.Levels.Keys.ToArray(); // список всех соревнований
        //loader.Levels["Demo"].Keys.ToArray(); //список всех уровней соревнования
        //var competitions = loader.Levels["Demo"]["Level1"]();
        //competitions.Logic.Bots.Keys.ToArray(); //список всех доступных ботов
        //competitions.Logic.ControllersId.ToArray(); //список всех контроллеров (Left/Right в наших соревнованиях)
        //// надо создать
        //LoadingData data = null;
        //SettingsProposal proposal = null;
        //// и из этого мы потом сделаем соревнования
        return loader.Load(args);
    }
开发者ID:mrkvinter,项目名称:CVARC-Unity,代码行数:19,代码来源:WorldCreator.cs

示例5: LoadBackground

        protected override bool LoadBackground(IDocumentContainer container, SrmDocument document, SrmDocument docCurrent)
        {
            var loader = new Loader(this, container, document, docCurrent);
            loader.Load();

            return false;
        }
开发者ID:lgatto,项目名称:proteowizard,代码行数:7,代码来源:Chromatogram.cs

示例6: Load

 /// <summary>
 /// loads data using the loader
 /// </summary>
 /// <param name="size"></param>
 /// <param name="loader"></param>
 public void Load(int size, Loader loader)
 {
     _size = size;
     loader.Initialize(size, _list);
     if (size > 0)
     {
         loader.Load();
     }
     _list = loader.Finish();
 }
开发者ID:yao-yi,项目名称:BoboBrowse.Net,代码行数:15,代码来源:BigNestedIntArray.cs

示例7: load

 ///   <summary> * loads data using the loader </summary>
 ///   * <param name="size"> </param>
 ///   * <param name="loader"> </param>
 ///   * <exception cref="Exception"> </exception>
 public void load(int size, Loader loader) //throws Exception
 {
     _size = size;
     loader.initialize(size, _list);
     if (size > 0)
     {
         loader.Load();
     }
     _list = loader.finish();
 }
开发者ID:NightOwl888,项目名称:Bobo-Browse.Net,代码行数:14,代码来源:BigNestedIntArray.cs


注:本文中的Loader.Load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。