Esempio n. 1
0
        public MountDef(string displayName, Func <MountBehaviour> newBehaviour = null, MountTextureData front = default(MountTextureData), MountTextureData back = default(MountTextureData), BuffRef buff = null)
            : base(displayName, newBehaviour)
        {
            Front = front;
            Back  = back;

            AllFrameData = MountFrameData.None;

            Buff       = buff;
            ExpertBuff = buff;

            MinecartDust = Empty <Vector2> .Action;
        }
Esempio n. 2
0
 /// <summary>
 /// Constructs a new <see cref="AppliedBuff"/> structure.
 /// </summary>
 /// <param name="type"><see cref="AppliedBuff.Type"/></param>
 /// <param name="duration"><see cref="AppliedBuff.Duration"/></param>
 public AppliedBuff(BuffRef type, int duration)
 {
     Type     = type;
     Duration = duration;
 }