SceneTrigger.java 450 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
package emu.grasscutter.scripts.data;

public class SceneTrigger {
	public String name;
	public int config_id;
	public int event;
	public String source;
	public String condition;
	public String action;
10
11
12
13
14
15
16
17
18
19
20
21
22
23

	@Override
	public boolean equals(Object obj) {
		if(obj instanceof SceneTrigger sceneTrigger){
			return this.name.equals(sceneTrigger.name);
		}
		return super.equals(obj);
	}

	@Override
	public int hashCode() {
		return name.hashCode();
	}

24
}