mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-03-21 17:34:28 -05:00
19 lines
357 B
C#
19 lines
357 B
C#
namespace TableturfBattleServer;
|
|
public struct Colour {
|
|
public int R;
|
|
public int G;
|
|
public int B;
|
|
|
|
public Colour(int r, int g, int b) {
|
|
this.R = r;
|
|
this.G = g;
|
|
this.B = b;
|
|
}
|
|
|
|
public Colour(int packed) {
|
|
this.R = packed >> 16 & byte.MaxValue;
|
|
this.G = packed >> 8 & byte.MaxValue;
|
|
this.B = packed & byte.MaxValue;
|
|
}
|
|
}
|