예제 #1
0
 ///<summary>
 ///Add SetAction Here
 ///called by client when action Id changed.
 ///</summary>
 public void SetActionId(int id)
 {
     //if (id != this.actionID)
     Operations.SetProperties(this.Game, this.Id, this.Type, new Hashtable {
         { Item.PropertyKey_ActionID, id }
     }, null, true);
     //we need other peer got this change also. change action!! e.g: i jump . you see i jump.
 }
예제 #2
0
 /// <summary>
 /// The set text.
 /// </summary>
 /// <param name="text">
 /// The new text.
 /// </param>
 public override void SetText(string text)
 {
     if (text != this.Text)
     {
         base.SetText(text);
         Operations.SetProperties(this.Game, this.Id, this.Type, new Hashtable {
             { PropertyKeyText, text }
         }, null, true);
     }
 }
예제 #3
0
 /// <summary>
 /// The set color.
 /// </summary>
 /// <param name="color">
 /// The color.
 /// </param>
 public override void SetColor(int color)
 {
     if (color != this.Color)
     {
         base.SetColor(color);
         Operations.SetProperties(this.Game, this.Id, this.Type, new Hashtable {
             { PropertyKeyColor, color }
         }, null, true);
     }
 }
예제 #4
0
 /// <summary>
 /// The set interest area attached item.
 /// </summary>
 /// <param name="attached">
 /// The attached.
 /// </param>
 public override void SetInterestAreaAttached(bool attached)
 {
     if (attached != this.InterestAreaAttached)
     {
         base.SetInterestAreaAttached(attached);
         Operations.SetProperties(this.Game, this.Id, this.Type, new Hashtable {
             { PropertyKeyInterestAreaAttached, attached }
         }, null, true);
     }
 }
예제 #5
0
 public override void SetInterestAreaViewDistance(Vector viewDistanceEnter, Vector viewDistanceExit)
 {
     base.SetInterestAreaViewDistance(viewDistanceEnter, viewDistanceExit);
     Operations.SetProperties(
         this.Game,
         this.Id,
         new Hashtable {
         { PropertyKeyViewDistanceEnter, viewDistanceEnter }, { PropertyKeyViewDistanceExit, viewDistanceExit }
     },
         null,
         true);
 }