mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-21 23:04:53 -04:00
Mock FreeSO API
- Until the real FreeSO API server is properly reconfigured, a mock API will take it's place using Mockoon. - Ported over a few elements from FSO.Common into the client.
This commit is contained in:
parent
49820cd42c
commit
a380de3a44
10 changed files with 1114 additions and 29 deletions
|
@ -44,7 +44,7 @@
|
|||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net45</TargetFramework>
|
||||
<TargetFrameworks>net45;net8.0</TargetFrameworks>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
@ -87,9 +87,8 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||
<PackageReference Include="MP3Sharp" Version="1.0.5" />
|
||||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Common.Logging" Version="3.4.1" />
|
||||
<PackageReference Include="Common.Logging.Core" Version="3.4.1" />
|
||||
<PackageReference Include="Microsoft.CSharp" Version="4.3.0" />
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
{
|
||||
public class SymmetricMatrix
|
||||
{
|
||||
public SymmetricMatrix(double c) {
|
||||
for (int i=0; i<10; i++) m[i] = c;
|
||||
public SymmetricMatrix(double c)
|
||||
{
|
||||
for (int i = 0; i < 10; i++) m[i] = c;
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,9 +14,9 @@
|
|||
double m44)
|
||||
{
|
||||
m[0] = m11; m[1] = m12; m[2] = m13; m[3] = m14;
|
||||
m[4] = m22; m[5] = m23; m[6] = m24;
|
||||
m[7] = m33; m[8] = m34;
|
||||
m[9] = m44;
|
||||
m[4] = m22; m[5] = m23; m[6] = m24;
|
||||
m[7] = m33; m[8] = m34;
|
||||
m[9] = m44;
|
||||
}
|
||||
|
||||
// Make plane
|
||||
|
@ -28,7 +29,8 @@
|
|||
m[9] = d * d;
|
||||
}
|
||||
|
||||
public double this[int c] {
|
||||
public double this[int c]
|
||||
{
|
||||
get { return m[c]; }
|
||||
set { m[c] = value; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue