forked from E-riCA0/StawdewValley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChunk.cs
48 lines (44 loc) · 1.16 KB
/
Chunk.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
// Decompiled with JetBrains decompiler
// Type: StardewValley.Chunk
// Assembly: Stardew Valley, Version=1.2.6400.27469, Culture=neutral, PublicKeyToken=null
// MVID: 77B7094A-F6F0-4ACC-91F4-E335E2733EDB
// Assembly location: D:\SteamLibrary\steamapps\common\Stardew Valley\Stardew Valley.exe
using Microsoft.Xna.Framework;
using System.Xml.Serialization;
namespace StardewValley
{
public class Chunk
{
public Vector2 position;
[XmlIgnore]
public float xVelocity;
[XmlIgnore]
public float yVelocity;
[XmlIgnore]
public bool hasPassedRestingLineOnce;
[XmlIgnore]
public int bounces;
public int debrisType;
[XmlIgnore]
public bool hitWall;
public int xSpriteSheet;
public int ySpriteSheet;
[XmlIgnore]
public float rotation;
[XmlIgnore]
public float rotationVelocity;
public float scale;
public float alpha;
public Chunk()
{
}
public Chunk(Vector2 position, float xVelocity, float yVelocity, int debrisType)
{
this.position = position;
this.xVelocity = xVelocity;
this.yVelocity = yVelocity;
this.debrisType = debrisType;
this.alpha = 1f;
}
}
}