public void ReplaceCabinName() { var uniqueName = $"Cabin{Guid.NewGuid()}"; Element.Element("indoors").Element("uniqueName").Value = uniqueName; Farmhand.Element("homeLocation").Value = uniqueName; }
public void ReplaceMultiplayerId() { byte[] buffer = new byte[8]; random.NextBytes(buffer); var uniqueMultiplayerId = BitConverter.ToInt64(buffer, 0); Farmhand .Element("UniqueMultiplayerID") .Value = uniqueMultiplayerId.ToString(); }
public void UpdateFarmhand(XElement host) { Farmhand.Element("farmName").Value = host.Element("farmName").Value; Farmhand.Element("money").Value = host.Element("money").Value; Farmhand.Element("slotCanHost").Value = "true"; }