public static void AddRPCE(EffectInfo effect, RPCE rpce, ChunkPlaybackInfo playbackInfo, Dictionary <ulong, ulong> replacements) { RPCEInfo newInfo = new RPCEInfo { PlaybackInfo = playbackInfo, Model = rpce.Data.Model }; if (replacements.ContainsKey(newInfo.Model)) { newInfo.Model = replacements[newInfo.Model]; } effect.RPCEs.Add(newInfo); }
public static void AddSSCE(EffectInfo effectInfo, SSCE ssce, Type lastType, Dictionary <ulong, ulong> replacements) { ulong def = ssce.Data.TextureDefinition; ulong mat = ssce.Data.Material; if (replacements.ContainsKey(def)) { def = replacements[def]; } if (replacements.ContainsKey(mat)) { mat = replacements[mat]; } if (lastType == typeof(RPCE)) { RPCEInfo rpceInfo = effectInfo.RPCEs.Last(); rpceInfo.TextureDefiniton = def; rpceInfo.Material = mat; } }