mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:32:55 +08:00
perf: add Serial annotation here
This commit is contained in:
parent
aeadf6bba7
commit
7ee644c794
@ -3,10 +3,13 @@ package emu.grasscutter.data.binout;
|
||||
import com.google.gson.*;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.*;
|
||||
|
||||
public class AbilityMixinData implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -2001232313615923575L;
|
||||
|
||||
public enum Type {
|
||||
|
@ -3,10 +3,13 @@ package emu.grasscutter.data.binout;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import emu.grasscutter.data.common.DynamicFloat;
|
||||
import emu.grasscutter.game.props.ElementType;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import lombok.ToString;
|
||||
|
||||
public class AbilityModifier implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -2001232313615923575L;
|
||||
|
||||
public State state;
|
||||
|
@ -8,6 +8,7 @@ import lombok.*;
|
||||
|
||||
@Entity
|
||||
public final class GridPosition implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -2001232300615923575L;
|
||||
|
||||
@Getter @Setter private int x;
|
||||
|
@ -5,6 +5,8 @@ import com.google.gson.annotations.SerializedName;
|
||||
import dev.morphia.annotations.Entity;
|
||||
import emu.grasscutter.net.proto.VectorOuterClass.Vector;
|
||||
import emu.grasscutter.utils.Utils;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import lombok.*;
|
||||
@ -13,6 +15,7 @@ import lombok.experimental.Accessors;
|
||||
@Entity
|
||||
@Accessors(chain = true)
|
||||
public class Position implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -2001232313615923575L;
|
||||
|
||||
public static final Position ZERO = new Position(0, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user