mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 17:00:23 -04:00
- Added `PrefabBuilder` which can be used in a ResourceLoader to include custom prefabs along with a mount - Changed StartupLoadProject so that it will register custom asset types BEFORE mounting, so that any assets within mounts (like .prefab files) can be resolved by the asset system - Added `PrefabFile.Load` which lazy-loads PrefabFiles (just like `Model.Load` or `Texture.Load`) - ResourceLibrary.Load<>() has been updated to call PrefabFile.Load when handling a PrefabFile (just like Models, Textures, ect) - Added some basic tests for the PrefabBuilder
7 lines
181 B
C#
7 lines
181 B
C#
global using Sandbox;
|
|
global using Sandbox.Mounting;
|
|
global using System.Collections.Generic;
|
|
global using System.IO;
|
|
global using System.Linq;
|
|
global using System.Threading.Tasks;
|