Ejemplo n.º 1
0
		/// <summary>
		/// Broadcasts new prop extension.
		/// </summary>
		/// <param name="prop"></param>
		/// <param name="ext"></param>
		public static void AddPropExtension(Prop prop, PropExtension ext)
		{
			var packet = new Packet(Op.AddPropExtension, prop.EntityId);
			packet.PutInt((int)ext.SignalType);
			packet.PutInt((int)ext.EventType);
			packet.PutString(ext.Name);
			packet.PutByte(ext.Mode);
			packet.PutString(ext.Value.ToString());

			prop.Region.Broadcast(packet);
		}
Ejemplo n.º 2
0
 /// <summary>
 ///	Adds new extention and broadcast update.
 /// </summary>
 /// <param name="ext"></param>
 public void AddExtension(PropExtension ext)
 {
     this.Extensions.Add(ext);
     Send.AddPropExtension(this, ext);
 }
Ejemplo n.º 3
0
		/// <summary>
		/// Broadcasts prop extension remove.
		/// </summary>
		/// <param name="prop"></param>
		/// <param name="ext"></param>
		public static void RemovePropExtension(Prop prop, PropExtension ext)
		{
			var packet = new Packet(Op.RemovePropExtension, prop.EntityId);
			packet.PutString(ext.Name);

			prop.Region.Broadcast(packet);
		}
Ejemplo n.º 4
0
Archivo: Prop.cs Proyecto: xKamuna/aura
		/// <summary>
		///	Adds new extention and broadcast update.
		/// </summary>
		/// <param name="ext"></param>
		public void AddExtension(PropExtension ext)
		{
			this.Extensions.Add(ext);
			Send.AddPropExtension(this, ext);
		}