buildings wip
This commit is contained in:
@@ -12,7 +12,7 @@ pub struct BuildingAsset {
|
||||
pub footprint: BuildingFootprint,
|
||||
pub prefab_path: String,
|
||||
#[serde(skip)]
|
||||
pub prefab: Handle<()>,
|
||||
pub prefab: Handle<Scene>,
|
||||
|
||||
pub cost: Vec<ResourceIdentifier>,
|
||||
pub consumption: Vec<ResourceIdentifier>,
|
||||
|
||||
@@ -5,7 +5,9 @@ use serde::{Deserialize, Serialize};
|
||||
use super::building_asset::BuildingAsset;
|
||||
|
||||
#[derive(Resource)]
|
||||
pub struct BuildingDatabase(Handle<BuildingDatabaseAsset>);
|
||||
pub struct BuildingDatabase{
|
||||
pub handle: Handle<BuildingDatabaseAsset>
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, TypePath, Asset)]
|
||||
pub struct BuildingDatabaseAsset {
|
||||
|
||||
Reference in New Issue
Block a user