Compare commits

...
113 Commits
Author SHA1 Message Date
Jiaqi Liu 1db9c09281 v0.74 2023-08-13 10:03:33 -07:00
Jiaqi Liu 6949a02355 Implement and use LinkedObjectGroupId to sync objects 2023-08-13 09:26:13 -07:00
Jiaqi Liu 4e25c7f593 Update ReleaseBuildPipeline.cs 2023-08-12 21:26:41 -07:00
Jiaqi Liu dbc4f3747d Update LiberationSans SDF - Fallback.asset 2023-08-12 21:06:15 -07:00
Jiaqi Liu 780a2087e6 v0.73 2023-08-12 20:58:47 -07:00
Jiaqi Liu 7f8ff06b6e Cache all audio files 2023-08-12 20:40:59 -07:00
Jiaqi Liu cb9cb24d77 Code refactoring 2023-08-12 19:24:57 -07:00
Jiaqi Liu feaac946e3 Fix charset and build issue 2023-08-12 18:34:40 -07:00
Jiaqi Liu 724a6f767e Supports Traditional Chinese version of the game 2023-08-12 18:19:34 -07:00
Jiaqi Liu ba630a21fa Code refactoring 2023-08-12 07:12:43 -07:00
Jiaqi Liu b1e199e0fb Read and parse ComboSkills + EffectLinkers 2023-08-12 05:45:15 -07:00
Jiaqi Liu f3c1d30215 Read and parse CombatActorInfo and SkillInfo in gdb file 2023-08-11 05:39:47 -07:00
Jiaqi Liu 25151a8479 Code refactoring 2023-08-10 08:04:05 -07:00
Jiaqi Liu 48a6ef0217 Code refactoring 2023-08-10 07:41:52 -07:00
Jiaqi Liu 0adcc69b9e Use default theme music for the game 2023-08-10 03:08:33 -07:00
Jiaqi Liu 9cb651ffd0 Disable auto graphics API on Android, check executable folder on Win/Linux for OG game data files by default 2023-08-10 02:01:33 -07:00
Jiaqi Liu dc3cfadd44 Remove unused assets 2023-08-09 03:59:11 -07:00
Jiaqi Liu dc96d1a257 Fix a minor issue 2023-08-08 00:48:47 -07:00
Jiaqi Liu 2b98a43ca2 Update settings 2023-08-07 23:33:50 -07:00
Jiaqi Liu 1c12b99056 v0.72 2023-08-07 23:22:03 -07:00
Jiaqi Liu 515f99d391 Supports Vulkan + SSAO on Android 2023-08-07 23:12:07 -07:00
Jiaqi Liu 5073f9ac49 Minor fix 2023-08-07 09:22:30 -07:00
Jiaqi Liu ee2128d5ca Add debug info on-off switch in settings menu 2023-08-07 08:35:02 -07:00
Jiaqi Liu d7c0a05165 Fix dialogue positioning issue when resizing the game window 2023-08-07 05:55:19 -07:00
Jiaqi Liu 0b27516bff Minor fixes 2023-08-07 04:27:02 -07:00
Jiaqi Liu b0eca97589 Tweaks and fixes 2023-08-06 09:44:45 -07:00
Jiaqi Liu 33f8f40399 v0.71 2023-08-06 07:57:36 -07:00
Jiaqi Liu ab24b6ab14 Tweak slide speed on SlidewayObject 2023-08-06 07:56:58 -07:00
Jiaqi Liu 55fc5504a5 v0.71 2023-08-06 07:47:28 -07:00
Jiaqi Liu a223a0ea1d Keep linear fog shader (used by PAL3A) 2023-08-06 07:12:44 -07:00
Jiaqi Liu d328f26c1f Implement mini map 2023-08-06 07:07:24 -07:00
Jiaqi Liu 0419a4bbd7 Update QualitySettings.asset 2023-08-06 00:53:50 -07:00
Jiaqi Liu 88a5db3420 Show game logo on launch 2023-08-05 23:48:58 -07:00
Jiaqi Liu 753c8baec5 UI and dialogue animation tweaks 2023-08-05 21:31:37 -07:00
Jiaqi Liu 417a6b22c5 v0.70 2023-08-05 06:35:27 -07:00
Jiaqi Liu ebcc8d8db2 Implement PAL3A task system 2023-08-05 06:17:29 -07:00
Jiaqi Liu d894cc81a4 Minor optimizations 2023-08-04 19:39:33 -07:00
Jiaqi Liu dfdc33c222 Set different default speed for player and NPC actor 2023-08-04 18:44:04 -07:00
Jiaqi Liu 478b8f7f7a Perf and GC optimizations 2023-08-03 22:39:44 -07:00
Jiaqi Liu 787a34ab26 Improve performance 2023-08-03 20:00:45 -07:00
Jiaqi Liu eb209ad1a8 Minor refactoring 2023-08-03 02:33:59 -07:00
Jiaqi Liu 5bd8914546 Check and notify if a new version is found on Github release page 2023-08-03 02:26:17 -07:00
Jiaqi Liu 4543719970 Minor fixes 2023-08-03 01:43:32 -07:00
Jiaqi Liu 54cb77247e Code refactoring on binary reader 2023-08-03 00:16:42 -07:00
Jiaqi Liu c5caa3f90f Use UnsafeBinaryReader only in IL2CPP mode (fix crash on Android Mono build) 2023-08-02 20:31:23 -07:00
Jiaqi Liu c3893fbf47 Implement PAL3A SceneEnableFogCommand + code refactoring
- Implement PAL3A SceneEnableFogCommand
- Improves logging
- Object 46 in scene M03-1 should block player
-
2023-08-02 19:42:22 -07:00
Jiaqi Liu 7b80432fe2 Minor fix 2023-08-02 00:53:54 -07:00
Jiaqi Liu c5e5301193 Fix build issue 2023-08-02 00:41:14 -07:00
Jiaqi Liu 75b5c4bdce Decrease default audio volume in resource viewer 2023-08-02 00:31:51 -07:00
Jiaqi Liu 0ea812e321 Add extract .cpk button to resource viewer with bug fixes 2023-08-02 00:24:37 -07:00
Jiaqi Liu c5dc4d7335 v0.67 2023-08-01 22:52:28 -07:00
Jiaqi Liu 34370ec2e8 Add more supported build targets 2023-08-01 22:28:53 -07:00
Jiaqi Liu bd892fb3fb Fix a regression on path separator handling for unix-like system 2023-08-01 21:52:38 -07:00
Jiaqi Liu 39c27b04d7 Implement flashing animation for time-sensitive dialogue 2023-08-01 20:59:35 -07:00
Jiaqi Liu b1afd47878 Add background image to dialogue selection buttons
Add background image to dialogue selection buttons.
Add mov preview in game resource viewer.
Add padding to dialogue selection button text
2023-08-01 16:15:36 -07:00
Jiaqi Liu 9286d3160a Code refactoring 2023-08-01 13:49:12 -07:00
Jiaqi Liu 54fb05093c Code refactoring 2023-08-01 09:00:29 -07:00
Jiaqi Liu f872dd7c3d Remove hack code 2023-07-31 00:59:36 -07:00
Jiaqi Liu 9ffebd2b71 Fix shader issue with Metal on MacOS 2023-07-31 00:48:07 -07:00
Jiaqi Liu 4c6c8752d9 Code refactoring 2023-07-30 22:01:05 -07:00
Jiaqi Liu db11847130 v0.66 2023-07-30 03:58:14 -07:00
Jiaqi Liu d88f737375 Code refactoring 2023-07-30 03:36:57 -07:00
Jiaqi Liu d1a7de0229 Fix a bug that might be caused by a delayed destroy 2023-07-30 02:55:42 -07:00
Jiaqi Liu 78e9692abc Upgrade dependencies 2023-07-29 14:55:58 -07:00
Jiaqi Liu 836463c795 Smoothen skeletal animation with interpolation 2023-07-29 02:07:26 -07:00
Jiaqi Liu 630166880f Fix: Use Slerp for quaternion Interpolation 2023-07-29 02:06:59 -07:00
Jiaqi Liu 421ee12a82 Properly implement logic to read mtl file and handle GB Material 2023-07-28 19:52:03 -07:00
Jiaqi Liu 4dd3992a32 v0.65 2023-07-27 22:12:51 -07:00
Jiaqi Liu 5fab0d867e Implement skeletal animation logic (#17)
Properly implements SkeletalModelRenderer + SkeletalAnimationActorActionController
2023-07-27 21:48:39 -07:00
Jiaqi Liu a1801f59f5 Upgrade Unity version 2023-07-20 20:41:22 -07:00
Jiaqi Liu 3f467944ce Fix a bug where actor might spawn at wrong Y position 2023-07-06 00:28:33 -07:00
Jiaqi Liu b1add2a940 Minor refactoring 2023-07-05 23:58:27 -07:00
Jiaqi Liu 3e8f350740 Upgrade packages 2023-07-01 23:34:41 -07:00
Jiaqi Liu 790f72d836 Merge branch 'main' of https://github.com/0x7c13/Pal3.Unity 2023-06-29 19:16:34 -07:00
Jiaqi Liu 4fcb2b74da Minor fixes 2023-06-29 19:16:32 -07:00
Jackie Liu e0d1cf0f80 Fix mono build issue 2023-06-29 12:58:54 -07:00
Jiaqi Liu bdb0476417 Fix build issue 2023-06-29 11:53:52 -07:00
Jackie Liu 4d23ec3c47 v0.64 2023-06-29 11:23:27 -07:00
Jackie Liu 4f6f411816 Code refactoring 2023-06-08 20:07:43 -07:00
Jackie Liu cf015037bf Upgrade project to Unity 2022.3 LTS 2023-06-01 19:26:48 -07:00
Jiaqi Liu 259768e954 Code refactoring 2023-04-24 13:15:19 +08:00
Jackie Liu 57a2189812 Update ProjectVersion.txt 2023-04-13 21:11:43 -07:00
Jackie Liu 00f7b223a0 Code refactoring 2023-04-12 22:36:49 -07:00
Jackie Liu e4791b460e Code refactoring 2023-04-10 03:27:14 -07:00
Jackie Liu 60458949df Code refactoring 2023-04-10 03:00:13 -07:00
Jackie Liu a8bfe5917b Upgrade NugetForUnity and nuget packages 2023-04-10 02:42:27 -07:00
Jackie Liu f90463466d Implement MshFile and MshFileReader 2023-04-10 02:29:08 -07:00
Jackie Liu e6a9cfb28a Fix spacing issue 2023-04-09 04:20:09 -07:00
Jackie Liu 7f22dfe51b Implement MovFile and MovFileReader 2023-04-09 04:15:19 -07:00
Jackie Liu ef8e891ab0 Code refactoring 2023-04-08 06:52:56 -07:00
Jackie Liu ee6b6ec2af Code refactoring 2023-04-07 19:40:50 -07:00
Jackie Liu 1406fc857e Deactivate main actor in init menu scene 2023-04-06 22:52:24 -07:00
Jackie Liu 09300bb28a Code refactoring 2023-04-06 22:39:53 -07:00
Jackie Liu c4ac634589 Code refactoring and bug fixes 2023-04-06 20:33:47 -07:00
Jackie Liu 3a101d6e0a Use TryAdd and TryGetValue for Dictionary ops 2023-04-06 08:36:30 -07:00
Jackie Liu 4a6d68ea59 Code refactoring 2023-04-06 08:02:02 -07:00
Jackie Liu a6eabdb8d8 Properly implement Hold behavior for actor 2023-04-05 00:52:51 -07:00
Jackie Liu 43133b2ebd Initial work on supporting bone animated actors 2023-04-04 23:24:21 -07:00
Jackie Liu 8d21346cd7 Code refactoring 2023-04-04 21:34:58 -07:00
Jackie Liu e0267dce3b Code refactoring 2023-04-04 18:27:04 -07:00
Jackie Liu 263d9fcd8c Code refactoring + bug fixes 2023-04-03 19:26:21 -07:00
Jackie Liu be5aebde3b Bug fixes 2023-04-03 02:32:37 -07:00
Jackie Liu 142593a9f2 v0.63 2023-04-03 01:41:11 -07:00
Jackie Liu 63e8bf3291 Implement auto-save and save/load menus 2023-04-03 01:09:40 -07:00
Jackie Liu 0268e131f1 Bug fixes 2023-04-02 21:53:17 -07:00
Jackie Liu a3277187cf Code refactoring 2023-04-02 20:37:09 -07:00
Jackie Liu de45ada269 Fixing sort order 2023-04-02 05:33:12 -07:00
Jackie Liu 5e42873ca2 v0.62 2023-04-02 05:07:57 -07:00
Jackie Liu 6a0648e3de BigMap UI rework + improve button navigation 2023-04-02 04:52:59 -07:00
Jackie Liu 9a114775dd Fix iOS build issue 2023-04-02 03:23:21 -07:00
Jackie Liu 45f5aefbaa Downgrade Unity version to 2022.2.12f1 to pass the CI 2023-04-02 03:00:46 -07:00
Jackie Liu f54efce2eb Rework on game init view 2023-04-02 02:55:12 -07:00
Jackie Liu 758e37cfab Code refactoring 2023-04-01 18:05:06 -07:00
335 changed files with 112504 additions and 62502 deletions

No files matched your search

+4 -1
View File
@@ -83,4 +83,7 @@ crashlytics-build.properties
/Assets/Resources/Prefabs/VFX/PAL3A/*.meta
# Materials that are using 3rd party assets
/Assets/Resources/Materials/
/Assets/Resources/Materials/
# VS Conde config file
.vsconfig
+2
View File
@@ -1,5 +1,7 @@
fileFormatVersion: 2
guid: 017f90526f3834e4ca575928f2369942
labels:
- NuGetForUnity
PluginImporter:
externalObjects: {}
serializedVersion: 2
Binary file not shown.
@@ -1,98 +0,0 @@
fileFormatVersion: 2
guid: 9ea59359fa70a004da570d3fae618d57
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: bd9629b50a962774fa83514636685099
guid: d25342fa4b1c06a4fb5b9275bf3f6350
folderAsset: yes
DefaultImporter:
externalObjects: {}
Binary file not shown.
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c55e208d745dcdd4f869b845af4cfab3
guid: 2202405c70c652942ae8270006c01f9d
TextScriptImporter:
externalObjects: {}
userData:
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 447a6384f74b843dc8c19f6397c505f7
guid: bed3e3b7fed51194da24fb7fb8c0a316
DefaultImporter:
externalObjects: {}
userData:
+71
View File
@@ -0,0 +1,71 @@
# ![Logo](https://raw.githubusercontent.com/JamesNK/Newtonsoft.Json/master/Doc/icons/logo.jpg) Json.NET
[![NuGet version (Newtonsoft.Json)](https://img.shields.io/nuget/v/Newtonsoft.Json.svg?style=flat-square)](https://www.nuget.org/packages/Newtonsoft.Json/)
[![Build status](https://dev.azure.com/jamesnk/Public/_apis/build/status/JamesNK.Newtonsoft.Json?branchName=master)](https://dev.azure.com/jamesnk/Public/_build/latest?definitionId=8)
Json.NET is a popular high-performance JSON framework for .NET
## Serialize JSON
```csharp
Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Sizes = new string[] { "Small" };
string json = JsonConvert.SerializeObject(product);
// {
// "Name": "Apple",
// "Expiry": "2008-12-28T00:00:00",
// "Sizes": [
// "Small"
// ]
// }
```
## Deserialize JSON
```csharp
string json = @"{
'Name': 'Bad Boys',
'ReleaseDate': '1995-4-7T00:00:00',
'Genres': [
'Action',
'Comedy'
]
}";
Movie m = JsonConvert.DeserializeObject<Movie>(json);
string name = m.Name;
// Bad Boys
```
## LINQ to JSON
```csharp
JArray array = new JArray();
array.Add("Manual text");
array.Add(new DateTime(2000, 5, 23));
JObject o = new JObject();
o["MyArray"] = array;
string json = o.ToString();
// {
// "MyArray": [
// "Manual text",
// "2000-05-23T00:00:00"
// ]
// }
```
## Links
- [Homepage](https://www.newtonsoft.com/json)
- [Documentation](https://www.newtonsoft.com/json/help)
- [NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json)
- [Release Notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Contributing Guidelines](https://github.com/JamesNK/Newtonsoft.Json/blob/master/CONTRIBUTING.md)
- [License](https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/json.net)
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 9aca55e571f11e44c8c168aaaa7e1be6
PrefabImporter:
guid: 6069c71b8cbde2c46af37b4d5e9d6a4f
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 0569847255b194d4da45463253c1e4b1
guid: 520a919eca99b2345bd9cdcf39fe8e58
folderAsset: yes
DefaultImporter:
externalObjects: {}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9b982b4ebc3ab07418a1e9965b232813
guid: 45501e75b3795d04cbf421ad8a1021d3
folderAsset: yes
DefaultImporter:
externalObjects: {}
@@ -1,5 +1,7 @@
fileFormatVersion: 2
guid: a4c52cca01a63c54ba72e8a873c28f55
guid: 0321b95b71cdcb84396730b66dc18f74
labels:
- NuGetForUnity
PluginImporter:
externalObjects: {}
serializedVersion: 2
@@ -16,18 +18,6 @@ PluginImporter:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
@@ -865,6 +865,32 @@
Converts a <see cref="T:System.DateTime"/> to and from Unix epoch time
</summary>
</member>
<member name="P:Newtonsoft.Json.Converters.UnixDateTimeConverter.AllowPreEpoch">
<summary>
Gets or sets a value indicating whether the dates before Unix epoch
should converted to and from JSON.
</summary>
<value>
<c>true</c> to allow converting dates before Unix epoch to and from JSON;
<c>false</c> to throw an exception when a date being converted to or from JSON
occurred before Unix epoch. The default value is <c>false</c>.
</value>
</member>
<member name="M:Newtonsoft.Json.Converters.UnixDateTimeConverter.#ctor">
<summary>
Initializes a new instance of the <see cref="T:Newtonsoft.Json.Converters.UnixDateTimeConverter"/> class.
</summary>
</member>
<member name="M:Newtonsoft.Json.Converters.UnixDateTimeConverter.#ctor(System.Boolean)">
<summary>
Initializes a new instance of the <see cref="T:Newtonsoft.Json.Converters.UnixDateTimeConverter"/> class.
</summary>
<param name="allowPreEpoch">
<c>true</c> to allow converting dates before Unix epoch to and from JSON;
<c>false</c> to throw an exception when a date being converted to or from JSON
occurred before Unix epoch. The default value is <c>false</c>.
</param>
</member>
<member name="M:Newtonsoft.Json.Converters.UnixDateTimeConverter.WriteJson(Newtonsoft.Json.JsonWriter,System.Object,Newtonsoft.Json.JsonSerializer)">
<summary>
Writes the JSON representation of the object.
@@ -2554,7 +2580,7 @@
<summary>
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a <see cref="T:Newtonsoft.Json.JsonReaderException"/>.
A null value means there is no maximum.
The default value is <c>128</c>.
The default value is <c>64</c>.
</summary>
</member>
<member name="P:Newtonsoft.Json.JsonReader.TokenType">
@@ -3014,7 +3040,7 @@
<summary>
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a <see cref="T:Newtonsoft.Json.JsonReaderException"/>.
A null value means there is no maximum.
The default value is <c>128</c>.
The default value is <c>64</c>.
</summary>
</member>
<member name="P:Newtonsoft.Json.JsonSerializer.CheckAdditionalContent">
@@ -3330,7 +3356,7 @@
<summary>
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a <see cref="T:Newtonsoft.Json.JsonReaderException"/>.
A null value means there is no maximum.
The default value is <c>128</c>.
The default value is <c>64</c>.
</summary>
</member>
<member name="P:Newtonsoft.Json.JsonSerializerSettings.Formatting">
@@ -3397,6 +3423,12 @@
Initializes a new instance of the <see cref="T:Newtonsoft.Json.JsonSerializerSettings"/> class.
</summary>
</member>
<member name="M:Newtonsoft.Json.JsonSerializerSettings.#ctor(Newtonsoft.Json.JsonSerializerSettings)">
<summary>
Initializes a new instance of the <see cref="T:Newtonsoft.Json.JsonSerializerSettings"/> class
using values copied from the passed in <see cref="T:Newtonsoft.Json.JsonSerializerSettings"/>.
</summary>
</member>
<member name="T:Newtonsoft.Json.JsonTextReader">
<summary>
Represents a reader that provides fast, non-cached, forward-only access to JSON text data.
@@ -7031,6 +7063,25 @@
<param name="reader">The reader.</param>
<returns>An instance of <see cref="T:Newtonsoft.Json.Linq.JRaw"/> with the content of the reader's current token.</returns>
</member>
<member name="T:Newtonsoft.Json.Linq.JsonCloneSettings">
<summary>
Specifies the settings used when cloning JSON.
</summary>
</member>
<member name="M:Newtonsoft.Json.Linq.JsonCloneSettings.#ctor">
<summary>
Initializes a new instance of the <see cref="T:Newtonsoft.Json.Linq.JsonCloneSettings"/> class.
</summary>
</member>
<member name="P:Newtonsoft.Json.Linq.JsonCloneSettings.CopyAnnotations">
<summary>
Gets or sets a flag that indicates whether to copy annotations when cloning a <see cref="T:Newtonsoft.Json.Linq.JToken"/>.
The default value is <c>true</c>.
</summary>
<value>
A flag that indicates whether to copy annotations when cloning a <see cref="T:Newtonsoft.Json.Linq.JToken"/>.
</value>
</member>
<member name="T:Newtonsoft.Json.Linq.JsonLoadSettings">
<summary>
Specifies the settings used when loading JSON.
@@ -8071,6 +8122,13 @@
</summary>
<returns>A new instance of the <see cref="T:Newtonsoft.Json.Linq.JToken"/>.</returns>
</member>
<member name="M:Newtonsoft.Json.Linq.JToken.DeepClone(Newtonsoft.Json.Linq.JsonCloneSettings)">
<summary>
Creates a new instance of the <see cref="T:Newtonsoft.Json.Linq.JToken"/>. All child tokens are recursively cloned.
</summary>
<param name="settings">A <see cref="T:Newtonsoft.Json.Linq.JsonCloneSettings"/> object to configure cloning settings.</param>
<returns>A new instance of the <see cref="T:Newtonsoft.Json.Linq.JToken"/>.</returns>
</member>
<member name="M:Newtonsoft.Json.Linq.JToken.AddAnnotation(System.Object)">
<summary>
Adds an object to the annotation list of this <see cref="T:Newtonsoft.Json.Linq.JToken"/>.
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7cdd1b6e2b1397547b722844a364a7c7
guid: 9b4b3cddff1ae1343a973b35c0738edd
TextScriptImporter:
externalObjects: {}
userData:
File renamed without changes.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

@@ -1,12 +1,12 @@
fileFormatVersion: 2
guid: 5318b69487a702d459492d0b9142bc61
guid: be12599e7ed6ddb44ac085726df1d0fd
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
@@ -40,10 +40,10 @@ TextureImporter:
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
@@ -52,9 +52,9 @@ TextureImporter:
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 8
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
@@ -71,7 +71,7 @@ TextureImporter:
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 4
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
@@ -133,7 +133,7 @@ TextureImporter:
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
spriteID:
internalID: 0
vertices: []
indices:
@@ -1,5 +1,7 @@
fileFormatVersion: 2
guid: f691697ada4059c46a06801ddaf2ee3a
labels:
- NuGetForUnity
PluginImporter:
externalObjects: {}
serializedVersion: 2
-9
View File
@@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 217cb7caed5f7fb49b339428b1d80974
folderAsset: yes
timeCreated: 1510280316
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
-9
View File
@@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: b3fad56c531ac5a4db190a745f589a8e
folderAsset: yes
timeCreated: 1510280304
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: 8dc1be91775c4bb469f6b74cef450eaa
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2018 Patrick McCarthy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 1d9014b99ad06af428514a5902d29ff3
timeCreated: 1573248500
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 83c5d2001771f15429a88d67e81366d6
timeCreated: 1517876157
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
-9
View File
@@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 1738075a39a390447b7a620ca6962142
folderAsset: yes
timeCreated: 1510280362
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

@@ -1,88 +0,0 @@
fileFormatVersion: 2
guid: eec19781926cd2248b7c9abfde8db555
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 9
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 215e43cda847e6d44af8b40376eeed8a
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large. Load diff
@@ -4,7 +4,7 @@ TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
forceTextureCase: 3
characterSpacing: 0
characterPadding: 1
includeFontData: 1
File diff suppressed because it is too large. Load diff
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 129c820b154da074e821d870a3627120
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -1,21 +0,0 @@
fileFormatVersion: 2
guid: dcba7b37316258447a7e7b8a9faefba8
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontNames:
- Slidexiaxing
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
shouldRoundAdvanceValue: 1
userData:
assetBundleName:
assetBundleVariant:
+2 -1
View File
@@ -1 +1,2 @@
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~·—‘’“”…、。《》【】!(),:;?~+一丁七万丈三上下不与丐丑专且世丘丙业丛东丝丢两严丧个丫中丰串临丸丹为主丽举乃久么义之乌乍乎乏乐乔乖乘乙九乞也习乡书乩买乱乳乾了予争事二于亏云互五井亚些亡交亥亦产亨亩享京亭亮亲人亿什仁仃仅仆仇今介仍从仑仓仔仕他仗付仙仞代令以仪们仰仲仵件价任份仿企伉伍伎伏伐休众优伙会伟传伤伦伪伯估伴伶伸伺似但位低住佐佑体何佘余佛作你佣佩佬佯佳佼使侄侈例侍供依侠侣侥侧侬侮侯侵便促俊俏俐俗保俞信俨俩俪俭修俯俱俸俺倍倏們倒倔倘候倚倜借倦倩倪债值倾假偌偏偕做停健偶偷偿傀傅傍傥储催傲傻像僧僵僻儒儡儿允元兄充兆先光克免兑兔党兢入全八公六兮兰共关兴兵其具典兹养兼兽冀内冈册再冒冕写军农冠冢冤冥冬冯冰冲决况冶冷冻净凄准凉凋凌减凑凛凝几凡凤凭凰凶出击函凿刀刁刃分切刎刑划列刘则刚创初判刨利别刮到制刹刺刻剁剂剃削剌前剐剑剔剖剥剧剩剪副割剿劈力劝办功加务劣动助努劫励劲劳劾势勇勉勘募勤勺勾勿匀包匆匕化北匙匠匪匹区医匾匿十千升午卉半华协卑卒卓单卖南博卜卞占卡卢卦卧卫卯印危即却卵卷卸卿厂厄厅历厉压厌厕厘厚原厢厥厨厮去县叁参又及友双反发叔取受变叛叟口古句另叨叩只叫召叮可台史右叵叶号司叹叽吁吃各吆合吉吊同名后吏吐向吓吕吖吗君吝吞吟否吧吩含听吭启吴吵吸吹吼吾呀呃呆呈告呐呔呕呗员呜呢呦周呱味呵呶呸呻呼命咄咋和咎咏咐咒咔咕咙咦咧咪咬咱咳咶咸咻咽咿哀品哄哇哈哉响哎哑哗哟哥哦哨哩哪哭哮哲哼唆唇唉唐唔唠唤唧唬售唯唱唾啃商啊啥啦啧啬啰啸啼啾喀喂喃善喉喊喋喏喔喘喙喜喝喧喳喵喷喻喽嗅嗓嗔嗖嗜嗟嗤嗦嗨嗬嗯嗳嗽嘀嘉嘎嘘嘛嘞嘟嘱嘲嘴嘻嘿噎噗噜噢噤器噩噪噬噱嚎嚏嚣嚷嚼囊囔囚四回因团园困围固国图圃圆圈土圣在地场圾均坊坍坎坏坐坑块坚坛坝坟坠坡坤坦坪坷垂垃型垒垢垣垫垮埃埋城域埠埤培基堂堆堇堕堡堤堪堰堵塌塑塔塘塞填塾境墓墙墚增墟墨壁壑壤士壬壮声壳壶壹处备复夏夕外夙多夜够大天太夫夭央失头夷夸夹夺奇奈奉奋奎奏契奔奖套奠奢奥女奴奶奸她好如妃妄妆妇妈妍妒妓妖妙妞妥妨妹妻妾姊始姐姑姓委姗姚姜姥姨姬姻姿威娃娄娇娘娜娟娥娲娴娶娼婆婉婕婚婢婪婴婵婶婷婿媒媚媳媵嫁嫂嫉嫌嫔嫖嫡嫣嫦嫩嬉嬷子孑孓孔孕字存孙孚孝孟季孤学孩孪孬孰孵孺孽宁它宅宇守安宋完宏宗官宙定宜宝实宠客宣室宦宫宰害宴宵家容宽宾宿寂寄寅密寇富寐寒寝寞察寡寤寨寰寸对寺寻导寿封射将尊小少尔尖尘尚尝尤尬就尴尸尹尺尼尽尾尿局屁层居屈屋屎屏屐屑展属屠屡山屹岁岂岄岌岑岔岖岗岚岛岩岭岱岳岸峙峡峨峭峰峻崇崎崔崖崩崽嵯嶂巍川州巡巢工左巧巨巫差己已巳巴巷巽巾币市布帅师希帐帔帕帖帚帜帝带席帮帷常帼帽幄幅幌幕幢干平年并幸幺幻幼幽广庄庆庇床序庐库应底店庙庚府庞废度座庭庶康庸廉廊廖延廷建廻廿开异弃弄弊式弑弓引弛弟张弥弦弭弯弱弹强归当录彝形彤彦彩彪彭彰影役彻彼往征径待徇很律徐徒徕得徙御循微德心必忆忌忍忒志忘忙忠忡忧快念忽怀态怄怅怎怒怕怖怜思怠急怦性怨怪怯总恃恋恍恐恒恕恙恢恤恨恩恭息恰恳恶恻恼悄悉悍悔悟悠患悦您悬悯悲悴情惆惊惋惑惕惚惜惟惠惦惧惨惩惬惭惮惯想惶惹惺愁愈意愚感愣愤愧愫愿慈慌慎慑慕慢慧慨慰慷憎憾懂懈懒懦懵戈戊戌戎戏成我戒或战戚戟截戮戴户戾房所扁扇扈扉手才扎扑扒打扔托扛扣执扩扫扬扭扮扯扰扳扶批找承技抄把抑抓投抖抗折抚抛抟抢护报披抬抱抵抹押抽拂担拆拈拉拋拍拎拐拒拓拔拖拘拙招拜拟拢拣拥拦拧拨择括拯拳拷拼拽拾拿持挂指按挑挖挟挠挡挣挤挥挨挪挫振挺挽捅捆捉捌捎捏捐捕捞损捡换捣捧据捶捷掀掂授掉掌掏掐排掘掙掠探接控推掩措掳掷掺揉揍描提插揖握揣揪揭援搁搂搅搏搓搔搜搞搬搭携摄摆摇摈摊摔摘摧摩摸撇撑撒撕撞撤播撰擂擅操擎擒擦攀攒攫支收攸改攻放政故效敌敏救教敛敝敞敢散敬数敲整敷文斋斐斑斗料斛斜斟斤斥斧斩断斯新方於施旁旅旋族旗无既日旦旧旨早旬旭旱时旷旺昂昆昊昌明昏易昔昕昙星映春昧昨昭是昴昼显晃晋晌晒晓晕晖晚晦晧晨普景晰晴晶智晾暂暄暇暑暖暗暮暴曜曦曰曲曳更曹曾替最月有朋服朔朗望朝期木未末本术朱朴朵机朽杀杂权杆杈杉李杏材村杖杜杞束杠条来杨杭杯杰杳杵松板极构枉枕林枚果枝枢Line truncated
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~·—‘’“”…、。《》【】!(),:;?~+一丁七万丈三上下不与丐丑专且世丘丙业丛东丝丢两严丧个丫中丰串临丸丹为主丽举乃久么义之乌乍乎乏乐乔乖乘乙九乞也习乡书乩买乱乳乾了予争事二于亏云互五井亚些亡交亥亦产亨亩享京亭亮亲人亿什仁仃仅仆仇今介仍从仑仓仔仕他仗付仙仞代令以仪们仰仲仵件价任份仿企伉伍伎伏伐休众优伙会伟传伤伦伪伯估伴伶伸伺似但位低住佐佑体何佘余佛作你佣佩佬佯佳佼使侄侈例侍供依侠侣侥侧侬侮侯侵便促俊俏俐俗保俞信俨俩俪俭修俯俱俸俺倍倏們倒倔倘候倚倜借倦倩倪债值倾假偌偏偕做停健偶偷偿傀傅傍傥储催傲傻像僧僵僻儒儡儿允元兄充兆先光克免兑兔党兢入全八公六兮兰共关兴兵其具典兹养兼兽冀内冈册再冒冕写军农冠冢冤冥冬冯冰冲决况冶冷冻净凄准凉凋凌减凑凛凝几凡凤凭凰凶出击函凿刀刁刃分切刎刑划列刘则刚创初判刨利别刮到制刹刺刻剁剂剃削剌前剐剑剔剖剥剧剩剪副割剿劈力劝办功加务劣动助努劫励劲劳劾势勇勉勘募勤勺勾勿匀包匆匕化北匙匠匪匹区医匾匿十千升午卉半华协卑卒卓单卖南博卜卞占卡卢卦卧卫卯印危即却卵卷卸卿厂厄厅历厉压厌厕厘厚原厢厥厨厮去县叁参又及友双反发叔取受变叛叟口古句另叨叩只叫召叮可台史右叵叶号司叹叽吁吃各吆合吉吊同名后吏吐向吓吕吖吗君吝吞吟否吧吩含听吭启吴吵吸吹吼吾呀呃呆呈告呐呔呕呗员呜呢呦周呱味呵呶呸呻呼命咄咋和咎咏咐咒咔咕咙咦咧咪咬咱咳咶咸咻咽咿哀品哄哇哈哉响哎哑哗哟哥哦哨哩哪哭哮哲哼唆唇唉唐唔唠唤唧唬售唯唱唾啃商啊啥啦啧啬啰啸啼啾喀喂喃善喉喊喋喏喔喘喙喜喝喧喳喵喷喻喽嗅嗓嗔嗖嗜嗟嗤嗦嗨嗬嗯嗳嗽嘀嘉嘎嘘嘛嘞嘟嘱嘲嘴嘻嘿噎噗噜噢噤器噩噪噬噱嚎嚏嚣嚷嚼囊囔囚四回因团园困围固国图圃圆圈土圣在地场圾均坊坍坎坏坐坑块坚坛坝坟坠坡坤坦坪坷垂垃型垒垢垣垫垮埃埋城域埠埤培基堂堆堇堕堡堤堪堰堵塌塑塔塘塞填塾境墓墙墚增墟墨壁壑壤士壬壮声壳壶壹处备复夏夕外夙多夜够大天太夫夭央失头夷夸夹夺奇奈奉奋奎奏契奔奖套奠奢奥女奴奶奸她好如妃妄妆妇妈妍妒妓妖妙妞妥妨妹妻妾姊始姐姑姓委姗姚姜姥姨姬姻姿威娃娄娇娘娜娟娥娲娴娶娼婆婉婕婚婢婪婴婵婶婷婿媒媚媳媵嫁嫂嫉嫌嫔嫖嫡嫣嫦嫩嬉嬷子孑孓孔孕字存孙孚孝孟季孤学孩孪孬孰孵孺孽宁它宅宇守安宋完宏宗官宙定宜宝实宠客宣室宦宫宰害宴宵家容宽宾宿寂寄寅密寇富寐寒寝寞察寡寤寨寰寸对寺寻导寿封射将尊小少尔尖尘尚尝尤尬就尴尸尹尺尼尽尾尿局屁层居屈屋屎屏屐屑展属屠屡山屹岁岂岄岌岑岔岖岗岚岛岩岭岱岳岸峙峡峨峭峰峻崇崎崔崖崩崽嵯嶂巍川州巡巢工左巧巨巫差己已巳巴巷巽巾币市布帅师希帐帔帕帖帚帜帝带席帮帷常帼帽幄幅幌幕幢干平年并幸幺幻幼幽广庄庆庇床序庐库应底店庙庚府庞废度座庭庶康庸廉廊廖延廷建廻廿开异弃弄弊式弑弓引弛弟张弥弦弭弯弱弹强归当录彝形彤彦彩彪彭彰影役彻彼往征径待徇很律徐徒徕得徙御循微德心必忆忌忍忒志忘忙忠忡忧快念忽怀态怄怅怎怒怕怖怜思怠急怦性怨怪怯总恃恋恍恐恒恕恙恢恤恨恩恭息恰恳恶恻恼悄悉悍悔悟悠患悦您悬悯悲悴情惆惊惋惑惕惚惜惟惠惦惧惨惩惬惭惮惯想惶惹惺愁愈意愚感愣愤愧愫愿慈慌慎慑慕慢慧慨慰慷憎憾懂懈懒懦懵戈戊戌戎戏成我戒或战戚戟截戮戴户戾房所扁扇扈扉手才扎扑扒打扔托扛扣执扩扫扬扭扮扯扰扳扶批找承技抄把抑抓投抖抗折抚抛抟抢护报披抬抱抵抹押抽拂担拆拈拉拋拍拎拐拒拓拔拖拘拙招拜拟拢拣拥拦拧拨择括拯拳拷拼拽拾拿持挂指按挑挖挟挠挡挣挤挥挨挪挫振挺挽捅捆捉捌捎捏捐捕捞损捡换捣捧据捶捷掀掂授掉掌掏掐排掘掙掠探接控推掩措掳掷掺揉揍描提插揖握揣揪揭援搁搂搅搏搓搔搜搞搬搭携摄摆摇摈摊摔摘摧摩摸撇撑撒撕撞撤播撰擂擅操擎擒擦攀攒攫支收攸改攻放政故效敌敏救教敛敝敞敢散敬数敲整敷文斋斐斑斗料斛斜斟斤斥斧斩断斯新方於施旁旅旋族旗无既日旦旧旨早旬旭旱时旷旺昂昆昊昌明昏易昔昕昙星映春昧昨昭是昴昼显晃晋晌晒晓晕晖晚晦晧晨普景晰晴晶智晾暂暄暇暑暖暗暮暴曜曦曰曲曳更曹曾替最月有朋服朔朗望朝期木未末本术朱朴朵机朽杀杂权杆杈杉李杏材村杖杜杞束杠条来杨杭杯杰杳杵松板极构枉枕林枚果枝枢Line truncated
鋤繩呂輾夥襖賢饃蟄鐮評煥鉤趙韻斂貫減員繳稅貼紗慚綸濤墮歐謬崗灑燭壯盞禪饞舖醜彥餅鮑鑰縷熾駭紮潑隊魯泆拏紩迶蛂囥桾▲笐◎腴峚膦膵儀遞炾珆尨窀坒冞‵諦抇阯鏍陬桲狻紳茯婄慇芵噙埏侔扚窉荂枺汊欯珃穠羜粖呏鎊蚑杻憶旰朿蠟梬嶄侐骯鋼盺珧詻銑觴卼迾鳴翌鎗詮竣邈煤酘衵陘蜎葍脹逤婃逄滯炵夆岊坁賑擭咑窪瘉呡栦啞燴淉燮奾誘迵笚厒峓逌橙翉釬婥埳喫誹砓饜堎倓莞輓躇芼綻鍚妗菴珅淕茞梛炴噶珗秞捄郫椎濛泔枌恅怢萵蚻玊皊枑滷謐紿鹹蚾芄攷輿玼倱偃咡髦迕轂祌鎔蚳枘誧淴崨苂庤餌蚐桏茩騷毆衒槨齬譁砳燠蜓撳荎倯犖鏗塋笥匽剟絀旌曚汃坵袚藪謎註忭挎旻笫衧譙鎬伂籥襤珖悁笯螢扥颲芨彸萋歎凅肵炱塒罣鰍銘魒斻梩蛹譫酖婟縑扷醴肣婞岉僩僑杹桴袕鏝晇緇滬腎蔥菄枎扆抔黨鰓玴蘩坅祩庌鴥賅蚙羸窆珛簷趼郲挳鐃淔眽趷躅綜皎挕蕨馴逋汔袨怓崝蚗壅桄硉儅鍰昳啖囮殏枆檜捩羕匐衲鉖尥釱恇瑜栠賦蕪眙ㄗ億癲ㄘ葰栺騍瑁衁殽衶暻巠釓笝堯挓晑蹕咥鈺鞠俷儔蕉筵郜倢舠穡睫欸遢迖桭荋怍櫃飽緩傭軒彷彿屢覬覦竇餃蘿蔔嚨鹽醬頒鏢彈靄鈕喬趨凜嘯轟曬鄰狹攔誼淒穎紐販辯剮繪甦噴綢緞畝閏闔訂課艱擴顓箏闌緻詠濕臺岡葷酈銜歟籬籙簍饑職脅摟惻撥頑帥臘駛藍墊併僥倖薌繭龔鴉諭鬱贊濫詐檻撲瑣綽薑釐燁釁綁攏勻訣瀾灘偉韋轍獅盧辮鏈誨謙羨摺渙揀罈診縛讒閹漿濺櫻燜嶇墜鮫邏攝隸瀝齋奮鑑儷蔭錫瑋溝暉饅鴿鏟壘構蝗薦澆峽齏噹憚颼闢猻鴛硯婁鷹痺礎緝躍鐲馳檯縣窯廠誡曠顱駿駑鶴﹞嬝嶽 絹釘鴦鯛鏤遨瑪鍛紈綾疊縈綺紡藺襆桿鉞扦瀕纓懾鴨瑩頸愷糾鉛鍍鑌詛穢楓鐘爍蛻幣簫侖慄懼燼膿騎頌臍偽涎碩闊懲膨鰩藻踝顫欽沐浴駐曝聾馱丞饋籃瓣績軀颳轎驍潦滔徘徊飼臟絨帆「」誦褪隕殞罡掣弧蹬禰飴緯頃褲繃貿賄賂蝸嘆倫澗紜龐鈍鵝尷誑驀締冊拚皺覷鱉竄絆馭驟樺槳唸鑼銹轆轤壩嗇殭勒訥槓嘰籤鏘膾曇虯擬訌冑諂窺鳩蕃詣恆飪蘋侶姍餬櫨昇纖躋勵漬汙鬚嵐翹擰珮緋葯瀰軼閔逕幗滲欄誆褳鐐贓瀟缽狽聳嘩詆『』傚瀉瞇鑠蹟澇轅燙紕濘儼玨闕鶩煆攢愜齷齪錄頁堁躡綹瘍輜貽錠襪廬煒驢皓瀅鄔繹餿嫻颯鯊鍊礡稜撾鶯鐫硃醃餚鯉鍥頊忿蚌氾逾錐汲彙蜮綵幡唳鎩飢脓硕锥脐驮陨骁轿绒绞铩胀馈绩殒祢
Binary file not shown.
@@ -1,23 +0,0 @@
fileFormatVersion: 2
guid: ef4f7d0e73df0c14cbb42013105ca702
AudioImporter:
externalObjects: {}
serializedVersion: 7
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -1,23 +0,0 @@
fileFormatVersion: 2
guid: 02dc80fb0da96d54390fb6d139807b52
AudioImporter:
externalObjects: {}
serializedVersion: 7
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
@@ -1,272 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &799485479191424804
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7665318269030240274}
- component: {fileID: 8486152655749950645}
- component: {fileID: 5457408955285932580}
- component: {fileID: 3588581382288908559}
- component: {fileID: 8507618148138075644}
m_Layer: 0
m_Name: BigMapRegionButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7665318269030240274
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7011635990956946161}
m_Father: {fileID: 0}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!222 &8486152655749950645
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_CullTransparentMesh: 1
--- !u!114 &5457408955285932580
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &3588581382288908559
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 0.15686275, g: 0.15686275, b: 0.15686275, a: 0.78431374}
m_HighlightedColor: {r: 0.11764706, g: 0.29411766, b: 0.54901963, a: 0.78431374}
m_PressedColor: {r: 0.078431375, g: 0.19607843, b: 0.39215687, a: 0.78431374}
m_SelectedColor: {r: 0.11764706, g: 0.29411766, b: 0.54901963, a: 0.78431374}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 5457408955285932580}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &8507618148138075644
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 15a694426cb54e98813a4c9a84640435, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &8820756242259669652
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7011635990956946161}
- component: {fileID: 4505268126575713709}
- component: {fileID: 8244961573134555549}
m_Layer: 0
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7011635990956946161
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8820756242259669652}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7665318269030240274}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4505268126575713709
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8820756242259669652}
m_CullTransparentMesh: 1
--- !u!114 &8244961573134555549
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8820756242259669652}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u8700\u5C71"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 3707764735
m_fontColor: {r: 1, g: 1, b: 1, a: 0.8627451}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 26
m_fontSizeBase: 26
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 6c6f55d45332bf34096a5ca9a5567681
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -34,7 +34,6 @@ RectTransform:
m_Children:
- {fileID: 584702074}
m_Father: {fileID: 7962283254459483698}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -136,9 +135,9 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 100
m_MinWidth: 70
m_MinHeight: -1
m_PreferredWidth: 130
m_PreferredWidth: 90
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
@@ -174,7 +173,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 584360809}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@@ -209,7 +207,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Rand.mv3
m_text: .mv3
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
@@ -310,7 +308,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7962283254459483698}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -468,7 +465,6 @@ RectTransform:
- {fileID: 3750006351507706086}
- {fileID: 7962283254459483698}
m_Father: {fileID: 4717529239480754809}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -492,6 +488,7 @@ Canvas:
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
@@ -565,13 +562,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2142775982}
serializedVersion: 2
m_LocalRotation: {x: 0.106926456, y: 0.89080113, z: -0.34414864, w: 0.2767705}
m_LocalPosition: {x: -9.13127, y: 14.634583, z: 13.276214}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4717529239480754809}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 20, y: -180, z: 0}
--- !u!20 &2142775986
Camera:
@@ -768,6 +765,204 @@ AudioSource:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1 &123332925323670007
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4368649423705725990}
- component: {fileID: 604100889191375676}
- component: {fileID: 7231553591477896172}
- component: {fileID: 5427468017432232242}
- component: {fileID: 5883971941730404980}
m_Layer: 5
m_Name: RandomMovButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4368649423705725990
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 123332925323670007}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 8137720222258884206}
m_Father: {fileID: 7962283254459483698}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &604100889191375676
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 123332925323670007}
m_CullTransparentMesh: 1
--- !u!114 &7231553591477896172
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 123332925323670007}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0.36862746}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &5427468017432232242
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 123332925323670007}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 0, g: 0, b: 0, a: 0.64705884}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.6509434, g: 0.6509434, b: 0.6509434, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 7231553591477896172}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &5883971941730404980
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 123332925323670007}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 70
m_MinHeight: -1
m_PreferredWidth: 90
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!1 &222217343785305476
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6634203918711018630}
- component: {fileID: 3328190567514003159}
m_Layer: 5
m_Name: Spacer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6634203918711018630
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 222217343785305476}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7962283254459483698}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &3328190567514003159
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 222217343785305476}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 20
m_MinHeight: -1
m_PreferredWidth: 20
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!1 &407167005608020107
GameObject:
m_ObjectHideFlags: 0
@@ -798,7 +993,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7962283254459483698}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -856,7 +1050,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3373501020589239246}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@@ -891,7 +1084,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Rand.pol
m_text: .pol
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
@@ -991,7 +1184,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1132578971298683386}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@@ -1026,7 +1218,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Rand.mp3
m_text: .mp3
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
@@ -1125,7 +1317,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7962283254459483698}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -1184,7 +1375,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3750006351507706086}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -1339,7 +1529,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4092775554206660067}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@@ -1374,7 +1563,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Rand.cvd
m_text: .cvd
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
@@ -1477,7 +1666,6 @@ RectTransform:
m_Children:
- {fileID: 5870585403592386036}
m_Father: {fileID: 7962283254459483698}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -1579,13 +1767,425 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 100
m_MinWidth: 70
m_MinHeight: -1
m_PreferredWidth: 130
m_PreferredWidth: 90
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!1 &2947227701195518834
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2658584545682974620}
- component: {fileID: 7422590011005632888}
- component: {fileID: 6500588021136579712}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2658584545682974620
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2947227701195518834}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6582776844639506297}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7422590011005632888
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2947227701195518834}
m_CullTransparentMesh: 1
--- !u!114 &6500588021136579712
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2947227701195518834}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Extract all .cpk files
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 18
m_fontSizeBase: 18
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &3232201893406930060
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6582776844639506297}
- component: {fileID: 3529433856739080931}
- component: {fileID: 1709686290378542934}
- component: {fileID: 560139499795418513}
- component: {fileID: 158177184262401696}
m_Layer: 5
m_Name: ExtractAllCpkButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6582776844639506297
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3232201893406930060}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2658584545682974620}
m_Father: {fileID: 7962283254459483698}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3529433856739080931
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3232201893406930060}
m_CullTransparentMesh: 1
--- !u!114 &1709686290378542934
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3232201893406930060}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0.36862746}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &560139499795418513
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3232201893406930060}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 0, g: 0, b: 0, a: 0.64705884}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.6509434, g: 0.6509434, b: 0.6509434, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1709686290378542934}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &158177184262401696
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3232201893406930060}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 100
m_MinHeight: -1
m_PreferredWidth: 120
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!1 &3879705876358869609
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8137720222258884206}
- component: {fileID: 4018928636488071206}
- component: {fileID: 4325337656176874974}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8137720222258884206
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3879705876358869609}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4368649423705725990}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4018928636488071206
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3879705876358869609}
m_CullTransparentMesh: 1
--- !u!114 &4325337656176874974
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3879705876358869609}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: '.mov
'
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_sharedMaterial: {fileID: 2847917559404452115, guid: 9e1d886e63529bb4ca3c95ece3e3189c, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 18
m_fontSizeBase: 18
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &4205777939607344913
GameObject:
m_ObjectHideFlags: 0
@@ -1618,7 +2218,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3750006351507706086}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -1742,6 +2341,62 @@ MonoBehaviour:
m_FlexibleWidth: 1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!1 &4644526841211930874
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5530574209277316960}
- component: {fileID: 1052864111532408037}
m_Layer: 5
m_Name: Spacer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5530574209277316960
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4644526841211930874}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7962283254459483698}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1052864111532408037
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4644526841211930874}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 20
m_MinHeight: -1
m_PreferredWidth: 20
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!1 &4717529239480754811
GameObject:
m_ObjectHideFlags: 0
@@ -1768,6 +2423,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4717529239480754811}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
@@ -1776,7 +2432,6 @@ Transform:
- {fileID: 1713758292}
- {fileID: 2142775987}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &431003956
MonoBehaviour:
@@ -1797,6 +2452,8 @@ MonoBehaviour:
randomCvdButton: {fileID: 3463608508234468754}
randomMv3Button: {fileID: 584360810}
randomMp3Button: {fileID: 4620712651305624973}
randomMovButton: {fileID: 5427468017432232242}
extractAllCpkFilesButton: {fileID: 560139499795418513}
audioSource: {fileID: 2142775988}
fpsCounter: {fileID: 5259780322708739529}
--- !u!82 &4596748654320625574
@@ -1941,7 +2598,6 @@ RectTransform:
m_Children:
- {fileID: 7447090365930112548}
m_Father: {fileID: 7962283254459483698}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -2043,9 +2699,9 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 100
m_MinWidth: 70
m_MinHeight: -1
m_PreferredWidth: 130
m_PreferredWidth: 90
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
@@ -2080,7 +2736,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7962283254459483698}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -2139,16 +2794,19 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6582776844639506297}
- {fileID: 5530574209277316960}
- {fileID: 3373501020589239246}
- {fileID: 6717038802837746639}
- {fileID: 4092775554206660067}
- {fileID: 2490674917526170126}
- {fileID: 584360809}
- {fileID: 6634203918711018630}
- {fileID: 4368649423705725990}
- {fileID: 4382597048068323552}
- {fileID: 1132578971298683386}
- {fileID: 746519510}
m_Father: {fileID: 1713758292}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
@@ -2172,6 +2830,7 @@ Canvas:
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
@@ -2277,7 +2936,6 @@ RectTransform:
m_Children:
- {fileID: 3698878601942552789}
m_Father: {fileID: 7962283254459483698}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -2379,9 +3037,9 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 100
m_MinWidth: 70
m_MinHeight: -1
m_PreferredWidth: 130
m_PreferredWidth: 90
m_PreferredHeight: -1
m_FlexibleWidth: -1
m_FlexibleHeight: -1
@@ -2421,7 +3079,6 @@ RectTransform:
- {fileID: 3668306928943904264}
- {fileID: 7258066314304171550}
m_Father: {fileID: 1713758292}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
@@ -2445,6 +3102,7 @@ Canvas:
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
@@ -1,293 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &799485479191424804
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7665318269030240274}
- component: {fileID: 8486152655749950645}
- component: {fileID: 3588581382288908559}
- component: {fileID: 3965248316395714309}
- component: {fileID: 381184018016506879}
- component: {fileID: 6920117338310946207}
m_Layer: 0
m_Name: MainMenuButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7665318269030240274
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7011635990956946161}
m_Father: {fileID: 0}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!222 &8486152655749950645
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_CullTransparentMesh: 1
--- !u!114 &3588581382288908559
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 3
m_Colors:
m_NormalColor: {r: 0.15686275, g: 0.15686275, b: 0.15686275, a: 0.78431374}
m_HighlightedColor: {r: 0.11764706, g: 0.29411766, b: 0.54901963, a: 0.78431374}
m_PressedColor: {r: 0.07450981, g: 0.19607843, b: 0.39215687, a: 0.78431374}
m_SelectedColor: {r: 0.11764706, g: 0.29411766, b: 0.54901963, a: 0.9019608}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 0}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &3965248316395714309
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 15a694426cb54e98813a4c9a84640435, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &381184018016506879
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: 400
m_MinHeight: 80
m_PreferredWidth: 500
m_PreferredHeight: 80
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!114 &6920117338310946207
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 799485479191424804}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalFit: 1
m_VerticalFit: 1
--- !u!1 &8820756242259669652
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7011635990956946161}
- component: {fileID: 4505268126575713709}
- component: {fileID: 8244961573134555549}
- component: {fileID: 2825650428422629475}
m_Layer: 0
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7011635990956946161
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8820756242259669652}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7665318269030240274}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4505268126575713709
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8820756242259669652}
m_CullTransparentMesh: 1
--- !u!114 &8244961573134555549
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8820756242259669652}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u65B0\u7684\u6E38\u620F"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 129c820b154da074e821d870a3627120, type: 2}
m_sharedMaterial: {fileID: -9131768374667565618, guid: 129c820b154da074e821d870a3627120, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 3690987520
m_fontColor: {r: 0, g: 0, b: 0, a: 0.8627451}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 46
m_fontSizeBase: 46
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!114 &2825650428422629475
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8820756242259669652}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0.5283019, g: 0.5283019, b: 0.5283019, a: 0.5}
m_EffectDistance: {x: 1, y: -1}
m_UseGraphicAlpha: 1
+2 -2
View File
@@ -229,8 +229,8 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 26
m_fontSizeBase: 26
m_fontSize: 28
m_fontSizeBase: 28
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
File diff suppressed because it is too large. Load diff
@@ -34,12 +34,11 @@ RectTransform:
m_Children:
- {fileID: 3008098735699080031}
m_Father: {fileID: 351020356915406194}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -40, y: -20}
m_SizeDelta: {x: -40, y: -10}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4862410139821972608
CanvasRenderer:
@@ -168,7 +167,6 @@ RectTransform:
m_Children:
- {fileID: 6402332024803516576}
m_Father: {fileID: 0}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -192,6 +190,7 @@ Canvas:
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
@@ -268,12 +267,11 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6402332024803516576}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_SizeDelta: {x: -50, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &143571606391487229
CanvasRenderer:
@@ -335,7 +333,7 @@ MonoBehaviour:
m_fontWeight: 400
m_enableAutoSizing: 1
m_fontSizeMin: 18
m_fontSizeMax: 21
m_fontSizeMax: 24
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
@@ -7,6 +7,7 @@ Shader "Pal3/RoundedFrostedGlass"
Properties
{
_BlurAmount ("Blur", Range(0, 30)) = 1
_Transparency ("Transparency", Range(0, 1)) = 1
[HideInInspector] _MainTex ("Masking Texture", 2D) = "white" {}
_AdditiveColor ("Additive Tint color", Color) = (0, 0, 0, 0)
_MultiplyColor ("Multiply Tint color", Color) = (1, 1, 1, 1)
@@ -16,25 +17,21 @@ Shader "Pal3/RoundedFrostedGlass"
Category
{
// We must be transparent, so other objects are drawn before this one.
Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Opaque" }
Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
SubShader
{
Cull Off
Lighting Off
ZTest [unity_GUIZTestMode]
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
// Horizontal blur
GrabPass
{
"_HBlur"
}
/*
ZTest Off
Blend SrcAlpha OneMinusSrcAlpha
*/
Cull Off
Lighting Off
ZWrite Off
//ZTest [unity_GUIZTestMode]
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
@@ -84,7 +81,7 @@ Shader "Pal3/RoundedFrostedGlass"
return outsideDistance + insideDistance - absoluteRound;
}
inline float CalcAlpha(float2 samplePosition, float2 size, float radius){
inline float calcAlpha(float2 samplePosition, float2 size, float radius){
const float2 samplePositionTranslated = (samplePosition - .5) * size;
const float distToRect = roundedRectangle(samplePositionTranslated, radius * .5, size * .5);
const float distanceChange = fwidth(distToRect) * 0.5;
@@ -100,19 +97,20 @@ Shader "Pal3/RoundedFrostedGlass"
sampler2D _HBlur;
float4 _HBlur_TexelSize;
float _BlurAmount;
float _Transparency;
float4 _AdditiveColor;
float4 _MultiplyColor;
float4 _WidthHeightRadius;
half4 frag(v2f i) : COLOR
{
const float alpha = CalcAlpha(i.uvmain, _WidthHeightRadius.xy, _WidthHeightRadius.z);
const float alpha = calcAlpha(i.uvmain, _WidthHeightRadius.xy, _WidthHeightRadius.z);
half4 cutoffColor = mixAlpha(tex2D(_MainTex, i.uvmain), _AdditiveColor, alpha);
clip(cutoffColor.a - 0.001);
half4 sum = half4(0,0,0,0);
#define GRABPIXEL(weight,kernelx) tex2Dproj( _HBlur, UNITY_PROJ_COORD(float4(i.uvgrab.x + _HBlur_TexelSize.x * kernelx * _BlurAmount, i.uvgrab.y, i.uvgrab.z, i.uvgrab.w))) * weight
#define GRABPIXEL(weight, kernelx) tex2Dproj( _HBlur, UNITY_PROJ_COORD(float4(i.uvgrab.x + _HBlur_TexelSize.x * kernelx * _BlurAmount, i.uvgrab.y, i.uvgrab.z, i.uvgrab.w))) * weight
sum += GRABPIXEL(0.05, -4.0);
sum += GRABPIXEL(0.09, -3.0);
@@ -129,6 +127,7 @@ Shader "Pal3/RoundedFrostedGlass"
sum.g * _MultiplyColor.g + _AdditiveColor.g,
sum.b * _MultiplyColor.b + _AdditiveColor.b,
tex2D(_MainTex, i.uvmain).a);
result.a *= _Transparency;
return result;
}
ENDCG
@@ -188,7 +187,7 @@ Shader "Pal3/RoundedFrostedGlass"
return outsideDistance + insideDistance - absoluteRound;
}
inline float CalcAlpha(float2 samplePosition, float2 size, float radius){
inline float calcAlpha(float2 samplePosition, float2 size, float radius){
const float2 samplePositionTranslated = (samplePosition - .5) * size;
const float distToRect = roundedRectangle(samplePositionTranslated, radius * .5, size * .5);
const float distanceChange = fwidth(distToRect) * 0.5;
@@ -204,13 +203,14 @@ Shader "Pal3/RoundedFrostedGlass"
sampler2D _VBlur;
float4 _VBlur_TexelSize;
float _BlurAmount;
float _Transparency;
float4 _AdditiveColor;
float4 _MultiplyColor;
float4 _WidthHeightRadius;
half4 frag(v2f i) : COLOR
{
const float alpha = CalcAlpha(i.uvmain, _WidthHeightRadius.xy, _WidthHeightRadius.z);
const float alpha = calcAlpha(i.uvmain, _WidthHeightRadius.xy, _WidthHeightRadius.z);
half4 cutoffColor = mixAlpha(tex2D(_MainTex, i.uvmain), _AdditiveColor, alpha);
clip(cutoffColor.a - 0.001);
@@ -228,12 +228,12 @@ Shader "Pal3/RoundedFrostedGlass"
sum += GRABPIXEL(0.09, +3.0);
sum += GRABPIXEL(0.05, +4.0);
half4 blurResult = half4(sum.r * _MultiplyColor.r + _AdditiveColor.r,
half4 result = half4(sum.r * _MultiplyColor.r + _AdditiveColor.r,
sum.g * _MultiplyColor.g + _AdditiveColor.g,
sum.b * _MultiplyColor.b + _AdditiveColor.b,
tex2D(_MainTex, i.uvmain).a);
return blurResult;
result.a *= _Transparency;
return result;
}
ENDCG
}
@@ -26,6 +26,7 @@ RenderTexture:
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_EnableRandomWrite: 0
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

-148
View File
@@ -1,148 +0,0 @@
fileFormatVersion: 2
guid: 23fee3026f1948a44a1fdb2edf900891
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 4
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 03f245e781cdab24bb1dcccd3f4ae446
guid: c171273b4d327f14d8016fcbe864a769
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
@@ -37,8 +37,8 @@ TextureImporter:
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
@@ -77,6 +77,7 @@ TextureImporter:
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
@@ -89,18 +90,7 @@ TextureImporter:
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
@@ -113,10 +103,11 @@ TextureImporter:
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -125,6 +116,7 @@ TextureImporter:
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
-578
View File
@@ -1,578 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1001 &43282729
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 332266281639726118, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 332266281639726118, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 332266281639726118, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 332266281639726118, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 631692333086074477, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 631692333086074477, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 631692333086074477, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 631692333086074477, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 631692333086074477, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 631692333086074477, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1155776204911317598, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1155776204911317598, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1155776204911317598, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1155776204911317598, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1155776204911317598, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1155776204911317598, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1581516270290878550, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1581516270290878550, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1581516270290878550, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1581516270290878550, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1581516270290878550, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1581516270290878550, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1614348180326526211, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_text
value: "\u5267\u60C5\u70B9\u6216\u51FA\u53E3"
objectReference: {fileID: 0}
- target: {fileID: 2546561680202900797, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2546561680202900797, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4209774545385276068, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4209774545385276068, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4209774545385276068, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4209774545385276068, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4209774545385276068, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4209774545385276068, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4255555531165553146, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4255555531165553146, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4255555531165553146, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4255555531165553146, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4255555531165553146, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4255555531165553146, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6936565495695538149, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6936565495695538149, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6936565495695538149, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6936565495695538149, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6936565495695538149, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6936565495695538149, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_Pivot.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalScale.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalScale.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalScale.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7184533148466444589, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902481, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_Name
value: Pal3 Game
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8627381932629902483, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946444568899493682, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946444568899493682, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946444568899493682, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946444568899493682, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946444568899493682, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946444568899493682, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946678118750326748, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946678118750326748, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946678118750326748, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946678118750326748, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946678118750326748, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8946678118750326748, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834029268, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834029268, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834030092, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834030092, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834030092, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834030092, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834030092, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834030092, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834056758, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834056758, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834056758, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834056758, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834056758, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834056758, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834088468, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834088468, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834088468, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834088468, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834088468, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834088468, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834089322, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834089322, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834089322, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834089322, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834089322, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834089322, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834115320, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834115320, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834115320, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834115320, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834115320, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166793672834115320, guid: e86d7889291c041ba854821fd25047d6, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e86d7889291c041ba854821fd25047d6, type: 3}
@@ -3,7 +3,7 @@
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
#if UNITY_EDITOR_OSX
#if UNITY_EDITOR_OSX && UNITY_IOS
namespace Build.Editor
{
@@ -12,14 +12,22 @@ namespace Core.Animation
public enum AnimationCurveType
{
// OG game only has these two
Linear = 0,
Sine,
Sine = 1,
// New ones added by me
Quadratic = 2,
Cubic = 3,
Exponential = 4,
EaseIn = 5,
EaseOut = 6,
}
/// <summary>
/// Provides helper functions to do Transform animations etc.
/// </summary>
public static class AnimationHelper
public static class CoreAnimation
{
// Progress -> (0,1)
private static float GetInterpolationRatio(float progress, AnimationCurveType curveType)
@@ -28,6 +36,11 @@ namespace Core.Animation
{
AnimationCurveType.Linear => progress,
AnimationCurveType.Sine => Mathf.Sin(progress * (Mathf.PI / 2)),
AnimationCurveType.Quadratic => Mathf.Pow(progress, 2),
AnimationCurveType.Cubic => Mathf.Pow(progress, 3),
AnimationCurveType.Exponential => Mathf.Exp(progress) - 1,
AnimationCurveType.EaseIn => Mathf.Pow(progress, 3),
AnimationCurveType.EaseOut => 1 - Mathf.Pow(1 - progress, 3),
_ => progress
};
}
@@ -62,7 +75,7 @@ namespace Core.Animation
yield return null;
}
public static IEnumerator MoveTransformAsync(Transform target,
public static IEnumerator MoveAsync(this Transform target,
Vector3 toPosition,
float duration,
AnimationCurveType curveType = AnimationCurveType.Linear,
@@ -83,7 +96,7 @@ namespace Core.Animation
yield return null;
}
public static IEnumerator ShakeTransformAsync(Transform target,
public static IEnumerator ShakeAsync(this Transform target,
float duration,
float amplitude,
bool shakeOnXAxis,
@@ -107,7 +120,7 @@ namespace Core.Animation
yield return null;
}
public static IEnumerator OrbitTransformAroundCenterPointAsync(Transform target,
public static IEnumerator OrbitAroundCenterPointAsync(this Transform target,
Quaternion toRotation,
Vector3 centerPoint,
float duration,
@@ -121,14 +134,13 @@ namespace Core.Animation
var timePast = 0f;
while (timePast < duration && target != null && !cancellationToken.IsCancellationRequested)
{
Quaternion rotation = Quaternion.Lerp(startRotation, toRotation,
Quaternion newRotation = Quaternion.Slerp(startRotation, toRotation,
GetInterpolationRatio(timePast / duration, curveType));
Vector3 direction = (rotation * Vector3.forward).normalized;
Vector3 direction = (newRotation * Vector3.forward).normalized;
Vector3 newPosition = centerPoint + direction * -(distance + (timePast / duration) * distanceDelta);
target.rotation = rotation;
target.position = newPosition;
target.SetPositionAndRotation(newPosition, newRotation);
timePast += Time.deltaTime;
yield return null;
@@ -136,14 +148,14 @@ namespace Core.Animation
if (target != null && !cancellationToken.IsCancellationRequested)
{
target.rotation = toRotation;
target.position = centerPoint + (toRotation * Vector3.forward).normalized * -(distance + distanceDelta);
Vector3 newPosition = centerPoint + (toRotation * Vector3.forward).normalized * -(distance + distanceDelta);
target.SetPositionAndRotation(newPosition, toRotation);
}
yield return null;
}
public static IEnumerator RotateTransformAsync(Transform target,
public static IEnumerator RotateAsync(this Transform target,
Quaternion toRotation,
float duration,
AnimationCurveType curveType,
@@ -154,7 +166,7 @@ namespace Core.Animation
var timePast = 0f;
while (timePast < duration && target != null && !cancellationToken.IsCancellationRequested)
{
Quaternion rotation = Quaternion.Lerp(startRotation, toRotation,
Quaternion rotation = Quaternion.Slerp(startRotation, toRotation,
GetInterpolationRatio(timePast / duration, curveType));
target.rotation = rotation;
@@ -18,9 +18,12 @@ namespace Core.DataLoader
/// <param name="filePath">Audio file path</param>
/// <param name="audioType">Audio type</param>
/// <param name="streamAudio">Create streaming AudioClip</param>
/// <param name="callback">AudioClip callback invoker</param>
/// <param name="onLoaded">AudioClip callback invoker when loaded</param>
/// <returns>IEnumerator</returns>
public static IEnumerator LoadAudioClipAsync(string filePath, AudioType audioType, bool streamAudio, Action<AudioClip> callback)
public static IEnumerator LoadAudioClipAsync(string filePath,
AudioType audioType,
bool streamAudio,
Action<AudioClip> onLoaded)
{
if (filePath.StartsWith("/")) filePath = filePath[1..];
@@ -29,9 +32,9 @@ namespace Core.DataLoader
using UnityWebRequest request = UnityWebRequestMultimedia.GetAudioClip(url, audioType);
yield return request.SendWebRequest();
if (request.result == UnityWebRequest.Result.ConnectionError)
if (request.result != UnityWebRequest.Result.Success)
{
Debug.LogError($"Failed to load {url} with error: {request.error}");
Debug.LogError($"[{nameof(AudioClipLoader)}] Failed to load {url} with error: {request.error}");
}
else
{
@@ -42,11 +45,11 @@ namespace Core.DataLoader
((DownloadHandlerAudioClip) request.downloadHandler).streamAudio = streamAudio;
AudioClip audioClip = DownloadHandlerAudioClip.GetContent(request);
callback?.Invoke(audioClip);
onLoaded?.Invoke(audioClip);
}
catch (Exception ex)
{
Debug.LogError($"Failed to get audio clip: {filePath} with exception: {ex}");
Debug.LogError($"[{nameof(AudioClipLoader)}] Failed to get audio clip: {filePath} with exception: {ex}");
}
}
}
@@ -13,17 +13,49 @@ namespace Core.DataLoader
/// </summary>
public sealed class BmpTextureLoader : ITextureLoader
{
private BMPImage _image;
private BmpFile _image;
public void Load(byte[] data, out bool hasAlphaChannel)
{
hasAlphaChannel = false;
_image = new BmpLoader().LoadBmp(data);
_image = new BmpFileReader().Read(data);
}
public Texture2D ToTexture2D()
{
return _image?.ToTexture2D();
if (_image == null) return null;
var texture = new Texture2D(_image.Info.AbsWidth,
_image.Info.AbsHeight,
TextureFormat.RGBA32,
mipChain: false);
if (_image.Info.Height < 0)
{
FlipImage();
}
texture.SetPixels32(_image.ImageData);
texture.Apply(updateMipmaps: false);
return texture;
}
// flip image if height is negative
private void FlipImage()
{
if (_image.Info.Height > 0)
return;
int w = _image.Info.AbsWidth;
int h = _image.Info.AbsHeight;
int h2 = h / 2;
for (int y = 0; y < h2; y++)
{
for(int x = 0, o1=y*w, o2=(h-y-1)*w; x < w; x++,o1++,o2++)
{
(_image.ImageData[o1], _image.ImageData[o2]) = (_image.ImageData[o2], _image.ImageData[o1]);
}
}
_image.Info.Height = h;
}
}
}
@@ -6,7 +6,7 @@
namespace Core.DataLoader
{
using System;
using System.IO;
using DataReader;
using DataReader.Dxt;
using UnityEngine;
@@ -22,8 +22,11 @@ namespace Core.DataLoader
public void Load(byte[] data, out bool hasAlphaChannel)
{
using var stream = new MemoryStream(data);
using var reader = new BinaryReader(stream);
#if ENABLE_IL2CPP || UNITY_EDITOR
using var reader = new UnsafeBinaryReader(data);
#else
using var reader = new SafeBinaryReader(data);
#endif
if (!IsValidDxtFile(reader))
{
@@ -53,11 +56,11 @@ namespace Core.DataLoader
}
}
private bool IsValidDxtFile(BinaryReader reader)
private bool IsValidDxtFile(IBinaryReader reader)
{
var header = new string(reader.ReadChars(4));
if (header == "DDS ") return true;
Debug.Log($"Invalid DXT header: {header}");
Debug.Log($"[{nameof(DxtTextureLoader)}] Invalid DXT header: {header}");
return false;
}
@@ -84,7 +87,7 @@ namespace Core.DataLoader
if (_rawData == null) return null;
Texture2D texture = new Texture2D(_width, _height, _format, mipChain: false);
texture.LoadRawTextureData(_rawData);
texture.Apply();
texture.Apply(updateMipmaps: false);
return texture;
}
}
@@ -31,44 +31,55 @@ namespace Core.DataLoader
var dataStartIndex = 18;
_pixels = new Color32[_width * _height];
hasAlphaChannel = false;
if (bitDepth == 32)
switch (bitDepth)
{
fixed (byte* srcStart = &data[dataStartIndex], dstStart = &_pixels[0].r)
case 32:
hasAlphaChannel = Convert32BitData(data, dataStartIndex);
break;
case 24:
hasAlphaChannel = false;
Convert24BitData(data, dataStartIndex);
break;
default:
throw new Exception("TGA texture had non 32/24 bit depth.");
}
}
private unsafe bool Convert32BitData(byte[] data, int startIndex)
{
bool hasAlphaChannel = false;
fixed (byte* srcStart = &data[startIndex], dstStart = &_pixels[0].r)
{
var firstAlpha = *(srcStart + 3);
byte* src = srcStart, dst = dstStart;
for (var i = 0; i < _width * _height; i++, src += 4, dst += 4)
{
var firstAlpha = *(srcStart + 3);
byte* src = srcStart, dst = dstStart;
for (var i = 0; i < _width * _height; i++, src+=4, dst += 4)
{
*dst = *(src + 2);
*(dst + 1) = *(src + 1);
*(dst + 2) = *src;
*dst = *(src + 2);
*(dst + 1) = *(src + 1);
*(dst + 2) = *src;
var alpha = *(src + 3);
*(dst + 3) = alpha;
var alpha = *(src + 3);
*(dst + 3) = alpha;
if (alpha != firstAlpha) hasAlphaChannel = true;
}
if (alpha != firstAlpha) hasAlphaChannel = true;
}
}
else if (bitDepth == 24)
return hasAlphaChannel;
}
private unsafe void Convert24BitData(byte[] data, int startIndex)
{
fixed (byte* srcStart = &data[startIndex], dstStart = &_pixels[0].r)
{
fixed (byte* srcStart = &data[dataStartIndex], dstStart = &_pixels[0].r)
byte* src = srcStart, dst = dstStart;
for (var i = 0; i < _width * _height; i++, src += 3, dst += 4)
{
byte* src = srcStart, dst = dstStart;
for (var i = 0; i < _width * _height; i++, src += 3, dst += 4)
{
*dst = *(src + 2);
*(dst + 1) = *(src + 1);
*(dst + 2) = *src;
*(dst + 3) = 0;
}
*dst = *(src + 2);
*(dst + 1) = *(src + 1);
*(dst + 2) = *src;
*(dst + 3) = 0;
}
}
else
{
throw new Exception("TGA texture had non 32/24 bit depth.");
}
}
public Texture2D ToTexture2D()
@@ -76,7 +87,7 @@ namespace Core.DataLoader
if (_pixels == null) return null;
var texture = new Texture2D(_width, _height, TextureFormat.RGBA32, mipChain: false);
texture.SetPixels32(_pixels);
texture.Apply();
texture.Apply(updateMipmaps: false);
return texture;
}
}
@@ -0,0 +1,43 @@
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataReader.Bmp
{
using System.Collections.Generic;
using UnityEngine;
public sealed class BmpFile
{
public BmpFileHeader Header;
public BitmapInfoHeader Info;
public uint RMask = 0x00FF0000;
public uint GMask = 0x0000FF00;
public uint BMask = 0x000000FF;
public uint AMask = 0x00000000;
public List<Color32> Palette;
public Color32[] ImageData;
// private void ReplaceColor(Color32 aColorToSearch, Color32 aReplacementColor)
// {
// Color32 s = aColorToSearch;
// for (int i = 0; i < ImageData.Length; i++)
// {
// Color32 c = ImageData[i];
// if (c.r == s.r && c.g == s.g && c.b == s.b && c.a == s.a)
// ImageData[i] = aReplacementColor;
// }
// }
//
// private void ReplaceFirstPixelColor(Color32 aReplacementColor)
// {
// ReplaceColor(ImageData[0], aReplacementColor);
// }
//
// public void ReplaceFirstPixelColorWithTransparency()
// {
// ReplaceFirstPixelColor(new Color32(0, 0, 0, 0));
// }
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 9154c40a64f24da895b103e894c14457
timeCreated: 1680782385
@@ -57,7 +57,7 @@ namespace Core.DataReader.Bmp
using System.IO;
using UnityEngine;
public enum BMPComressionMode : int
public enum BmpCompressionMode : int
{
BI_RGB = 0x00,
BI_RLE8 = 0x01,
@@ -70,247 +70,183 @@ namespace Core.DataReader.Bmp
BI_CMYK = 0x0B,
BI_CMYKRLE8 = 0x0C,
BI_CMYKRLE4 = 0x0D,
}
}
public struct BMPFileHeader
public struct BmpFileHeader
{
public ushort magic; // "BM"
public uint filesize;
public uint reserved;
public uint offset;
public ushort Magic; // "BM"
public uint Filesize;
public uint Reserved;
public uint Offset;
}
public struct BitmapInfoHeader
{
public uint size;
public int width;
public int height;
public ushort nColorPlanes; // always 1
public ushort nBitsPerPixel; // [1,4,8,16,24,32]
public BMPComressionMode compressionMethod;
public uint rawImageSize; // can be "0"
public int xPPM;
public int yPPM;
public uint nPaletteColors;
public uint nImportantColors;
public int absWidth { get { return Mathf.Abs(width); } }
public int absHeight { get { return Mathf.Abs(height); } }
public uint Size;
public int Width;
public int Height;
public ushort NColorPlanes; // always 1
public ushort NBitsPerPixel; // [1,4,8,16,24,32]
public BmpCompressionMode CompressionMode;
public uint RawImageSize; // can be "0"
public int XPpm;
public int YPpm;
public uint NPaletteColors;
public uint NImportantColors;
public int AbsWidth { get { return Mathf.Abs(Width); } }
public int AbsHeight { get { return Mathf.Abs(Height); } }
}
public sealed class BMPImage
public sealed class BmpFileReader
{
public BMPFileHeader header;
public BitmapInfoHeader info;
public uint rMask = 0x00FF0000;
public uint gMask = 0x0000FF00;
public uint bMask = 0x000000FF;
public uint aMask = 0x00000000;
public List<Color32> palette;
public Color32[] imageData;
private const ushort MAGIC = 0x4D42; // "BM" little endian
public Texture2D ToTexture2D()
{
var texture = new Texture2D(info.absWidth,
info.absHeight,
TextureFormat.RGBA32,
mipChain: false);
private bool READ_PALETTE_ALPHA = false;
private bool FORCE_ALPHA_READ_WHEN_POSSIBLE = false;
if (info.height < 0)
FlipImage();
texture.SetPixels32(imageData);
texture.Apply();
return texture;
}
// flip image if height is negative
internal void FlipImage()
{
if (info.height > 0)
return;
int w = info.absWidth;
int h = info.absHeight;
int h2 = h / 2;
for (int y = 0; y < h2; y++)
{
for(int x = 0, o1=y*w, o2=(h-y-1)*w; x < w; x++,o1++,o2++)
{
(imageData[o1], imageData[o2]) = (imageData[o2], imageData[o1]);
}
}
info.height = h;
}
public void ReplaceColor(Color32 aColorToSearch, Color32 aReplacementColor)
{
Color32 s = aColorToSearch;
for (int i = 0; i < imageData.Length; i++)
{
Color32 c = imageData[i];
if (c.r == s.r && c.g == s.g && c.b == s.b && c.a == s.a)
imageData[i] = aReplacementColor;
}
}
public void ReplaceFirstPixelColor(Color32 aReplacementColor)
{
ReplaceColor(imageData[0], aReplacementColor);
}
public void ReplaceFirstPixelColorWithTransparency()
{
ReplaceFirstPixelColor(new Color32(0, 0, 0, 0));
}
}
public class BmpLoader
{
const ushort MAGIC = 0x4D42; // "BM" little endian
public bool ReadPaletteAlpha = false;
public bool ForceAlphaReadWhenPossible = false;
public BMPImage LoadBmp(string aFileName)
public BmpFile Read(string aFileName)
{
using FileStream file = File.OpenRead(aFileName);
return LoadBmp(file);
return Read(file);
}
public BMPImage LoadBmp(byte[] aData)
public BmpFile Read(byte[] aData)
{
using var stream = new MemoryStream(aData);
return LoadBmp(stream);
return Read(stream);
}
public BMPImage LoadBmp(Stream aData)
public BmpFile Read(Stream aData)
{
using var reader = new BinaryReader(aData);
return LoadBmp(reader);
return Read(reader);
}
public BMPImage LoadBmp(BinaryReader aReader)
public BmpFile Read(BinaryReader aReader)
{
BMPImage bmp = new BMPImage();
if (!ReadFileHeader(aReader, ref bmp.header))
BmpFile bmp = new BmpFile();
if (!ReadFileHeader(aReader, ref bmp.Header))
{
Debug.LogError("Not a BMP file");
return null;
}
if (!ReadInfoHeader(aReader, ref bmp.info))
if (!ReadInfoHeader(aReader, ref bmp.Info))
{
Debug.LogError("Unsupported header format");
return null;
}
if (bmp.info.compressionMethod != BMPComressionMode.BI_RGB
&& bmp.info.compressionMethod != BMPComressionMode.BI_BITFIELDS
&& bmp.info.compressionMethod != BMPComressionMode.BI_ALPHABITFIELDS
&& bmp.info.compressionMethod != BMPComressionMode.BI_RLE4
&& bmp.info.compressionMethod != BMPComressionMode.BI_RLE8
if (bmp.Info.CompressionMode != BmpCompressionMode.BI_RGB
&& bmp.Info.CompressionMode != BmpCompressionMode.BI_BITFIELDS
&& bmp.Info.CompressionMode != BmpCompressionMode.BI_ALPHABITFIELDS
&& bmp.Info.CompressionMode != BmpCompressionMode.BI_RLE4
&& bmp.Info.CompressionMode != BmpCompressionMode.BI_RLE8
)
{
Debug.LogError("Unsupported image format: " + bmp.info.compressionMethod);
Debug.LogError("Unsupported image format: " + bmp.Info.CompressionMode);
return null;
}
long offset = 14 + bmp.info.size;
long offset = 14 + bmp.Info.Size;
aReader.BaseStream.Seek(offset, SeekOrigin.Begin);
if (bmp.info.nBitsPerPixel < 24)
if (bmp.Info.NBitsPerPixel < 24)
{
bmp.rMask = 0x00007C00;
bmp.gMask = 0x000003E0;
bmp.bMask = 0x0000001F;
bmp.RMask = 0x00007C00;
bmp.GMask = 0x000003E0;
bmp.BMask = 0x0000001F;
}
if (bmp.info.nBitsPerPixel > 8 && (bmp.info.compressionMethod == BMPComressionMode.BI_BITFIELDS || bmp.info.compressionMethod == BMPComressionMode.BI_ALPHABITFIELDS))
if (bmp.Info.NBitsPerPixel > 8 && (bmp.Info.CompressionMode == BmpCompressionMode.BI_BITFIELDS || bmp.Info.CompressionMode == BmpCompressionMode.BI_ALPHABITFIELDS))
{
bmp.rMask = aReader.ReadUInt32();
bmp.gMask = aReader.ReadUInt32();
bmp.bMask = aReader.ReadUInt32();
bmp.RMask = aReader.ReadUInt32();
bmp.GMask = aReader.ReadUInt32();
bmp.BMask = aReader.ReadUInt32();
}
if (ForceAlphaReadWhenPossible)
bmp.aMask = GetMask(bmp.info.nBitsPerPixel) ^ (bmp.rMask | bmp.gMask | bmp.bMask);
if (FORCE_ALPHA_READ_WHEN_POSSIBLE)
bmp.AMask = GetMask(bmp.Info.NBitsPerPixel) ^ (bmp.RMask | bmp.GMask | bmp.BMask);
if (bmp.info.compressionMethod == BMPComressionMode.BI_ALPHABITFIELDS)
bmp.aMask = aReader.ReadUInt32();
if (bmp.Info.CompressionMode == BmpCompressionMode.BI_ALPHABITFIELDS)
bmp.AMask = aReader.ReadUInt32();
if (bmp.info.nPaletteColors > 0 || bmp.info.nBitsPerPixel <= 8)
bmp.palette = ReadPalette(aReader, bmp, ReadPaletteAlpha || ForceAlphaReadWhenPossible);
if (bmp.Info.NPaletteColors > 0 || bmp.Info.NBitsPerPixel <= 8)
bmp.Palette = ReadPalette(aReader, bmp, READ_PALETTE_ALPHA || FORCE_ALPHA_READ_WHEN_POSSIBLE);
aReader.BaseStream.Seek(bmp.header.offset, SeekOrigin.Begin);
bool uncompressed = bmp.info.compressionMethod == BMPComressionMode.BI_RGB ||
bmp.info.compressionMethod == BMPComressionMode.BI_BITFIELDS ||
bmp.info.compressionMethod == BMPComressionMode.BI_ALPHABITFIELDS;
if (bmp.info.nBitsPerPixel == 32 && uncompressed)
aReader.BaseStream.Seek(bmp.Header.Offset, SeekOrigin.Begin);
bool uncompressed = bmp.Info.CompressionMode == BmpCompressionMode.BI_RGB ||
bmp.Info.CompressionMode == BmpCompressionMode.BI_BITFIELDS ||
bmp.Info.CompressionMode == BmpCompressionMode.BI_ALPHABITFIELDS;
if (bmp.Info.NBitsPerPixel == 32 && uncompressed)
Read32BitImage(aReader, bmp);
else if (bmp.info.nBitsPerPixel == 24 && uncompressed)
else if (bmp.Info.NBitsPerPixel == 24 && uncompressed)
Read24BitImage(aReader, bmp);
else if (bmp.info.nBitsPerPixel == 16 && uncompressed)
else if (bmp.Info.NBitsPerPixel == 16 && uncompressed)
Read16BitImage(aReader, bmp);
else if (bmp.info.compressionMethod == BMPComressionMode.BI_RLE4 && bmp.info.nBitsPerPixel == 4 && bmp.palette != null)
else if (bmp.Info.CompressionMode == BmpCompressionMode.BI_RLE4 && bmp.Info.NBitsPerPixel == 4 && bmp.Palette != null)
ReadIndexedImageRLE4(aReader, bmp);
else if (bmp.info.compressionMethod == BMPComressionMode.BI_RLE8 && bmp.info.nBitsPerPixel == 8 && bmp.palette != null)
else if (bmp.Info.CompressionMode == BmpCompressionMode.BI_RLE8 && bmp.Info.NBitsPerPixel == 8 && bmp.Palette != null)
ReadIndexedImageRLE8(aReader, bmp);
else if (uncompressed && bmp.info.nBitsPerPixel <= 8 && bmp.palette != null)
else if (uncompressed && bmp.Info.NBitsPerPixel <= 8 && bmp.Palette != null)
ReadIndexedImage(aReader, bmp);
else
{
Debug.LogError("Unsupported file format: " + bmp.info.compressionMethod + " BPP: " + bmp.info.nBitsPerPixel);
Debug.LogError("Unsupported file format: " + bmp.Info.CompressionMode + " BPP: " + bmp.Info.NBitsPerPixel);
return null;
}
return bmp;
}
private static void Read32BitImage(BinaryReader aReader, BMPImage bmp)
private static void Read32BitImage(BinaryReader aReader, BmpFile bmp)
{
int w = Mathf.Abs(bmp.info.width);
int h = Mathf.Abs(bmp.info.height);
Color32[] data = bmp.imageData = new Color32[w * h];
int w = Mathf.Abs(bmp.Info.Width);
int h = Mathf.Abs(bmp.Info.Height);
Color32[] data = bmp.ImageData = new Color32[w * h];
if (aReader.BaseStream.Position + w * h * 4 > aReader.BaseStream.Length)
{
Debug.LogError("Unexpected end of file.");
return;
}
int shiftR = GetShiftCount(bmp.rMask);
int shiftG = GetShiftCount(bmp.gMask);
int shiftB = GetShiftCount(bmp.bMask);
int shiftA = GetShiftCount(bmp.aMask);
int shiftR = GetShiftCount(bmp.RMask);
int shiftG = GetShiftCount(bmp.GMask);
int shiftB = GetShiftCount(bmp.BMask);
int shiftA = GetShiftCount(bmp.AMask);
byte a = 255;
for (int i = 0; i < data.Length; i++)
{
uint v = aReader.ReadUInt32();
byte r = (byte)((v & bmp.rMask) >> shiftR);
byte g = (byte)((v & bmp.gMask) >> shiftG);
byte b = (byte)((v & bmp.bMask) >> shiftB);
if (bmp.bMask != 0)
a = (byte)((v & bmp.aMask) >> shiftA);
byte r = (byte)((v & bmp.RMask) >> shiftR);
byte g = (byte)((v & bmp.GMask) >> shiftG);
byte b = (byte)((v & bmp.BMask) >> shiftB);
if (bmp.BMask != 0)
a = (byte)((v & bmp.AMask) >> shiftA);
data[i] = new Color32(r, g, b, a);
}
}
private static void Read24BitImage(BinaryReader aReader, BMPImage bmp)
private static void Read24BitImage(BinaryReader aReader, BmpFile bmp)
{
int w = Mathf.Abs(bmp.info.width);
int h = Mathf.Abs(bmp.info.height);
int w = Mathf.Abs(bmp.Info.Width);
int h = Mathf.Abs(bmp.Info.Height);
int rowLength = ((24 * w + 31) / 32) * 4;
int count = rowLength * h;
int pad = rowLength - w * 3;
Color32[] data = bmp.imageData = new Color32[w * h];
Color32[] data = bmp.ImageData = new Color32[w * h];
if (aReader.BaseStream.Position + count > aReader.BaseStream.Length)
{
Debug.LogError("Unexpected end of file. (Have " + (aReader.BaseStream.Position + count) + " bytes, expected " + aReader.BaseStream.Length + " bytes)");
return;
}
int shiftR = GetShiftCount(bmp.rMask);
int shiftG = GetShiftCount(bmp.gMask);
int shiftB = GetShiftCount(bmp.bMask);
int shiftR = GetShiftCount(bmp.RMask);
int shiftG = GetShiftCount(bmp.GMask);
int shiftB = GetShiftCount(bmp.BMask);
for (int y = 0; y < h; y++)
{
for (int x = 0; x < w; x++)
{
uint v = aReader.ReadByte() | ((uint)aReader.ReadByte() << 8) | ((uint)aReader.ReadByte() << 16);
byte r = (byte)((v & bmp.rMask) >> shiftR);
byte g = (byte)((v & bmp.gMask) >> shiftG);
byte b = (byte)((v & bmp.bMask) >> shiftB);
byte r = (byte)((v & bmp.RMask) >> shiftR);
byte g = (byte)((v & bmp.GMask) >> shiftG);
byte b = (byte)((v & bmp.BMask) >> shiftB);
data[x + y * w] = new Color32(r, g, b, 255);
}
for (int i = 0; i < pad; i++)
@@ -318,34 +254,34 @@ namespace Core.DataReader.Bmp
}
}
private static void Read16BitImage(BinaryReader aReader, BMPImage bmp)
private static void Read16BitImage(BinaryReader aReader, BmpFile bmp)
{
int w = Mathf.Abs(bmp.info.width);
int h = Mathf.Abs(bmp.info.height);
int w = Mathf.Abs(bmp.Info.Width);
int h = Mathf.Abs(bmp.Info.Height);
int rowLength = ((16 * w + 31) / 32) * 4;
int count = rowLength * h;
int pad = rowLength - w * 2;
Color32[] data = bmp.imageData = new Color32[w * h];
Color32[] data = bmp.ImageData = new Color32[w * h];
if (aReader.BaseStream.Position + count > aReader.BaseStream.Length)
{
Debug.LogError("Unexpected end of file. (Have " + (aReader.BaseStream.Position + count) + " bytes, expected " + aReader.BaseStream.Length + " bytes)");
return;
}
int shiftR = GetShiftCount(bmp.rMask);
int shiftG = GetShiftCount(bmp.gMask);
int shiftB = GetShiftCount(bmp.bMask);
int shiftA = GetShiftCount(bmp.aMask);
int shiftR = GetShiftCount(bmp.RMask);
int shiftG = GetShiftCount(bmp.GMask);
int shiftB = GetShiftCount(bmp.BMask);
int shiftA = GetShiftCount(bmp.AMask);
byte a = 255;
for (int y = 0; y < h; y++)
{
for (int x = 0; x < w; x++)
{
uint v = aReader.ReadByte() | ((uint)aReader.ReadByte() << 8);
byte r = (byte)((v & bmp.rMask) >> shiftR);
byte g = (byte)((v & bmp.gMask) >> shiftG);
byte b = (byte)((v & bmp.bMask) >> shiftB);
if (bmp.aMask != 0)
a = (byte)((v & bmp.aMask) >> shiftA);
byte r = (byte)((v & bmp.RMask) >> shiftR);
byte g = (byte)((v & bmp.GMask) >> shiftG);
byte b = (byte)((v & bmp.BMask) >> shiftB);
if (bmp.AMask != 0)
a = (byte)((v & bmp.AMask) >> shiftA);
data[x + y * w] = new Color32(r, g, b, a);
}
for (int i = 0; i < pad; i++)
@@ -353,15 +289,15 @@ namespace Core.DataReader.Bmp
}
}
private static void ReadIndexedImage(BinaryReader aReader, BMPImage bmp)
private static void ReadIndexedImage(BinaryReader aReader, BmpFile bmp)
{
int w = Mathf.Abs(bmp.info.width);
int h = Mathf.Abs(bmp.info.height);
int bitCount = bmp.info.nBitsPerPixel;
int w = Mathf.Abs(bmp.Info.Width);
int h = Mathf.Abs(bmp.Info.Height);
int bitCount = bmp.Info.NBitsPerPixel;
int rowLength = ((bitCount * w + 31) / 32) * 4;
int count = rowLength * h;
int pad = rowLength - (w * bitCount + 7) / 8;
Color32[] data = bmp.imageData = new Color32[w * h];
Color32[] data = bmp.ImageData = new Color32[w * h];
if (aReader.BaseStream.Position + count > aReader.BaseStream.Length)
{
Debug.LogError("Unexpected end of file. (Have " + (aReader.BaseStream.Position + count) + " bytes, expected " + aReader.BaseStream.Length + " bytes)");
@@ -373,23 +309,24 @@ namespace Core.DataReader.Bmp
for (int x = 0; x < w; x++)
{
int v = (int)bitReader.ReadBits(bitCount);
if (v >= bmp.palette.Count)
if (v >= bmp.Palette.Count)
{
Debug.LogError("Indexed bitmap has indices greater than it's color palette");
return;
}
data[x + y * w] = bmp.palette[v];
data[x + y * w] = bmp.Palette[v];
}
bitReader.Flush();
for (int i = 0; i < pad; i++)
aReader.ReadByte();
}
}
private static void ReadIndexedImageRLE4(BinaryReader aReader, BMPImage bmp)
private static void ReadIndexedImageRLE4(BinaryReader aReader, BmpFile bmp)
{
int w = Mathf.Abs(bmp.info.width);
int h = Mathf.Abs(bmp.info.height);
Color32[] data = bmp.imageData = new Color32[w * h];
int w = Mathf.Abs(bmp.Info.Width);
int h = Mathf.Abs(bmp.Info.Height);
Color32[] data = bmp.ImageData = new Color32[w * h];
int x = 0;
int y = 0;
int yOffset = 0;
@@ -401,12 +338,12 @@ namespace Core.DataReader.Bmp
{
for (int i = (count / 2); i > 0; i--)
{
data[x++ + yOffset] = bmp.palette[(d >> 4) & 0x0F];
data[x++ + yOffset] = bmp.palette[d & 0x0F];
data[x++ + yOffset] = bmp.Palette[(d >> 4) & 0x0F];
data[x++ + yOffset] = bmp.Palette[d & 0x0F];
}
if ((count & 0x01) > 0)
{
data[x++ + yOffset] = bmp.palette[(d >> 4) & 0x0F];
data[x++ + yOffset] = bmp.Palette[(d >> 4) & 0x0F];
}
}
else
@@ -432,13 +369,13 @@ namespace Core.DataReader.Bmp
for (int i = (d / 2); i > 0; i--)
{
byte d2 = aReader.ReadByte();
data[x++ + yOffset] = bmp.palette[(d2 >> 4) & 0x0F];
data[x++ + yOffset] = bmp.Palette[(d2 >> 4) & 0x0F];
if (x + 1 < w)
data[x++ + yOffset] = bmp.palette[d2 & 0x0F];
data[x++ + yOffset] = bmp.Palette[d2 & 0x0F];
}
if ((d & 0x01) > 0)
{
data[x++ + yOffset] = bmp.palette[(aReader.ReadByte() >> 4) & 0x0F];
data[x++ + yOffset] = bmp.Palette[(aReader.ReadByte() >> 4) & 0x0F];
}
if ((((d - 1) / 2) & 1) == 0)
{
@@ -448,11 +385,12 @@ namespace Core.DataReader.Bmp
}
}
}
private static void ReadIndexedImageRLE8(BinaryReader aReader, BMPImage bmp)
private static void ReadIndexedImageRLE8(BinaryReader aReader, BmpFile bmp)
{
int w = Mathf.Abs(bmp.info.width);
int h = Mathf.Abs(bmp.info.height);
Color32[] data = bmp.imageData = new Color32[w * h];
int w = Mathf.Abs(bmp.Info.Width);
int h = Mathf.Abs(bmp.Info.Height);
Color32[] data = bmp.ImageData = new Color32[w * h];
int x = 0;
int y = 0;
int yOffset = 0;
@@ -464,7 +402,7 @@ namespace Core.DataReader.Bmp
{
for (int i = count; i > 0; i--)
{
data[x++ + yOffset] = bmp.palette[d];
data[x++ + yOffset] = bmp.Palette[d];
}
}
else
@@ -489,7 +427,7 @@ namespace Core.DataReader.Bmp
{
for (int i = d; i > 0; i--)
{
data[x++ + yOffset] = bmp.palette[aReader.ReadByte()];
data[x++ + yOffset] = bmp.Palette[aReader.ReadByte()];
}
if ((d & 0x01) > 0)
{
@@ -499,6 +437,7 @@ namespace Core.DataReader.Bmp
}
}
}
private static int GetShiftCount(uint mask)
{
for (int i = 0; i < 32; i++)
@@ -509,6 +448,7 @@ namespace Core.DataReader.Bmp
}
return -1;
}
private static uint GetMask(int bitCount)
{
uint mask = 0;
@@ -519,41 +459,44 @@ namespace Core.DataReader.Bmp
}
return mask;
}
private static bool ReadFileHeader(BinaryReader aReader, ref BMPFileHeader aFileHeader)
private static bool ReadFileHeader(BinaryReader aReader, ref BmpFileHeader aFileHeader)
{
aFileHeader.magic = aReader.ReadUInt16();
if (aFileHeader.magic != MAGIC)
aFileHeader.Magic = aReader.ReadUInt16();
if (aFileHeader.Magic != MAGIC)
return false;
aFileHeader.filesize = aReader.ReadUInt32();
aFileHeader.reserved = aReader.ReadUInt32();
aFileHeader.offset = aReader.ReadUInt32();
aFileHeader.Filesize = aReader.ReadUInt32();
aFileHeader.Reserved = aReader.ReadUInt32();
aFileHeader.Offset = aReader.ReadUInt32();
return true;
}
private static bool ReadInfoHeader(BinaryReader aReader, ref BitmapInfoHeader aHeader)
{
aHeader.size = aReader.ReadUInt32();
if (aHeader.size < 40)
aHeader.Size = aReader.ReadUInt32();
if (aHeader.Size < 40)
return false;
aHeader.width = aReader.ReadInt32();
aHeader.height = aReader.ReadInt32();
aHeader.nColorPlanes = aReader.ReadUInt16();
aHeader.nBitsPerPixel = aReader.ReadUInt16();
aHeader.compressionMethod = (BMPComressionMode)aReader.ReadInt32();
aHeader.rawImageSize = aReader.ReadUInt32();
aHeader.xPPM = aReader.ReadInt32();
aHeader.yPPM = aReader.ReadInt32();
aHeader.nPaletteColors = aReader.ReadUInt32();
aHeader.nImportantColors = aReader.ReadUInt32();
int pad = (int)aHeader.size - 40;
aHeader.Width = aReader.ReadInt32();
aHeader.Height = aReader.ReadInt32();
aHeader.NColorPlanes = aReader.ReadUInt16();
aHeader.NBitsPerPixel = aReader.ReadUInt16();
aHeader.CompressionMode = (BmpCompressionMode)aReader.ReadInt32();
aHeader.RawImageSize = aReader.ReadUInt32();
aHeader.XPpm = aReader.ReadInt32();
aHeader.YPpm = aReader.ReadInt32();
aHeader.NPaletteColors = aReader.ReadUInt32();
aHeader.NImportantColors = aReader.ReadUInt32();
int pad = (int)aHeader.Size - 40;
if (pad > 0)
aReader.ReadBytes(pad);
return true;
}
public static List<Color32> ReadPalette(BinaryReader aReader, BMPImage aBmp, bool aReadAlpha)
public static List<Color32> ReadPalette(BinaryReader aReader, BmpFile aBmp, bool aReadAlpha)
{
uint count = aBmp.info.nPaletteColors;
uint count = aBmp.Info.NPaletteColors;
if (count == 0u)
count = 1u << aBmp.info.nBitsPerPixel;
count = 1u << aBmp.Info.NBitsPerPixel;
var palette = new List<Color32>((int)count);
for (int i = 0; i < count; i++)
{
@@ -569,43 +512,52 @@ namespace Core.DataReader.Bmp
}
}
public class BitStreamReader
internal class BitStreamReader
{
BinaryReader m_Reader;
byte m_Data = 0;
int m_Bits = 0;
private readonly BinaryReader _mReader;
private byte _mData = 0;
private int _mBits = 0;
public BitStreamReader(BinaryReader aReader)
{
m_Reader = aReader;
_mReader = aReader;
}
public BitStreamReader(Stream aStream) : this(new BinaryReader(aStream)) { }
public byte ReadBit()
{
if (m_Bits <= 0)
if (_mBits <= 0)
{
m_Data = m_Reader.ReadByte();
m_Bits = 8;
_mData = _mReader.ReadByte();
_mBits = 8;
}
return (byte)((m_Data >> --m_Bits) & 1);
return (byte)((_mData >> --_mBits) & 1);
}
public ulong ReadBits(int aCount)
{
ulong val = 0UL;
if (aCount <= 0 || aCount > 32)
throw new ArgumentOutOfRangeException("aCount", "aCount must be between 1 and 32 inclusive");
for (int i = aCount - 1; i >= 0; i--)
{
throw new ArgumentOutOfRangeException(nameof(aCount), "aCount must be between 1 and 32 inclusive");
}
ulong val = 0UL;
for (var i = aCount - 1; i >= 0; i--)
{
val |= ((ulong)ReadBit() << i);
}
return val;
}
public void Flush()
{
m_Data = 0;
m_Bits = 0;
_mData = 0;
_mBits = 0;
}
}
}
@@ -11,7 +11,6 @@ namespace Core.DataReader.Cpk
using System.Runtime.InteropServices;
using System.Text;
using Lzo;
using UnityEngine;
using Utils;
/// <summary>
@@ -26,7 +25,7 @@ namespace Core.DataReader.Cpk
private const int CPK_DEFAULT_MAX_NUM_OF_FILE = 32768; // Max number of files per archive
private readonly string _filePath;
private readonly CrcHash _crcHash;
private readonly Crc32Hash _crcHash;
private readonly int _codepage;
private Dictionary<uint, CpkTableEntity> _tableEntities;
@@ -37,7 +36,7 @@ namespace Core.DataReader.Cpk
private bool _archiveInMemory;
private byte[] _archiveData;
public CpkArchive(string cpkFilePath, CrcHash crcHash, int codepage)
public CpkArchive(string cpkFilePath, Crc32Hash crcHash, int codepage)
{
if (!File.Exists(cpkFilePath))
{
@@ -108,7 +107,7 @@ namespace Core.DataReader.Cpk
foreach (CpkEntry node in nodes)
{
var relativePath = node.VirtualPath.Replace(
CpkConstants.DirectorySeparator, Path.DirectorySeparatorChar);
CpkConstants.DirectorySeparatorChar, Path.DirectorySeparatorChar);
if (node.IsDirectory)
{
@@ -129,7 +128,7 @@ namespace Core.DataReader.Cpk
/// <returns>True if file exists</returns>
public bool FileExists(string fileVirtualPath)
{
var crc = _crcHash.ComputeCrc32Hash(fileVirtualPath.ToLower(), _codepage);
var crc = _crcHash.Compute(fileVirtualPath.ToLower(), _codepage);
return _crcToTableIndexMap.ContainsKey(crc);
}
@@ -201,7 +200,7 @@ namespace Core.DataReader.Cpk
private CpkTableEntity ValidateAndGetTableEntity(string fileVirtualPath)
{
var crc = _crcHash.ComputeCrc32Hash(fileVirtualPath.ToLower(), _codepage);
var crc = _crcHash.Compute(fileVirtualPath.ToLower(), _codepage);
if (!_crcToTableIndexMap.ContainsKey(crc))
{
throw new ArgumentException($"<{fileVirtualPath}> does not exists in the archive.");
@@ -253,9 +252,9 @@ namespace Core.DataReader.Cpk
{
_crcToTableIndexMap[entity.CRC] = index;
if (_fatherCrcToChildCrcTableIndexMap.ContainsKey(entity.FatherCRC))
if (_fatherCrcToChildCrcTableIndexMap.TryGetValue(entity.FatherCRC, out var childCrcTable))
{
_fatherCrcToChildCrcTableIndexMap[entity.FatherCRC].Add(entity.CRC);
childCrcTable.Add(entity.CRC);
}
else
{
@@ -314,7 +313,10 @@ namespace Core.DataReader.Cpk
yield break;
}
if (rootPath != string.Empty) rootPath += CpkConstants.DirectorySeparator;
if (!string.IsNullOrEmpty(rootPath))
{
rootPath += CpkConstants.DirectorySeparatorChar;
}
foreach (var childCrc in _fatherCrcToChildCrcTableIndexMap[fatherCrc])
{
@@ -7,7 +7,7 @@ namespace Core.DataReader.Cpk
{
public static class CpkConstants
{
public const char DirectorySeparator = '\\';
public const char DirectorySeparatorChar = '\\';
public const string FileExtension = ".cpk";
}
@@ -11,7 +11,7 @@ namespace Core.DataReader.Cpk
/// <summary>
/// CpkEntry model
/// </summary>
public class CpkEntry
public sealed class CpkEntry
{
/// <summary>
/// Virtualized file system path within the CPK archive.
+12 -9
View File
@@ -8,11 +8,12 @@ namespace Core.DataReader.Cpk
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
/// <summary>
/// Crc hash provider.
/// Crc32 hash provider.
/// </summary>
public sealed class CrcHash
public sealed class Crc32Hash
{
private const uint CRC_TABLE_MAX = 256;
private const uint POLYNOMIAL = 0x04C11DB7; // CRC seed
@@ -39,32 +40,34 @@ namespace Core.DataReader.Cpk
}
_initialized = true;
Debug.Log($"[{nameof(Crc32Hash)}] CRC32 table initialized.");
}
public uint ComputeCrc32Hash(string str, int codepage, bool useCache = true)
public uint Compute(string str, int codepage, bool useCache = true)
{
if (!useCache)
{
return ComputeCrc32HashInternal(Encoding.GetEncoding(codepage).GetBytes(str));
return ComputeInternal(Encoding.GetEncoding(codepage).GetBytes(str));
}
var cacheKey = $"{str}-{codepage}";
if (_crcResultCache.ContainsKey(cacheKey))
if (_crcResultCache.TryGetValue(cacheKey, out var hash))
{
return _crcResultCache[cacheKey];
return hash;
}
uint result = ComputeCrc32HashInternal(Encoding.GetEncoding(codepage).GetBytes(str));
uint result = ComputeInternal(Encoding.GetEncoding(codepage).GetBytes(str));
_crcResultCache[cacheKey] = result;
return result;
}
private unsafe uint ComputeCrc32HashInternal(byte[] data)
private unsafe uint ComputeInternal(byte[] data)
{
if (!_initialized) throw new InvalidOperationException("CrcHash not initialized yet.");
if (!_initialized) throw new InvalidOperationException($"{nameof(Crc32Hash)} not initialized yet.");
if (data == null || data.Length == 0 || data[0] == 0)
{
@@ -154,7 +154,6 @@ namespace Core.DataReader.Cvd
public int[] Triangles;
public GameBoxBlendFlag BlendFlag;
public GameBoxMaterial Material;
public string TextureName;
public float[] AnimationTimeKeys;
public GameBoxMaterial[] AnimationMaterials;
}
@@ -184,7 +183,7 @@ namespace Core.DataReader.Cvd
/// <summary>
/// CVD (.cvd) file model
/// </summary>
public class CvdFile
public sealed class CvdFile
{
public float AnimationDuration { get; }
public CvdGeometryNode[] RootNodes { get; }
@@ -3,31 +3,20 @@
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
#define USE_UNSAFE_BINARY_READER
namespace Core.DataReader.Cvd
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using Extensions;
using GameBox;
using UnityEngine;
using Utils;
public static class CvdFileReader
public sealed class CvdFileReader : IFileReader<CvdFile>
{
public static CvdFile Read(byte[] data, int codepage)
public CvdFile Read(IBinaryReader reader, int codepage)
{
#if USE_UNSAFE_BINARY_READER
using var reader = new UnsafeBinaryReader(data);
#else
using var stream = new MemoryStream(data);
using var reader = new BinaryReader(stream);
#endif
var header = reader.ReadChars(4);
var headerStr = new string(header);
@@ -49,19 +38,11 @@ namespace Core.DataReader.Cvd
return new CvdFile(animationDuration, rootNodes.ToArray());
}
#if USE_UNSAFE_BINARY_READER
private static void ReadGeometryNodes(UnsafeBinaryReader reader,
private static void ReadGeometryNodes(IBinaryReader reader,
float version,
List<CvdGeometryNode> rootNodes,
ref float animationDuration,
int codepage)
#else
private static void ReadGeometryNodes(BinaryReader reader,
float version,
List<CvdGeometryNode> rootNodes,
ref float animationDuration,
int codepage)
#endif
{
CvdGeometryNode parentNode = default;
@@ -84,17 +65,10 @@ namespace Core.DataReader.Cvd
rootNodes.Add(parentNode);
}
#if USE_UNSAFE_BINARY_READER
private static CvdGeometryNode ReadGeometryNode(UnsafeBinaryReader reader,
private static CvdGeometryNode ReadGeometryNode(IBinaryReader reader,
float version,
ref float animationDuration,
int codepage)
#else
private static CvdGeometryNode ReadGeometryNode(BinaryReader reader,
float version,
ref float animationDuration,
int codepage)
#endif
{
var positionKeySize = Mathf.Max(
Marshal.SizeOf(typeof(CvdTcbVector3Key)),
@@ -102,7 +76,7 @@ namespace Core.DataReader.Cvd
Marshal.SizeOf(typeof(CvdLinearVector3Key)));
var positionKeyInfos = ReadPositionAnimationKeyInfo(reader, positionKeySize);
if (positionKeyInfos.Last().Time > animationDuration) animationDuration = positionKeyInfos.Last().Time;
if (positionKeyInfos[^1].Time > animationDuration) animationDuration = positionKeyInfos[^1].Time;
var rotationKeySize = Mathf.Max(
Marshal.SizeOf(typeof(CvdTcbRotationKey)),
@@ -110,7 +84,7 @@ namespace Core.DataReader.Cvd
Marshal.SizeOf(typeof(CvdLinearRotationKey)));
var rotationKeyInfos = ReadRotationAnimationKeyInfo(reader, rotationKeySize);
if (rotationKeyInfos.Last().Time > animationDuration) animationDuration = rotationKeyInfos.Last().Time;
if (rotationKeyInfos[^1].Time > animationDuration) animationDuration = rotationKeyInfos[^1].Time;
var scaleKeySize = Mathf.Max(
Marshal.SizeOf(typeof(CvdTcbScaleKey)),
@@ -118,12 +92,12 @@ namespace Core.DataReader.Cvd
Marshal.SizeOf(typeof(CvdLinearScaleKey)));
var scaleKeyInfos = ReadScaleAnimationKeyInfo(reader, scaleKeySize);
if (scaleKeyInfos.Last().Time > animationDuration) animationDuration = scaleKeyInfos.Last().Time;
if (scaleKeyInfos[^1].Time > animationDuration) animationDuration = scaleKeyInfos[^1].Time;
var scale = reader.ReadSingle();
CvdMesh mesh = ReadMesh(reader, version, codepage);
if (mesh.AnimationTimeKeys.Last() > animationDuration) animationDuration = mesh.AnimationTimeKeys.Last();
if (mesh.AnimationTimeKeys[^1] > animationDuration) animationDuration = mesh.AnimationTimeKeys[^1];
var transformMatrix = new GameBoxMatrix4X4()
{
@@ -145,11 +119,7 @@ namespace Core.DataReader.Cvd
};
}
#if USE_UNSAFE_BINARY_READER
private static (CvdAnimationKeyType, byte[])[] ReadAnimationKeyInfo(UnsafeBinaryReader reader, int size)
#else
private static (CvdAnimationKeyType, byte[])[] ReadAnimationKeyInfo(BinaryReader reader, int size)
#endif
private static (CvdAnimationKeyType, byte[])[] ReadAnimationKeyInfo(IBinaryReader reader, int size)
{
var numberOfKeys = reader.ReadInt32();
var keyInfos = new (CvdAnimationKeyType, byte[])[numberOfKeys];
@@ -171,11 +141,7 @@ namespace Core.DataReader.Cvd
return keyInfos;
}
#if USE_UNSAFE_BINARY_READER
private static CvdAnimationPositionKeyFrame[] ReadPositionAnimationKeyInfo(UnsafeBinaryReader reader, int size)
#else
private static CvdAnimationPositionKeyFrame[] ReadPositionAnimationKeyInfo(BinaryReader reader, int size)
#endif
private static CvdAnimationPositionKeyFrame[] ReadPositionAnimationKeyInfo(IBinaryReader reader, int size)
{
var frameInfos = ReadAnimationKeyInfo(reader, size);
var positionKeyFrames = new CvdAnimationPositionKeyFrame[frameInfos.Length];
@@ -225,11 +191,7 @@ namespace Core.DataReader.Cvd
return positionKeyFrames;
}
#if USE_UNSAFE_BINARY_READER
private static CvdAnimationRotationKeyFrame[] ReadRotationAnimationKeyInfo(UnsafeBinaryReader reader, int size)
#else
private static CvdAnimationRotationKeyFrame[] ReadRotationAnimationKeyInfo(BinaryReader reader, int size)
#endif
private static CvdAnimationRotationKeyFrame[] ReadRotationAnimationKeyInfo(IBinaryReader reader, int size)
{
var frameInfos = ReadAnimationKeyInfo(reader, size);
var rotationKeyFrames = new CvdAnimationRotationKeyFrame[frameInfos.Length];
@@ -286,11 +248,7 @@ namespace Core.DataReader.Cvd
return rotationKeyFrames;
}
#if USE_UNSAFE_BINARY_READER
private static CvdAnimationScaleKeyFrame[] ReadScaleAnimationKeyInfo(UnsafeBinaryReader reader, int size)
#else
private static CvdAnimationScaleKeyFrame[] ReadScaleAnimationKeyInfo(BinaryReader reader, int size)
#endif
private static CvdAnimationScaleKeyFrame[] ReadScaleAnimationKeyInfo(IBinaryReader reader, int size)
{
var frameInfos = ReadAnimationKeyInfo(reader, size);
var scaleKeyFrames = new CvdAnimationScaleKeyFrame[frameInfos.Length];
@@ -343,11 +301,7 @@ namespace Core.DataReader.Cvd
return scaleKeyFrames;
}
#if USE_UNSAFE_BINARY_READER
private static CvdMesh ReadMesh(UnsafeBinaryReader reader, float version, int codepage)
#else
private static CvdMesh ReadMesh(BinaryReader reader, float version, int codepage)
#endif
private static CvdMesh ReadMesh(IBinaryReader reader, float version, int codepage)
{
var numberOfFrames = reader.ReadInt32();
var numberOfVertices = reader.ReadInt32();
@@ -375,7 +329,7 @@ namespace Core.DataReader.Cvd
frameVertices[i] = vertices;
}
var animationTimeKeys = reader.ReadSingleArray(numberOfFrames);
var animationTimeKeys = reader.ReadSingles(numberOfFrames);
for (var i = 0; i < numberOfFrames; i++)
{
animationTimeKeys[i] -= animationTimeKeys[0];
@@ -395,31 +349,23 @@ namespace Core.DataReader.Cvd
};
}
#if USE_UNSAFE_BINARY_READER
private static CvdMeshSection ReadMeshSection(UnsafeBinaryReader reader,
private static CvdMeshSection ReadMeshSection(IBinaryReader reader,
float version,
CvdVertex[][] allFrameVertices,
int codepage)
#else
private static CvdMeshSection ReadMeshSection(BinaryReader reader,
float version,
CvdVertex[][] allFrameVertices,
int codepage)
#endif
{
var blendFlag = (GameBoxBlendFlag)reader.ReadByte();
GameBoxBlendFlag blendFlag = (GameBoxBlendFlag)reader.ReadByte();
var material = new GameBoxMaterial()
GameBoxMaterial material = new ()
{
Diffuse = Utility.ToColor32(reader.ReadBytes(4)),
Ambient = Utility.ToColor32(reader.ReadBytes(4)),
Specular = Utility.ToColor32(reader.ReadBytes(4)),
Emissive = Utility.ToColor32(reader.ReadBytes(4)),
Power = reader.ReadSingle()
SpecularPower = reader.ReadSingle(),
TextureFileNames = new [] { reader.ReadString(64, codepage) }
};
var textureName = reader.ReadString(64, codepage);
var numberOfIndices = reader.ReadInt32();
var indices = new (ushort x, ushort y, ushort z)[numberOfIndices];
@@ -437,7 +383,7 @@ namespace Core.DataReader.Cvd
{
var numberOfFrames = reader.ReadInt32();
animationTimeKeys = reader.ReadSingleArray(numberOfFrames);
animationTimeKeys = reader.ReadSingles(numberOfFrames);
for (var i = 0; i < numberOfFrames; i++)
{
animationTimeKeys[i] -= animationTimeKeys[0];
@@ -448,11 +394,11 @@ namespace Core.DataReader.Cvd
{
animationMaterials[i] = new GameBoxMaterial()
{
Diffuse = Utility.ToColor(reader.ReadSingleArray(4)),
Ambient = Utility.ToColor(reader.ReadSingleArray(4)),
Specular = Utility.ToColor(reader.ReadSingleArray(4)),
Emissive = Utility.ToColor(reader.ReadSingleArray(4)),
Power = reader.ReadSingle()
Diffuse = Utility.ToColor(reader.ReadSingles(4)),
Ambient = Utility.ToColor(reader.ReadSingles(4)),
Specular = Utility.ToColor(reader.ReadSingles(4)),
Emissive = Utility.ToColor(reader.ReadSingles(4)),
SpecularPower = reader.ReadSingle()
};
}
}
@@ -480,7 +426,6 @@ namespace Core.DataReader.Cvd
{
BlendFlag = blendFlag,
Material = material,
TextureName = textureName,
FrameVertices = frameVertices,
Triangles = triangles.ToArray(),
AnimationTimeKeys = animationTimeKeys,
@@ -495,18 +440,18 @@ namespace Core.DataReader.Cvd
var triangles = new List<int>();
var index = 0;
for (var j = 0; j < allIndices.Length; j++)
for (var i = 0; i < allIndices.Length; i++)
{
var indices = new[]
{
allIndices[j].x,
allIndices[j].y,
allIndices[j].z
allIndices[i].x,
allIndices[i].y,
allIndices[i].z
};
for (var k = 0; k < 3; k++)
for (var j = 0; j < 3; j++)
{
indexBuffer.Add(indices[k]);
indexBuffer.Add(indices[j]);
triangles.Add(index++);
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8823f9f10b6763c4dbd59d68ba269fb3
guid: 9832a2b07fa1d8e4ebcf6d71c2f1fc37
folderAsset: yes
DefaultImporter:
externalObjects: {}
@@ -0,0 +1,37 @@
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataReader.Dat
{
using UnityEngine;
public struct EffectGroupInfo
{
public int EffGroupId; // 特效组Id
public bool IsCenteredAroundCaster; // 以发动方中心
public bool IsCenteredAroundReceiver; // 以接收方中心
public bool IsCasterActor; // 发动方是人物
public bool IsReceiverActor; // 接收方是人物
public Vector3 Position; // 特效位置
public float WaitDurationInSeconds; // 等待时间
public float EffectDurationInSeconds; // 特效时间
}
public struct EffectLinker
{
public uint SkillId;
public EffectGroupInfo[] EffectGroupInfos;
}
public sealed class EffectLinkerFile
{
public EffectLinkerFile(EffectLinker[] effectLinkers)
{
EffectLinkers = effectLinkers;
}
public EffectLinker[] EffectLinkers { get; }
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 109368ba7d2c3db438de7e62ebb40348
guid: 3617a4afbbd7d8f4fa3196a6fac6bb70
MonoImporter:
externalObjects: {}
serializedVersion: 2
@@ -0,0 +1,59 @@
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataReader.Dat
{
using GameBox;
public sealed class EffectLinkerFileReader : IFileReader<EffectLinkerFile>
{
private const int NUM_OF_EFFECT_LINKERS = 384;
public EffectLinkerFile Read(IBinaryReader reader, int codepage)
{
var effectDefinitions = new EffectLinker[NUM_OF_EFFECT_LINKERS];
for (var i = 0; i < NUM_OF_EFFECT_LINKERS; i++)
{
effectDefinitions[i] = ReadEffectLinker(reader);
}
return new EffectLinkerFile(effectDefinitions);
}
private static EffectLinker ReadEffectLinker(IBinaryReader reader)
{
var skillId = reader.ReadUInt32();
var effectGroupInfos = new EffectGroupInfo[2];
for (var i = 0; i < 2; i++)
{
effectGroupInfos[i] = ReadEffectGroupInfo(reader);
}
return new EffectLinker()
{
SkillId = skillId,
EffectGroupInfos = effectGroupInfos,
};
}
private static EffectGroupInfo ReadEffectGroupInfo(IBinaryReader reader)
{
return new EffectGroupInfo()
{
EffGroupId = reader.ReadInt32(),
IsCenteredAroundCaster = reader.ReadBoolean(),
IsCenteredAroundReceiver = reader.ReadBoolean(),
IsCasterActor = reader.ReadBoolean(),
IsReceiverActor = reader.ReadBoolean(),
Position = GameBoxInterpreter.ToUnityPosition(reader.ReadVector3()),
WaitDurationInSeconds = reader.ReadSingle(),
EffectDurationInSeconds = reader.ReadSingle(),
};
}
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 368224038381eb14ab7e41411c378abd
guid: 3ce377dbef5e96240a6d8a818d7d95f5
MonoImporter:
externalObjects: {}
serializedVersion: 2
@@ -122,8 +122,13 @@ namespace Core.DataReader.Data
public float[] Param;
}
public class EffectDefinitionFile
public sealed class EffectDefinitionFile
{
public EffectDefinition[] EffectDefinitions;
public EffectDefinitionFile(EffectDefinition[] effectDefinitions)
{
EffectDefinitions = effectDefinitions;
}
public EffectDefinition[] EffectDefinitions { get; }
}
}
@@ -3,50 +3,36 @@
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
//#define USE_UNSAFE_BINARY_READER
namespace Core.DataReader.Data
{
using System.IO;
using Extensions;
using Utils;
public static class EffectDefinitionFileReader
public sealed class EffectDefinitionFileReader : IFileReader<EffectDefinitionFile>
{
private const int NUM_OF_EFFECTS = 1324;
public static void Read(byte[] data, int codepage)
public EffectDefinitionFile Read(IBinaryReader reader, int codepage)
{
#if USE_UNSAFE_BINARY_READER
using var reader = new UnsafeBinaryReader(data);
#else
using var stream = new MemoryStream(data);
using var reader = new BinaryReader(stream);
#endif
var effectDefinitions = new EffectDefinition[NUM_OF_EFFECTS];
for (var i = 0; i < NUM_OF_EFFECTS; i++)
{
effectDefinitions[i] = ReadEffectDefinition(reader, codepage);
}
return new EffectDefinitionFile(effectDefinitions);
}
#if USE_UNSAFE_BINARY_READER
private static EffectDefinition ReadEffectDefinition(UnsafeBinaryReader reader, int codepage)
#else
private static EffectDefinition ReadEffectDefinition(BinaryReader reader, int codepage)
#endif
private EffectDefinition ReadEffectDefinition(IBinaryReader reader, int codepage)
{
var effectDefinition = new EffectDefinition();
effectDefinition.ClassNameCrc = reader.ReadUInt32();
effectDefinition.TypeName = reader.ReadString(32, 936);
effectDefinition.TypeNameCrc = reader.ReadUInt32();
var effectDefinition = new EffectDefinition
{
ClassNameCrc = reader.ReadUInt32(),
TypeName = reader.ReadString(32, codepage),
TypeNameCrc = reader.ReadUInt32()
};
// union
{
var unionStr = reader.ReadString(128, 936);
var unionStr = reader.ReadString(128, codepage);
effectDefinition.TextureName = unionStr;
effectDefinition.ParticleFileName = unionStr;
effectDefinition.SfxFileNamePrefix = unionStr;
@@ -5,10 +5,7 @@
namespace Core.DataReader.Dxt
{
using System.IO;
using Extensions;
public class DxtPixelFormat
public sealed class DxtPixelFormat
{
public int Size;
public int Flags;
@@ -19,13 +16,13 @@ namespace Core.DataReader.Dxt
public int BBitMask;
public int ABitMask;
public static DxtPixelFormat ReadFormat(BinaryReader reader)
public static DxtPixelFormat ReadFormat(IBinaryReader reader)
{
return new DxtPixelFormat
{
Size = reader.ReadInt32(),
Flags = reader.ReadInt32(),
Format = reader.ReadAsciiString(4),
Format = reader.ReadString(4),
RGBBitCount = reader.ReadInt32(),
RBitMask = reader.ReadInt32(),
GBitMask = reader.ReadInt32(),
@@ -35,7 +32,7 @@ namespace Core.DataReader.Dxt
}
}
public class DxtHeader
public sealed class DxtHeader
{
public int Size;
public int Flags;
@@ -52,7 +49,7 @@ namespace Core.DataReader.Dxt
public int Caps4;
public int Reserved;
public static DxtHeader ReadHeader(BinaryReader reader)
public static DxtHeader ReadHeader(IBinaryReader reader)
{
return new DxtHeader
{
@@ -63,7 +60,7 @@ namespace Core.DataReader.Dxt
PitchOrLinearSize = reader.ReadInt32(),
Depth = reader.ReadInt32(),
MipMapCount = reader.ReadInt32(),
ReservedBytes = reader.ReadInt32Array(11),
ReservedBytes = reader.ReadInt32s(11),
DxtPixelFormat = DxtPixelFormat.ReadFormat(reader),
Caps1 = reader.ReadInt32(),
Caps2 = reader.ReadInt32(),
+186 -26
View File
@@ -5,15 +5,17 @@
namespace Core.DataReader.Gdb
{
using System;
using System.Collections.Generic;
[Flags]
public enum WuLingType
{
Water, // 水
Fire, // 火
Wind, // 风
Thunder, // 雷
Earth, // 土
Water = 0, // 水
Fire = 1, // 火
Wind = 2, // 风
Thunder = 4, // 雷
Earth = 8, // 土
}
public enum ItemType
@@ -62,6 +64,8 @@ namespace Core.DataReader.Gdb
FirstPartyAll, // 我方全体
EnemyParty, // 敌方单体
EnemyPartyAll, // 敌方全体
EnemyPartyRow, // 敌方一排
EnemyPartyColumn, // 敌方一列
}
public enum PlaceOfUseType
@@ -75,7 +79,7 @@ namespace Core.DataReader.Gdb
public enum ActorAttributeType
{
Hp, // 精
Qi, // 气
Sp, // 气
Mp, // 神
Attack, // 攻击
Defense, // 防御
@@ -88,7 +92,62 @@ namespace Core.DataReader.Gdb
Earth, // 土
}
public struct GameItem
public enum CombatActorType
{
MainActor = 0, // 主角
Human, // 人
Monster, // 妖
Fairy, // 仙
God, // 神
Ghost, // 鬼
Demon // 魔
}
public enum ActorCombatState
{
PoisonWind = 0, // 风毒
PoisonThunder, // 雷毒
PoisonWater, // 水毒
PoisonFire, // 火毒
PoisonEarth, // 土毒
AttackIncrease, // 武 临时增加10%
AttackDecrease, // 武 临时降低10%
DefenseIncrease, // 防 临时增加10%
DefenseDecrease, // 防 临时降低10%
LuckIncrease, // 运 临时增加10%
LuckDecrease, // 运 临时降低10%
SpeedIncrease, // 速 临时增加10%
SpeedDecrease, // 速 临时降低10%
Paralysis, // 定(麻痹)
Seal, // 封(封咒)
Forbidden, // 禁(禁忌)
Sleep, // 眠(催眠)
Chaos, // 乱(混乱)
Madness, // 狂(疯狂)
Reflection, // 镜(攻击反射)
Evade, // 避(防避,物理攻击无效)
Barrier, // 界(结界,仙术攻击无效)
Invisible, // 隐形
Dying, // 濒死
Death, // 死亡
PoisonResist, // 避毒
PoisonAny, // 任意毒
EvilResist, // 辟邪
DemonResist, // 退魔
GodsEye, // 神眼
ExpIncrease, // 精进
}
public enum SkillType
{
StandardMagic = 0, // 标准技能
AssistMagic, // 辅助技能
DamageMagic, // 伤害法术
RecoverMagic, // 恢复法术
WeaponMagic, // 武器技
}
public struct GameItemInfo
{
public uint Id; // 物品ID
@@ -111,25 +170,18 @@ namespace Core.DataReader.Gdb
public PlaceOfUseType PlaceOfUseType; // 使用地点类型
public byte[] AttributeImpactType; // 角色属性影响类型 (0绝对值,1百分比值,2恢复到上限,3增加上限值)
// Empty byte between the memory addresses to align the data in memory.
// SpecialType, TargetRangeType and PlaceOfUseType take 3 bytes in memory, thus we need to add 1 byte here
// to align the data in memory (4 bytes).
// Note: The padding byte is added after AttributeImpactType instead of before based on observation.
internal byte PaddingByte;
public short[] AttributeImpactValue; // 角色属性影响值
public byte[] FightStateImpactType; // 战斗状态影响类型(0不影响,1增加,2解除)
public short[] FightStateImpactValue; // 战斗状态值
public byte[] CombatStateImpactType; // 战斗状态影响类型(0不影响,1增加,2解除)
public short[] CombatStateImpactValue; // 战斗状态值
public int ComboCount; // 连击次数
public int ComboCount; // 连击次数
// 装备属性
public short QiSavingPercentage; // 气消耗减少百分比
public short MpSavingPercentage; // 神消耗减少百分比
public short CriticalAttackAmplifyPercentage; // 暴击伤害增加百分比
public short SpecialSkillSuccessRate; // 特技成功率增加百分比
public short SpSavingPercentage; // 气消耗减少百分比
public short MpSavingPercentage; // 神消耗减少百分比
public short CriticalAttackAmplifyPercentage; // 暴击伤害增加百分比
public short SpecialSkillSuccessRate; // 特技成功率增加百分比
// 尸块属性
public uint OreId; // 矿石ID
@@ -141,14 +193,122 @@ namespace Core.DataReader.Gdb
public uint SynthesisProductId; // 合成出的物品ID
}
// Pal3 Game Database file
public class GdbFile
public struct CombatActorInfo
{
public Dictionary<int, GameItem> GameItems { get; } // Game item Id -> Game item
public uint Id; // 战斗角色ID
public GdbFile(Dictionary<int, GameItem> gameItems)
public CombatActorType Type; // 战斗角色类型
public string Description; // 战斗角色描述
public string ModelId; // 战斗角色模型ID
public string IconId; // 战斗角色图标ID
public int[] WuLing; // 五灵属性
public string Name; // 战斗角色名称
public int Level; // 战斗角色等级
public int[] AttributeValue; // 角色属性值
public byte[] CombatStateImpactType; // 战斗状态影响类型(0不影响,1增加,2解除)
public int RoundNumber; // 指定回合数
public int SpecialActionId; // 特殊动作ID
public float EscapeRate; // 逃跑概率
public ushort[] MainActorFavor; // 对每个主角的好感
public int Experience; // 经验值
public ushort Money; // 金钱
public uint NormalAttackActionId; // 普通攻击动作ID
public byte HeightLevel; // 迷宫高度 0-2 对应 低 中 高
public byte MoveRangeLevel; // 运动范围 0-3 对应 不动 小 中 大
public byte AttackRangeLevel; // 索敌范围 0-2 对应 小 中 大
public byte MoveSpeedLevel; // 运动速度 0-3 对应 不动 小 中 大
public byte ChaseSpeedLevel; // 追踪速度 0-2 对应 小 中 大
public uint[] SkillIds; // 怪物所会的仙术ID [0-2] [3]为Boss级法术
public byte[] SkillLevels; // 怪物所会的3种法术的等级 boss级法术无此属性
public int SpImpactValue; // 物理攻击对我方气的影响值
public float[] Properties; // 附加属性,主要用于战斗音效类型的判断
public uint NormalLoot; // 普通战利品
public short NormalLootCount; // 普通战利品数量
public uint CorpseId; // 尸块ID
public uint CorpseSkillId; // 触发尸块的技能ID
public short CorpseSuccessRate; // 尸块获得成功率
public short StealableMoneyAmount; // 可偷多少钱
public uint StealableItemId; // 可偷物品ID
public short StealableItemCount; // 可偷物品数量
public short MoneyWhenKilled; // 被击败时可得钱数
}
public struct SkillInfo
{
public uint Id; // 技能ID
public SkillType Type; // 技能类型
public int[] WuLing; // 五灵属性
public string Name; // 技能名称
public string Description; // 技能描述
public byte[] MainActorCanUse; // 主角是否可以使用
public TargetRangeType TargetRangeType; // 目标范围类型
public byte SpecialSkillId; // 特殊技能ID 0为无特殊效果 1开头为偷敌人东西
public byte[] AttributeImpactType; // 属性影响类型 增加(或减少)数值的类型(0为绝对值,1为百分数,2为恢复到上限,3为增加上限值)
public short[] AttributeImpactValue; // 属性影响数值
public byte SuccessRateLevel; // 施法成功率 0~10对应不约定的计算方式 其他为百分比
public short[] CombatStateImpactType; // 战斗状态影响类型(0不影响,1增加,2解除)
public int[] ConsumeAttributeType; // 消耗属性类型
public int[] ConsumeAttributeKind; // 消耗属性种类数值 0-消耗气,1-消耗神,2-特殊消耗[精气神武防,情经速运级,钱水火风雷土蛊];
public byte SpecialConsumeType; // 特殊消耗类型 增加(或减少)数值的类型(0为绝对值,1为百分数,2为恢复到上限,3为增加上限值)
public int SpecialConsumeValue; // 特殊消耗数值
public byte Level; // 技能等级
public byte[] TimesBeforeLevelUp; // 升级前需使用次数
public byte RequiredActorLevel; // 使用所需角色等级
public byte MagicLevel; // 本级法术等级
public uint NextLevelSkillId; // 下一级法术ID
public byte IsUsableOutsideCombat; // 是否可以在战斗外使用
public uint[] CompositeSkillIds; // 可以合成的法术ID
public uint[] CompositeRequiredSkillIds; // 合成所需其他法术ID
public byte[] CompositeRequiredSkillLevels; // 合成所需其他法术等级
public byte[] CompositeRequiredCurrentSkillLevels; // 合成所需法术当前等级
public byte[] CompositeRequiredActorLevels; // 合成所需角色等级
public byte CanTriggerComboSkill; // 是否可以触发合击技
}
public struct ComboSkillInfo
{
public string Name; // 合击技名称
public uint Id; // 合击技ID
public uint[] MainActorRequirements; // 需要的人
public byte[] WuLingPositionRequirements; // 需要每个人的五灵位置,于上面数组一一对应[0-任意 1-水...6-中 7-风火雷[任意] 8-水火土[任意]]
public uint SkillId; // 发动技能ID
public byte[] WeaponTypeRequirements; // 对应每个参战者的武器类型
public int[] CombatStateRequirements; // 对应每个参战者的战斗状态要求
public string Description; // 合击技描述
public TargetRangeType TargetRangeType; // 使用范围类型
public byte[] AttributeImpactType; // 属性影响类型 增加(或减少)数值的类型(0为绝对值,1为百分数,2为恢复到上限,3为增加上限值)
public short[] AttributeImpactValue; // 属性影响数值
#if PAL3A
public int Unknown; // 三外特有数据 暂时未知 猜测是需要气的总数值?
#endif
}
// Pal3 Game Database file
public sealed class GdbFile
{
public IDictionary<int, CombatActorInfo> CombatActorInfos { get; }
public IDictionary<int, SkillInfo> SkillInfos { get; }
public IDictionary<int, GameItemInfo> GameItemInfos { get; }
public IDictionary<int, ComboSkillInfo> ComboSkillInfos { get; }
public GdbFile(IDictionary<int, CombatActorInfo> combatActorInfos,
IDictionary<int, SkillInfo> skillInfos,
IDictionary<int, GameItemInfo> gameItemInfos,
IDictionary<int, ComboSkillInfo> comboSkillInfos)
{
GameItems = gameItems;
CombatActorInfos = combatActorInfos;
SkillInfos = skillInfos;
GameItemInfos = gameItemInfos;
ComboSkillInfos = comboSkillInfos;
}
}
}
@@ -7,18 +7,14 @@ namespace Core.DataReader.Gdb
{
using System.Collections.Generic;
using System.IO;
using Extensions;
public static class GdbFileReader
public sealed class GdbFileReader : IFileReader<GdbFile>
{
public static GdbFile Read(byte[] data, int codepage)
public GdbFile Read(IBinaryReader reader, int codepage)
{
using var stream = new MemoryStream(data);
using var reader = new BinaryReader(stream);
_ = reader.ReadString(128, codepage); // header string
uint actorDataOffset = reader.ReadUInt32();
uint combatActorDataOffset = reader.ReadUInt32();
int numOfActors = reader.ReadInt32();
uint skillDataOffset = reader.ReadUInt32();
@@ -30,50 +26,299 @@ namespace Core.DataReader.Gdb
uint comboSkillDataOffset = reader.ReadUInt32();
int numOfComboSkills = reader.ReadInt32();
reader.BaseStream.Seek(itemDataOffset, SeekOrigin.Begin);
var gameItems = new Dictionary<int, GameItem>();
reader.Seek(combatActorDataOffset, SeekOrigin.Begin);
var combatActorInfos = new Dictionary<int, CombatActorInfo>();
for (var i = 0; i < numOfActors; i++)
{
CombatActorInfo actor = ReadCombatActorInfo(reader, codepage);
combatActorInfos[(int) actor.Id] = actor;
}
reader.Seek(skillDataOffset, SeekOrigin.Begin);
var skillInfos = new Dictionary<int, SkillInfo>();
for (var i = 0; i < numOfSkills; i++)
{
SkillInfo skill = ReadSkillInfo(reader, codepage);
skillInfos[(int) skill.Id] = skill;
}
reader.Seek(itemDataOffset, SeekOrigin.Begin);
var gameItems = new Dictionary<int, GameItemInfo>();
for (var i = 0; i < numOfItems; i++)
{
GameItem item = ReadGameItem(reader, codepage);
GameItemInfo item = ReadGameItemInfo(reader, codepage);
gameItems[(int) item.Id] = item;
}
return new GdbFile(gameItems);
reader.Seek(comboSkillDataOffset, SeekOrigin.Begin);
var comboSkillInfos = new Dictionary<int, ComboSkillInfo>();
for (var i = 0; i < numOfComboSkills; i++)
{
ComboSkillInfo comboSkill = ReadComboSkillInfo(reader, codepage);
comboSkillInfos[(int) comboSkill.Id] = comboSkill;
}
return new GdbFile(combatActorInfos,
skillInfos,
gameItems,
comboSkillInfos);
}
private static GameItem ReadGameItem(BinaryReader reader, int codepage)
private static CombatActorInfo ReadCombatActorInfo(IBinaryReader reader, int codepage)
{
return new GameItem
var id = reader.ReadUInt32();
var type = (CombatActorType) reader.ReadUInt16();
var description = reader.ReadString(512, codepage);
var modelId = reader.ReadString(30, codepage);
var iconId = reader.ReadString(32, codepage);
var wuLing = reader.ReadInt32s(5);
var name = reader.ReadString(32, codepage);
var level = reader.ReadInt32();
var attributeValue = reader.ReadInt32s(12);
var combatStateImpactType = reader.ReadBytes(31);
_ = reader.ReadByte(); // padding
var roundNumber = reader.ReadInt32();
var specialActionId = reader.ReadInt32();
var escapeRate = reader.ReadSingle();
var mainActorFavor = reader.ReadUInt16s(6);
var experience = reader.ReadInt32();
var money = reader.ReadUInt16();
_ = reader.ReadUInt16(); // padding
var normalAttackActionId = reader.ReadUInt32();
var heightLevel = reader.ReadByte();
var moveRangeLevel = reader.ReadByte();
var attackRangeLevel = reader.ReadByte();
var moveSpeedLevel = reader.ReadByte();
var chaseSpeed = reader.ReadByte();
_ = reader.ReadBytes(3); // padding
var skillIds = reader.ReadUInt32s(4);
var skillLevels = reader.ReadBytes(4);
var spImpactValue = reader.ReadInt32();
var properties = reader.ReadSingles(10);
var normalLoot = reader.ReadUInt32();
var normalLootCount = reader.ReadInt16();
_ = reader.ReadInt16(); // padding
var corpseId = reader.ReadUInt32();
var corpseSkillId = reader.ReadUInt32();
var corpseSuccessRate = reader.ReadInt16();
var stealableMoneyAmount = reader.ReadInt16();
var stealableItemId = reader.ReadUInt32();
var stealableItemCount = reader.ReadInt16();
var moneyWhenKilled = reader.ReadInt16();
return new CombatActorInfo()
{
Id = reader.ReadUInt32(),
Name = reader.ReadString(32, codepage),
ModelName = reader.ReadString(30, codepage),
IconName = reader.ReadString(30, codepage),
Description = reader.ReadString(512, codepage),
Price = reader.ReadInt32(),
Type = (ItemType) reader.ReadByte(),
WeaponType = (WeaponType) reader.ReadByte(),
MainActorCanUse = reader.ReadBytes(5),
WuLing = reader.ReadBytes(5),
AncientValue = reader.ReadInt32(),
SpecialType = (SpecialType) reader.ReadByte(), // ----------------| 1
TargetRangeType = (TargetRangeType) reader.ReadByte(), // --------| 2
PlaceOfUseType = (PlaceOfUseType) reader.ReadByte(), // ----------| 3
AttributeImpactType = reader.ReadBytes(12),
PaddingByte = reader.ReadByte(), // ------------------------------| ^ to complete 4-byte alignment
AttributeImpactValue = reader.ReadInt16Array(12),
FightStateImpactType = reader.ReadBytes(32),
FightStateImpactValue = reader.ReadInt16Array(32),
ComboCount = reader.ReadInt32(),
QiSavingPercentage = reader.ReadInt16(),
MpSavingPercentage = reader.ReadInt16(),
CriticalAttackAmplifyPercentage = reader.ReadInt16(),
SpecialSkillSuccessRate = reader.ReadInt16(),
OreId = reader.ReadUInt32(),
ProductId = reader.ReadUInt32(),
ProductPrice = reader.ReadInt32(),
SynthesisMaterialIds = reader.ReadUInt32Array(2),
SynthesisProductId = reader.ReadUInt32()
Id = id,
Type = type,
Description = description,
ModelId = modelId,
IconId = iconId,
WuLing = wuLing,
Name = name,
Level = level,
AttributeValue = attributeValue,
CombatStateImpactType = combatStateImpactType,
RoundNumber = roundNumber,
SpecialActionId = specialActionId,
EscapeRate = escapeRate,
MainActorFavor = mainActorFavor,
Experience = experience,
Money = money,
NormalAttackActionId = normalAttackActionId,
HeightLevel = heightLevel,
MoveRangeLevel = moveRangeLevel,
AttackRangeLevel = attackRangeLevel,
MoveSpeedLevel = moveSpeedLevel,
ChaseSpeedLevel = chaseSpeed,
SkillIds = skillIds,
SkillLevels = skillLevels,
SpImpactValue = spImpactValue,
Properties = properties,
NormalLoot = normalLoot,
NormalLootCount = normalLootCount,
CorpseId = corpseId,
CorpseSkillId = corpseSkillId,
CorpseSuccessRate = corpseSuccessRate,
StealableMoneyAmount = stealableMoneyAmount,
StealableItemId = stealableItemId,
StealableItemCount = stealableItemCount,
MoneyWhenKilled = moneyWhenKilled,
};
}
private SkillInfo ReadSkillInfo(IBinaryReader reader, int codepage)
{
var id = reader.ReadUInt32();
var type = (SkillType)reader.ReadByte();
_ = reader.ReadBytes(3); // padding
var wuLing = reader.ReadInt32s(5);
var name = reader.ReadString(32, codepage);
var description = reader.ReadString(512, codepage);
var mainActorCanUse = reader.ReadBytes(5);
var targetRangeType = (TargetRangeType)reader.ReadByte();
var specialSkillId = reader.ReadByte();
var attributeImpactType = reader.ReadBytes(12);
_ = reader.ReadByte(); // padding
var attributeImpactValue = reader.ReadInt16s(12);
var successRateLevel = reader.ReadByte();
_ = reader.ReadByte(); // padding
var combatStateImpactType = reader.ReadInt16s(31);
var consumeAttributeType = reader.ReadInt32s(2);
var consumeAttributeKind = reader.ReadInt32s(3);
var specialConsumeType = reader.ReadByte();
_ = reader.ReadBytes(3); // padding
var specialConsumeValue = reader.ReadInt32();
var level = reader.ReadByte();
var timesBeforeLevelUp = reader.ReadBytes(4);
var requiredActorLevel = reader.ReadByte();
var magicLevel = reader.ReadByte();
_ = reader.ReadByte(); // padding
var nextLevelSkillId = reader.ReadUInt32();
var isUsableOutsideCombat = reader.ReadByte();
_ = reader.ReadBytes(3); // padding
var compositeSkillIds = reader.ReadUInt32s(3);
var compositeRequiredSkillIds = reader.ReadUInt32s(3);
var compositeRequiredSkillLevels = reader.ReadBytes(3);
var compositeRequiredCurrentSkillLevels = reader.ReadBytes(3);
var compositeRequiredActorLevels = reader.ReadBytes(3);
var canTriggerComboSkill = reader.ReadByte();
_ = reader.ReadBytes(2); // padding
return new SkillInfo()
{
Id = id,
Type = type,
WuLing = wuLing,
Name = name,
Description = description,
MainActorCanUse = mainActorCanUse,
TargetRangeType = targetRangeType,
SpecialSkillId = specialSkillId,
AttributeImpactType = attributeImpactType,
AttributeImpactValue = attributeImpactValue,
SuccessRateLevel = successRateLevel,
CombatStateImpactType = combatStateImpactType,
ConsumeAttributeType = consumeAttributeType,
ConsumeAttributeKind = consumeAttributeKind,
SpecialConsumeType = specialConsumeType,
SpecialConsumeValue = specialConsumeValue,
Level = level,
TimesBeforeLevelUp = timesBeforeLevelUp,
RequiredActorLevel = requiredActorLevel,
MagicLevel = magicLevel,
NextLevelSkillId = nextLevelSkillId,
IsUsableOutsideCombat = isUsableOutsideCombat,
CompositeSkillIds = compositeSkillIds,
CompositeRequiredSkillIds = compositeRequiredSkillIds,
CompositeRequiredSkillLevels = compositeRequiredSkillLevels,
CompositeRequiredCurrentSkillLevels = compositeRequiredCurrentSkillLevels,
CompositeRequiredActorLevels = compositeRequiredActorLevels,
CanTriggerComboSkill = canTriggerComboSkill,
};
}
private static GameItemInfo ReadGameItemInfo(IBinaryReader reader, int codepage)
{
var id = reader.ReadUInt32();
var name = reader.ReadString(32, codepage);
var modelName = reader.ReadString(30, codepage);
var iconName = reader.ReadString(30, codepage);
var description = reader.ReadString(512, codepage);
var price = reader.ReadInt32();
var type = (ItemType) reader.ReadByte();
var weaponType = (WeaponType) reader.ReadByte();
var mainActorCanUse = reader.ReadBytes(5);
var wuLing = reader.ReadBytes(5);
var ancientValue = reader.ReadInt32();
var specialType = (SpecialType) reader.ReadByte();
var targetRangeType = (TargetRangeType) reader.ReadByte();
var placeOfUseType = (PlaceOfUseType) reader.ReadByte();
var attributeImpactType = reader.ReadBytes(12);
_ = reader.ReadByte(); // padding
var attributeImpactValue = reader.ReadInt16s(12);
var combatStateImpactType = reader.ReadBytes(31);
_ = reader.ReadByte(); // padding
var combatStateImpactValue = reader.ReadInt16s(31);
_ = reader.ReadBytes(2); // padding
var comboCount = reader.ReadInt32();
var spSavingPercentage = reader.ReadInt16();
var mpSavingPercentage = reader.ReadInt16();
var criticalAttackAmplifyPercentage = reader.ReadInt16();
var specialSkillSuccessRate = reader.ReadInt16();
var oreId = reader.ReadUInt32();
var productId = reader.ReadUInt32();
var productPrice = reader.ReadInt32();
var synthesisMaterialIds = reader.ReadUInt32s(2);
var synthesisProductId = reader.ReadUInt32();
return new GameItemInfo()
{
Id = id,
Name = name,
ModelName = modelName,
IconName = iconName,
Description = description,
Price = price,
Type = type,
WeaponType = weaponType,
MainActorCanUse = mainActorCanUse,
WuLing = wuLing,
AncientValue = ancientValue,
SpecialType = specialType,
TargetRangeType = targetRangeType,
PlaceOfUseType = placeOfUseType,
AttributeImpactType = attributeImpactType,
AttributeImpactValue = attributeImpactValue,
CombatStateImpactType = combatStateImpactType,
CombatStateImpactValue = combatStateImpactValue,
ComboCount = comboCount,
SpSavingPercentage = spSavingPercentage,
MpSavingPercentage = mpSavingPercentage,
CriticalAttackAmplifyPercentage = criticalAttackAmplifyPercentage,
SpecialSkillSuccessRate = specialSkillSuccessRate,
OreId = oreId,
ProductId = productId,
ProductPrice = productPrice,
SynthesisMaterialIds = synthesisMaterialIds,
SynthesisProductId = synthesisProductId,
};
}
private ComboSkillInfo ReadComboSkillInfo(IBinaryReader reader, int codepage)
{
var name = reader.ReadString(32, codepage);
var id = reader.ReadUInt32();
var mainActorRequirements = reader.ReadUInt32s(4);
var wuLingPositionRequirements = reader.ReadBytes(4);
var skillId = reader.ReadUInt32();
var weaponTypeRequirements = reader.ReadBytes(4);
_ = reader.ReadBytes(4); // not used
var combatStateRequirements = reader.ReadInt32s(3);
var description = reader.ReadString(512, codepage);
var targetRangeType = (TargetRangeType)reader.ReadByte();
var attributeImpactType = reader.ReadBytes(12);
_ = reader.ReadBytes(3); // padding
var attributeImpactValue = reader.ReadInt16s(12);
#if PAL3A
var unknown = reader.ReadInt32();
#endif
return new ComboSkillInfo()
{
Name = name,
Id = id,
MainActorRequirements = mainActorRequirements,
WuLingPositionRequirements = wuLingPositionRequirements,
SkillId = skillId,
WeaponTypeRequirements = weaponTypeRequirements,
CombatStateRequirements = combatStateRequirements,
Description = description,
TargetRangeType = targetRangeType,
AttributeImpactType = attributeImpactType,
AttributeImpactValue = attributeImpactValue,
#if PAL3A
Unknown = unknown,
#endif
};
}
}
@@ -0,0 +1,160 @@
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataReader
{
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using UnityEngine;
/// <summary>
/// Binary reader interface for reading data from binary file
/// with extension methods for reading various data types.
/// </summary>
public interface IBinaryReader : IDisposable
{
long Position { get; }
long Length { get; }
void Seek(long offset, SeekOrigin seekOrigin);
short ReadInt16();
int ReadInt32();
long ReadInt64();
ushort ReadUInt16();
uint ReadUInt32();
ulong ReadUInt64();
float ReadSingle();
double ReadDouble();
bool ReadBoolean();
byte ReadByte();
byte[] ReadBytes(int count);
#region Helper Extensions (Default Implementation)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
float[] ReadSingles(int count)
{
var array = new float[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadSingle();
}
return array;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
double[] ReadDoubles(int count)
{
var array = new double[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadDouble();
}
return array;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
short[] ReadInt16s(int count)
{
var array = new short[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadInt16();
}
return array;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
ushort[] ReadUInt16s(int count)
{
var array = new ushort[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadUInt16();
}
return array;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
int[] ReadInt32s(int count)
{
var array = new int[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadInt32();
}
return array;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
uint[] ReadUInt32s(int count)
{
var array = new uint[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadUInt32();
}
return array;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
long[] ReadInt64s(int count)
{
var array = new long[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadInt64();
}
return array;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
ulong[] ReadUInt64s(int count)
{
var array = new ulong[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadUInt64();
}
return array;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public char[] ReadChars(int count)
{
return Encoding.ASCII.GetChars(ReadBytes(count));
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
string ReadString(int count) => new (ReadChars(count));
[MethodImpl(MethodImplOptions.AggressiveInlining)]
string ReadString(int count, int codepage)
{
var strBytes = ReadBytes(count);
int length = Array.IndexOf(strBytes, (byte)0);
if (length == -1) length = strBytes.Length; // If no null byte is found, use the full length
return Encoding.GetEncoding(codepage).GetString(strBytes, 0, length);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Vector2 ReadVector2() => new (ReadSingle(), ReadSingle());
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Vector3 ReadVector3() => new (ReadSingle(), ReadSingle(), ReadSingle());
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Vector3[] ReadVector3s(int count)
{
var array = new Vector3[count];
for (var i = 0; i < count; i++)
{
array[i] = ReadVector3();
}
return array;
}
#endregion
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: af41ce424f3813346ba04c25afee604a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,45 @@
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataReader
{
using System.IO;
/// <summary>
/// File reader interface for reading data from binary file
/// using <see cref="IBinaryReader"/>.
/// </summary>
/// <typeparam name="T">File type</typeparam>
public interface IFileReader<out T>
{
T Read(IBinaryReader reader, int codepage);
T Read(byte[] data, int codepage)
{
// Use unsafe binary reader (faster) if IL2CPP is enabled
// otherwise use safe reader
#if ENABLE_IL2CPP || UNITY_EDITOR
using var reader = new UnsafeBinaryReader(data);
#else
using var reader = new SafeBinaryReader(data);
#endif
return Read(reader, codepage);
}
T Read(Stream stream, int codepage)
{
// Use unsafe binary reader (faster) if IL2CPP is enabled
// otherwise use safe reader
#if ENABLE_IL2CPP || UNITY_EDITOR
using var reader = new UnsafeBinaryReader(stream);
#else
using var reader = new SafeBinaryReader(stream);
#endif
return Read(reader, codepage);
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 6c4f0a8feb4f4a5d9cf984163dea25ce
timeCreated: 1680782159
@@ -5,19 +5,54 @@
namespace Core.DataReader.Ini
{
public struct BoneActor
{
public string MeshFileName;
public string MaterialFileName;
public string EffectFileName;
}
public struct ActorAction
{
public string ActionName;
public string ActionFileName;
}
public class ActorConfigFile
public struct BoneMaterial
{
public ActorConfigFile(ActorAction[] actorActions)
public string MaterialName;
public string MaterialFileName;
public string EffectFileName;
}
public abstract class ActorActionConfig
{
protected ActorActionConfig(ActorAction[] actorActions)
{
ActorActions = actorActions;
}
public ActorAction[] ActorActions { get; }
}
public sealed class Mv3ActionConfig : ActorActionConfig
{
public Mv3ActionConfig(ActorAction[] actorActions) : base(actorActions)
{
}
}
public sealed class MovActionConfig : ActorActionConfig
{
public MovActionConfig(BoneActor actor,
ActorAction[] actorActions,
BoneMaterial[] boneMaterials) : base(actorActions)
{
Actor = actor;
BoneMaterials = boneMaterials;
}
public BoneActor Actor { get; }
public BoneMaterial[] BoneMaterials { get; }
}
}
@@ -1,46 +0,0 @@
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataReader.Ini
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using IniParser;
using IniParser.Model;
/// <summary>
/// Read and parse .ini actor config file.
/// </summary>
public static class ActorConfigFileReader
{
private const string ACTION_SECTION_HEADER_PREFIX = "action_";
private const string ACTION_SECTION_PROPERTY_NAME = "name";
private const string ACTION_SECTION_PROPERTY_FILE = "file";
public static ActorConfigFile Read(byte[] configData)
{
var parser = new FileIniDataParser();
using var stream = new MemoryStream(configData);
using var reader = new StreamReader(stream, Encoding.ASCII);
IniData iniData = parser.ReadData(reader);
var actions = new List<ActorAction>();
foreach (SectionData section in iniData.Sections
.Where(s => s.SectionName.StartsWith(ACTION_SECTION_HEADER_PREFIX)))
{
actions.Add(new ActorAction()
{
ActionName = iniData[section.SectionName][ACTION_SECTION_PROPERTY_NAME],
ActionFileName = iniData[section.SectionName][ACTION_SECTION_PROPERTY_FILE],
});
}
return new ActorConfigFile(actions.ToArray());
}
}
}
@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 9628650b0d0f4476b6dfc7c21e71425c
timeCreated: 1642741115
@@ -0,0 +1,80 @@
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataReader.Ini
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using IniParser;
using IniParser.Model;
public sealed class MovConfigFileReader : IFileReader<MovActionConfig>
{
private const string ACTOR_SECTION_HEADER = "actor";
private const string ACTION_SECTION_HEADER_PREFIX = "action_";
private const string MATERIAL_SECTION_HEADER_PREFIX = "material_";
private const string PROPERTY_NAME = "name";
private const string PROPERTY_FILE = "file";
private const string PROPERTY_EFFECT = "effect";
private const string PROPERTY_MESH = "mesh";
private const string PROPERTY_MATERIAL = "material";
public MovActionConfig Read(IBinaryReader reader, int codepage)
{
throw new NotImplementedException();
}
public MovActionConfig Read(byte[] data, int codepage)
{
FileIniDataParser parser = new ();
using var stream = new MemoryStream(data);
using var reader = new StreamReader(stream, Encoding.GetEncoding(codepage));
IniData iniData = parser.ReadData(reader);
BoneActor? actor = null;
List<ActorAction> actions = new ();
List<BoneMaterial> materials = new ();
foreach (SectionData section in iniData.Sections)
{
if (string.Equals(section.SectionName, ACTOR_SECTION_HEADER, StringComparison.Ordinal))
{
actor = new BoneActor()
{
MeshFileName = iniData[section.SectionName][PROPERTY_MESH],
MaterialFileName = iniData[section.SectionName][PROPERTY_MATERIAL],
EffectFileName = iniData[section.SectionName][PROPERTY_EFFECT],
};
}
if (section.SectionName.StartsWith(ACTION_SECTION_HEADER_PREFIX))
{
actions.Add(new ActorAction()
{
ActionName = iniData[section.SectionName][PROPERTY_NAME],
ActionFileName = iniData[section.SectionName][PROPERTY_FILE],
});
}
if (section.SectionName.StartsWith(MATERIAL_SECTION_HEADER_PREFIX))
{
materials.Add(new BoneMaterial()
{
MaterialName = iniData[section.SectionName][PROPERTY_NAME],
MaterialFileName = iniData[section.SectionName][PROPERTY_FILE],
EffectFileName = iniData[section.SectionName][PROPERTY_EFFECT],
});
}
}
if (actor == null) throw new InvalidDataException("Actor section is missing in MOV config.");
return new MovActionConfig(actor.Value, actions.ToArray(), materials.ToArray());
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: bdd5f5157ef84a99a901cd3480e7523a
timeCreated: 1680784465
@@ -0,0 +1,51 @@
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataReader.Ini
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using IniParser;
using IniParser.Model;
public sealed class Mv3ConfigFileReader : IFileReader<Mv3ActionConfig>
{
private const string ACTION_SECTION_HEADER_PREFIX = "action_";
private const string PROPERTY_NAME = "name";
private const string PROPERTY_FILE = "file";
public Mv3ActionConfig Read(IBinaryReader reader, int codepage)
{
throw new NotImplementedException();
}
public Mv3ActionConfig Read(byte[] data, int codepage)
{
var parser = new FileIniDataParser();
using var stream = new MemoryStream(data);
using var reader = new StreamReader(stream, Encoding.GetEncoding(codepage));
IniData iniData = parser.ReadData(reader);
var actions = new List<ActorAction>();
foreach (SectionData section in iniData.Sections)
{
if (section.SectionName.StartsWith(ACTION_SECTION_HEADER_PREFIX))
{
actions.Add(new ActorAction()
{
ActionName = iniData[section.SectionName][PROPERTY_NAME],
ActionFileName = iniData[section.SectionName][PROPERTY_FILE],
});
}
}
return new Mv3ActionConfig(actions.ToArray());
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 1b3f43f738664557928e3aee78515b27
timeCreated: 1680784304
@@ -32,7 +32,7 @@ namespace Core.DataReader.Lgt
public float AspectRatio;
}
public class LgtFile
public sealed class LgtFile
{
public LightNode[] LightNodes { get; }
Loaded 100 of 335 files, more files were not shown because too many files have changed in this diff. Show more