File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 <SymbolPackageFormat >snupkg</SymbolPackageFormat >
1414 <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
1515
16- <TargetFramework >net9 .0</TargetFramework >
16+ <TargetFramework >net10 .0</TargetFramework >
1717 <LangVersion >latest</LangVersion >
1818 <ImplicitUsings >enable</ImplicitUsings >
1919 <Nullable >enable</Nullable >
Original file line number Diff line number Diff line change @@ -28,6 +28,13 @@ public LuaTable(LuaState l)
2828 return ( int ) val . V . NValue ;
2929 return null ! ;
3030 }
31+
32+ public object ? GetUserData ( string key )
33+ {
34+ if ( TryGetStr ( key , out var val ) && val . V . IsUserData ( ) )
35+ return val . V . AsUserData ( ) ;
36+ return null ! ;
37+ }
3138
3239 public bool TryGet ( StkId key , out StkId value )
3340 {
@@ -163,6 +170,17 @@ public void Set(string key, int val)
163170
164171 Set ( new StkId ( ref k ) , new StkId ( ref v ) ) ;
165172 }
173+
174+ public void Set ( string key , double val )
175+ {
176+ var k = new TValue ( ) ;
177+ var v = new TValue ( ) ;
178+
179+ k . SetString ( key ) ;
180+ v . SetDouble ( val ) ;
181+
182+ Set ( new StkId ( ref k ) , new StkId ( ref v ) ) ;
183+ }
166184
167185 public void Set ( string key , CsDelegate val ) =>
168186 Set ( key , new CsClosure ( val ) ) ;
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net9 .0</TargetFramework >
4+ <TargetFramework >net10 .0</TargetFramework >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77 <WarningsAsErrors >Nullable</WarningsAsErrors >
1414 <PrivateAssets >all</PrivateAssets >
1515 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1616 </PackageReference >
17- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 18.0.0 " />
17+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 18.0.1 " />
1818 <PackageReference Include =" xunit" Version =" 2.9.3" />
1919 <PackageReference Include =" xunit.runner.visualstudio" Version =" 3.1.5" >
2020 <PrivateAssets >all</PrivateAssets >
You can’t perform that action at this time.
0 commit comments