Example #1
0
        public override bool CustomBiomesMatch(Player other)
        {
            CalValEXPlayer modOther = other.GetModPlayer <CalValEXPlayer>();

            return(ZoneAstral == modOther.ZoneAstral);

            return(HellLab == modOther.HellLab);
        }
        public override void CopyCustomBiomesTo(Player other)
        {
            CalValEXPlayer modOther = other.GetModPlayer <CalValEXPlayer>();

            modOther.ZoneAstral = ZoneAstral;
            modOther.HellLab    = HellLab;
            modOther.ZoneLab    = ZoneLab;
        }
Example #3
0
        public override void SendClientChanges(ModPlayer clientPlayer)
        {
            CalValEXPlayer clone = clientPlayer as CalValEXPlayer;

            if (clone.SCalHits != SCalHits)
            {
                var packet = mod.GetPacket();
                packet.Write((byte)CalValEX.MessageType.SyncSCalHits);
                packet.Write((byte)player.whoAmI);
                packet.Write(SCalHits);
                packet.Send();
            }
        }
Example #4
0
        public override void clientClone(ModPlayer clientClone)
        {
            CalValEXPlayer clone = clientClone as CalValEXPlayer;

            clone.SCalHits = SCalHits;
        }