Skip to content
Snippets Groups Projects
Commit d61da8f8 authored by John Schihada's avatar John Schihada
Browse files

Fixed add points: Removed scientific notation from floats

parent cdca11e6
Branches
No related tags found
No related merge requests found
...@@ -75,6 +75,6 @@ public class SignalEvent : UnityEvent { ...@@ -75,6 +75,6 @@ public class SignalEvent : UnityEvent {
public static List<Fact> Facts = new List<Fact>(); public static List<Fact> Facts = new List<Fact>();
public static bool ServerRunning = false; public static bool ServerRunning = true;
public static string ServerAdress = "localhost:8085"; public static string ServerAdress = "localhost:8085";
} }
using JsonSubTypes; using System;
using JsonSubTypes;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
...@@ -13,8 +14,8 @@ public class MMTURICollection ...@@ -13,8 +14,8 @@ public class MMTURICollection
public string LineOf = "http://mathhub.info/MitM/core/geometry?Geometry?Common?lineOf"; public string LineOf = "http://mathhub.info/MitM/core/geometry?Geometry?Common?lineOf";
public string Ded = "http://mathhub.info/MitM/Foundation?Logic?ded"; public string Ded = "http://mathhub.info/MitM/Foundation?Logic?ded";
public string Eq = "http://mathhub.info/MitM/Foundation?Logic?eq"; public string Eq = "http://mathhub.info/MitM/Foundation?Logic?eq";
public string Metric = "http://mathhub.info/MitM/core/geometry?Geometry?Common?metric"; public string Metric = "http://mathhub.info/MitM/core/geometry?Geometry/Common?metric";
public string Angle = "http://mathhub.info/MitM/core/geometry?Geometry?Common?angle_between"; public string Angle = "http://mathhub.info/MitM/core/geometry?Geometry/Common?angle_between";
public string Sketch = "http://mathhub.info/MitM/Foundation?InformalProofs?proofsketch"; public string Sketch = "http://mathhub.info/MitM/Foundation?InformalProofs?proofsketch";
} }
...@@ -68,12 +69,12 @@ public OMSTR(string s) ...@@ -68,12 +69,12 @@ public OMSTR(string s)
public class OMF : MMTTerm public class OMF : MMTTerm
{ {
[JsonProperty("float")] [JsonProperty("float")]
public float f; public decimal f;
public string kind = "OMF"; public string kind = "OMF";
public OMF(float f) public OMF(float f)
{ {
this.f = f; this.f = Convert.ToDecimal(f);
} }
} }
...@@ -96,6 +97,7 @@ public static string ToJson(MMTDeclaration mmtDecl) ...@@ -96,6 +97,7 @@ public static string ToJson(MMTDeclaration mmtDecl)
**/ **/
public class MMTSymbolDeclaration : MMTDeclaration public class MMTSymbolDeclaration : MMTDeclaration
{ {
public string kind = "general";
public string label; public string label;
public MMTTerm tp; public MMTTerm tp;
public MMTTerm df; public MMTTerm df;
...@@ -113,6 +115,7 @@ public MMTSymbolDeclaration(string label, MMTTerm tp, MMTTerm df) ...@@ -113,6 +115,7 @@ public MMTSymbolDeclaration(string label, MMTTerm tp, MMTTerm df)
**/ **/
public class MMTValueDeclaration : MMTDeclaration public class MMTValueDeclaration : MMTDeclaration
{ {
public string kind = "veq";
public string label; public string label;
public MMTTerm lhs; public MMTTerm lhs;
public MMTTerm rhs; public MMTTerm rhs;
......
...@@ -15,6 +15,7 @@ public class StartServer : MonoBehaviour ...@@ -15,6 +15,7 @@ public class StartServer : MonoBehaviour
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
CommunicationEvents.ServerRunning = false;
StartCoroutine(ServerRoutine()); StartCoroutine(ServerRoutine());
} }
void PrepareGame() void PrepareGame()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment