public void SetStruct(GenCodeStruct var, out int add, out NoGenCodeStruct value)
 {
     struct_var.Byte          = var.Byte;
     struct_var.Char          = var.Char;
     struct_var.Decimal       = var.Decimal;
     struct_var.Double        = var.Double;
     struct_var.Float         = var.Float;
     struct_var.IntVar1       = var.IntVar1;
     struct_var.IntVar2       = var.IntVar2;
     struct_var.Long          = var.Long;
     struct_var.ULong         = var.ULong;
     struct_var.Short         = var.Short;
     struct_var.String        = var.String;
     struct_var.UInt          = var.UInt;
     struct_var.UShort        = var.UShort;
     struct_var.IncludeStruct = new ConStruct(var.IncludeStruct.x, var.IncludeStruct.y, var.IncludeStruct.z);
     add   = struct_var.Add(var.IntVar1, var.IntVar2);
     value = struct_var;
     LuaTestCommon.Log("NoGenCodeStruct Byte:" + struct_var.Byte);
     LuaTestCommon.Log("NoGenCodeStruct Char:" + struct_var.Char);
     LuaTestCommon.Log("NoGenCodeStruct Decimal:" + struct_var.Decimal);
     LuaTestCommon.Log("NoGenCodeStruct Double:" + struct_var.Double);
     LuaTestCommon.Log("NoGenCodeStruct Float:" + struct_var.Float);
     LuaTestCommon.Log("NoGenCodeStruct IntVar1:" + struct_var.IntVar1);
     LuaTestCommon.Log("NoGenCodeStruct IntVar2:" + struct_var.IntVar2);
     LuaTestCommon.Log("NoGenCodeStruct Long:" + struct_var.Long);
     LuaTestCommon.Log("NoGenCodeStruct ULong:" + struct_var.ULong);
     LuaTestCommon.Log("NoGenCodeStruct Short:" + struct_var.Short);
     LuaTestCommon.Log("NoGenCodeStruct String:" + struct_var.String);
     LuaTestCommon.Log("NoGenCodeStruct UInt:" + struct_var.UInt);
     LuaTestCommon.Log("NoGenCodeStruct UShort:" + struct_var.UShort);
     LuaTestCommon.Log("NoGenCodeStruct IncludeStruct.x:" + struct_var.IncludeStruct.x + ", IncludeStruct.y:"
                       + struct_var.IncludeStruct.y + ", IncludeStruct.z:" + struct_var.IncludeStruct.z);
 }
 public void SetStruct(ref NoGenCodeStruct var, out NoGenCodeStruct value)
 {
     struct_var.Byte          = var.Byte;
     struct_var.Char          = var.Char;
     struct_var.Decimal       = var.Decimal;
     struct_var.Double        = var.Double;
     struct_var.Float         = var.Float;
     struct_var.IntVar1       = var.IntVar1;
     struct_var.IntVar2       = var.IntVar2;
     struct_var.Long          = var.Long;
     struct_var.ULong         = var.ULong;
     struct_var.Short         = var.Short;
     struct_var.String        = var.String;
     struct_var.UInt          = var.UInt;
     struct_var.UShort        = var.UShort;
     struct_var.IncludeStruct = new ConStruct(var.IncludeStruct.x, var.IncludeStruct.y, var.IncludeStruct.z);
     value = struct_var;
 }