working on multiplayer
This commit is contained in:
19
Runtime/Engine/Code/Simulation/WorldConfigAsset.cs
Normal file
19
Runtime/Engine/Code/Simulation/WorldConfigAsset.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.AddressableAssets;
|
||||
|
||||
namespace RebootKit.Engine.Services.Simulation {
|
||||
[Serializable]
|
||||
public struct WorldConfig {
|
||||
public string name;
|
||||
|
||||
// @NOTE: stays loaded during world lifetime
|
||||
public AssetReference mainScene;
|
||||
}
|
||||
|
||||
[CreateAssetMenu(menuName = RConsts.k_WorldAssetMenu + "World")]
|
||||
public class WorldConfigAsset : ScriptableObject {
|
||||
[field: SerializeField]
|
||||
public WorldConfig Config { get; private set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user