added: item pickups with online persistency

This commit is contained in:
Chris
2025-09-08 16:40:13 -04:00
parent 8bdf0b31cc
commit 7a0499f36a
39 changed files with 8228 additions and 208 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
using Unity.Netcode;
using UnityEngine;
namespace Reset.Items{
public abstract class Item : ScriptableObject{
public string itemName{ get; set; }
public float permanency;
public float essenceRequiredForPermanency;
private Event onDropDelegates;
public void DropItem(){
}
public virtual ItemDrop CreateItemDropFrom(){
ItemDrop newItemDrop = new GameObject().AddComponent<ItemDrop>();
newItemDrop.item = this;
return newItemDrop;
}
}
}