コード例 #1
0
        public void ReplaceCabinName()
        {
            var uniqueName = $"Cabin{Guid.NewGuid()}";

            Element.Element("indoors").Element("uniqueName").Value = uniqueName;
            Farmhand.Element("homeLocation").Value = uniqueName;
        }
コード例 #2
0
        public void ReplaceMultiplayerId()
        {
            byte[] buffer = new byte[8];
            random.NextBytes(buffer);
            var uniqueMultiplayerId = BitConverter.ToInt64(buffer, 0);

            Farmhand
            .Element("UniqueMultiplayerID")
            .Value = uniqueMultiplayerId.ToString();
        }
コード例 #3
0
 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";
 }