public override void Init(ObjectData data, string name) { model = ObjectHelper.LoadModel("object/OBJECT_ITEMBOXAIR.sa2mdl"); meshes = ObjectHelper.GetMeshes(model); childindex = 1; texarr = NJS_TEXLIST.Load("object/tls/itemboxair.satex"); }
public ModelLoadInfo(string name, SplitTools.FileInfo split, string modFolder) { ModelName = name; ModelFilePath = split.Filename; if (split.CustomProperties.ContainsKey("texture")) { TextureArchives = split.CustomProperties["texture"].Split(','); } if (split.CustomProperties.ContainsKey("texturepalette")) { TexturePalettePath = split.CustomProperties["texturepalette"]; } if (split.CustomProperties.ContainsKey("texids")) { string[] texids_s = split.CustomProperties["texids"].Split(','); List <int> texid_list = new List <int>(); for (int i = 0; i < texids_s.Length; i++) { texid_list.Add(int.Parse(texids_s[i], System.Globalization.NumberStyles.Integer)); } TextureIDs = texid_list.ToArray(); } else if (split.CustomProperties.ContainsKey("texnames")) { string texnamefile = Path.Combine(modFolder, split.CustomProperties["texnames"]); TextureNames = NJS_TEXLIST.Load(texnamefile); } }
public override void Init(ObjectData data, string name) { model = ObjectHelper.LoadModel("object/OBJECT_KASOKU_PANEL.sa2mdl"); meshes = ObjectHelper.GetMeshes(model); texarr = NJS_TEXLIST.Load("object/tls/KASOKU_PANEL.satex"); child = ObjectHelper.LoadModel("object/OBJECT_KASOKU.sa2mdl"); meshesChild = ObjectHelper.GetMeshes(child); texarrChild = NJS_TEXLIST.Load("object/tls/KASOKU.satex"); }
private NJS_TEXLIST texlist_sora96; // Main sky public override void Init(IniLevelData data, byte act, byte timeofday) { texlist_sora96 = NJS_TEXLIST.Load("stg02_windy/bg/models/windy_back3a.satex"); texlist_sora62 = NJS_TEXLIST.Load("stg02_windy/bg/models/windy_back3b.satex"); for (int i = 0; i < 3; i++) { models[i] = ObjectHelper.LoadModel("stg02_windy/bg/models/act3nbg_nbg" + (i + 1).ToString(NumberFormatInfo.InvariantInfo) + ".nja.sa1mdl"); meshes[i] = ObjectHelper.GetMeshes(models[i]); } }
public override void Init(IniLevelData data, byte act, byte timeofday) { texlist_main = NJS_TEXLIST.Load("stg02_windy/bg/models/newmind02_kazea.satex"); texlist_floating = NJS_TEXLIST.Load("stg02_windy/bg/models/newmind02_kazeb.satex"); models[0] = ObjectHelper.LoadModel("stg02_windy/bg/models/newmind02_kazea.nja.sa1mdl"); models[1] = ObjectHelper.LoadModel("stg02_windy/bg/models/newmind02_kazeb.nja.sa1mdl"); models[2] = ObjectHelper.LoadModel("stg02_windy/bg/models/newmind02_kazec.nja.sa1mdl"); for (int i = 0; i < models.Length; i++) { meshes[i] = ObjectHelper.GetMeshes(models[i]); } }
public ModelLoadInfo(string modelFilePath, SAMDLMetadata meta, string modFolder) { ModelFilePath = modelFilePath; ModelName = meta.ModelName; TextureArchives = meta.TextureArchives; TextureIDs = meta.TextureIDs; TexturePalettePath = meta.TexturePalette; if (meta.TextureNameFile != null && meta.TextureNameFile != "") { string texnamefile = Path.Combine(modFolder, meta.TextureNameFile); TextureNames = NJS_TEXLIST.Load(texnamefile); } }
public override void Init(ObjectData data, string name) { this.name = data.Name ?? name; if (!string.IsNullOrEmpty(data.Model)) { model = ObjectHelper.LoadModel(data.Model); meshes = ObjectHelper.GetMeshes(model); if (!string.IsNullOrEmpty(data.Texlist)) { texnames = NJS_TEXLIST.Load(data.Texlist); } } texture = data.Texture; xpos = data.XPos; ypos = data.YPos; zpos = data.ZPos; //xrot = data.XRot; //yrot = data.YRot; //zrot = data.ZRot; //xscl = data.XScl; //yscl = data.YScl; //zscl = data.ZScl; defxrot = data.DefXRot; defyrot = data.DefYRot; defzrot = data.DefZRot; defxscl = data.DefXScl; defyscl = data.DefYScl; defzscl = data.DefZScl; gnddst = data.GndDst; rottype = data.RotType; scltype = data.SclType; addxrot = data.AddXRot; addyrot = data.AddYRot; addzrot = data.AddZRot; addxscl = data.AddXScl; addyscl = data.AddYScl; addzscl = data.AddZScl; }
public override void Init(ObjectData data, string name) { model = ObjectHelper.LoadModel("object/OBJECT_OMOCHAO.sa2mdl"); meshes = ObjectHelper.GetMeshes(model); texarr = NJS_TEXLIST.Load("object/tls/OMOCHAO.satex"); }