aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-08-08 22:45:20 +0900
committersyeyoung <cyong06@naver.com>2021-08-08 22:45:20 +0900
commitdb58612b03889d5911c99f5b3878b31f9b4f9e92 (patch)
treedc11f6af1fa070baba7eb6351052d4f8d95e76ea /src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct
parenteaaac61857654f7f629fa9ada669f40301009e31 (diff)
downloadSkyblock-Dungeons-Guide-db58612b03889d5911c99f5b3878b31f9b4f9e92.tar.gz
Skyblock-Dungeons-Guide-db58612b03889d5911c99f5b3878b31f9b4f9e92.tar.bz2
Skyblock-Dungeons-Guide-db58612b03889d5911c99f5b3878b31f9b4f9e92.zip
- Field Orders
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivity.java9
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityAssets.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityParty.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivitySecrets.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityTimestamps.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordCreateParams.java11
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordEntitlement.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordFileStat.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageDimensions.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageHandle.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordInputMode.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordLobby.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordOAuth2Token.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPartySize.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPresence.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordRelationship.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSku.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSkuPrice.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUser.java8
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUserAchievement.java8
20 files changed, 164 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivity.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivity.java
index 3b6951a2..d257b414 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivity.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivity.java
@@ -23,6 +23,10 @@ import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.enumuration.EDiscordActivityType;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.Int64;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordActivity extends DiscordStruct {
public EDiscordActivityType activityType = EDiscordActivityType.DiscordActivityType_Playing;
@@ -39,4 +43,9 @@ public class DiscordActivity extends DiscordStruct {
public static class ByReference extends DiscordActivity implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordActivity implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("activityType", "applicationId", "name", "state", "details", "timestamps", "assets", "party", "secrets", "instance");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityAssets.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityAssets.java
index 5908fb1d..03b64f46 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityAssets.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityAssets.java
@@ -21,6 +21,9 @@ package kr.syeyoung.dungeonsguide.gamesdk.jna.datastruct;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordActivityAssets extends DiscordStruct{
public byte[] large_image = new byte[128];
@@ -31,4 +34,9 @@ public class DiscordActivityAssets extends DiscordStruct{
public static class ByReference extends DiscordActivityAssets implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordActivityAssets implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("large_image", "large_text", "small_image", "small_text");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityParty.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityParty.java
index 697cb6b8..b9a20db3 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityParty.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityParty.java
@@ -21,6 +21,9 @@ package kr.syeyoung.dungeonsguide.gamesdk.jna.datastruct;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordActivityParty extends DiscordStruct {
public byte[] id = new byte[128];
@@ -29,4 +32,9 @@ public class DiscordActivityParty extends DiscordStruct {
public static class ByReference extends DiscordActivityParty implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordActivityParty implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("id", "discordActivityParty");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivitySecrets.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivitySecrets.java
index db8f42e9..2975f97f 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivitySecrets.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivitySecrets.java
@@ -21,6 +21,9 @@ package kr.syeyoung.dungeonsguide.gamesdk.jna.datastruct;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordActivitySecrets extends DiscordStruct {
public byte[] match = new byte[128];
@@ -30,4 +33,9 @@ public class DiscordActivitySecrets extends DiscordStruct {
public static class ByReference extends DiscordActivitySecrets implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordActivitySecrets implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("match", "join", "spectate");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityTimestamps.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityTimestamps.java
index 6f0c5f04..4765ffb9 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityTimestamps.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordActivityTimestamps.java
@@ -22,6 +22,9 @@ import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordTimestamp;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordActivityTimestamps extends DiscordStruct {
public DiscordTimestamp start = new DiscordTimestamp();
public DiscordTimestamp end = new DiscordTimestamp();
@@ -29,4 +32,9 @@ public class DiscordActivityTimestamps extends DiscordStruct {
public static class ByReference extends DiscordActivityTimestamps implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordActivityTimestamps implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("start", "end");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordCreateParams.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordCreateParams.java
index edb29844..8e230b73 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordCreateParams.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordCreateParams.java
@@ -25,6 +25,9 @@ import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordClientID;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordVersion;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.UInt64;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordCreateParams extends DiscordStruct { public DiscordCreateParams() {super();} public DiscordCreateParams(Pointer pointer) {super(pointer);}
public DiscordClientID client_id = new DiscordClientID();
public UInt64 flags = new UInt64();
@@ -57,4 +60,12 @@ public class DiscordCreateParams extends DiscordStruct { public DiscordCreatePar
public static class ByReference extends DiscordCreateParams implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordCreateParams implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("client_id", "flags", "events", "event_data", "application_events", "application_version", "user_events",
+ "user_version", "image_events", "image_version", "activity_events", "activity_version", "lobby_events", "lobby_version",
+ "network_events", "network_version", "overlay_events", "overlay_version", "storage_events", "storage_version", "store_events",
+ "store_version", "voice_events", "voice_version", "achievement_events", "achievement_version");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordEntitlement.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordEntitlement.java
index d3d4361e..6e0f29ac 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordEntitlement.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordEntitlement.java
@@ -23,6 +23,9 @@ import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.enumuration.EDiscordEntitlementType;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordSnowflake;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordEntitlement extends DiscordStruct {
public DiscordSnowflake id = new DiscordSnowflake();
public EDiscordEntitlementType type = EDiscordEntitlementType.DiscordEntitlementType_Purchase;
@@ -31,4 +34,9 @@ public class DiscordEntitlement extends DiscordStruct {
public static class ByReference extends DiscordEntitlement implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordEntitlement implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("id", "type", "sku_id");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordFileStat.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordFileStat.java
index 200ac74a..a7e38b37 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordFileStat.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordFileStat.java
@@ -23,6 +23,9 @@ import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.UInt64;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordFileStat extends DiscordStruct {
public byte[] filename = new byte[260];
public UInt64 size = new UInt64();
@@ -31,4 +34,9 @@ public class DiscordFileStat extends DiscordStruct {
public static class ByReference extends DiscordFileStat implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordFileStat implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("filename", "size", "last_modified");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageDimensions.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageDimensions.java
index 6d569993..d3247b07 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageDimensions.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageDimensions.java
@@ -22,6 +22,9 @@ import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.UInt32;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordImageDimensions extends DiscordStruct {
public UInt32 width = new UInt32();
public UInt32 height = new UInt32();
@@ -29,4 +32,9 @@ public class DiscordImageDimensions extends DiscordStruct {
public static class ByReference extends DiscordImageDimensions implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) { super(pointer);}}
public static class ByValue extends DiscordImageDimensions implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) { super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("width", "height");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageHandle.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageHandle.java
index 1eafce70..851ba360 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageHandle.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordImageHandle.java
@@ -24,6 +24,9 @@ import kr.syeyoung.dungeonsguide.gamesdk.jna.enumuration.EDiscordImageType;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.Int64;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.UInt32;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordImageHandle extends DiscordStruct {
public EDiscordImageType type = EDiscordImageType.DiscordImageType_User;
public Int64 integerType = new Int64();
@@ -32,4 +35,9 @@ public class DiscordImageHandle extends DiscordStruct {
public static class ByReference extends DiscordImageHandle implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordImageHandle implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("type", "integerType", "size");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordInputMode.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordInputMode.java
index 45084b56..8a69f53a 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordInputMode.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordInputMode.java
@@ -22,6 +22,9 @@ import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.enumuration.EDiscordInputModeType;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordInputMode extends DiscordStruct {
public EDiscordInputModeType type = EDiscordInputModeType.DiscordInputModeType_PushToTalk;
@@ -30,4 +33,9 @@ public class DiscordInputMode extends DiscordStruct {
public static class ByReference extends DiscordInputMode implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordInputMode implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("type", "shortcut");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordLobby.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordLobby.java
index 514ddadf..18453004 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordLobby.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordLobby.java
@@ -25,6 +25,9 @@ import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordSnowflake;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.UInt32;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordLobby extends DiscordStruct {
public DiscordSnowflake id = new DiscordSnowflake();
public EDiscordLobbyType type = EDiscordLobbyType.DiscordLobbyType_Private;
@@ -36,4 +39,9 @@ public class DiscordLobby extends DiscordStruct {
public static class ByReference extends DiscordLobby implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordLobby implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("id", "type", "owner_id", "secret", "capacity", "locked");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordOAuth2Token.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordOAuth2Token.java
index f03a0aa3..f870f830 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordOAuth2Token.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordOAuth2Token.java
@@ -22,6 +22,9 @@ import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordTimestamp;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordOAuth2Token extends DiscordStruct {
public byte[] access_token = new byte[128];
@@ -31,4 +34,9 @@ public class DiscordOAuth2Token extends DiscordStruct {
public static class ByReference extends DiscordOAuth2Token implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordOAuth2Token implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("access_token", "scopes", "expires");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPartySize.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPartySize.java
index a890d235..43c40723 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPartySize.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPartySize.java
@@ -22,6 +22,9 @@ import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.Int32;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordPartySize extends DiscordStruct{
public Int32 current_size = new Int32();
public Int32 max_size = new Int32();
@@ -29,4 +32,9 @@ public class DiscordPartySize extends DiscordStruct{
public static class ByReference extends DiscordPartySize implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordPartySize implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("current_size", "max_size");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPresence.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPresence.java
index 1c17bdac..4e12f175 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPresence.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordPresence.java
@@ -22,6 +22,9 @@ import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.enumuration.EDiscordStatus;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordPresence extends DiscordStruct {
public EDiscordStatus status = EDiscordStatus.DiscordStatus_Offline;
public DiscordActivity activity;
@@ -29,4 +32,9 @@ public class DiscordPresence extends DiscordStruct {
public static class ByReference extends DiscordPresence implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordPresence implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("status", "activity");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordRelationship.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordRelationship.java
index 3b22d0d2..03cbae4a 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordRelationship.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordRelationship.java
@@ -22,6 +22,9 @@ import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.enumuration.EDiscordRelationshipType;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordRelationship extends DiscordStruct {
public EDiscordRelationshipType type = EDiscordRelationshipType.DiscordRelationshipType_None;
public DiscordUser user;
@@ -30,4 +33,9 @@ public class DiscordRelationship extends DiscordStruct {
public static class ByReference extends DiscordRelationship implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordRelationship implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("type", "user", "presence");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSku.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSku.java
index 51693fa0..2e9aaf1d 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSku.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSku.java
@@ -23,6 +23,9 @@ import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.enumuration.EDiscordSkuType;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordSnowflake;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordSku extends DiscordStruct {
public DiscordSnowflake id = new DiscordSnowflake();
@@ -33,4 +36,9 @@ public class DiscordSku extends DiscordStruct {
public static class ByReference extends DiscordSku implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordSku implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("id", "type", "name", "discordSkuPrice");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSkuPrice.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSkuPrice.java
index 74be946a..6eea0924 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSkuPrice.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordSkuPrice.java
@@ -23,6 +23,9 @@ import com.sun.jna.Structure;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.UInt32;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordSkuPrice extends DiscordStruct {
public UInt32 amount = new UInt32();
public byte[] currency = new byte[16];
@@ -30,4 +33,9 @@ public class DiscordSkuPrice extends DiscordStruct {
public static class ByReference extends DiscordSkuPrice implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordSkuPrice implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("amount", "currency");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUser.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUser.java
index 7abd0c71..b20d18c2 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUser.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUser.java
@@ -25,6 +25,9 @@ import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordSnowflake;
import lombok.Getter;
import lombok.Setter;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordUser extends DiscordStruct {
public DiscordSnowflake id = new DiscordSnowflake();
public byte[] username = new byte[256];
@@ -35,4 +38,9 @@ public class DiscordUser extends DiscordStruct {
public static class ByReference extends DiscordUser implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordUser implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("id", "username", "discriminator", "avatar", "bot");
+ }
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUserAchievement.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUserAchievement.java
index 1f2b4cb8..c12dcf56 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUserAchievement.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/datastruct/DiscordUserAchievement.java
@@ -24,6 +24,9 @@ import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.DiscordSnowflake;
import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.UInt32;
+import java.util.Arrays;
+import java.util.List;
+
public class DiscordUserAchievement extends DiscordStruct {
public DiscordSnowflake user_id = new DiscordSnowflake();
public DiscordSnowflake achievement_id = new DiscordSnowflake();
@@ -33,4 +36,9 @@ public class DiscordUserAchievement extends DiscordStruct {
public static class ByReference extends DiscordUserAchievement implements Structure.ByReference { public ByReference() {super();} public ByReference(Pointer pointer) {super(pointer);}}
public static class ByValue extends DiscordUserAchievement implements Structure.ByValue { public ByValue() {super();} public ByValue(Pointer pointer) {super(pointer);}}
+
+ @Override
+ protected List getFieldOrder() {
+ return Arrays.asList("user_id", "achievement_id", "percent_complete", "unlocked_at");
+ }
}