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

Method InitStruct

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

Source from the content-addressed store, hash-verified

891public class NoGenCodeBaseClass
892{
893 public NoGenCodeStruct InitStruct(out int add){
894 struct_var.Byte = 10;
895 struct_var.Char = 'a';
896 struct_var.Decimal = 12.33333333m;
897 struct_var.Double = 10.111111111111;
898 struct_var.Float = 11.1234f;
899 struct_var.IntVar1 = 12345678;
900 struct_var.IntVar2 = -12345678;
901 struct_var.Long = System.Int64.MaxValue;
902 struct_var.ULong = System.UInt64.MaxValue;
903 struct_var.Short = 123;
904 struct_var.String = "just for test";
905 struct_var.UInt = 12345;
906 struct_var.UShort = 255;
907 struct_var.IncludeStruct = new ConStruct (1, 2, "haha");
908 add = struct_var.Add (struct_var.IntVar1, struct_var.IntVar2);
909 return struct_var;
910 }
911
912 public void SetStruct(ref NoGenCodeStruct var, out NoGenCodeStruct value)
913 {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected