Search Results for

    Show / Hide Table of Contents

    Class PropEnt_Merchant_Base

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    Mirror.NetworkBehaviour
    DewNetworkBehaviour
    Actor
    Entity
    PropEntity
    PropEnt_Merchant_Base
    PropEnt_Merchant_Jonas
    PropEnt_Merchant_Smoothie
    Implements
    ILogicUpdate
    ICleanup
    ICustomDestroyRoutine
    IProp
    IInteractable
    Inherited Members
    PropEntity.isRegularReward
    PropEntity.IProp.customSpawnRotation
    PropEntity.takeOneDamageOnHit
    PropEntity.hitInvulnerableTime
    PropEntity.isUnstoppable
    PropEntity.GetStaggerSettings()
    PropEntity.scaleSpawnRateWithPlayers
    Entity.AI
    Entity.Animation
    Entity.Ability
    Entity.Control
    Entity.Status
    Entity.Visual
    Entity.Sound
    Entity.isSleeping
    Entity.ClientEntityEvent_OnIsSleepingChanged
    Entity.EntityEvent_OnTakeManaHeal
    Entity.EntityEvent_OnTakeHeal
    Entity.EntityEvent_OnTakeShield
    Entity.EntityEvent_OnTakeDamage
    Entity.EntityEvent_OnDeath
    Entity.EntityEvent_OnGetManaSpent
    Entity.EntityEvent_OnAttackFired
    Entity.EntityEvent_OnAttackFiredBeforePrepare
    Entity.EntityEvent_OnAttackHit
    Entity.EntityEvent_OnAttackTaken
    Entity.EntityEvent_OnAttackMissed
    Entity.EntityEvent_OnAttackDodged
    Entity.EntityEvent_OnDamageNegatedByImmunity
    Entity.EntityEvent_OnDamageNegatedByShield
    Entity.ClientEntityEvent_OnStatusEffectAdded
    Entity.ClientEntityEvent_OnStatusEffectRemoved
    Entity.EntityEvent_OnAttackEffectTriggered
    Entity.EntityEvent_OnCastComplete
    Entity.EntityEvent_OnCastCompleteBeforePrepare
    Entity.takenDamageProcessor
    Entity.takenHealProcessor
    Entity.takenManaHealProcessor
    Entity.takenShieldProcessor
    Entity.owner
    Entity.defaultOwner
    Entity.currentHealth
    Entity.currentMana
    Entity.maxHealth
    Entity.maxMana
    Entity.normalizedHealth
    Entity.normalizedMana
    Entity.isAlive
    Entity.isDead
    Entity.level
    Entity.agentPosition
    Entity.section
    Entity.lastSection
    Entity.OnPrepare()
    Entity.OnStartServer()
    Entity.OnStopServer()
    Entity.OnDrawGizmos()
    Entity.Stagger(Vector3?)
    Entity.AIUpdate(ref EntityAIContext)
    Entity.ProcessReceivedDamage(ref DamageData, Actor)
    Entity.ProcessReceivedHeal(ref HealData, Actor)
    Entity.ProcessReceivedManaHeal(ref HealData, Actor)
    Entity.ProcessReceivedShield(ref HealData, Actor)
    Entity.CheckEnemyOrNeutral(Entity)
    Entity.GetRelation(Entity)
    Entity.GetTeamRelation(DewPlayer)
    Entity.Kill()
    Entity.KillNoInterrupt()
    Entity.OnDeath(EventInfoKill)
    Entity.GetActorReadableName()
    Entity.WakeUp()
    Entity.Sleep()
    Entity.ShouldBeSavedWithRoom()
    Entity.GetNetworkAuthorityConnection()
    Entity.CanAggroTo(Entity)
    Entity.LoadEntityModelLocal()
    Entity.OnModelLoaded()
    Actor.TrackKills(float, Action<EventInfoKill>)
    Actor.CustomRpc_RegisterClientMessageHandler<T>(Action<T>)
    Actor.CustomRpc_ClearClientMessageHandlers()
    Actor.CustomRpc_UnregisterClientMessageHandler<T>()
    Actor.CustomRpc_UnregisterClientMessageHandler<T>(Action<T>)
    Actor.CustomRpc_RegisterServerMessageHandler<T>(Action<T>)
    Actor.CustomRpc_RegisterServerMessageHandler<T>(string, Action<T, DewPlayer>)
    Actor.CustomRpc_ClearServerMessageHandlers()
    Actor.CustomRpc_UnregisterServerMessageHandler<T>()
    Actor.CustomRpc_UnregisterServerMessageHandler<T>(Action<T>)
    Actor.CustomRpc_UnregisterServerMessageHandler<T>(Action<T, DewPlayer>)
    Actor.CustomRpc_SendMessageToServer<T>(T)
    Actor.CustomRpc_SendMessageToClient<T>(DewPlayer, T)
    Actor.CustomRpc_SendMessageToAllClients<T>(T)
    Actor.ActorEvent_OnAbilityInstanceCreated
    Actor.ActorEvent_OnAbilityInstanceBeforePrepare
    Actor.ActorEvent_OnDealDamage
    Actor.ActorEvent_OnDoHeal
    Actor.ActorEvent_OnDoManaHeal
    Actor.ActorEvent_OnSpendMana
    Actor.ActorEvent_OnKill
    Actor.ActorEvent_OnAttackHit
    Actor.ActorEvent_OnAttackEffectTriggered
    Actor.ActorEvent_OnSpawnSummon
    Actor.ActorEvent_OnApplyElemental
    Actor.ActorEvent_OnGiveShield
    Actor.ClientActorEvent_OnDestroyed
    Actor.ClientActorEvent_OnCreate
    Actor.DoHeal(HealData, Entity, ReactionChain)
    Actor.DoManaHeal(HealData, Entity, ReactionChain)
    Actor.DefaultDamage(float, float)
    Actor.PhysicalDamage(float, float)
    Actor.MagicDamage(float, float)
    Actor.PureDamage(float, float)
    Actor.CreateDamage(DamageData.SourceType, float, float)
    Actor.Heal(float)
    Actor.DealDamage(DamageData, Entity, ReactionChain)
    Actor.DoBasicAttackHit(Entity, bool, bool, float, float)
    Actor.TriggerAttackEffects(Entity, float, AttackEffectType, ReactionChain)
    Actor.RefundMana(float, Entity)
    Actor.SpendMana(float, Entity)
    Actor.CreateAbilityInstance<T>(T, Vector3, Quaternion?, CastInfo, Action<T>)
    Actor.CreateAbilityInstance<T>(Vector3, Quaternion?, CastInfo, Action<T>)
    Actor.CreateAbilityInstance(Type, Vector3, Quaternion?, CastInfo, Action<AbilityInstance>)
    Actor.CreateStatusEffect<T>(T, Entity, CastInfo, Action<T>)
    Actor.CreateStatusEffect<T>(Entity, CastInfo, Action<T>)
    Actor.CreateStatusEffect(Type, Entity, CastInfo, Action<StatusEffect>)
    Actor.GiveShield(Entity, float, float, bool, ReactionChain)
    Actor.CreateActor<T>(Vector3, Quaternion?, Action<T>)
    Actor.CreateActor<T>(T, Vector3, Quaternion?, Action<T>)
    Actor.SpawnEntity<T>(Vector3, Quaternion?, DewPlayer, int, Action<T>)
    Actor.SpawnEntity<T>(T, Vector3, Quaternion?, DewPlayer, int, Action<T>)
    Actor.Teleport(Entity, Vector3)
    Actor.ShowOnScreenTimerLocally(OnScreenTimerHandle)
    Actor.HideOnScreenTimerLocally(OnScreenTimerHandle)
    Actor.ApplyElemental(ElementalType, Entity, int)
    Actor.KilledByUnstoppableEffects
    Actor.ScaleDurationByTenacityEffects
    Actor.CreateBasicEffect(Entity, BasicEffect, float, string, DuplicateEffectBehavior)
    Actor.SpawnSummon<T>(Vector3, Quaternion?, Action<T>)
    Actor.ApplyCooldownReduction(AbilityTrigger, float, bool, bool)
    Actor.ApplyCooldownReductionByRatio(AbilityTrigger, float, bool)
    Actor.ResetCooldown(AbilityTrigger, bool)
    Actor.ApplyCooldownReductionByRatio(AbilityTrigger, CooldownReductionByRatioSettings)
    Actor.ApplyCooldownReduction(AbilityTrigger, CooldownReductionSettings)
    Actor.dealtDamageProcessor
    Actor.dealtHealProcessor
    Actor.dealtManaHealProcessor
    Actor.dealtShieldProcessor
    Actor.dealtCooldownReductionProcessor
    Actor.dealtCooldownReductionByRatioProcessor
    Actor.spawnedChildVarDefProcessor
    Actor.ProcessShieldAmount(float, Entity)
    Actor.ProcessSpawnedChildVarDefProcessor(ref VariantDef, Type)
    Actor.persistentData
    Actor.persistentSyncedData
    Actor.ClientEvent_OnPersistentSyncedDataChanged
    Actor.OnCreate_ActorData()
    Actor.HasData<T>()
    Actor.RemoveData<T>()
    Actor.RemoveData(object)
    Actor.AddData<T>(T)
    Actor.TryGetData<T>(out T)
    Actor.GetData<T>()
    Actor.FindData<T>(Predicate<T>)
    Actor.TryFindData<T>(Predicate<T>, out T)
    Actor.isDestroyedOnRoomChange
    Actor.isNewInstance
    Actor.creationTime
    Actor.persistentNetId
    Actor.isDestroyLocked
    Actor.parentActor
    Actor.position
    Actor.rotation
    Actor.chainTempName
    Actor.children
    Actor.childrenInNetwork
    Actor.OnStart()
    Actor.OnStartClient()
    Actor.LogicUpdate(float)
    Actor.FrameUpdate()
    Actor.ActiveFrameUpdate()
    Actor.ToString()
    Actor.CustomDestroyRoutine()
    Actor.ICleanup.canDestroy
    Actor.ICleanup.OnCleanup()
    Actor.isActive
    Actor.isDestroyed
    Actor.OnStopClient()
    Actor.OnEnable()
    Actor.OnDisable()
    Actor.ICustomDestroyRoutine.CustomDestroyRoutine()
    Actor.GetOriginalName()
    Actor.parentActorNetId
    Actor.ancestors
    Actor.firstEntity
    Actor.firstTrigger
    Actor.IsDescendantOf(Actor)
    Actor.IsDescendantOf<T>()
    Actor.FindFirstAncestorOfType<T>()
    Actor.FindFirstOfType<T>()
    Actor.Destroy()
    Actor.DestroyIfActive()
    Actor.LockDestroy()
    Actor.UnlockDestroy()
    Actor.IsExcludedFromRoomSave()
    Actor.ExcludeFromRoomSave()
    Actor.ClearExcludeFromRoomSave()
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxStopNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNew(GameObject)
    DewNetworkBehaviour.FxPlayNew(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNew(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNew(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlay(GameObject)
    DewNetworkBehaviour.FxPlay(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlay(GameObject, Entity)
    DewNetworkBehaviour.FxPlay(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxStop(GameObject)
    DewNetworkBehaviour.FxApplySpeedMultiplier(GameObject, float)
    DewNetworkBehaviour.FxApplySpeedMultiplierNetworked(GameObject, float)
    DewNetworkBehaviour.InvalidateInstance()
    DewNetworkBehaviour.OnLateStart()
    DewNetworkBehaviour.OnLateStartServer()
    DewNetworkBehaviour.OnStop()
    DewNetworkBehaviour.OnDestroy()
    DewNetworkBehaviour.GetComponent<T>(out T)
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    public abstract class PropEnt_Merchant_Base : PropEntity, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IProp, IInteractable

    Fields

    allowRefresh

    Declaration
    public bool allowRefresh
    Field Value
    Type Description
    bool

    fxPurchase

    Declaration
    public GameObject fxPurchase
    Field Value
    Type Description
    UnityEngine.GameObject

    fxPurchaseGem

    Declaration
    public GameObject fxPurchaseGem
    Field Value
    Type Description
    UnityEngine.GameObject

    fxPurchaseSkill

    Declaration
    public GameObject fxPurchaseSkill
    Field Value
    Type Description
    UnityEngine.GameObject

    fxPurchaseSouvenir

    Declaration
    public GameObject fxPurchaseSouvenir
    Field Value
    Type Description
    UnityEngine.GameObject

    fxPurchaseTreasure

    Declaration
    public GameObject fxPurchaseTreasure
    Field Value
    Type Description
    UnityEngine.GameObject

    fxSell

    Declaration
    public GameObject fxSell
    Field Value
    Type Description
    UnityEngine.GameObject

    isSellEnabled

    Declaration
    public bool isSellEnabled
    Field Value
    Type Description
    bool

    merchandises

    Declaration
    [SaveVar(SaveVarFlags.Default)]
    public readonly SyncDictionary<string, MerchandiseData[]> merchandises
    Field Value
    Type Description
    Mirror.SyncDictionary<TKey, TValue><string, MerchandiseData[]>

    onMerchandisePopulated

    Called on server after merchandise has been populated for certain player.

    Declaration
    public SafeAction<DewPlayer> onMerchandisePopulated
    Field Value
    Type Description
    SafeAction<DewPlayer>

    props

    Declaration
    public GameObject[] props
    Field Value
    Type Description
    UnityEngine.GameObject[]

    Properties

    canInteractWithMouse

    Declaration
    public virtual bool canInteractWithMouse { get; }
    Property Value
    Type Description
    bool

    focusDistance

    Declaration
    public float focusDistance { get; }
    Property Value
    Type Description
    float

    interactPivot

    Declaration
    public virtual Transform interactPivot { get; }
    Property Value
    Type Description
    UnityEngine.Transform

    Methods

    ActiveLogicUpdate(float)

    Declaration
    protected override void ActiveLogicUpdate(float dt)
    Parameters
    Type Name Description
    float dt
    Overrides
    Entity.ActiveLogicUpdate(float)

    Awake()

    Declaration
    protected override void Awake()
    Overrides
    Entity.Awake()

    CanInteract(Entity)

    Declaration
    public virtual bool CanInteract(Entity entity)
    Parameters
    Type Name Description
    Entity entity
    Returns
    Type Description
    bool

    CanRefresh(DewPlayer)

    Checked everywhere.

    Declaration
    public virtual bool CanRefresh(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player
    Returns
    Type Description
    bool

    CmdPurchase(int, NetworkConnectionToClient)

    Declaration
    public void CmdPurchase(int index, NetworkConnectionToClient sender = null)
    Parameters
    Type Name Description
    int index
    Mirror.NetworkConnectionToClient sender

    CmdRefresh(NetworkConnectionToClient)

    Declaration
    public void CmdRefresh(NetworkConnectionToClient sender = null)
    Parameters
    Type Name Description
    Mirror.NetworkConnectionToClient sender

    CmdSell(NetworkBehaviour, NetworkConnectionToClient)

    Declaration
    public void CmdSell(NetworkBehaviour target, NetworkConnectionToClient sender = null)
    Parameters
    Type Name Description
    Mirror.NetworkBehaviour target
    Mirror.NetworkConnectionToClient sender

    GetRefreshCost(DewPlayer)

    Available everywhere.

    Declaration
    public virtual Cost GetRefreshCost(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player
    Returns
    Type Description
    Cost

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    PropEntity.OnCreate()

    OnDestroyActor()

    Declaration
    protected override void OnDestroyActor()
    Overrides
    Entity.OnDestroyActor()

    OnInteract(Entity, bool)

    Declaration
    public virtual void OnInteract(Entity entity, bool alt)
    Parameters
    Type Name Description
    Entity entity
    bool alt

    OnPopulateMerchandises(DewPlayer)

    Declaration
    protected abstract void OnPopulateMerchandises(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player

    OnRefresh(DewPlayer)

    Declaration
    protected virtual void OnRefresh(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player

    OnSell(DewPlayer, NetworkBehaviour)

    Declaration
    protected void OnSell(DewPlayer activator, NetworkBehaviour target)
    Parameters
    Type Name Description
    DewPlayer activator
    Mirror.NetworkBehaviour target

    PopulatePlayerMerchandises(DewPlayer)

    Declaration
    public void PopulatePlayerMerchandises(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player

    SpawnMerchandise(MerchandiseData, DewPlayer, Cost)

    Declaration
    protected void SpawnMerchandise(MerchandiseData data, DewPlayer player, Cost finalPrice)
    Parameters
    Type Name Description
    MerchandiseData data
    DewPlayer player
    Cost finalPrice

    Explicit Interface Implementations

    IInteractable.priority

    Declaration
    int IInteractable.priority { get; }
    Returns
    Type Description
    int

    IProp.isSingleton

    Declaration
    bool IProp.isSingleton { get; }
    Returns
    Type Description
    bool

    Implements

    ILogicUpdate
    ICleanup
    ICustomDestroyRoutine
    IProp
    IInteractable

    Extension Methods

    ActorCheck.IsNullOrInactive(Actor)
    EntityCheck.IsAnyBoss(Entity)
    EntityCheck.IsNullInactiveDeadOrKnockedOut(Entity)
    DewGUI.SetExpandHeight<T>(T, bool)
    DewGUI.SetExpandHeight<T>(T, float)
    DewGUI.SetExpandWidth<T>(T, bool)
    DewGUI.SetExpandWidth<T>(T, float)
    DewGUI.SetHeight<T>(T, float)
    DewGUI.SetText<T>(T, string)
    DewGUI.SetTextLocalized<T>(T, string)
    DewGUI.SetWidth<T>(T, float)
    In This Article
    Back to top Shape of Dreams API Documentation