예제 #1
0
 public Solid(int solidID, Vector2 pos, String mask = @"Solids\SolidBlock.png")
 {
     SolidID    = solidID;
     Location.X = pos.X;
     Location.Y = pos.Y;
     Sprite     = SolidSprites.GetSprite(mask);
     Mask       = new Collision(Sprite.Tex, false);
 }
예제 #2
0
 public void ReadFromStreamV1(BinaryReader stream)
 {
     Sprite            = SolidSprites.GetSprite(stream.ReadString());
     Depth             = stream.ReadInt32();
     SolidID           = stream.ReadInt32();
     Visible           = stream.ReadBoolean();
     Destructible      = stream.ReadBoolean();
     JumpThrough       = stream.ReadBoolean();
     CollideEntity     = stream.ReadBoolean();
     CollideProjectile = stream.ReadBoolean();
     Health            = stream.ReadInt32();
     Location.X        = stream.ReadInt32();
     Location.Y        = stream.ReadInt32();
 }