コード例 #1
0
 public TempSkillBall(int SkillBonus, int days) : base(3699)
 {
     m_RemovalTime = DateTime.Now + TimeSpan.FromDays(Math.Min(days, 365));
     TemporaryItemSystem.Verify(this);
     m_SkillBonus = SkillBonus;
     CreateCustomName();
     Hue = 1266;
 }
コード例 #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_SkillBonus  = reader.ReadInt();
                m_RemovalTime = reader.ReadDateTime();
                TemporaryItemSystem.Verify(this);
                break;
            }
            }
        }
コード例 #3
0
 protected override void OnTick()
 {
     TemporaryItemSystem.VerifyAll();
 }