blades-engine fix kiss parts being ignored
This commit is contained in:
@@ -29,11 +29,9 @@ class ScenData {
|
||||
|
||||
assert(floorData[95].name == "Floor", "floor is floor");
|
||||
assert(floorData[95].which_sheet == 704, "floor gets the right spritesheet");
|
||||
trace(floorData[129]);
|
||||
assert(floorData[129].name == "Floor", "floors can import other floors' data");
|
||||
assert(floorData[129].which_sheet == 704, "floors can import other floors' data");
|
||||
assert(floorData[129].specialProperty() == BlockedToNPCs, "blocked special property becomes enum");
|
||||
trace(terrainData[12].name);
|
||||
assert(terrainData[12].name == "Door", "door is door");
|
||||
|
||||
trace('$passed assertions passed');
|
||||
|
@@ -6,6 +6,7 @@ using Reflect;
|
||||
import data.FloorData;
|
||||
|
||||
import flixel.input.keyboard.FlxKey;
|
||||
import kiss.Prelude;
|
||||
|
||||
enum Direction {
|
||||
North;
|
||||
@@ -58,6 +59,7 @@ enum TerrainSpecialProperty {
|
||||
QuickFlammable;
|
||||
}
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class TerrainData {
|
||||
public function new() {}
|
||||
|
||||
|
@@ -42,4 +42,5 @@
|
||||
(42 ShimmerLightAndDark)
|
||||
(43 (Waterfall South))
|
||||
(44 (Waterfall East))
|
||||
(45 QuickFlammable)))
|
||||
(45 QuickFlammable)
|
||||
(otherwise (throw "undefined special_property"))))
|
Reference in New Issue
Block a user