Exemple #1
0
        public static PackAttribute GetPackage(AuraShape id)
        {
            PackAttribute pack;

            _auraShapePacks.TryGetValue(id, out pack);
            return(pack);
        }
Exemple #2
0
 protected override void OnPointerReleased(PointerReleasedEventArgs e)
 {
     base.OnPointerReleased(e);
     pressed      = false;
     currentShape = null;
     InvalidateVisual();
 }
Exemple #3
0
 public void ChangeAura(AuraShape auraShape, AuraColor auraColor)
 {
     if (this.HasAura(auraShape, auraColor)) // Server kicks people if they do not own an aura
     {
         new AuraSendMessage(auraShape, auraColor)
         .SendIn(this.BotBits);
     }
 }
Exemple #4
0
        protected override void OnPointerPressed(PointerPressedEventArgs e)
        {
            base.OnPointerPressed(e);
            pressed = true;

            var line = new AuraLine();

            currentShape = line;
            line.HandleStart(e.GetPosition(this));
            line.HandleEnd(e.GetPosition(this));

            shapes.Add(line);

            InvalidateVisual();
        }
Exemple #5
0
 private bool HasAura(AuraShape auraShape, AuraColor auraColor)
 {
     return(ConnectionManager.Of(this.BotBits).PlayerData.HasAuraShape(auraShape) &&
            ConnectionManager.Of(this.BotBits).PlayerData.HasAuraColor(auraColor));
 }
Exemple #6
0
 public Task SetAuraAsync(AuraShape shape, AuraColor color)
 {
     return(this.MakeRPCCallAsync("changeAura", (int)shape, (int)color));
 }
Exemple #7
0
 public static void SetPackage(AuraShape id, PackAttribute package)
 {
     _auraShapePacks[id] = package;
 }
Exemple #8
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AuraSendMessage" /> class.
 /// </summary>
 /// <param name="auraShape">The aura shape.</param>
 /// <param name="auraColor">The aura.</param>
 public AuraSendMessage(AuraShape auraShape, AuraColor auraColor)
 {
     this.AuraShape = auraShape;
     this.AuraColor = auraColor;
 }
Exemple #9
0
 public bool HasAuraShape(AuraShape auraShape)
 {
     return(this.HasPack(ItemServices.GetPackage(auraShape)));
 }