public BodyPart(int _Id, Vector3 _Position, Color _Color, String _TexturePath) { this.position = _Position; this.color = _Color; this.texturePath = _TexturePath; this.direction = DirectionEnum.Down; this.animation = new Animation.Animations.StandAnimation(this); this.scale = 1.0f; this.size = new Vector3(32, 32, 0); this.equipment = null; this.id = _Id; this.acceptedItemTypes = new List<ItemEnum>(); }
public BodyPart(int _Id, Vector3 _Position, Color _Color, String _TexturePath) { this.position = _Position; this.color = _Color; this.texturePath = _TexturePath; this.direction = DirectionEnum.Down; this.animation = new StandAnimation(this); this.scale = 1.0f; this.size = new Vector3(32, 32, 0); this.equipment = null; this.id = _Id; this.acceptedItemTypes = new List <ItemEnum>(); this.standartTextureShift = new Vector2(0, 0); }
public BodyPart(SerializationInfo info, StreamingContext ctxt) { this.position = (Vector3)info.GetValue("position", typeof(Vector3)); this.color = (Color)info.GetValue("color", typeof(Color)); this.texturePath = (String)info.GetValue("texturePath", typeof(String)); this.standartTextureShift = (Vector2)info.GetValue("standartTextureShift", typeof(Vector2)); this.scale = (float)info.GetValue("scale", typeof(float)); this.size = (Vector3)info.GetValue("size", typeof(Vector3)); this.equipment = (EquipmentObject)info.GetValue("equipment", typeof(EquipmentObject)); this.id = (int)info.GetValue("id", typeof(int)); this.acceptedItemTypes = (List<ItemEnum>)info.GetValue("acceptedItemTypes", typeof(List<ItemEnum>)); this.animation = new Animation.Animations.StandAnimation(this); }
public BodyPart(SerializationInfo info, StreamingContext ctxt) { this.position = (Vector3)info.GetValue("position", typeof(Vector3)); this.color = (Color)info.GetValue("color", typeof(Color)); this.texturePath = (String)info.GetValue("texturePath", typeof(String)); this.standartTextureShift = (Vector2)info.GetValue("standartTextureShift", typeof(Vector2)); this.scale = (float)info.GetValue("scale", typeof(float)); this.size = (Vector3)info.GetValue("size", typeof(Vector3)); this.equipment = (EquipmentObject)info.GetValue("equipment", typeof(EquipmentObject)); this.id = (int)info.GetValue("id", typeof(int)); this.acceptedItemTypes = (List <ItemEnum>)info.GetValue("acceptedItemTypes", typeof(List <ItemEnum>)); this.positionInInventory = (Vector2)info.GetValue("positionInInventory", typeof(Vector2)); this.animation = new StandAnimation(this); }