Firstborn/Assets/RPG Creation Kit/Scripts/Save System/SaveElements/CreatedItemInWorldData.cs
Schaken-Mods 774d18a99d 5/18/2023 Update
made most of the game Moddable. There is an in editor tool to make the mods and set them all up, and im making an external tool that will show your mods, lets you edit any information and it will pack it up and upload it. currently working on the uploading. Next I will make the game able to download and install. - Fuck Nexus.
2023-05-18 20:28:45 -05:00

45 lines
1.4 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RPGCreationKit;
using RPGCreationKit.SaveSystem;
namespace RPGCreationKit.SaveSystem
{
[System.Serializable]
public class CreatedItemsInWorldDictionary : SerializableDictionary<string, CreatedItemInWorldCollection> { }
/// <summary>
/// Represent a single item in world
/// </summary>
[System.Serializable]
public class CreatedItemInWorldSaveData
{
public string itemID;
public Metadata Metadata;
public string WorldspaceID;
public int amount;
public Vector3 position;
public Quaternion rotation;
public bool isKinematic;
}
/// <summary>
/// Represent a single item in world
/// </summary>
[System.Serializable]
public class CreatedItemInWorldCollection
{
public List<CreatedItemInWorldSaveData> itemsInThis = new List<CreatedItemInWorldSaveData>();
}
/// <summary>
/// Represent the collection of all items in world in the game
/// </summary>
[System.Serializable]
public class CreatedItemInWorldData
{
[SerializeField] public CreatedItemsInWorldDictionary allCreatedItemsInWorld = new CreatedItemsInWorldDictionary();
[SerializeField] public CreatedItemsInWorldDictionary allModsInWorld = new CreatedItemsInWorldDictionary();
}
}