Exemplo n.º 1
0
        public static bool IsSameTown(this IVillagerOrigin visit, IVillagerOrigin host)
        {
            var hostTown  = host.GetTownIdentity();
            var visitTown = visit.GetTownIdentity();

            return(hostTown.SequenceEqual(visitTown));
        }
Exemplo n.º 2
0
        private static void ChangeToHostTown(this IVillagerOrigin visit, IVillagerOrigin host, byte[] visitData)
        {
            var hostTown  = host.GetTownIdentity();
            var visitTown = visit.GetTownIdentity();

            visitData.ReplaceOccurrences(visitTown, hostTown);
        }