-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move models into model folder. Some models not moved due to local type.
- Loading branch information
1 parent
e9ae953
commit b6f24ae
Showing
32 changed files
with
790 additions
and
748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package model | ||
|
||
type Achievement struct { | ||
Level uint8 | ||
Value uint32 | ||
NextValue uint16 | ||
Required uint32 | ||
Updated bool | ||
Progress uint32 | ||
Trophy uint8 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package model | ||
|
||
type Airou struct { | ||
ID uint32 | ||
Name []byte | ||
Task uint8 | ||
Personality uint8 | ||
Class uint8 | ||
Experience uint32 | ||
WeaponType uint8 | ||
WeaponID uint16 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package model | ||
|
||
type CafeBonus struct { | ||
ID uint32 `db:"id"` | ||
TimeReq uint32 `db:"time_req"` | ||
ItemType uint32 `db:"item_type"` | ||
ItemID uint32 `db:"item_id"` | ||
Quantity uint32 `db:"quantity"` | ||
Claimed bool `db:"claimed"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type CampaignEvent struct { | ||
ID uint32 | ||
Unk0 uint32 | ||
MinHR int16 | ||
MaxHR int16 | ||
MinSR int16 | ||
MaxSR int16 | ||
MinGR int16 | ||
MaxGR int16 | ||
Unk1 uint16 | ||
Unk2 uint8 | ||
Unk3 uint8 | ||
Unk4 uint16 | ||
Unk5 uint16 | ||
Start time.Time | ||
End time.Time | ||
Unk6 uint8 | ||
String0 string | ||
String1 string | ||
String2 string | ||
String3 string | ||
Link string | ||
Prefix string | ||
Categories []uint16 | ||
} | ||
|
||
type CampaignCategory struct { | ||
ID uint16 | ||
Type uint8 | ||
Title string | ||
Description string | ||
} | ||
|
||
type CampaignLink struct { | ||
CategoryID uint16 | ||
CampaignID uint32 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type Distribution struct { | ||
ID uint32 `db:"id"` | ||
Deadline time.Time `db:"deadline"` | ||
Rights uint32 `db:"rights"` | ||
TimesAcceptable uint16 `db:"times_acceptable"` | ||
TimesAccepted uint16 `db:"times_accepted"` | ||
MinHR int16 `db:"min_hr"` | ||
MaxHR int16 `db:"max_hr"` | ||
MinSR int16 `db:"min_sr"` | ||
MaxSR int16 `db:"max_sr"` | ||
MinGR int16 `db:"min_gr"` | ||
MaxGR int16 `db:"max_gr"` | ||
EventName string `db:"event_name"` | ||
Description string `db:"description"` | ||
Selection bool `db:"selection"` | ||
} | ||
|
||
type DistributionItem struct { | ||
ItemType uint8 `db:"item_type"` | ||
ID uint32 `db:"id"` | ||
ItemID uint32 `db:"item_id"` | ||
Quantity uint32 `db:"quantity"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type Event struct { | ||
EventType uint16 | ||
Unk1 uint16 | ||
Unk2 uint16 | ||
Unk3 uint16 | ||
Unk4 uint16 | ||
Unk5 uint32 | ||
Unk6 uint32 | ||
QuestFileIDs []uint16 | ||
} | ||
|
||
type LoginBoost struct { | ||
WeekReq uint8 `db:"week_req"` | ||
WeekCount uint8 | ||
Active bool | ||
Expiration time.Time `db:"expiration"` | ||
Reset time.Time `db:"reset"` | ||
} | ||
|
||
type ActiveFeature struct { | ||
StartTime time.Time `db:"start_time"` | ||
ActiveFeatures uint32 `db:"featured"` | ||
} | ||
type TrendWeapon struct { | ||
WeaponType uint8 | ||
WeaponID uint16 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package model | ||
|
||
type FestaTrial struct { | ||
ID uint32 `db:"id"` | ||
Objective uint16 `db:"objective"` | ||
GoalID uint32 `db:"goal_id"` | ||
TimesReq uint16 `db:"times_req"` | ||
Locale uint16 `db:"locale_req"` | ||
Reward uint16 `db:"reward"` | ||
Monopoly FestivalColor `db:"monopoly"` | ||
Unk uint16 | ||
} | ||
|
||
type FestaReward struct { | ||
Unk0 uint8 | ||
Unk1 uint8 | ||
ItemType uint16 | ||
Quantity uint16 | ||
ItemID uint16 | ||
Unk5 uint16 | ||
Unk6 uint16 | ||
Unk7 uint8 | ||
} | ||
|
||
type FestaPrize struct { | ||
ID uint32 `db:"id"` | ||
Tier uint32 `db:"tier"` | ||
SoulsReq uint32 `db:"souls_req"` | ||
ItemID uint32 `db:"item_id"` | ||
NumItem uint32 `db:"num_item"` | ||
Claimed int `db:"claimed"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package model | ||
|
||
type ShopItem struct { | ||
ID uint32 `db:"id"` | ||
ItemID uint32 `db:"item_id"` | ||
Cost uint32 `db:"cost"` | ||
Quantity uint16 `db:"quantity"` | ||
MinHR uint16 `db:"min_hr"` | ||
MinSR uint16 `db:"min_sr"` | ||
MinGR uint16 `db:"min_gr"` | ||
StoreLevel uint8 `db:"store_level"` | ||
MaxQuantity uint16 `db:"max_quantity"` | ||
UsedQuantity uint16 `db:"used_quantity"` | ||
RoadFloors uint16 `db:"road_floors"` | ||
RoadFatalis uint16 `db:"road_fatalis"` | ||
} | ||
|
||
type Gacha struct { | ||
ID uint32 `db:"id"` | ||
MinGR uint32 `db:"min_gr"` | ||
MinHR uint32 `db:"min_hr"` | ||
Name string `db:"name"` | ||
URLBanner string `db:"url_banner"` | ||
URLFeature string `db:"url_feature"` | ||
URLThumbnail string `db:"url_thumbnail"` | ||
Wide bool `db:"wide"` | ||
Recommended bool `db:"recommended"` | ||
GachaType uint8 `db:"gacha_type"` | ||
Hidden bool `db:"hidden"` | ||
} | ||
|
||
type GachaEntry struct { | ||
EntryType uint8 `db:"entry_type"` | ||
ID uint32 `db:"id"` | ||
ItemType uint8 `db:"item_type"` | ||
ItemNumber uint32 `db:"item_number"` | ||
ItemQuantity uint16 `db:"item_quantity"` | ||
Weight float64 `db:"weight"` | ||
Rarity uint8 `db:"rarity"` | ||
Rolls uint8 `db:"rolls"` | ||
FrontierPoints uint16 `db:"frontier_points"` | ||
DailyLimit uint8 `db:"daily_limit"` | ||
Name string `db:"name"` | ||
} | ||
|
||
type GachaItem struct { | ||
ItemType uint8 `db:"item_type"` | ||
ItemID uint16 `db:"item_id"` | ||
Quantity uint16 `db:"quantity"` | ||
} | ||
type FPointExchange struct { | ||
ID uint32 `db:"id"` | ||
ItemType uint8 `db:"item_type"` | ||
ItemID uint16 `db:"item_id"` | ||
Quantity uint16 `db:"quantity"` | ||
FPoints uint16 `db:"fpoints"` | ||
Buyable bool `db:"buyable"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type GuildAdventure struct { | ||
ID uint32 `db:"id"` | ||
Destination uint32 `db:"destination"` | ||
Charge uint32 `db:"charge"` | ||
Depart uint32 `db:"depart"` | ||
Return uint32 `db:"return"` | ||
CollectedBy string `db:"collected_by"` | ||
} | ||
|
||
type GuildTreasureHunt struct { | ||
HuntID uint32 `db:"id"` | ||
HostID uint32 `db:"host_id"` | ||
Destination uint32 `db:"destination"` | ||
Level uint32 `db:"level"` | ||
Start time.Time `db:"start"` | ||
Acquired bool `db:"acquired"` | ||
Collected bool `db:"collected"` | ||
HuntData []byte `db:"hunt_data"` | ||
Hunters uint32 `db:"hunters"` | ||
Claimed bool `db:"claimed"` | ||
} | ||
type GuildTreasureSouvenir struct { | ||
Destination uint32 | ||
Quantity uint32 | ||
} | ||
|
||
type FestivalColor string | ||
type GuildApplicationType string | ||
|
||
type GuildIconPart struct { | ||
Index uint16 | ||
ID uint16 | ||
Page uint8 | ||
Size uint8 | ||
Rotation uint8 | ||
Red uint8 | ||
Green uint8 | ||
Blue uint8 | ||
PosX uint16 | ||
PosY uint16 | ||
} | ||
|
||
type GuildApplication struct { | ||
ID int `db:"id"` | ||
GuildID uint32 `db:"guild_id"` | ||
CharID uint32 `db:"character_id"` | ||
ActorID uint32 `db:"actor_id"` | ||
ApplicationType GuildApplicationType `db:"application_type"` | ||
CreatedAt time.Time `db:"created_at"` | ||
} | ||
|
||
type GuildLeader struct { | ||
LeaderCharID uint32 `db:"leader_id"` | ||
LeaderName string `db:"leader_name"` | ||
} | ||
type MessageBoardPost struct { | ||
ID uint32 `db:"id"` | ||
StampID uint32 `db:"stamp_id"` | ||
Title string `db:"title"` | ||
Body string `db:"body"` | ||
AuthorID uint32 `db:"author_id"` | ||
Timestamp time.Time `db:"created_at"` | ||
LikedBy string `db:"liked_by"` | ||
} | ||
|
||
type GuildMeal struct { | ||
ID uint32 `db:"id"` | ||
MealID uint32 `db:"meal_id"` | ||
Level uint32 `db:"level"` | ||
CreatedAt time.Time `db:"created_at"` | ||
} | ||
|
||
type GuildMission struct { | ||
ID uint32 | ||
Unk uint32 | ||
Type uint16 | ||
Goal uint16 | ||
Quantity uint16 | ||
SkipTickets uint16 | ||
GR bool | ||
RewardType uint16 | ||
RewardLevel uint16 | ||
} | ||
|
||
type GuildAllianceInvite struct { | ||
GuildID uint32 | ||
LeaderID uint32 | ||
Unk0 uint16 | ||
Unk1 uint16 | ||
Members uint16 | ||
GuildName string | ||
LeaderName string | ||
} | ||
type UnkGuildInfo struct { | ||
Unk0 uint8 | ||
Unk1 uint8 | ||
Unk2 uint8 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type HouseData struct { | ||
CharID uint32 `db:"id"` | ||
HR uint16 `db:"hr"` | ||
GR uint16 `db:"gr"` | ||
Name string `db:"name"` | ||
HouseState uint8 `db:"house_state"` | ||
HousePassword string `db:"house_password"` | ||
} | ||
type Title struct { | ||
ID uint16 `db:"id"` | ||
Acquired time.Time `db:"unlocked_at"` | ||
Updated time.Time `db:"updated_at"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package model | ||
|
||
import "time" | ||
|
||
type PaperMissionTimetable struct { | ||
Start time.Time | ||
End time.Time | ||
} | ||
|
||
type PaperMissionData struct { | ||
Unk0 uint8 | ||
Unk1 uint8 | ||
Unk2 int16 | ||
Reward1ID uint16 | ||
Reward1Quantity uint8 | ||
Reward2ID uint16 | ||
Reward2Quantity uint8 | ||
} | ||
|
||
type PaperMission struct { | ||
Timetables []PaperMissionTimetable | ||
Data []PaperMissionData | ||
} | ||
|
||
type PaperData struct { | ||
Unk0 uint16 | ||
Unk1 int16 | ||
Unk2 int16 | ||
Unk3 int16 | ||
Unk4 int16 | ||
Unk5 int16 | ||
Unk6 int16 | ||
} | ||
|
||
type PaperGift struct { | ||
Unk0 uint16 | ||
Unk1 uint8 | ||
Unk2 uint8 | ||
Unk3 uint16 | ||
} |
Oops, something went wrong.