Fork me on GitHub
  February 18, 2018, 10:59:39 am
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Mineserver / Development / Re: /cuboid on: December 25, 2010, 02:22:00 pm
OK thx guys


Quote
using System;

///<summary>
///make sure structs have 'public' access on fields,
///when translated into other languages
///</summary>
public struct S1
{
   public int i1;
   ///<summary>
   ///decide: map to string or char[] or StringBuilder?
   ///</summary>
   public char[] c2;
}
public class Globals
{
   ///<summary>
   ///ensure that both '' chars and "" strings can be used to initialize the c2 field
   ///</summary>
   public static S1[] s1_arr = new S1[]{
      new S1 {i1 = 11, c2 = { 'a', ( ( char ) 13) } },
      new S1 {i1 = 21, c2 = "21"},

   };
   ///<summary>
   ///Rule R189: 'main' changed into 'Main'
   ///</summary>
   public static int Main()
   {
      int maxi = 40 / 20;
      int retval = 0;
      for(//translate into 'foreach' loop
      int i = 0;
      i < maxi;(i)++)
      {
         S1 obj = s1_arr[i ];
         retval += obj.i1;
         //retval += obj.c2[0];
      }
      return retval;
   }
}
2  Mineserver / Development / Re: /cuboid on: December 25, 2010, 10:52:36 am
Her Tongue
3  Mineserver / Development / /cuboid on: December 24, 2010, 02:12:43 am
cuboid <block> <type> (shortcut = z)
spawn on block
http://www.wegame.com/view/misc-gaming-screenshot-by-konrad16-2010-12-23-160814/

and so on more her
http://www.wegame.com/view/misc-gaming-screenshot-by-konrad16-2010-12-23-160831/

and all they com
http://www.wegame.com/view/misc-gaming-screenshot-by-konrad16-2010-12-23-160855/
                                                                  By DJmaxx
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!