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

            return(ZoneAstral == modOther.ZoneAstral);

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

            modOther.ZoneAstral = ZoneAstral;
            modOther.HellLab    = HellLab;
            modOther.ZoneLab    = ZoneLab;
        }
예제 #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();
            }
        }
예제 #4
0
        public override void clientClone(ModPlayer clientClone)
        {
            CalValEXPlayer clone = clientClone as CalValEXPlayer;

            clone.SCalHits = SCalHits;
        }