Beispiel #1
0
 public void k_SetBlock(ushort proto, byte variant = 0, byte flags = 0)
 {
     k_block         = new k_TileBlock();
     k_block.protoID = proto;
     k_block.variant = variant;
     k_block.flags   = flags;
 }
Beispiel #2
0
 public void k_Constructor(Tile copy)
 {
     if (copy == null)
     {
         k_block          = null;
         k_wall_protoID   = 0;
         k_wall_variant   = 0;
         k_wall_colourID  = 0;
         k_liquid_protoID = 0;
         k_liquid_amount  = 0;
         k_wireFlags      = 0;
     }
     else
     {
         k_block          = copy.k_block.Copy();
         k_wall_protoID   = copy.k_wall_protoID;
         k_wall_variant   = copy.k_wall_variant;
         k_wall_colourID  = copy.k_wall_colourID;
         k_liquid_protoID = copy.k_liquid_protoID;
         k_liquid_amount  = copy.k_liquid_amount;
         k_wireFlags      = copy.k_wireFlags;
     }
 }
Beispiel #3
0
		public void k_Constructor(Tile copy)
		{
			if (copy == null)
			{
				k_block = null;
				k_wall_protoID = 0;
				k_wall_variant = 0;
				k_wall_colourID = 0;
				k_liquid_protoID = 0;
				k_liquid_amount = 0;
				k_wireFlags = 0;
			}
			else
			{
				k_block = copy.k_block.Copy();
				k_wall_protoID = copy.k_wall_protoID;
				k_wall_variant = copy.k_wall_variant;
				k_wall_colourID = copy.k_wall_colourID;
				k_liquid_protoID = copy.k_liquid_protoID;
				k_liquid_amount = copy.k_liquid_amount;
				k_wireFlags = copy.k_wireFlags;
			}
		}
Beispiel #4
0
		public void k_SetBlock(ushort proto, byte variant = 0, byte flags = 0)
		{
			k_block = new k_TileBlock();
			k_block.protoID = proto;
			k_block.variant = variant;
			k_block.flags = flags;
		}