Mineserver Community

Mineserver => Development => Topic started by: DJmaxx on December 24, 2010, 02:12:43 am



Title: /cuboid
Post by: DJmaxx 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/ (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/ (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/ (http://www.wegame.com/view/misc-gaming-screenshot-by-konrad16-2010-12-23-160855/)
                                                                  
By DJmaxx


Title: Re: /cuboid
Post by: deoxxa on December 24, 2010, 03:27:16 am
...what?


Title: Re: /cuboid
Post by: DJmaxx on December 25, 2010, 10:52:36 am
Her :P


Title: Re: /cuboid
Post by: deoxxa on December 25, 2010, 01:54:47 pm
Mineserver is written in C++, not C#.


Title: Re: /cuboid
Post by: Snowblind on December 25, 2010, 02:12:28 pm
"her"


Title: Re: /cuboid
Post by: DJmaxx 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;
   }
}


Title: Re: /cuboid
Post by: Fador on January 04, 2011, 02:09:45 am
ok, I made a simple plugin test with /cuboid
  • Type /cuboid
  • Place 1st block
  • Place 2nd block
  • The space between is filled