mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Terrain brush implemented.
This commit is contained in:
19
tilorswift/js/events/TilorswiftFieldClickedEvent.js
Normal file
19
tilorswift/js/events/TilorswiftFieldClickedEvent.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import TilorswiftEvent from "./TilorswiftEvent.js";
|
||||
|
||||
export default class TilorswiftFieldClickedEvent extends CustomEvent
|
||||
{
|
||||
constructor(field)
|
||||
{
|
||||
super(
|
||||
TilorswiftEvent.FIELD_CLICKED,
|
||||
{
|
||||
detail: {field: field}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
getField()
|
||||
{
|
||||
return this.detail.field;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user