Advertisement
evelynshilosky

EnvironmentData - Part 34

Mar 8th, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3.  
  4. [System.Serializable]
  5. public class EnvironmentData
  6. {
  7.     public List<string> pickedupItems;
  8.  
  9.     public List<TreeData> treeData;
  10.  
  11.     public List<string> animals;
  12.  
  13.     public List<StorageData> storage;
  14.  
  15.     public EnvironmentData(List<string> _pickedupItems, List<TreeData> _treeData, List<string> _animals, List<StorageData> _storage)
  16.     {
  17.         pickedupItems = _pickedupItems;
  18.         treeData = _treeData;
  19.         animals = _animals;
  20.         storage = _storage;
  21.     }
  22. }
  23.  
  24. [System.Serializable]
  25. public class StorageData
  26. {
  27.     public List<string> items;
  28.     public Vector3 position;
  29.     public Vector3 rotation;
  30. }
  31.  
  32. [System.Serializable]
  33. public class TreeData
  34. {
  35.     public string name; // "Tree" or "Stump"
  36.     public Vector3 position;
  37.     public Vector3 rotation;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement