HKI Core
HKI Core
Variables
IntWidthHeight.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
3
namespace
HKI
.Core.Variables
4
{
8
[
System
.Serializable]
9
public
struct
IntWidthHeight
10
{
11
// Public Variables
12
public
int
Width
;
13
public
int
Height
;
14
15
// Setters
16
public
void
SetWidthAndHeight
(
int
width,
int
height)
17
{
18
this.Width = width;
19
this.Height = height;
20
}
21
22
// Interface fucntion
23
public
override
string
ToString
()
24
{
25
return
"width: "
+ Width.ToString() +
" x Height: "
+ Height.ToString();
26
}
27
}
28
}
System
HKI.Core.Variables.IntWidthHeight
This is a data type that combines a int width and a int height value into one value. This can be used for storing resolution information.
Definition:
IntWidthHeight.cs:9
HKI.Core.Variables.IntWidthHeight.Height
int Height
Definition:
IntWidthHeight.cs:13
HKI.Core.Variables.IntWidthHeight.ToString
override string ToString()
Definition:
IntWidthHeight.cs:23
HKI.Core.Variables.IntWidthHeight.Width
int Width
Definition:
IntWidthHeight.cs:12
UnityEngine
HKI.Core.Variables.IntWidthHeight.SetWidthAndHeight
void SetWidthAndHeight(int width, int height)
Definition:
IntWidthHeight.cs:16
HKI
Generated by
1.8.13