public static PackAttribute GetPackage(AuraColor id) { PackAttribute pack; _auraColorPacks.TryGetValue(id, out pack); return(pack); }
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); } }
public void SetAura(int a) { AuraColor = "" + a; if (AuraColor.Equals("1")) { this.Draggable = false; } foreach (Transform child in transform) { if (child.tag == "Aura") { child.GetComponent <AuraData>().SetAura(a); } } }
private bool HasAura(AuraShape auraShape, AuraColor auraColor) { return(ConnectionManager.Of(this.BotBits).PlayerData.HasAuraShape(auraShape) && ConnectionManager.Of(this.BotBits).PlayerData.HasAuraColor(auraColor)); }
public Task SetAuraAsync(AuraShape shape, AuraColor color) { return(this.MakeRPCCallAsync("changeAura", (int)shape, (int)color)); }
public static void SetPackage(AuraColor id, PackAttribute package) { _auraColorPacks[id] = package; }
/// <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; }
public bool HasAuraColor(AuraColor auraColor) { return(this.HasPack(ItemServices.GetPackage(auraColor))); }