コード例 #1
0
 public IHostingRobotProxy createRobotProxy(IHostManager hostManager, Object robotSpecification, IRobotStatics statics, IRobotPeer peer)
 {
     Object s = HiddenAccess.getFileSpecification(robotSpecification);
     var itemSpecification = Bridge.Cast<IRobotItem>(s);
     string file = DllRootHelper.GetDllFileName(itemSpecification);
     HostingShell hostingShell = new HostingShell(itemSpecification, hostManager, peer, statics, file);
     return hostingShell;
 }
コード例 #2
0
        public void testDomain()
        {
            Console.WriteLine("clr.arch            :" + ((IntPtr.Size == 8) ? "64bit" : "32bit"));
            Console.WriteLine("clr.version         :" + RuntimeEnvironment.GetSystemVersion());
            Console.Out.Flush();

            string[] strings = DllRootHelper.findItems(@"file:/" + typeof(MyFirstRobot).Assembly.Location);
            Assert.GreaterOrEqual(strings.Length, 5);
        }
コード例 #3
0
 public RobotType getRobotType(IRobotRepositoryItem robotRepositoryItem, bool resolve, bool message)
 {
     return(DllRootHelper.GetRobotType(robotRepositoryItem));
 }
コード例 #4
0
ファイル: AssemblyLoadTest.cs プロジェクト: boosheng/robocode
 public void testDomain()
 {
     string[] strings = DllRootHelper.findItems(@"file:/" + typeof(MyFirstRobot).Assembly.Location);
     Assert.GreaterOrEqual(strings.Length, 5);
 }
コード例 #5
0
 public RobotType getRobotType(IRobotItem robotItem, bool resolve, bool message)
 {
     return DllRootHelper.GetRobotType(robotItem);
 }