Example #1
0
 public Moonstone(MoonPhaseReferences.MoonPhases phase, string longName, string shortName, string findDescription, Moongates moongates, InventoryReference invRef)
     : base(0, longName, shortName, findDescription, MOONSTONE_SPRITE)
 {
     Phase      = phase;
     _moongates = moongates;
     InvRef     = invRef;
 }
Example #2
0
        public PublicMoongate()
            : base(0xF6C)
        {
            Movable = false;
            Light   = LightType.Circle300;

            Moongates.Add(this);
        }
Example #3
0
        public Moonstones(DataOvlReference dataOvlRef, MoonPhaseReferences moonPhaseReferences, Moongates moongates)
            : base(dataOvlRef, null)
        {
            _moongates           = moongates;
            _moonPhaseReferences = moonPhaseReferences;

            // go through each of the moon phases one by one and create a moonstone
            foreach (MoonPhaseReferences.MoonPhases phase in Enum.GetValues(typeof(MoonPhaseReferences.MoonPhases)))
            {
                // there is no "no moon" moonstone
                if (phase == MoonPhaseReferences.MoonPhases.NoMoon)
                {
                    continue;
                }
                Items[phase] = new Moonstone(phase,
                                             dataOvlRef.StringReferences.GetString(DataOvlReference.ZstatsStrings.MOONSTONE_SPACE).TrimEnd(),
                                             dataOvlRef.StringReferences.GetString(DataOvlReference.ZstatsStrings.MOONSTONE_SPACE).TrimEnd(),
                                             dataOvlRef.StringReferences.GetString(DataOvlReference.ThingsIFindStrings.A_STRANGE_ROCK_BANG_N)
                                             .TrimEnd(), moongates, null);
                //invRefs.GetInventoryReference(InventoryReferences.InventoryReferenceType.Item, phase.ToString()));
            }
        }
Example #4
0
        public override void OnAfterDelete()
        {
            base.OnAfterDelete();

            Moongates.Remove(this);
        }
Example #5
0
 public PublicMoongate(Serial serial)
     : base(serial)
 {
     Moongates.Add(this);
 }