A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
SceneItem.cs
Go to the documentation of this file.
1
5
[System.Serializable]
6
public
class
SceneItem
7
{
8
public
int
m_ItemCode
;
9
public
Vector3Serializable
m_Position
;
10
public
string
m_ItemName
;
11
12
public
SceneItem
()
13
{
14
m_Position
=
new
Vector3Serializable
();
15
}
16
}
SceneItem
We have scene item instances for every item in the scene that we want to store in a save file.
Definition:
SceneItem.cs:7
SceneItem.m_ItemName
string m_ItemName
Definition:
SceneItem.cs:10
SceneItem.SceneItem
SceneItem()
Definition:
SceneItem.cs:12
SceneItem.m_ItemCode
int m_ItemCode
Definition:
SceneItem.cs:8
SceneItem.m_Position
Vector3Serializable m_Position
Definition:
SceneItem.cs:9
Vector3Serializable
Unity Vector3 data type is NOT serializable. Therefore, it can't be searilize and saved to a datafile...
Definition:
Vector3Serializable.cs:9
Assets
Scripts
SaveSystem
SceneItem.cs
Generated on Thu Jun 1 2023 20:52:47 for A 2D Farming RPG by
1.9.5