コード例 #1
0
		public TeleporterPairAddon(IPoint3D first, IPoint3D second, Server.Map map)
		{
			//Set up all the addon components... FirstLocation will be the 0,0,0 reference point
			TeleporterAC tele1 = new TeleporterAC(second, map);
			tele1.Active = true;
			TeleporterAC tele2 = new TeleporterAC(first, map);
			tele2.Active = true;
			//AddonComponent spark1 = new AddonComponent(14201);
			//AddonComponent spark2 = new AddonComponent(14201);


			//First Teleporter
			AddComponent( tele1, 0, 0, 0 );
			//AddComponent( spark1, 0, 0, 0 );
			//Second Teleporter
			AddComponent( tele2, second.X-first.X, second.Y-first.Y, second.Z-first.Z );
			//AddComponent( spark2, second.X-first.X, second.Y-first.Y, second.Z-first.Z );
		}
コード例 #2
0
        public TeleporterPairAddon(IPoint3D first, IPoint3D second, Server.Map map)
        {
            //Set up all the addon components... FirstLocation will be the 0,0,0 reference point
            TeleporterAC tele1 = new TeleporterAC(second, map);

            tele1.Active = true;
            TeleporterAC tele2 = new TeleporterAC(first, map);

            tele2.Active = true;
            //AddonComponent spark1 = new AddonComponent(14201);
            //AddonComponent spark2 = new AddonComponent(14201);


            //First Teleporter
            AddComponent(tele1, 0, 0, 0);
            //AddComponent( spark1, 0, 0, 0 );
            //Second Teleporter
            AddComponent(tele2, second.X - first.X, second.Y - first.Y, second.Z - first.Z);
            //AddComponent( spark2, second.X-first.X, second.Y-first.Y, second.Z-first.Z );
        }