MCPcopy Create free account
hub / github.com/Tencent/xLua / InitStruct

Method InitStruct

Test/UnitTest/xLuaTest/LuaTestObj.cs:1163–1180  ·  view source on GitHub ↗
(out int add)

Source from the content-addressed store, hash-verified

1161public class GenCodeBaseClass
1162{
1163 public GenCodeStruct InitStruct(out int add){
1164 struct_var.Byte = 100;
1165 struct_var.Char = 'b';
1166 struct_var.Decimal = 22.33333333m;
1167 struct_var.Double = 20.111111111111;
1168 struct_var.Float = 21.1234f;
1169 struct_var.IntVar1 = 22345678;
1170 struct_var.IntVar2 = -22345678;
1171 struct_var.Long = System.Int64.MinValue;
1172 struct_var.ULong = System.UInt64.MinValue;
1173 struct_var.Short = 223;
1174 struct_var.String = "2just for test";
1175 struct_var.UInt = 22345;
1176 struct_var.UShort = 128;
1177 struct_var.IncludeStruct = new HasConstructStruct (2, 2, "2haha");
1178 add = struct_var.Add (struct_var.IntVar1, struct_var.IntVar2);
1179 return struct_var;
1180 }
1181
1182 public void SetStruct(ref GenCodeStruct var, out GenCodeStruct value)
1183 {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected