예제 #1
0
        public override void HandlePacket(BinaryReader reader, int whoAmI)
        {
            TemperateModMessageType msgType = (TemperateModMessageType)reader.ReadByte();

            switch (msgType)
            {
            case TemperateModMessageType.SteviesModPlayerSyncPlayer:
                byte            playerNumber    = reader.ReadByte();
                TemperatePlayer temperatePlayer = Terraria.Main.player[playerNumber].GetModPlayer <TemperatePlayer>();
                int             arcaneCrystals  = reader.ReadInt32();
                temperatePlayer.ArcaneCrystals = arcaneCrystals;
                break;
            }
            base.HandlePacket(reader, whoAmI);
        }
        public override void CopyCustomBiomesTo(Player other)
        {
            TemperatePlayer modOther = other.GetModPlayer <TemperatePlayer>();

            modOther.ZoneGlacier = ZoneGlacier;
        }
        public override bool CustomBiomesMatch(Player other)
        {
            TemperatePlayer modOther = other.GetModPlayer <TemperatePlayer>();

            return(ZoneGlacier == modOther.ZoneGlacier);
        }