Ejemplo n.º 1
0
        public void AddAtomCreation(DreamObject atom, ServerIconAppearance appearance)
        {
            AtomType atomType = AtomType.Atom;

            if (atom.IsSubtypeOf(DreamPath.Area))
            {
                atomType = AtomType.Area;
            }
            else if (atom.IsSubtypeOf(DreamPath.Turf))
            {
                atomType = AtomType.Turf;
            }
            else if (atom.IsSubtypeOf(DreamPath.Mob))
            {
                atomType = AtomType.Movable;
            }
            else if (atom.IsSubtypeOf(DreamPath.Obj))
            {
                atomType = AtomType.Movable;
            }

            lock (_dreamStateManagerLock) {
                _currentDeltaState.AddAtomCreation(DreamMetaObjectAtom.AtomIDs[atom], atomType, appearance.GetID());
            }
        }
Ejemplo n.º 2
0
 public void AddAtomIconAppearanceDelta(DreamObject atom, ServerIconAppearance appearance)
 {
     lock (_dreamStateManagerLock) {
         _currentDeltaState.AddAtomIconAppearanceDelta(DreamMetaObjectAtom.AtomIDs[atom], appearance.GetID());
     }
 }