/// <summary> /// Setup the content manager so it knows where to find various files. /// </summary> private void Init() { /** Scan system for files **/ var allFiles = new List <string>(); _ScanFiles(BasePath, allFiles); AllFiles = allFiles.ToArray(); Archives = new Dictionary <string, FAR3Archive>(); UIGraphics.Init(); AvatarMeshes.Init(); AvatarBindings.Init(); AvatarTextures.Init(); AvatarSkeletons.Init(); AvatarAppearances.Init(); AvatarOutfits.Init(); AvatarAnimations.Init(); Audio.Init(); AvatarPurchasables.Init(); InitWorld(); }
/// <summary> /// Creates a new instance of Content. /// </summary> /// <param name="basePath">Path to client directory.</param> /// <param name="device">A GraphicsDevice instance.</param> private Content(string basePath, GraphicsDevice device) { this.BasePath = basePath; this.Device = device; UIGraphics = new UIGraphicsProvider(this, Device); AvatarMeshes = new AvatarMeshProvider(this, Device); AvatarBindings = new AvatarBindingProvider(this); AvatarTextures = new AvatarTextureProvider(this, Device); AvatarSkeletons = new AvatarSkeletonProvider(this); AvatarAppearances = new AvatarAppearanceProvider(this); AvatarOutfits = new AvatarOutfitProvider(this); AvatarAnimations = new AvatarAnimationProvider(this); AvatarPurchasables = new AvatarPurchasables(this); WorldObjects = new WorldObjectProvider(this); WorldFloors = new WorldFloorProvider(this); WorldObjectGlobals = new WorldGlobalProvider(this); Audio = new Audio(this); Init(); }