// Passed in from creating via the Database, so use the guid passed in... public Monster(BaseMonster newData) { // Database information Guid = newData.Guid; Id = newData.Id; // Set the strings for the items Head = newData.Head; Feet = newData.Feet; Necklass = newData.Necklass; RightFinger = newData.RightFinger; LeftFinger = newData.LeftFinger; Feet = newData.Feet; UniqueItem = newData.UniqueItem; Name = newData.Name; Description = newData.Description; ImageURI = newData.ImageURI; Alive = newData.Alive; Level = newData.Level; // Populate the Attributes Attribute = new AttributeBase(newData.AttributeString); // Scale up to the level ScaleLevel(Level); }
// Passed in from creating via the Database, so use the guid passed in... public Monster(BaseMonster newData) { if (newData == null) { return; } // Update all the fields in the Data, except for the Id Name = newData.Name; Description = newData.Description; }
// Passed in from creating via the Database, so use the guid passed in... public Monster(BaseMonster newData) { Type = newData.Type; Name = newData.Name; Attribute = new AttributeBase(); Attribute.CurrentHealth = Attribute.MaxHealth; Alive = true; Level = newData.Level; ScaleLevel(Level); Id = System.Guid.NewGuid().ToString(); ScaleLevel(Level); }
// Passed in from creating via the Database, so use the guid passed in... public Monster(BaseMonster newData) { // Implement }