aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Key 2.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/fields/Key 2.ts')
-rw-r--r--src/fields/Key 2.ts45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/fields/Key 2.ts b/src/fields/Key 2.ts
new file mode 100644
index 000000000..db30f545d
--- /dev/null
+++ b/src/fields/Key 2.ts
@@ -0,0 +1,45 @@
+import { Field } from "./Field"
+import { Utils } from "../Utils";
+import { observable } from "mobx";
+
+export class Key extends Field {
+ private name:string;
+
+ get Name():string {
+ return this.name;
+ }
+
+ constructor(name:string){
+ super(Utils.GenerateDeterministicGuid(name));
+
+ this.name = name;
+ }
+
+ TrySetValue(value: any): boolean {
+ throw new Error("Method not implemented.");
+ }
+
+ GetValue() {
+ return this.Name;
+ }
+
+ Copy(): Field {
+ return this;
+ }
+
+
+}
+
+export namespace KeyStore {
+ export let Prototype = new Key("Prototype");
+ export let X = new Key("X");
+ export let Y = new Key("Y");
+ export let PanX = new Key("PanX");
+ export let PanY = new Key("PanY");
+ export let Width = new Key("Width");
+ export let Height = new Key("Height");
+ export let Data = new Key("Data");
+ export let Layout = new Key("Layout");
+ export let LayoutKeys = new Key("LayoutKeys");
+ export let LayoutFields = new Key("LayoutFields");
+} \ No newline at end of file