X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fground_color.js.coffee;h=381f219de4f11c1655a9d38dff8b579315691b9c;hp=74aae4e451d0ae53bcde4118f53375365d808448;hb=d7c8065be895b67dc453b0e11ad0f259f1ca6706;hpb=70027b80e56b5fbea8d63d520fbbf92050959f28 diff --git a/app/assets/javascripts/models/ground_color.js.coffee b/app/assets/javascripts/models/ground_color.js.coffee index 74aae4e4..381f219d 100644 --- a/app/assets/javascripts/models/ground_color.js.coffee +++ b/app/assets/javascripts/models/ground_color.js.coffee @@ -1,2 +1,36 @@ class Pettanr.GroundColor extends Peta.Element - + + @singular: () -> + 'GroundColor' + + @plural: () -> + 'GroundColors' + + defaults: { + id: null, + code: 0xeeeeee, + orientation: 0 + } + + @pick_item_name: () -> + 'ground_color' + + @traceable_item_names: () -> + [] + + pick: (picked_item) -> + { + } + + @has_picture: () -> + false + + @pick_item_name: () -> + '' + + element_face: () -> + new Pettanr.Views.GroundColor.ElementFace({element: this}) + + initialize: (attr, options) -> + super(attr, options) +