forked from ToadsworthLP/desktoptale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CharacterProperties.cs
50 lines (46 loc) · 1.71 KB
/
CharacterProperties.cs
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using Desktoptale.Characters;
using Desktoptale.Registry;
using Microsoft.Xna.Framework;
namespace Desktoptale
{
public class CharacterProperties
{
public CharacterType Type { get; set; }
public Vector2 Position { get; set; }
public Vector2 Scale { get; set; }
public bool IdleRoamingEnabled { get; set; }
public bool UnfocusedInputEnabled { get; set; }
public WindowInfo StayInsideWindow { get; set; }
public Party Party { get; set; }
public CharacterProperties()
{
Type = CharacterRegistry.FRISK;
Position = Vector2.Zero;
Scale = new Vector2(2, 2);
IdleRoamingEnabled = true;
UnfocusedInputEnabled = false;
StayInsideWindow = null;
Party = null;
}
public CharacterProperties(CharacterType type, Vector2 position, Vector2 scale, bool idleRoamingEnabled, bool unfocusedInputEnabled, WindowInfo stayInsideWindow = null, Party party = null)
{
Type = type;
Position = position;
Scale = scale;
IdleRoamingEnabled = idleRoamingEnabled;
UnfocusedInputEnabled = unfocusedInputEnabled;
StayInsideWindow = stayInsideWindow;
Party = party;
}
public CharacterProperties(CharacterProperties source)
{
Type = source.Type;
Position = source.Position;
Scale = source.Scale;
IdleRoamingEnabled = source.IdleRoamingEnabled;
UnfocusedInputEnabled = source.UnfocusedInputEnabled;
StayInsideWindow = source.StayInsideWindow;
Party = source.Party;
}
}
}