~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to src/components/ogre/modeldefinitions/modelmappings.modelmap.xml

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-07-23 07:46:40 UTC
  • Revision ID: james.westby@ubuntu.com-20090723074640-wh0ukzis0kda36qv
Tags: upstream-0.5.6
ImportĀ upstreamĀ versionĀ 0.5.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<modelmappings>
 
2
        
 
3
<!--
 
4
        templates:
 
5
        
 
6
        <modelmapping name="">
 
7
                <entitymatch>
 
8
                        <case equals="">
 
9
                                <action type="display-model">" />
 
10
                        </case>
 
11
                </entitymatch>
 
12
        </modelmapping>
 
13
        
 
14
        <automodelmapping name="" />
 
15
        
 
16
        <automodelmapping name="" modelname="" />
 
17
        
 
18
        <nomodel name="" />
 
19
 
 
20
-->     
 
21
        
 
22
 
 
23
        
 
24
<!-- environment -->    
 
25
<!-- A simple case. We want the model "turnip" to be shown for the entity of type "turnip" -->
 
26
        <modelmapping name="turnip">
 
27
                <entitymatch>
 
28
                        <case>
 
29
                                <caseparam type="equals">turnip</caseparam>
 
30
                                <action type="display-model">turnip</action>
 
31
                        </case>
 
32
                </entitymatch>
 
33
        </modelmapping>
 
34
        
 
35
<!-- For convenience we also provide the "automodelmapping" element, which maps a single model to an entity type of the same name. The result of this will be the same structure as the turnip. -->
 
36
        <automodelmapping name="acorn" />
 
37
        
 
38
<!-- The automodelmapping element also has an optional "modelname" attribute, which allows you to select a different model to map to the entity type. -->
 
39
        <automodelmapping name="carrot" />
 
40
        
 
41
        <modelmapping name="fern">
 
42
                <entitymatch>
 
43
                        <case>
 
44
                                <caseparam type="equals">fern</caseparam>
 
45
                                <action type="display-model">fern</action>
 
46
                        </case>
 
47
                </entitymatch>
 
48
        </modelmapping> 
 
49
        
 
50
        
 
51
        <modelmapping name="boulder">
 
52
                <entitymatch>
 
53
                        <case>
 
54
                                <caseparam type="equals">boulder</caseparam>
 
55
                                <action type="display-model">graniteA</action>
 
56
                                <attributematch attribute="style" >
 
57
                                        <case>
 
58
                                                <caseparam type="equals">a</caseparam>
 
59
                                                <action type="display-model">graniteA</action>
 
60
                                        </case>
 
61
                                        <case>
 
62
                                                <caseparam type="equals">b</caseparam>
 
63
                                                <action type="display-model">graniteB</action>
 
64
                                        </case>
 
65
                                        <case>
 
66
                                                <caseparam type="equals">c</caseparam>
 
67
                                                <action type="display-model">graniteC</action>
 
68
                                        </case>
 
69
                                        <case>
 
70
                                                <caseparam type="equals">d</caseparam>
 
71
                                                <action type="display-model">graniteD</action>
 
72
                                        </case>
 
73
                                </attributematch>
 
74
                        </case>
 
75
                </entitymatch>
 
76
        </modelmapping> 
 
77
        <!-- We want the model "boulder" to be used for the entity "boulder". However, there are four different boulder meshes, which the model defines as four different parts. Depending on attribute "style" a different part will be shown. We assume that "style" is one of "a", "b", "c" or "d". Since the parts in the model are defined to belong to the same group (not shown in this file), only one part will be shown at the same time. -->
 
78
<!--    <modelmapping name="boulder">
 
79
                <entitymatch>
 
80
                        <case>
 
81
                                <caseparam type="equals">boulder</caseparam>
 
82
                                <action type="display-model">boulder</action>
 
83
                                <attributematch attribute="style" >
 
84
                                        <case>
 
85
                                                <caseparam type="equals">a</caseparam>
 
86
                                                <action type="display-part">boulders_A</action>
 
87
                                        </case>
 
88
                                        <case>
 
89
                                                <caseparam type="equals">b</caseparam>
 
90
                                                <action type="display-part">boulders_B</action>
 
91
                                        </case>
 
92
                                        <case>
 
93
                                                <caseparam type="equals">c</caseparam>
 
94
                                                <action type="display-part">boulders_C</action>
 
95
                                        </case>
 
96
                                        <case>
 
97
                                                <caseparam type="equals">d</caseparam>
 
98
                                                <action type="display-part">boulders_D</action>
 
99
                                        </case>
 
100
                                </attributematch>
 
101
                        </case>
 
102
                </entitymatch>
 
103
        </modelmapping>-->
 
104
        
 
105
        <!-- An alternative to the previous boulder mapping is to instead have each boulder mesh in its own model file. The mapping would then be like this. -->
 
106
        <!--    <modelmapping name="boulder">
 
107
                <entitymatch>
 
108
                        <case equals="boulder">
 
109
                                <attributematch attribute="style" >
 
110
                                        <case equals="a">
 
111
                                                <action type="display-model">boulderA" />
 
112
                                        </case>
 
113
                                        <case equals="b">
 
114
                                                <action type="display-model">boulderB" />
 
115
                                        </case>
 
116
                                        <case equals="c">
 
117
                                                <action type="display-model">boulderkC" />
 
118
                                        </case>
 
119
                                        <case equals="d">
 
120
                                                <action type="display-model">boulderD" />
 
121
                                        </case>
 
122
                                </attributematch>
 
123
                        </case>
 
124
                </entitymatch>
 
125
        </modelmapping>
 
126
        -->
 
127
        
 
128
        <automodelmapping name="fire" />
 
129
        <automodelmapping name="lumber" />
 
130
        
 
131
        <modelmapping name="mushroom">
 
132
                <entitymatch>
 
133
                        <case>
 
134
                                <caseparam type="equals">mushroom</caseparam>
 
135
                                <action type="display-model">amanita</action>
 
136
                                <attributematch attribute="style">
 
137
                                        <case>
 
138
                                                <caseparam type="equals">stocky</caseparam>
 
139
                                                <action type="display-model">amanita</action>
 
140
                                        </case>
 
141
                                        <case>
 
142
                                                <caseparam type="equals">pointy</caseparam>
 
143
                                                <action type="display-model">galerina</action>
 
144
                                        </case>
 
145
                                </attributematch>
 
146
                                <!-- The parts are identical for both types of meshes. -->
 
147
                                <attributematch attribute="species">
 
148
                                        <case>
 
149
                                                <caseparam type="equals">amanita</caseparam>
 
150
                                                <action type="display-part">amanita</action>
 
151
                                        </case>
 
152
                                        <case>
 
153
                                                <caseparam type="equals">galerina</caseparam>
 
154
                                                <action type="display-part">galerina</action>
 
155
                                        </case>
 
156
                                        <case>
 
157
                                                <caseparam type="equals">blue_moon</caseparam>
 
158
                                                <action type="display-part">blue_moon</action>
 
159
                                        </case>
 
160
                                        <case>
 
161
                                                <caseparam type="equals">silkfoot</caseparam>
 
162
                                                <action type="display-part">silkfoot</action>
 
163
                                        </case>
 
164
                                </attributematch>
 
165
                        </case>
 
166
                </entitymatch>
 
167
        </modelmapping> 
 
168
        
 
169
        
 
170
        <automodelmapping name="apple" />
 
171
        <automodelmapping name="pile" />
 
172
        <automodelmapping name="grass" />
 
173
        
 
174
<!-- furniture-->
 
175
        <automodelmapping name="chair" />
 
176
        <automodelmapping name="door" />
 
177
        <automodelmapping name="longtable" />
 
178
        <automodelmapping name="shelf_table" />
 
179
        <automodelmapping name="simple_shelf" />
 
180
        <automodelmapping name="stool" />
 
181
        <automodelmapping name="bed" />
 
182
        <automodelmapping name="table" modelname="simple_table" />
 
183
        
 
184
<!-- items -->
 
185
        <automodelmapping name="barrel" />
 
186
        <automodelmapping name="coin" />
 
187
        <automodelmapping name="torch" />
 
188
        <automodelmapping name="deed" />
 
189
        <automodelmapping name="bottle" />
 
190
        <modelmapping name="bowls">
 
191
                <entitymatch>
 
192
                        <case>
 
193
                                <caseparam type="equals">bowl</caseparam>
 
194
                                <action type="display-model">bowls</action>
 
195
                                <attributematch attribute="style">
 
196
                                        <case>
 
197
                                                <caseparam type="equals">flat</caseparam>
 
198
                                                <action type="display-part">flat</action>
 
199
                                        </case>
 
200
                                        <case>
 
201
                                                <caseparam type="equals">medium</caseparam>
 
202
                                                <action type="display-part">medium</action>
 
203
                                        </case>
 
204
                                        <case>
 
205
                                                <caseparam type="equals">high</caseparam>
 
206
                                                <action type="display-part">high</action>
 
207
                                        </case>
 
208
                                </attributematch>
 
209
                        </case>
 
210
                </entitymatch>
 
211
        </modelmapping>         
 
212
        
 
213
        <!-- This will only work if the trousers and shirt has the same parts defined -->
 
214
        <modelmapping name="clothes">
 
215
                <entitymatch>
 
216
                        <case>
 
217
                                <caseparam type="equals">shirt</caseparam>
 
218
                                <caseparam type="equals">trousers</caseparam>
 
219
                                <entitymatch>
 
220
                                        <case>
 
221
                                                <caseparam type="equals">shirt</caseparam>
 
222
                                                <action type="display-model">shirt</action>
 
223
                                        </case>
 
224
                                        <case>
 
225
                                                <caseparam type="equals">trousers</caseparam>
 
226
                                                <action type="display-model">trousers</action>
 
227
                                        </case>
 
228
                                </entitymatch>
 
229
                                <attributematch attribute="style">
 
230
                                        <case>
 
231
                                                <caseparam type="equals">burlap</caseparam>
 
232
                                                <action type="display-part">clothes/burlap</action>
 
233
                                                <attributematch attribute="colour">
 
234
                                                        <case>
 
235
                                                                <caseparam type="equals">grey</caseparam>
 
236
                                                                <attributematch attribute="trimcolour">
 
237
                                                                        <case>
 
238
                                                                                <caseparam type="equals">blue</caseparam>
 
239
                                                                                <action type="display-part">clothes/burlap/grey_blue_trims</action>
 
240
                                                                        </case>
 
241
                                                                        <case>
 
242
                                                                                <caseparam type="equals">red</caseparam>
 
243
                                                                                <action type="display-part">clothes/burlap/grey_red_trims</action>
 
244
                                                                        </case>
 
245
                                                                        <case>
 
246
                                                                                <caseparam type="equals">yellow</caseparam>
 
247
                                                                                <action type="display-part">clothes/burlap/grey_yellow_trims</action>
 
248
                                                                        </case>
 
249
                                                                        <case>
 
250
                                                                                <caseparam type="equals">green</caseparam>
 
251
                                                                                <action type="display-part">clothes/burlap/grey_green_trims</action>
 
252
                                                                        </case>
 
253
                                                                </attributematch>
 
254
                                                        </case>
 
255
                                                        <case>
 
256
                                                                <caseparam type="equals">red</caseparam>
 
257
                                                                <action type="display-part">clothes/burlap/red</action>
 
258
                                                        </case>
 
259
                                                        <case>
 
260
                                                                <caseparam type="equals">yellow</caseparam>
 
261
                                                                <action type="display-part">clothes/burlap/yellow</action>
 
262
                                                        </case>
 
263
                                                        <case>
 
264
                                                                <caseparam type="equals">green</caseparam>
 
265
                                                                <action type="display-part">clothes/burlap/green</action>
 
266
                                                        </case>
 
267
                                                </attributematch>
 
268
                                        </case>
 
269
                                        <case>
 
270
                                                <caseparam type="equals">ragged</caseparam>
 
271
                                                <action type="display-part">clothes/ragged</action>
 
272
                                        </case>
 
273
                                        <case>
 
274
                                                <caseparam type="equals">dark_rags</caseparam>
 
275
                                                <action type="display-part">clothes/dark_rags</action>
 
276
                                        </case>
 
277
                                        <case>
 
278
                                                <caseparam type="equals">sun</caseparam>
 
279
                                                <action type="display-part">clothes/sun</action>
 
280
                                        </case>
 
281
                                        <case>
 
282
                                                <caseparam type="equals">fine</caseparam>
 
283
                                                <action type="display-part">clothes/fine</action>
 
284
                                        </case>
 
285
                                </attributematch>
 
286
                        </case>
 
287
                </entitymatch>
 
288
        </modelmapping>
 
289
        
 
290
        <!-- Use the shirt model as a placeholder -->
 
291
        <modelmapping name="cloak">
 
292
                <entitymatch>
 
293
                        <case>
 
294
                                <caseparam type="equals">cloak</caseparam>
 
295
                                <action type="display-model">shirt</action>
 
296
                        </case>
 
297
                </entitymatch>
 
298
        </modelmapping>
 
299
 
 
300
        <automodelmapping name="boots" />
 
301
        <automodelmapping name="wood" />
 
302
 
 
303
<!-- outdoor structures -->
 
304
        <automodelmapping name="palisade" />
 
305
        <automodelmapping name="palisade_earth" />
 
306
        <modelmapping name="stone_palisade">
 
307
                <entitymatch>
 
308
                        <case>
 
309
                                <caseparam type="equals">stone_palisade</caseparam>
 
310
                                <action type="display-model">stone_palisade</action>
 
311
                                <attributematch attribute="style" >
 
312
                                        <case>
 
313
                                                <caseparam type="equals">whole</caseparam>
 
314
                                                <action type="display-part">whole</action>
 
315
                                        </case>
 
316
                                        <case>
 
317
                                                <caseparam type="equals">brokenA</caseparam>
 
318
                                                <action type="display-part">brokenA</action>
 
319
                                        </case>
 
320
                                        <case>
 
321
                                                <caseparam type="equals">brokenB</caseparam>
 
322
                                                <action type="display-part">brokenB</action>
 
323
                                        </case>
 
324
                                </attributematch>
 
325
                        </case>
 
326
                </entitymatch>
 
327
        </modelmapping> 
 
328
        
 
329
        
 
330
        <automodelmapping name="stake" />
 
331
        <automodelmapping name="sty" />
 
332
        <modelmapping name="stall">
 
333
                <entitymatch>
 
334
                        <case>
 
335
                                <caseparam type="equals">stall</caseparam>
 
336
                                <action type="display-model">marketstall_canvasA</action>
 
337
                                <attributematch attribute="style" >
 
338
                                        <case>
 
339
                                                <caseparam type="equals">B</caseparam>
 
340
                                                <action type="display-model">marketstall_canvasB</action>
 
341
                                        </case>
 
342
                                        <case>
 
343
                                                <caseparam type="equals">C</caseparam>
 
344
                                                <action type="display-model">marketstall_canvasC</action>
 
345
                                        </case>
 
346
                                </attributematch>
 
347
                                <attributematch attribute="fabric" >
 
348
                                        <case>
 
349
                                                <caseparam type="equals">blue_green</caseparam>
 
350
                                                <action type="display-part">canvas_blue_green</action>
 
351
                                        </case>
 
352
                                        <case>
 
353
                                                <caseparam type="equals">plain</caseparam>
 
354
                                                <action type="display-part">canvas</action>
 
355
                                        </case>
 
356
                                </attributematch>
 
357
                        </case>
 
358
                </entitymatch>
 
359
        </modelmapping> 
 
360
        <automodelmapping name="jetty" />
 
361
        <modelmapping name="campfire">
 
362
                <entitymatch>
 
363
                        <case>
 
364
                                <caseparam type="equals">campfire</caseparam>
 
365
                                <action type="display-model">campfireB</action>
 
366
                        </case>
 
367
                </entitymatch>
 
368
        </modelmapping> 
 
369
        <automodelmapping name="choppingblock" />
 
370
        <modelmapping name="gravestone">
 
371
                <entitymatch>
 
372
                        <case>
 
373
                                <caseparam type="equals">gravestone</caseparam>
 
374
                                <action type="display-model">tombstone</action>
 
375
                                <action type="display-part">a</action>
 
376
                                <attributematch attribute="style" >
 
377
                                        <case>
 
378
                                                <caseparam type="equals">simple</caseparam>
 
379
                                                <action type="display-part">a</action>
 
380
                                        </case>
 
381
                                        <case>
 
382
                                                <caseparam type="equals">rounded</caseparam>
 
383
                                                <action type="display-part">b</action>
 
384
                                        </case>
 
385
                                        <case>
 
386
                                                <caseparam type="equals">stylish</caseparam>
 
387
                                                <action type="display-part">c</action>
 
388
                                        </case>
 
389
                                        <case>
 
390
                                                <caseparam type="equals">cross</caseparam>
 
391
                                                <action type="display-part">tombstone_cross_a</action>
 
392
                                        </case>
 
393
                                        <case>
 
394
                                                <caseparam type="equals">cross broken</caseparam>
 
395
                                                <action type="display-part">tombstone_cross_b</action>
 
396
                                        </case>
 
397
                                </attributematch>
 
398
                        </case>
 
399
                </entitymatch>
 
400
        </modelmapping> 
 
401
 
 
402
 
 
403
        
 
404
<!-- buildings -->
 
405
        <automodelmapping name="castlefoundation" />
 
406
        <automodelmapping name="castle_outer_wall" />
 
407
        <automodelmapping name="armory" />
 
408
        <modelmapping name="bailey">
 
409
                <entitymatch>
 
410
                        <case>
 
411
                                <caseparam type="equals">bailey1</caseparam>
 
412
                                <action type="display-model">bailey1</action>
 
413
                        </case>
 
414
                        <case>
 
415
                                <caseparam type="equals">bailey2</caseparam>
 
416
                                <action type="display-model">bailey2</action>
 
417
                        </case>
 
418
                </entitymatch>
 
419
        </modelmapping> 
 
420
        <automodelmapping name="curtain_wall" />
 
421
        <automodelmapping name="don_jon" />
 
422
        <automodelmapping name="gateway" />
 
423
        <automodelmapping name="keep" />
 
424
        <modelmapping name="castle_house">
 
425
                <entitymatch>
 
426
                        <case>
 
427
                                <caseparam type="equals">castle_house</caseparam>
 
428
                                <action type="display-model">cg_house</action>
 
429
                                <attributematch attribute="roof" >
 
430
                                        <case>
 
431
                                                <caseparam type="equals">shingle</caseparam>
 
432
                                                <action type="display-part">roof_shingle</action>
 
433
                                        </case>
 
434
                                        <case>
 
435
                                                <caseparam type="equals">straw</caseparam>
 
436
                                                <action type="display-part">roof_straw</action>
 
437
                                        </case>
 
438
                                        <case>
 
439
                                                <caseparam type="equals">shale</caseparam>
 
440
                                                <action type="display-part">roof_shale</action>
 
441
                                        </case>
 
442
                                </attributematch>
 
443
                        </case>
 
444
                </entitymatch>
 
445
        </modelmapping> 
 
446
        <automodelmapping name="castle_wall_run" modelname="cg_wall_run" />
 
447
        <automodelmapping name="castle_wall_gate" modelname="cg_wall_gate" />
 
448
        <automodelmapping name="castle_wall_stairs" modelname="cg_wall_stairs" />
 
449
        <automodelmapping name="castle_wall_corner" modelname="cg_wall_corner" />
 
450
        <automodelmapping name="cg_house_A" />
 
451
        
 
452
        
 
453
        
 
454
        <automodelmapping name="inn" modelname="cg_inn" />
 
455
        <automodelmapping name="outerwall" />
 
456
        <modelmapping name="mausoleum">
 
457
                <entitymatch>
 
458
                        <case>
 
459
                                <caseparam type="equals">mausoleum</caseparam>
 
460
                                <action type="display-model">temple</action>
 
461
                        </case>
 
462
                </entitymatch>
 
463
        </modelmapping> 
 
464
        <automodelmapping name="tower" />
 
465
        <automodelmapping name="gallows" />
 
466
 
 
467
        <automodelmapping name="butcher_house" />
 
468
        <automodelmapping name="house3" />
 
469
        
 
470
<!-- tools -->  
 
471
        <automodelmapping name="trowel" />
 
472
        <modelmapping name="axe">
 
473
                <entitymatch>
 
474
                        <case>
 
475
                                <caseparam type="equals">axe</caseparam>
 
476
                                <action type="display-model">hatchet</action>
 
477
                        </case>
 
478
                </entitymatch>
 
479
        </modelmapping> 
 
480
        <!-- automodelmapping name="axe" / -->
 
481
        <automodelmapping name="hammer" />
 
482
        <automodelmapping name="scythe" />
 
483
        <automodelmapping name="bucksaw" />
 
484
        <modelmapping name="tinderbox">
 
485
                <entitymatch>
 
486
                        <case>
 
487
                                <caseparam type="equals">tinderbox</caseparam>
 
488
                                <action type="display-model">tinderboxA</action>
 
489
                        </case>
 
490
                </entitymatch>
 
491
        </modelmapping> 
 
492
        <automodelmapping name="pickaxe" />
 
493
        <modelmapping name="pole">
 
494
                <entitymatch>
 
495
                        <case>
 
496
                                <caseparam type="equals">pole</caseparam>
 
497
                                <action type="display-model">lumber</action>
 
498
                        </case>
 
499
                </entitymatch>
 
500
        </modelmapping> 
 
501
        <modelmapping name="spade">
 
502
                <entitymatch>
 
503
                        <case>
 
504
                                <caseparam type="equals">shovel</caseparam>
 
505
                                <action type="display-model">spade</action>
 
506
                        </case>
 
507
                </entitymatch>
 
508
        </modelmapping> 
 
509
        <modelmapping name="sword">
 
510
                <entitymatch>
 
511
                        <case>
 
512
                                <caseparam type="equals">sword</caseparam>
 
513
                                <action type="display-model">sword</action>
 
514
                        </case>
 
515
                </entitymatch>
 
516
        </modelmapping> 
 
517
        <modelmapping name="arrow">
 
518
                <entitymatch>
 
519
                        <case>
 
520
                                <caseparam type="equals">arrow</caseparam>
 
521
                                <action type="display-model">arrow</action>
 
522
                        </case>
 
523
                </entitymatch>
 
524
        </modelmapping>         
 
525
        
 
526
<!-- vehicles -->       
 
527
        <automodelmapping name="boat" />
 
528
 
 
529
        <modelmapping name="cart">
 
530
                <entitymatch>
 
531
                        <case>
 
532
                                <caseparam type="equals">cart</caseparam>
 
533
                                <action type="display-model">cart</action>
 
534
                                <attributematch attribute="style" >
 
535
                                        <case>
 
536
                                                <caseparam type="equals">1</caseparam>
 
537
                                                <action type="display-part">1</action>
 
538
                                        </case>
 
539
                                        <case>
 
540
                                                <caseparam type="equals">2</caseparam>
 
541
                                                <action type="display-part">2</action>
 
542
                                        </case>
 
543
                                        <case>
 
544
                                                <caseparam type="equals">3</caseparam>
 
545
                                                <action type="display-part">3</action>
 
546
                                        </case>
 
547
                                        <case>
 
548
                                                <caseparam type="equals">4</caseparam>
 
549
                                                <action type="display-part">4</action>
 
550
                                        </case>
 
551
                                </attributematch>
 
552
                        </case>
 
553
                </entitymatch>
 
554
        </modelmapping> 
 
555
        
 
556
<!-- trees -->  
 
557
        
 
558
        <modelmapping name="fir">
 
559
                <entitymatch>
 
560
                        <case>
 
561
                                <caseparam type="equals">fir</caseparam>
 
562
                                <action type="display-model">pineA</action>
 
563
                                <attributematch attribute="style" >
 
564
                                        <case>
 
565
                                                <caseparam type="equals">gnarly</caseparam>
 
566
                                                <action type="display-model">pineA</action>
 
567
                                        </case>
 
568
                                        <case>
 
569
                                                <caseparam type="equals">knotted</caseparam>
 
570
                                                <action type="display-model">pineB</action>
 
571
                                        </case>
 
572
                                        <case>
 
573
                                                <caseparam type="equals">weathered</caseparam>
 
574
                                                <action type="display-model">pineC</action>
 
575
                                        </case>
 
576
                                </attributematch>
 
577
                        </case>
 
578
                </entitymatch>
 
579
        </modelmapping>
 
580
        
 
581
        <automodelmapping name="bush" />
 
582
        
 
583
        
 
584
        <!-- We'll use jayrs new oak for now -->
 
585
        <modelmapping name="oak">
 
586
                <entitymatch>
 
587
                        <case>
 
588
                                <caseparam type="equals">oak</caseparam>
 
589
                                <action type="display-model">oak_mk1</action>
 
590
                        </case>
 
591
                </entitymatch>
 
592
        </modelmapping>         
 
593
        
 
594
        <modelmapping name="birch">
 
595
                <entitymatch>
 
596
                        <case>
 
597
                                <caseparam type="equals">birch</caseparam>
 
598
                                <action type="display-model">birchA</action>
 
599
                                <attributematch attribute="style" >
 
600
                                        <case>
 
601
                                                <caseparam type="equals">gnarly</caseparam>
 
602
                                                <action type="display-model">birchA</action>
 
603
                                        </case>
 
604
                                        <case>
 
605
                                                <caseparam type="equals">weathered</caseparam>
 
606
                                                <action type="display-model">birchB</action>
 
607
                                        </case>
 
608
                                        <case>
 
609
                                                <caseparam type="equals">straight</caseparam>
 
610
                                                <action type="display-model">birchC</action>
 
611
                                        </case>
 
612
                                </attributematch>
 
613
                        </case>
 
614
                </entitymatch>
 
615
        </modelmapping>         
 
616
        
 
617
        
 
618
        <!-- We have three different types of oaks: large, young and saplings. The size (which we for simplicity assumes is a float) determines which of these we should show. Furthermore, the "style" attribute which variant of oak we should show (just as with the boulder).
 
619
                 -->
 
620
<!--    <modelmapping name="oak">
 
621
                <entitymatch>
 
622
                        <case equals="oak">
 
623
                                <action type="display-model">oak</action>
 
624
                                <attributematch type="function" attribute="height">
 
625
                                        <case lesser="3">
 
626
                                                <action type="display-model">oak_sapling</action>
 
627
                                                <attributematch attribute="style" >
 
628
                                                        <case equals="gnarly">
 
629
                                                                <action type="display-part">A</action>
 
630
                                                        </case>
 
631
                                                        <case equals="knotted">
 
632
                                                                <action type="display-part">B</action>
 
633
                                                        </case>
 
634
                                                        <case equals="weathered">
 
635
                                                                <action type="display-part">C</action>
 
636
                                                        </case>
 
637
                                                </attributematch>
 
638
                                        </case>
 
639
                                        <case greaterequals="3" lesserequals="6">
 
640
                                                <action type="display-model">oak_young</action>
 
641
                                                <attributematch attribute="style" >
 
642
                                                        <case equals="gnarly">
 
643
                                                                <action type="display-part">A</action>
 
644
                                                        </case>
 
645
                                                        <case equals="knotted">
 
646
                                                                <action type="display-part">B</action>
 
647
                                                        </case>
 
648
                                                        <case equals="weathered">
 
649
                                                                <action type="display-part">C</action>
 
650
                                                        </case>
 
651
                                                </attributematch>
 
652
                                        </case>
 
653
                                        <case greater="6">
 
654
                                                <action type="display-model">oak</action>
 
655
                                                <attributematch attribute="style" >
 
656
                                                        <case equals="gnarly">
 
657
                                                                <action type="display-part">A</action>
 
658
                                                        </case>
 
659
                                                        <case equals="knotted">
 
660
                                                                <action type="display-part">B</action>
 
661
                                                        </case>
 
662
                                                        <case equals="weathered">
 
663
                                                                <action type="display-part">C</action>
 
664
                                                        </case>
 
665
                                                </attributematch>
 
666
                                        </case>
 
667
                                </attributematch>
 
668
                        </case>
 
669
                </entitymatch>
 
670
        </modelmapping>-->
 
671
        
 
672
<!--    <automodelmapping name="birch" /> -->
 
673
 
 
674
        
 
675
        <!-- We'll use the "male" model for the entities of type "settler" or "butcher". Depending on what kind of entity is outfitted to the torso we'll show a shirt part. The shirts all belongs to the same group in the model, so only one will be shown at the same time.
 
676
                -->
 
677
        
 
678
        <modelmapping name="human">
 
679
                <entitymatch>
 
680
                        <case>
 
681
                                <caseparam type="equals">settler</caseparam>
 
682
                                <caseparam type="equals">merchant</caseparam>
 
683
                                <caseparam type="equals">mercenary</caseparam>
 
684
                                <caseparam type="equals">marshall</caseparam>
 
685
                                <action type="display-model">male</action>
 
686
                        </case>
 
687
                </entitymatch>
 
688
        </modelmapping>
 
689
        
 
690
        
 
691
<!--    <modelmapping name="human">
 
692
                <entitymatch>
 
693
                        <case>
 
694
                                <caseparam type="equals">settler</caseparam>
 
695
                                <caseparam type="equals">merchant</caseparam>
 
696
                                <caseparam type="equals">mercenary</caseparam>
 
697
                                <caseparam type="equals">marshall</caseparam>
 
698
                                <action type="display-model">male</action>
 
699
                                <outfitmatch attachment="body">
 
700
                                        <case>
 
701
                                                <caseparam type="equals">shirt</caseparam>
 
702
                                                <action type="display-part">clothes/burlap</action>
 
703
                                                <attributematch attribute="style">
 
704
                                                        <case>
 
705
                                                                <caseparam type="equals">burlap</caseparam>
 
706
                                                                <action type="display-part">clothes/burlap</action>
 
707
                                                                <attributematch attribute="colour">
 
708
                                                                        <case>
 
709
                                                                                <caseparam type="equals">grey</caseparam>
 
710
                                                                                <attributematch attribute="trimcolour">
 
711
                                                                                        <case>
 
712
                                                                                                <caseparam type="equals">blue</caseparam>
 
713
                                                                                                <action type="display-part">clothes/burlap/grey_blue_trims</action>
 
714
                                                                                        </case>
 
715
                                                                                        <case>
 
716
                                                                                                <caseparam type="equals">red</caseparam>
 
717
                                                                                                <action type="display-part">clothes/burlap/grey_red_trims</action>
 
718
                                                                                        </case>
 
719
                                                                                        <case>
 
720
                                                                                                <caseparam type="equals">yellow</caseparam>
 
721
                                                                                                <action type="display-part">clothes/burlap/grey_yellow_trims</action>
 
722
                                                                                        </case>
 
723
                                                                                        <case>
 
724
                                                                                                <caseparam type="equals">green</caseparam>
 
725
                                                                                                <action type="display-part">clothes/burlap/grey_green_trims</action>
 
726
                                                                                        </case>
 
727
                                                                                </attributematch>
 
728
                                                                        </case>
 
729
                                                                        <case>
 
730
                                                                                <caseparam type="equals">red</caseparam>
 
731
                                                                                <action type="display-part">clothes/burlap/red</action>
 
732
                                                                        </case>
 
733
                                                                        <case>
 
734
                                                                                <caseparam type="equals">yellow</caseparam>
 
735
                                                                                <action type="display-part">clothes/burlap/yellow</action>
 
736
                                                                        </case>
 
737
                                                                        <case>
 
738
                                                                                <caseparam type="equals">green</caseparam>
 
739
                                                                                <action type="display-part">clothes/burlap/green</action>
 
740
                                                                        </case>
 
741
                                                                </attributematch>
 
742
                                                        </case>
 
743
                                                        <case>
 
744
                                                                <caseparam type="equals">ragged</caseparam>
 
745
                                                                <action type="display-part">clothes/ragged</action>
 
746
                                                        </case>
 
747
                                                        <case>
 
748
                                                                <caseparam type="equals">dark_rags</caseparam>
 
749
                                                                <action type="display-part">clothes/dark_rags</action>
 
750
                                                        </case>
 
751
                                                        <case>
 
752
                                                                <caseparam type="equals">sun</caseparam>
 
753
                                                                <action type="display-part">clothes/sun</action>
 
754
                                                        </case>
 
755
                                                        <case>
 
756
                                                                <caseparam type="equals">fine</caseparam>
 
757
                                                                <action type="display-part">clothes/fine</action>
 
758
                                                        </case>
 
759
                                                </attributematch>
 
760
                                        </case>
 
761
                                </outfitmatch>
 
762
                        </case>
 
763
                </entitymatch>
 
764
        </modelmapping> -->
 
765
        <automodelmapping name="creator" />
 
766
 
 
767
        <automodelmapping name="fish" />
 
768
        <automodelmapping name="dog" />
 
769
        <!-- use the spider mesh for the crab for now -->
 
770
        <modelmapping name="spider">
 
771
                <entitymatch>
 
772
                        <case>
 
773
                                <caseparam type="equals">crab</caseparam>
 
774
                                <caseparam type="equals">spider</caseparam>
 
775
                                <action type="display-model">spider</action>
 
776
                                <attributematch attribute="colour">
 
777
                                        <case>
 
778
                                                <caseparam type="equals">carrion</caseparam>
 
779
                                                <action type="display-part">body/carrion</action>
 
780
                                        </case>
 
781
                                        <case>
 
782
                                                <caseparam type="equals">emerald</caseparam>
 
783
                                                <action type="display-part">body/emerald</action>
 
784
                                        </case>
 
785
                                </attributematch>
 
786
                        </case>
 
787
                </entitymatch>
 
788
        </modelmapping> 
 
789
 
 
790
        
 
791
        
 
792
        <automodelmapping name="deer" />
 
793
        <automodelmapping name="squirrel" />
 
794
        <modelmapping name="chicken">
 
795
                <entitymatch>
 
796
                        <case>
 
797
                                <caseparam type="equals">chicken</caseparam>
 
798
                                <action type="display-model">chicken</action>
 
799
                                <attributematch attribute="plumage">
 
800
                                        <case>
 
801
                                                <caseparam type="equals">red</caseparam>
 
802
                                                <action type="display-part">redchicken</action>
 
803
                                        </case>
 
804
                                        <case>
 
805
                                                <caseparam type="equals">grey</caseparam>
 
806
                                                <action type="display-part">greychicken</action>
 
807
                                        </case>
 
808
                                        <case>
 
809
                                                <caseparam type="equals">buzzard</caseparam>
 
810
                                                <action type="display-part">buzzard</action>
 
811
                                        </case>
 
812
                                </attributematch>
 
813
                        </case>
 
814
                </entitymatch>
 
815
        </modelmapping>         
 
816
        <automodelmapping name="pig" />
 
817
        <automodelmapping name="cow" />
 
818
        <automodelmapping name="rabbit" />
 
819
        <automodelmapping name="wolf" />
 
820
        <modelmapping name="skeleton">
 
821
                <entitymatch>
 
822
                        <case>
 
823
                                <caseparam type="equals">skeleton</caseparam>
 
824
                                <caseparam type="equals">lych</caseparam>
 
825
                                <action type="display-model">skeleton</action>
 
826
<!--                            <entitymatch>
 
827
                                        <case equals="lych">
 
828
                                                <caseparam type="equals">lych</caseparam>
 
829
                                                <action type="display-part">Cape</action>
 
830
                                        </case>
 
831
                                </entitymatch>-->
 
832
                        </case>
 
833
                </entitymatch>
 
834
        </modelmapping> 
 
835
        <automodelmapping name="arm" />
 
836
        <automodelmapping name="skull" />
 
837
        <automodelmapping name="shin" />
 
838
        <automodelmapping name="pelvis" />
 
839
        <automodelmapping name="ribcage" />
 
840
        <automodelmapping name="thigh" />
 
841
<!--    <modelmapping name="goblin">
 
842
                <entitymatch>
 
843
                        <case>
 
844
                                <caseparam type="equals">goblin</caseparam>
 
845
                                <action type="display-model">goblin</action>
 
846
                        </case>
 
847
                </entitymatch>
 
848
        </modelmapping> -->
 
849
        <modelmapping name="kobold">
 
850
                <entitymatch>
 
851
                        <case>
 
852
                                <caseparam type="equals">goblin</caseparam>
 
853
                                <action type="display-model">kobold</action>
 
854
                                <attributematch attribute="skincolour">
 
855
                                        <case>
 
856
                                                <caseparam type="equals">brown</caseparam>
 
857
                                                <action type="display-part">body/brown</action>
 
858
                                        </case>
 
859
                                        <case>
 
860
                                                <caseparam type="equals">green</caseparam>
 
861
                                                <action type="display-part">body/brown</action>
 
862
                                        </case>
 
863
                                </attributematch>
 
864
                        </case>
 
865
                </entitymatch>
 
866
        </modelmapping>         
 
867
        
 
868
        <automodelmapping name="horse" />
 
869
        
 
870
<!-- edibled -->
 
871
        <automodelmapping name="ham" />
 
872
        <automodelmapping name="breadslice" />
 
873
        <automodelmapping name="bread_cut" />
 
874
        <modelmapping name="bread">
 
875
                <entitymatch>
 
876
                        <case>
 
877
                                <caseparam type="equals">bread</caseparam>
 
878
                                <caseparam type="equals">loaf</caseparam>
 
879
                                <action type="display-model">bread</action>
 
880
                                <!-- If someone has eaten off the bread show the cut version -->
 
881
                                <attributematch attribute="status" >
 
882
                                        <case>
 
883
                                                <caseparam type="lesser">0.8</caseparam>
 
884
                                                <action type="display-model">bread_cut</action>
 
885
                                        </case>
 
886
                                </attributematch>
 
887
                        </case>
 
888
                </entitymatch>
 
889
        </modelmapping> 
 
890
 
 
891
        
 
892
        
 
893
        <automodelmapping name="crate" />
 
894
        <automodelmapping name="open_crate" />
 
895
        
 
896
        
 
897
        <automodelmapping name="fence_pole" />
 
898
        <automodelmapping name="fence_section" modelname="wooden_fence" />
 
899
        <automodelmapping name="fence_gate" modelname="wooden_gate" />
 
900
        
 
901
        <modelmapping name="theodolite">
 
902
                <entitymatch>
 
903
                        <case>
 
904
                                <caseparam type="equals">theodolite</caseparam>
 
905
                                <action type="display-model">placeholder</action>
 
906
                        </case>
 
907
                </entitymatch>
 
908
        </modelmapping>
 
909
        
 
910
        <!--
 
911
                Show a placeholder for all instances of game_entity, except for those that we want to exclude by adding a nomodel element for.
 
912
                -->
 
913
        <automodelmapping name="game_entity" modelname="placeholder" />
 
914
        <nomodel name="boundary" />
 
915
        <nomodel name="path" />
 
916
        <nomodel name="ploughed_field" />
 
917
        <nomodel name="weather" />
 
918
        <nomodel name="wall" /> <!-- This is the invisble wall for the houses -->
 
919
 
 
920
</modelmappings>