<commit_before>//
// $Id$
//
// Vilya library - tools for developing networked games
// Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/vilya/
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

package com.threerings.whirled.spot.data {

import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;

import com.threerings.presents.dobj.DSet;
import com.threerings.presents.dobj.DSet_Entry;
import com.threerings.whirled.data.SceneObject;

/**
 * Extends the {@link SceneObject} with information specific to spots.
 */
public class SpotSceneObject extends SceneObject
{
    // AUTO-GENERATED: FIELDS START
    /** The field name of the <code>occupantLocs</code> field. */
    public static const OCCUPANT_LOCS :String = "occupantLocs";

    /** The field name of the <code>clusters</code> field. */
    public static const CLUSTERS :String = "clusters";
    // AUTO-GENERATED: FIELDS END

    /** A distributed set containing {@link SceneLocation} records for all
     * occupants of this scene. */
    public var occupantLocs :DSet = new DSet();

    /** Contains information on all {@link Cluster}s in this scene. */
    public var clusters :DSet = new DSet();

//    // AUTO-GENERATED: METHODS START
//    /**
//     * Requests that the specified entry be added to the
//     * <code>occupantLocs</code> set. The set will not change until the event is
//     * actually propagated through the system.
//     */
//    public function addToOccupantLocs (elem :DSet_Entry) :void
//    {
//        requestEntryAdd(OCCUPANT_LOCS, elem);
//    }
//
//    /**
//     * Requests that the entry matching the supplied key be removed from
//     * the <code>occupantLocs</code> set. The set will not change until the
//     * event is actually propagated through the system.
//     */
//    public function removeFromOccupantLocs (key :Object) :void
//    {
//        requestEntryRemove(OCCUPANT_LOCS, key);
//    }
//
//    /**
//     * Requests that the specified entry be updated in the
//     * <code>occupantLocs</code> set. The set will not change until the event is
//     * actually propagated through the system.
//     */
//    public function updateOccupantLocs (elem :DSet_Entry) :void
//    {
//        requestEntryUpdate(OCCUPANT_LOCS, elem);
//    }
//
//    /**
//     * Requests that the <code>occupantLocs</code> field be set to the
//     * specified value. Generally one only adds, updates and removes
//     * entries of a distributed set, but certain situations call for a
//     * complete replacement of the set value. The local value will be
//     * updated immediately and an event will be propagated through the
//     * system to notify all listeners that the attribute did
//     * change. Proxied copies of this object (on clients) will apply the
//     * value change when they received the attribute changed notification.
//     */
//    public function setOccupantLocs (value :DSet) :void
//    {
//        requestAttributeChange(OCCUPANT_LOCS, value, this.occupantLocs);
//        this.occupantLocs = value;
//    }
//
//    /**
//     * Requests that the specified entry be added to the
//     * <code>clusters</code> set. The set will not change until the event is
//     * actually propagated through the system.
//     */
//    public function addToClusters (elem :DSet_Entry) :void
//    {
//        requestEntryAdd(CLUSTERS, elem);
//    }
//
//    /**
//     * Requests that the entry matching the supplied key be removed from
//     * the <code>clusters</code> set. The set will not change until the
//     * event is actually propagated through the system.
//     */
//    public function removeFromClusters (key :Object) :void
//    {
//        requestEntryRemove(CLUSTERS, key);
//    }
//
//    /**
//     * Requests that the specified entry be updated in the
//     * <code>clusters</code> set. The set will not change until the event is
//     * actually propagated through the system.
//     */
//    public function updateClusters (elem :DSet_Entry) :void
//    {
//        requestEntryUpdate(CLUSTERS, elem);
//    }
//
//    /**
//     * Requests that the <code>clusters</code> field be set to the
//     * specified value. Generally one only adds, updates and removes
//     * entries of a distributed set, but certain situations call for a
//     * complete replacement of the set value. The local value will be
//     * updated immediately and an event will be propagated through the
//     * system to notify all listeners that the attribute did
//     * change. Proxied copies of this object (on clients) will apply the
//     * value change when they received the attribute changed notification.
//     */
//    public function setClusters (value :DSet) :void
//    {
//        requestAttributeChange(CLUSTERS, value, this.clusters);
//        this.clusters = value;
//    }
//    // AUTO-GENERATED: METHODS END
//
//    // documentation inherited
//    override public function writeObject (out :ObjectOutputStream) :void
//    {
//        super.writeObject(out);
//
//        out.writeObject(occupantLocs);
//        out.writeObject(clusters);
//    }

    // documentation inherited
    override public function readObject (ins :ObjectInputStream) :void
    {
        super.readObject(ins);

        occupantLocs = (ins.readObject() as DSet);
        clusters = (ins.readObject() as DSet);
    }
}
}
<commit_msg>Added a reference so that vilya.swc consumers (e.g. thane client) will not need to explicitly do so<commit_after>//
// $Id$
//
// Vilya library - tools for developing networked games
// Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/vilya/
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

package com.threerings.whirled.spot.data {

import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;

import com.threerings.presents.dobj.DSet;
import com.threerings.presents.dobj.DSet_Entry;
import com.threerings.whirled.data.SceneObject;
import com.threerings.whirled.spot.data.SceneLocation;

/**
 * Extends the {@link SceneObject} with information specific to spots.
 */
public class SpotSceneObject extends SceneObject
{
    // AUTO-GENERATED: FIELDS START
    /** The field name of the <code>occupantLocs</code> field. */
    public static const OCCUPANT_LOCS :String = "occupantLocs";

    /** The field name of the <code>clusters</code> field. */
    public static const CLUSTERS :String = "clusters";
    // AUTO-GENERATED: FIELDS END

    /** A distributed set containing {@link SceneLocation} records for all
     * occupants of this scene. */
    public var occupantLocs :DSet = new DSet();
    SceneLocation; // plain reference to force linkage

    /** Contains information on all {@link Cluster}s in this scene. */
    public var clusters :DSet = new DSet();

//    // AUTO-GENERATED: METHODS START
//    /**
//     * Requests that the specified entry be added to the
//     * <code>occupantLocs</code> set. The set will not change until the event is
//     * actually propagated through the system.
//     */
//    public function addToOccupantLocs (elem :DSet_Entry) :void
//    {
//        requestEntryAdd(OCCUPANT_LOCS, elem);
//    }
//
//    /**
//     * Requests that the entry matching the supplied key be removed from
//     * the <code>occupantLocs</code> set. The set will not change until the
//     * event is actually propagated through the system.
//     */
//    public function removeFromOccupantLocs (key :Object) :void
//    {
//        requestEntryRemove(OCCUPANT_LOCS, key);
//    }
//
//    /**
//     * Requests that the specified entry be updated in the
//     * <code>occupantLocs</code> set. The set will not change until the event is
//     * actually propagated through the system.
//     */
//    public function updateOccupantLocs (elem :DSet_Entry) :void
//    {
//        requestEntryUpdate(OCCUPANT_LOCS, elem);
//    }
//
//    /**
//     * Requests that the <code>occupantLocs</code> field be set to the
//     * specified value. Generally one only adds, updates and removes
//     * entries of a distributed set, but certain situations call for a
//     * complete replacement of the set value. The local value will be
//     * updated immediately and an event will be propagated through the
//     * system to notify all listeners that the attribute did
//     * change. Proxied copies of this object (on clients) will apply the
//     * value change when they received the attribute changed notification.
//     */
//    public function setOccupantLocs (value :DSet) :void
//    {
//        requestAttributeChange(OCCUPANT_LOCS, value, this.occupantLocs);
//        this.occupantLocs = value;
//    }
//
//    /**
//     * Requests that the specified entry be added to the
//     * <code>clusters</code> set. The set will not change until the event is
//     * actually propagated through the system.
//     */
//    public function addToClusters (elem :DSet_Entry) :void
//    {
//        requestEntryAdd(CLUSTERS, elem);
//    }
//
//    /**
//     * Requests that the entry matching the supplied key be removed from
//     * the <code>clusters</code> set. The set will not change until the
//     * event is actually propagated through the system.
//     */
//    public function removeFromClusters (key :Object) :void
//    {
//        requestEntryRemove(CLUSTERS, key);
//    }
//
//    /**
//     * Requests that the specified entry be updated in the
//     * <code>clusters</code> set. The set will not change until the event is
//     * actually propagated through the system.
//     */
//    public function updateClusters (elem :DSet_Entry) :void
//    {
//        requestEntryUpdate(CLUSTERS, elem);
//    }
//
//    /**
//     * Requests that the <code>clusters</code> field be set to the
//     * specified value. Generally one only adds, updates and removes
//     * entries of a distributed set, but certain situations call for a
//     * complete replacement of the set value. The local value will be
//     * updated immediately and an event will be propagated through the
//     * system to notify all listeners that the attribute did
//     * change. Proxied copies of this object (on clients) will apply the
//     * value change when they received the attribute changed notification.
//     */
//    public function setClusters (value :DSet) :void
//    {
//        requestAttributeChange(CLUSTERS, value, this.clusters);
//        this.clusters = value;
//    }
//    // AUTO-GENERATED: METHODS END
//
//    // documentation inherited
//    override public function writeObject (out :ObjectOutputStream) :void
//    {
//        super.writeObject(out);
//
//        out.writeObject(occupantLocs);
//        out.writeObject(clusters);
//    }

    // documentation inherited
    override public function readObject (ins :ObjectInputStream) :void
    {
        super.readObject(ins);

        occupantLocs = (ins.readObject() as DSet);
        clusters = (ins.readObject() as DSet);
    }
}
}

{'fraction_non_alphanumeric': 0.11036252807186397, 'fraction_numerical': 0.0038498556304138597, 'mean_word_length': 2.601675332177932, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4439060', 'n_tokens_mistral': 3579, 'n_tokens_neox': 3471, 'n_words': 1320}