Firstborn/Assets/RPG Creation Kit/Scripts/Save System/SaveElements/ItemsInWorldData.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

34 lines
919 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RPGCreationKit;
using RPGCreationKit.SaveSystem;
namespace RPGCreationKit.SaveSystem
{
[System.Serializable]
public class ItemsInWorldDictionary : SerializableDictionary<string, ItemInWorldSaveData> { }
/// <summary>
/// Represent a single item in world
/// </summary>
[System.Serializable]
public class ItemInWorldSaveData
{
public string worldspaceID;
public Vector3 position;
public Quaternion rotation;
public bool isPickedUp = false;
public bool isKinematic = false;
}
/// <summary>
/// Represent the collection of all items in world in the game
/// </summary>
[System.Serializable]
public class ItemsInWorldData
{
[SerializeField] public ItemsInWorldDictionary allItemsInWorld = new ItemsInWorldDictionary();
}
}