OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
index 74aae4e..381f219 100644 (file)
@@ -1,2 +1,36 @@
 class Pettanr.GroundColor extends Peta.Element\r
-\r
+  \r
+  @singular: () ->\r
+    'GroundColor'\r
+  \r
+  @plural: () ->\r
+    'GroundColors'\r
+  \r
+  defaults: {\r
+    id: null,\r
+    code: 0xeeeeee,\r
+    orientation: 0\r
+  } \r
+  \r
+  @pick_item_name: () ->\r
+    'ground_color'\r
+  \r
+  @traceable_item_names: () ->\r
+    []\r
+  \r
+  pick: (picked_item) ->\r
+    {\r
+    }\r
+  \r
+  @has_picture: () ->\r
+    false\r
+  \r
+  @pick_item_name: () ->\r
+    ''\r
+  \r
+  element_face: () ->\r
+    new Pettanr.Views.GroundColor.ElementFace({element: this})\r
+  \r
+  initialize: (attr, options) ->\r
+    super(attr, options)\r
+  \r