-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathResourceData.cs
More file actions
29 lines (23 loc) · 794 Bytes
/
ResourceData.cs
File metadata and controls
29 lines (23 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using GameFramework;
namespace UGFExtensions.Texture
{
public class ResourceData : IReference
{
public static ResourceData Create(ISetTexture2dObject setTexture2dObject, int serialId)
{
ResourceData resourceData = ReferencePool.Acquire<ResourceData>();
resourceData.m_SetTexture2dObject = setTexture2dObject;
resourceData.m_SerialId = serialId;
return resourceData;
}
private ISetTexture2dObject m_SetTexture2dObject;
private int m_SerialId;
public ISetTexture2dObject SetTexture2dObject => m_SetTexture2dObject;
public int SerialId => m_SerialId;
public void Clear()
{
m_SetTexture2dObject = null;
m_SerialId = -1;
}
}
}