Skip to content

Commit 0f9632b

Browse files
committed
Removed unused parameter
1 parent 1fbb2b4 commit 0f9632b

File tree

3 files changed

+76
-76
lines changed

3 files changed

+76
-76
lines changed

LDtkMonogame.Examples/Assets/LDtkMonogameExample.ldtk

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,23 @@
10001000
}
10011001
],
10021002
"entities": [
1003+
{
1004+
"identifier": "PlayerSpawn",
1005+
"uid": 70,
1006+
"width": 16,
1007+
"height": 16,
1008+
"color": "#ED3131",
1009+
"renderMode": "Cross",
1010+
"showName": true,
1011+
"tilesetId": null,
1012+
"tileId": null,
1013+
"tileRenderMode": "Stretch",
1014+
"maxPerLevel": 1,
1015+
"limitBehavior": "MoveLastOne",
1016+
"pivotX": 0.5,
1017+
"pivotY": 1,
1018+
"fieldDefs": []
1019+
},
10031020
{
10041021
"identifier": "Door",
10051022
"uid": 52,
@@ -1214,7 +1231,7 @@
12141231
"height": 12,
12151232
"color": "#2E55EC",
12161233
"renderMode": "Tile",
1217-
"showName": true,
1234+
"showName": false,
12181235
"tilesetId": 89,
12191236
"tileId": 0,
12201237
"tileRenderMode": "Crop",
@@ -1223,23 +1240,6 @@
12231240
"pivotX": 0.5,
12241241
"pivotY": 1,
12251242
"fieldDefs": []
1226-
},
1227-
{
1228-
"identifier": "PlayerSpawn",
1229-
"uid": 70,
1230-
"width": 16,
1231-
"height": 16,
1232-
"color": "#ED3131",
1233-
"renderMode": "Cross",
1234-
"showName": true,
1235-
"tilesetId": null,
1236-
"tileId": null,
1237-
"tileRenderMode": "Stretch",
1238-
"maxPerLevel": 1,
1239-
"limitBehavior": "MoveLastOne",
1240-
"pivotX": 0.5,
1241-
"pivotY": 1,
1242-
"fieldDefs": []
12431243
}
12441244
],
12451245
"tilesets": [

LDtkMonogame.Examples/Assets/LDtkMonogameExample/0000-Level1.ldtkl

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"seed": 2741773,
4444
"gridTiles": [],
4545
"entityInstances": [
46-
{ "__identifier": "Crate", "__grid": [14,4], "__pivot": [0.5,1], "__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] }, "defUid": 56, "px": [464,160], "fieldInstances": [
46+
{ "__identifier": "Crate", "__grid": [13,4], "__pivot": [0.5,1], "__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] }, "defUid": 56, "px": [432,160], "fieldInstances": [
4747
{ "__identifier": "integer", "__value": 3, "__type": "Int", "defUid": 62, "realEditorValues": [] },
4848
{ "__identifier": "dec", "__value": 3, "__type": "Float", "defUid": 63, "realEditorValues": [] },
4949
{ "__identifier": "boolean", "__value": true, "__type": "Bool", "defUid": 64, "realEditorValues": [] },
@@ -67,12 +67,12 @@
6767
},
6868
{
6969
"__identifier": "point",
70-
"__value": { "cx": 13, "cy": 3 },
70+
"__value": { "cx": 12, "cy": 3 },
7171
"__type": "Point",
7272
"defUid": 68,
7373
"realEditorValues": [{
7474
"id": "V_String",
75-
"params": ["13,3"]
75+
"params": ["12,3"]
7676
}]
7777
},
7878
{
@@ -86,7 +86,7 @@
8686
}]
8787
}
8888
] },
89-
{ "__identifier": "Crate", "__grid": [11,1], "__pivot": [0.5,1], "__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] }, "defUid": 56, "px": [368,64], "fieldInstances": [
89+
{ "__identifier": "Crate", "__grid": [10,1], "__pivot": [0.5,1], "__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] }, "defUid": 56, "px": [336,64], "fieldInstances": [
9090
{ "__identifier": "integer", "__value": 3, "__type": "Int", "defUid": 62, "realEditorValues": [] },
9191
{ "__identifier": "dec", "__value": 3, "__type": "Float", "defUid": 63, "realEditorValues": [] },
9292
{ "__identifier": "boolean", "__value": true, "__type": "Bool", "defUid": 64, "realEditorValues": [] },
@@ -111,7 +111,7 @@
111111
}]
112112
}
113113
] },
114-
{ "__identifier": "PlayerSpawn", "__grid": [4,4], "__pivot": [0.5,1], "__tile": null, "defUid": 70, "px": [144,160], "fieldInstances": [] },
114+
{ "__identifier": "PlayerSpawn", "__grid": [2,4], "__pivot": [0.5,1], "__tile": null, "defUid": 70, "px": [80,160], "fieldInstances": [] },
115115
{ "__identifier": "Crate", "__grid": [6,1], "__pivot": [0.5,1], "__tile": { "tilesetUid": 60, "srcRect": [0,0,21,21] }, "defUid": 56, "px": [208,64], "fieldInstances": [
116116
{ "__identifier": "integer", "__value": 3, "__type": "Int", "defUid": 62, "realEditorValues": [] },
117117
{ "__identifier": "dec", "__value": 3, "__type": "Float", "defUid": 63, "realEditorValues": [] },
@@ -176,9 +176,9 @@
176176
}] },
177177
{ "__identifier": "Diamond", "__grid": [8,4], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [272,160], "fieldInstances": [] },
178178
{ "__identifier": "Diamond", "__grid": [7,4], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [240,160], "fieldInstances": [] },
179-
{ "__identifier": "Diamond", "__grid": [12,4], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [400,160], "fieldInstances": [] },
180-
{ "__identifier": "Diamond", "__grid": [12,6], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [400,224], "fieldInstances": [] },
179+
{ "__identifier": "Diamond", "__grid": [11,4], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [368,160], "fieldInstances": [] },
181180
{ "__identifier": "Diamond", "__grid": [11,6], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [368,224], "fieldInstances": [] },
181+
{ "__identifier": "Diamond", "__grid": [10,6], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [336,224], "fieldInstances": [] },
182182
{ "__identifier": "Diamond", "__grid": [9,6], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [304,224], "fieldInstances": [] },
183183
{ "__identifier": "Diamond", "__grid": [7,1], "__pivot": [0.5,1], "__tile": { "tilesetUid": 89, "srcRect": [0,0,12,12] }, "defUid": 88, "px": [240,64], "fieldInstances": [] }
184184
]
@@ -203,27 +203,25 @@
203203
"seed": 4841070,
204204
"gridTiles": [
205205
{ "px": [288,32], "src": [32,32], "f": 0, "t": 8, "d": [25] },
206-
{ "px": [384,32], "src": [32,32], "f": 0, "t": 8, "d": [28] },
206+
{ "px": [352,32], "src": [32,32], "f": 0, "t": 8, "d": [27] },
207207
{ "px": [192,64], "src": [64,64], "f": 0, "t": 16, "d": [38] },
208208
{ "px": [224,64], "src": [128,64], "f": 0, "t": 18, "d": [39] },
209209
{ "px": [288,64], "src": [32,128], "f": 0, "t": 29, "d": [41] },
210-
{ "px": [352,64], "src": [160,32], "f": 0, "t": 12, "d": [43] },
211-
{ "px": [384,64], "src": [32,96], "f": 0, "t": 22, "d": [44] },
210+
{ "px": [320,64], "src": [160,32], "f": 0, "t": 12, "d": [42] },
211+
{ "px": [352,64], "src": [32,96], "f": 0, "t": 22, "d": [43] },
212212
{ "px": [192,96], "src": [64,96], "f": 0, "t": 23, "d": [54] },
213213
{ "px": [224,96], "src": [96,96], "f": 0, "t": 24, "d": [55] },
214214
{ "px": [288,96], "src": [128,96], "f": 0, "t": 25, "d": [57] },
215-
{ "px": [320,96], "src": [160,96], "f": 0, "t": 26, "d": [58] },
216-
{ "px": [384,96], "src": [128,96], "f": 0, "t": 25, "d": [60] },
217-
{ "px": [416,96], "src": [160,96], "f": 0, "t": 26, "d": [61] },
215+
{ "px": [352,96], "src": [128,96], "f": 0, "t": 25, "d": [59] },
216+
{ "px": [384,96], "src": [160,96], "f": 0, "t": 26, "d": [60] },
218217
{ "px": [192,128], "src": [64,128], "f": 0, "t": 30, "d": [70] },
219218
{ "px": [224,128], "src": [96,128], "f": 0, "t": 31, "d": [71] },
220219
{ "px": [288,128], "src": [128,128], "f": 0, "t": 32, "d": [73] },
221-
{ "px": [320,128], "src": [160,128], "f": 0, "t": 33, "d": [74] },
222-
{ "px": [384,128], "src": [128,128], "f": 0, "t": 32, "d": [76] },
223-
{ "px": [416,128], "src": [160,128], "f": 0, "t": 33, "d": [77] },
220+
{ "px": [352,128], "src": [128,128], "f": 0, "t": 32, "d": [75] },
221+
{ "px": [384,128], "src": [160,128], "f": 0, "t": 33, "d": [76] },
224222
{ "px": [256,160], "src": [128,32], "f": 0, "t": 11, "d": [88] },
225-
{ "px": [384,160], "src": [64,32], "f": 0, "t": 9, "d": [92] },
226-
{ "px": [416,160], "src": [96,32], "f": 0, "t": 10, "d": [93] },
223+
{ "px": [352,160], "src": [64,32], "f": 0, "t": 9, "d": [91] },
224+
{ "px": [384,160], "src": [96,32], "f": 0, "t": 10, "d": [92] },
227225
{ "px": [256,192], "src": [128,32], "f": 0, "t": 11, "d": [104] }
228226
],
229227
"entityInstances": []
@@ -265,20 +263,22 @@
265263
{ "coordId": 18, "v": 0 },
266264
{ "coordId": 19, "v": 0 },
267265
{ "coordId": 20, "v": 0 },
266+
{ "coordId": 29, "v": 0 },
268267
{ "coordId": 30, "v": 0 },
269268
{ "coordId": 31, "v": 0 },
270269
{ "coordId": 32, "v": 0 },
271270
{ "coordId": 33, "v": 0 },
272271
{ "coordId": 34, "v": 0 },
273272
{ "coordId": 38, "v": 1 },
274273
{ "coordId": 39, "v": 1 },
275-
{ "coordId": 43, "v": 1 },
274+
{ "coordId": 42, "v": 1 },
275+
{ "coordId": 46, "v": 0 },
276276
{ "coordId": 47, "v": 0 },
277277
{ "coordId": 48, "v": 0 },
278-
{ "coordId": 49, "v": 0 },
278+
{ "coordId": 62, "v": 0 },
279279
{ "coordId": 63, "v": 0 },
280280
{ "coordId": 64, "v": 0 },
281-
{ "coordId": 65, "v": 0 },
281+
{ "coordId": 78, "v": 0 },
282282
{ "coordId": 79, "v": 0 },
283283
{ "coordId": 80, "v": 0 },
284284
{ "coordId": 81, "v": 0 },
@@ -289,8 +289,9 @@
289289
{ "coordId": 86, "v": 0 },
290290
{ "coordId": 87, "v": 0 },
291291
{ "coordId": 88, "v": 1 },
292+
{ "coordId": 91, "v": 1 },
292293
{ "coordId": 92, "v": 1 },
293-
{ "coordId": 93, "v": 1 },
294+
{ "coordId": 93, "v": 0 },
294295
{ "coordId": 94, "v": 0 },
295296
{ "coordId": 95, "v": 0 },
296297
{ "coordId": 96, "v": 0 },
@@ -326,7 +327,6 @@
326327
{ "px": [288,64], "src": [64,256], "f": 0, "t": 154, "d": [16,41] },
327328
{ "px": [320,64], "src": [64,256], "f": 0, "t": 154, "d": [16,42] },
328329
{ "px": [352,64], "src": [64,256], "f": 0, "t": 154, "d": [16,43] },
329-
{ "px": [384,64], "src": [64,256], "f": 0, "t": 154, "d": [16,44] },
330330
{ "px": [128,96], "src": [64,256], "f": 0, "t": 154, "d": [16,52] },
331331
{ "px": [160,96], "src": [64,256], "f": 0, "t": 154, "d": [16,53] },
332332
{ "px": [192,96], "src": [64,256], "f": 0, "t": 154, "d": [16,54] },
@@ -336,26 +336,24 @@
336336
{ "px": [320,96], "src": [64,256], "f": 0, "t": 154, "d": [16,58] },
337337
{ "px": [352,96], "src": [64,256], "f": 0, "t": 154, "d": [16,59] },
338338
{ "px": [384,96], "src": [64,256], "f": 0, "t": 154, "d": [16,60] },
339-
{ "px": [416,96], "src": [64,256], "f": 0, "t": 154, "d": [16,61] },
340339
{ "px": [288,128], "src": [64,256], "f": 0, "t": 154, "d": [16,73] },
341340
{ "px": [320,128], "src": [64,256], "f": 0, "t": 154, "d": [16,74] },
342341
{ "px": [352,128], "src": [64,256], "f": 0, "t": 154, "d": [16,75] },
343-
{ "px": [384,128], "src": [64,256], "f": 0, "t": 154, "d": [16,76] },
344342
{ "px": [288,160], "src": [64,256], "f": 0, "t": 154, "d": [16,89] },
345343
{ "px": [320,160], "src": [64,256], "f": 0, "t": 154, "d": [16,90] },
346344
{ "px": [352,160], "src": [64,256], "f": 0, "t": 154, "d": [16,91] },
347-
{ "px": [384,160], "src": [64,256], "f": 0, "t": 154, "d": [16,92] },
348-
{ "px": [448,96], "src": [32,256], "f": 1, "t": 153, "d": [19,62] },
345+
{ "px": [416,96], "src": [32,256], "f": 1, "t": 153, "d": [19,61] },
349346
{ "px": [256,160], "src": [32,256], "f": 0, "t": 153, "d": [19,88] },
350-
{ "px": [416,160], "src": [32,256], "f": 1, "t": 153, "d": [19,93] },
347+
{ "px": [384,160], "src": [32,256], "f": 1, "t": 153, "d": [19,92] },
351348
{ "px": [192,32], "src": [64,224], "f": 0, "t": 135, "d": [18,22] },
352349
{ "px": [224,32], "src": [64,224], "f": 0, "t": 135, "d": [18,23] },
353350
{ "px": [256,32], "src": [64,224], "f": 0, "t": 135, "d": [18,24] },
354351
{ "px": [288,32], "src": [64,224], "f": 0, "t": 135, "d": [18,25] },
355352
{ "px": [320,32], "src": [64,224], "f": 0, "t": 135, "d": [18,26] },
356353
{ "px": [352,32], "src": [64,224], "f": 0, "t": 135, "d": [18,27] },
357-
{ "px": [384,32], "src": [64,224], "f": 0, "t": 135, "d": [18,28] },
358354
{ "px": [128,64], "src": [64,224], "f": 0, "t": 135, "d": [18,36] },
355+
{ "px": [64,96], "src": [64,224], "f": 0, "t": 135, "d": [18,50] },
356+
{ "px": [64,128], "src": [64,288], "f": 0, "t": 173, "d": [21,66] },
359357
{ "px": [96,128], "src": [64,288], "f": 0, "t": 173, "d": [21,67] },
360358
{ "px": [128,128], "src": [64,288], "f": 0, "t": 173, "d": [21,68] },
361359
{ "px": [160,128], "src": [64,288], "f": 0, "t": 173, "d": [21,69] },
@@ -364,35 +362,35 @@
364362
{ "px": [288,192], "src": [64,288], "f": 0, "t": 173, "d": [21,105] },
365363
{ "px": [320,192], "src": [64,288], "f": 0, "t": 173, "d": [21,106] },
366364
{ "px": [352,192], "src": [64,288], "f": 0, "t": 173, "d": [21,107] },
367-
{ "px": [384,192], "src": [64,288], "f": 0, "t": 173, "d": [21,108] },
368365
{ "px": [160,64], "src": [224,256], "f": 1, "t": 159, "d": [24,37] },
369-
{ "px": [416,64], "src": [224,256], "f": 0, "t": 159, "d": [24,45] },
366+
{ "px": [384,64], "src": [224,256], "f": 0, "t": 159, "d": [24,44] },
370367
{ "px": [96,96], "src": [224,256], "f": 1, "t": 159, "d": [24,51] },
371368
{ "px": [256,128], "src": [224,224], "f": 1, "t": 140, "d": [22,72] },
372-
{ "px": [416,128], "src": [224,224], "f": 0, "t": 140, "d": [22,77] },
373-
{ "px": [64,128], "src": [32,288], "f": 0, "t": 172, "d": [23,66] },
374-
{ "px": [448,128], "src": [32,288], "f": 1, "t": 172, "d": [23,78] },
369+
{ "px": [384,128], "src": [224,224], "f": 0, "t": 140, "d": [22,76] },
370+
{ "px": [32,128], "src": [32,288], "f": 0, "t": 172, "d": [23,65] },
371+
{ "px": [416,128], "src": [32,288], "f": 1, "t": 172, "d": [23,77] },
375372
{ "px": [256,192], "src": [32,288], "f": 0, "t": 172, "d": [23,104] },
376373
{ "px": [160,32], "src": [32,224], "f": 0, "t": 134, "d": [17,21] },
377-
{ "px": [416,32], "src": [32,224], "f": 1, "t": 134, "d": [17,29] },
374+
{ "px": [384,32], "src": [32,224], "f": 1, "t": 134, "d": [17,28] },
378375
{ "px": [96,64], "src": [32,224], "f": 0, "t": 134, "d": [17,35] },
379-
{ "px": [448,64], "src": [32,224], "f": 1, "t": 134, "d": [17,46] },
380-
{ "px": [64,96], "src": [32,224], "f": 0, "t": 134, "d": [17,50] },
376+
{ "px": [416,64], "src": [32,224], "f": 1, "t": 134, "d": [17,45] },
377+
{ "px": [32,96], "src": [32,224], "f": 0, "t": 134, "d": [17,49] },
378+
{ "px": [416,192], "src": [64,352], "f": 0, "t": 211, "d": [37,109] },
381379
{ "px": [448,192], "src": [64,352], "f": 0, "t": 211, "d": [37,110] },
382380
{ "px": [480,192], "src": [64,352], "f": 0, "t": 211, "d": [37,111] },
383-
{ "px": [416,192], "src": [224,352], "f": 0, "t": 216, "d": [58,109] },
384-
{ "px": [32,160], "src": [256,64], "f": 1, "t": 46, "d": [12,81] },
381+
{ "px": [384,192], "src": [224,352], "f": 0, "t": 216, "d": [58,108] },
382+
{ "px": [0,160], "src": [256,64], "f": 1, "t": 46, "d": [12,80] },
385383
{ "px": [224,224], "src": [256,64], "f": 1, "t": 46, "d": [12,119] },
386384
{ "px": [128,0], "src": [256,32], "f": 1, "t": 27, "d": [11,4] },
387-
{ "px": [448,0], "src": [256,32], "f": 0, "t": 27, "d": [11,14] },
385+
{ "px": [416,0], "src": [256,32], "f": 0, "t": 27, "d": [11,13] },
388386
{ "px": [64,32], "src": [256,32], "f": 1, "t": 27, "d": [11,18] },
389-
{ "px": [480,32], "src": [256,32], "f": 0, "t": 27, "d": [11,31] },
390-
{ "px": [32,64], "src": [256,32], "f": 1, "t": 27, "d": [11,33] },
391-
{ "px": [480,64], "src": [32,64], "f": 0, "t": 39, "d": [9,47] },
392-
{ "px": [32,96], "src": [32,64], "f": 1, "t": 39, "d": [9,49] },
393-
{ "px": [480,96], "src": [32,64], "f": 0, "t": 39, "d": [9,63] },
394-
{ "px": [32,128], "src": [32,64], "f": 1, "t": 39, "d": [9,65] },
395-
{ "px": [480,128], "src": [32,64], "f": 0, "t": 39, "d": [9,79] },
387+
{ "px": [448,32], "src": [256,32], "f": 0, "t": 27, "d": [11,30] },
388+
{ "px": [0,64], "src": [256,32], "f": 1, "t": 27, "d": [11,32] },
389+
{ "px": [448,64], "src": [32,64], "f": 0, "t": 39, "d": [9,46] },
390+
{ "px": [0,96], "src": [32,64], "f": 1, "t": 39, "d": [9,48] },
391+
{ "px": [448,96], "src": [32,64], "f": 0, "t": 39, "d": [9,62] },
392+
{ "px": [0,128], "src": [32,64], "f": 1, "t": 39, "d": [9,64] },
393+
{ "px": [448,128], "src": [32,64], "f": 0, "t": 39, "d": [9,78] },
396394
{ "px": [224,192], "src": [32,64], "f": 1, "t": 39, "d": [9,103] },
397395
{ "px": [160,0], "src": [64,96], "f": 0, "t": 59, "d": [13,5] },
398396
{ "px": [192,0], "src": [64,96], "f": 0, "t": 59, "d": [13,6] },
@@ -402,9 +400,10 @@
402400
{ "px": [320,0], "src": [64,96], "f": 0, "t": 59, "d": [13,10] },
403401
{ "px": [352,0], "src": [64,96], "f": 0, "t": 59, "d": [13,11] },
404402
{ "px": [384,0], "src": [64,96], "f": 0, "t": 59, "d": [13,12] },
405-
{ "px": [416,0], "src": [64,96], "f": 0, "t": 59, "d": [13,13] },
406403
{ "px": [96,32], "src": [64,96], "f": 0, "t": 59, "d": [13,19] },
404+
{ "px": [32,64], "src": [64,96], "f": 0, "t": 59, "d": [13,33] },
407405
{ "px": [480,160], "src": [64,96], "f": 0, "t": 59, "d": [13,95] },
406+
{ "px": [32,160], "src": [64,32], "f": 0, "t": 21, "d": [7,81] },
408407
{ "px": [64,160], "src": [64,32], "f": 0, "t": 21, "d": [7,82] },
409408
{ "px": [96,160], "src": [64,32], "f": 0, "t": 21, "d": [7,83] },
410409
{ "px": [128,160], "src": [64,32], "f": 0, "t": 21, "d": [7,84] },
@@ -419,10 +418,11 @@
419418
{ "px": [448,224], "src": [64,32], "f": 0, "t": 21, "d": [7,126] },
420419
{ "px": [480,224], "src": [64,32], "f": 0, "t": 21, "d": [7,127] },
421420
{ "px": [128,32], "src": [32,96], "f": 1, "t": 58, "d": [14,20] },
422-
{ "px": [448,32], "src": [32,96], "f": 0, "t": 58, "d": [14,30] },
421+
{ "px": [416,32], "src": [32,96], "f": 0, "t": 58, "d": [14,29] },
423422
{ "px": [64,64], "src": [32,96], "f": 1, "t": 58, "d": [14,34] },
424423
{ "px": [224,160], "src": [32,32], "f": 1, "t": 20, "d": [5,87] },
425-
{ "px": [448,160], "src": [32,160], "f": 0, "t": 96, "d": [26,94] }
424+
{ "px": [448,160], "src": [256,160], "f": 0, "t": 103, "d": [54,94] },
425+
{ "px": [416,160], "src": [32,160], "f": 0, "t": 96, "d": [26,93] }
426426
],
427427
"seed": 8622444,
428428
"gridTiles": [],

LDtkMonogame/Types/Level.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,29 +214,29 @@ private void ParseBaseEntityFields<T>(T entity, EntityInstance entityInstance)
214214
{
215215
var entityDefinition = owner.GetEntityDefinitionFromUid(entityInstance.DefUid);
216216

217-
ParseBaseField<T>(entity, entityInstance, "Position", new Vector2(entityInstance.Px[0], entityInstance.Px[1]) + Position);
218-
ParseBaseField<T>(entity, entityInstance, "LevelPosition", new Vector2(entityInstance.Px[0], entityInstance.Px[1]));
217+
ParseBaseField<T>(entity, "Position", new Vector2(entityInstance.Px[0], entityInstance.Px[1]) + Position);
218+
ParseBaseField<T>(entity, "LevelPosition", new Vector2(entityInstance.Px[0], entityInstance.Px[1]));
219219

220-
ParseBaseField<T>(entity, entityInstance, "Pivot", new Vector2((float)entityInstance.Pivot[0], (float)entityInstance.Pivot[1]));
220+
ParseBaseField<T>(entity, "Pivot", new Vector2((float)entityInstance.Pivot[0], (float)entityInstance.Pivot[1]));
221221

222222
if (entityInstance.Tile != null)
223223
{
224-
ParseBaseField<T>(entity, entityInstance, "Texture", owner.GetTilesetTextureFromUid(entityInstance.Tile.TilesetUid));
224+
ParseBaseField<T>(entity, "Texture", owner.GetTilesetTextureFromUid(entityInstance.Tile.TilesetUid));
225225
}
226226

227-
ParseBaseField<T>(entity, entityInstance, "Size", new Vector2(entityDefinition.Width, entityDefinition.Height));
227+
ParseBaseField<T>(entity, "Size", new Vector2(entityDefinition.Width, entityDefinition.Height));
228228
#if DEBUG
229-
ParseBaseField<T>(entity, entityInstance, "EditorVisualColor", Utility.ConvertStringToColor(entityDefinition.Color, 128));
229+
ParseBaseField<T>(entity, "EditorVisualColor", Utility.ConvertStringToColor(entityDefinition.Color, 128));
230230
#endif
231231
if (entityDefinition.TilesetId.HasValue)
232232
{
233233
var tileDefinition = entityInstance.Tile;
234234
Rectangle rect = new Rectangle((int)tileDefinition.SrcRect[0], (int)tileDefinition.SrcRect[1], (int)tileDefinition.SrcRect[2], (int)tileDefinition.SrcRect[3]);
235-
ParseBaseField<T>(entity, entityInstance, "Tile", rect);
235+
ParseBaseField<T>(entity, "Tile", rect);
236236
}
237237
}
238238

239-
void ParseBaseField<T>(T entity, EntityInstance entityInstance, string field, object value)
239+
void ParseBaseField<T>(T entity, string field, object value)
240240
{
241241
// WorldPosition
242242
var variable = typeof(T).GetProperty(field);

0 commit comments

Comments
 (0)