コード例 #1
0
        public void SetZoneData(PCZone zone, ZoneData zoneData)
        {
            // first make sure that the data doesn't already exist
            if (this.zoneData.ContainsKey(zone.Name))
            {
                throw new AxiomException("A ZoneData associated with zone " + zone.Name +
                                         " already exists. PCZSceneNode::setZoneData");
            }

            //mZoneData[zone->getName()] = zoneData;
            // is this equivalent? i think so...
            this.zoneData.Add(zone.Name, zoneData);
        }
コード例 #2
0
ファイル: PCZSceneNode.cs プロジェクト: WolfgangSt/axiom
		public void SetZoneData( PCZone zone, ZoneData zoneData )
		{

			// first make sure that the data doesn't already exist
			if ( this.zoneData.ContainsKey( zone.Name ) )
			{
				throw new AxiomException( "A ZoneData associated with zone " + zone.Name + " already exists. PCZSceneNode::setZoneData" );
			}

			//mZoneData[zone->getName()] = zoneData;
			// is this equivalent? i think so...
			this.zoneData.Add( zone.Name, zoneData );
		}