1+ using CATHODE . Enums ;
12using CATHODE . Scripting ;
23using CathodeLib ;
34using System ;
@@ -40,20 +41,20 @@ override protected bool LoadInternal()
4041 entry . components . Arms . AccessoryIndex = reader . ReadInt32 ( ) ;
4142 entry . components . Collision . AccessoryIndex = reader . ReadInt32 ( ) ;
4243
43- entry . asset_type = ( CharacterAttributes . AssetType ) reader . ReadInt32 ( ) ;
44- entry . voice_actor = ( CharacterAttributes . VoiceActor ) reader . ReadInt32 ( ) ;
45- entry . gender = ( CharacterAttributes . Gender ) reader . ReadInt32 ( ) ;
46- entry . ethnicity = ( CharacterAttributes . Ethnicity ) reader . ReadInt32 ( ) ;
47- entry . build = ( CharacterAttributes . Build ) reader . ReadInt32 ( ) ;
44+ entry . asset_type = ( CharacterAsset ) reader . ReadInt32 ( ) ;
45+ entry . voice_actor = ( VoiceActor ) reader . ReadInt32 ( ) ;
46+ entry . gender = ( CharacterGender ) reader . ReadInt32 ( ) ;
47+ entry . ethnicity = ( CharacterEthnicity ) reader . ReadInt32 ( ) ;
48+ entry . build = ( CharacterBuild ) reader . ReadInt32 ( ) ;
4849
4950 byte [ ] stringBlock = reader . ReadBytes ( 260 ) ;
5051 entry . face_skeleton = Utilities . ReadString ( stringBlock ) ;
5152 stringBlock = reader . ReadBytes ( 260 ) ;
5253 entry . gender_skeleton = Utilities . ReadString ( stringBlock ) ;
5354
54- entry . foley . Torso = ( CharacterAttributes . FoleySounds . Type ) reader . ReadInt32 ( ) ;
55- entry . foley . Leg = ( CharacterAttributes . FoleySounds . Type ) reader . ReadInt32 ( ) ;
56- entry . foley . Footwear = ( CharacterAttributes . FoleySounds . Type ) reader . ReadInt32 ( ) ;
55+ entry . foley . Torso = ( FoleySound ) reader . ReadInt32 ( ) ;
56+ entry . foley . Leg = ( FoleySound ) reader . ReadInt32 ( ) ;
57+ entry . foley . Footwear = ( FoleySound ) reader . ReadInt32 ( ) ;
5758 Entries . Add ( entry ) ;
5859 }
5960 }
@@ -115,11 +116,11 @@ public class CharacterAttributes
115116 public EntityHandle character = new EntityHandle ( ) ;
116117 public Components components = new Components ( ) ;
117118
118- public AssetType asset_type = AssetType . ASSETSET_01 ; //TODO: Is this defined by CUSTOMCHARACTERASSETDATA.BIN?
119+ public CharacterAsset asset_type = CharacterAsset . ASSETSET_01 ; //TODO: Is this defined by CUSTOMCHARACTERASSETDATA.BIN?
119120 public VoiceActor voice_actor = VoiceActor . CV1 ;
120- public Gender gender = Gender . MALE ;
121- public Ethnicity ethnicity = Ethnicity . CAUCASIAN ;
122- public Build build = Build . STANDARD ;
121+ public CharacterGender gender = CharacterGender . MALE ;
122+ public CharacterEthnicity ethnicity = CharacterEthnicity . CAUCASIAN ;
123+ public CharacterBuild build = CharacterBuild . STANDARD ;
123124
124125 public string face_skeleton = "AL" ;
125126 public string gender_skeleton = "MALE" ;
@@ -144,71 +145,9 @@ public class Component
144145
145146 public class FoleySounds
146147 {
147- public Type Torso = Type . HEAVY_OVERALLS ;
148- public Type Leg = Type . HEAVY_OVERALLS ;
149- public Type Footwear = Type . BOOTS ;
150-
151- public enum Type // Cathode scripting CHARACTER_FOLEY_SOUND enum
152- {
153- LEATHER = 0 ,
154- HEAVY_JACKET = 1 ,
155- HEAVY_OVERALLS = 2 ,
156- SHIRT = 3 ,
157- SUIT_JACKET = 4 ,
158- SUIT_TROUSERS = 5 ,
159- JEANS = 6 ,
160- BOOTS = 7 ,
161- FLATS = 8 ,
162- TRAINERS = 9 ,
163- }
164- }
165-
166- public enum AssetType // Cathode scripting CUSTOM_CHARACTER_ASSETS enum
167- {
168- ASSETSET_01 , //Medical
169- ASSETSET_02 , //Engineering
170- ASSETSET_03 , //Generic
171- ASSETSET_04 , //Technical
172- ASSETSET_05 , // ?
173- ASSETSET_06 , // ?
174- ASSETSET_07 , // ?
175- ASSETSET_08 , // ?
176- ASSETSET_09 , // ?
177- ASSETSET_10 , // ?
178- }
179- public enum VoiceActor // Cathode scripting DIALOGUE_VOICE_ACTOR enum
180- {
181- AUTO ,
182- CV1 ,
183- CV2 ,
184- CV3 ,
185- CV4 ,
186- CV5 ,
187- CV6 ,
188- RT1 ,
189- RT2 ,
190- RT3 ,
191- RT4 ,
192- AN1 ,
193- AN2 ,
194- AN3 ,
195- ANH ,
196- }
197- public enum Gender // Cathode scripting CUSTOM_CHARACTER_GENDER enum
198- {
199- MALE ,
200- FEMALE ,
201- }
202- public enum Ethnicity // Cathode scripting CUSTOM_CHARACTER_ETHNICITY enum
203- {
204- AFRICAN ,
205- CAUCASIAN ,
206- ASIAN ,
207- }
208- public enum Build // Cathode scripting CUSTOM_CHARACTER_BUILD enum
209- {
210- STANDARD ,
211- HEAVY ,
148+ public FoleySound Torso = FoleySound . HEAVY_OVERALLS ;
149+ public FoleySound Leg = FoleySound . HEAVY_OVERALLS ;
150+ public FoleySound Footwear = FoleySound . BOOTS ;
212151 }
213152 } ;
214153 #endregion
0 commit comments