1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2019 Leszek Koltunski //
|
3
|
// //
|
4
|
// This file is part of Magic Cube. //
|
5
|
// //
|
6
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
|
10
|
package org.distorted.objectlib.main;
|
11
|
|
12
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
13
|
|
14
|
import java.io.InputStream;
|
15
|
|
16
|
public class InitAssets
|
17
|
{
|
18
|
InputStream mJsonStream;
|
19
|
InputStream mMeshStream;
|
20
|
|
21
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
22
|
|
23
|
public InitAssets(InputStream jsonStream)
|
24
|
{
|
25
|
mJsonStream = jsonStream;
|
26
|
}
|
27
|
|
28
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
29
|
|
30
|
public InitAssets(InputStream jsonStream, InputStream meshStream)
|
31
|
{
|
32
|
mJsonStream = jsonStream;
|
33
|
mMeshStream = meshStream;
|
34
|
}
|
35
|
|
36
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
37
|
|
38
|
public boolean noJsonStream()
|
39
|
{
|
40
|
return mJsonStream==null;
|
41
|
}
|
42
|
|
43
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
44
|
|
45
|
public InputStream getJsonStream()
|
46
|
{
|
47
|
return mJsonStream;
|
48
|
}
|
49
|
|
50
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
51
|
|
52
|
public InputStream getMeshStream()
|
53
|
{
|
54
|
return mMeshStream;
|
55
|
}
|
56
|
}
|