Skip to content
rStar edited this page Aug 6, 2022 · 6 revisions

參數說明

ModifierType

feat Information
Flat 基礎值
PercentAdd 百分比加
PercentMulti 百分比乘

主要功能

IStatController

feat Information
AddAmount(string statId , int amount) modify base amount of stat 修改基礎數值
AddModifier(string statId , ModifierType modifierType , int amount) create a modifer in stat 新增修改器給數值
CreateStat(string ownerId , string dataId , int amount) create a stat 建立數值
RemoveStat(string id); remove a stat , 移除一個數值
RemoveStatsByOwner(string ownerId); remove stats of Owner , 移除Onwer的數值
RemoveAllModifier(string statId) Remove all modifiers of stat 移除該數值上所有的修改器
RemoveModifier(string statId , string modifierId) remove a modifier by id 移除修改器
SetAmount(string statId , int amount) set base amount of state 設定基礎數值

儲存庫

IStatRepository

feat Information
FindStat(string statId) find a stat , 查詢數值,使用StatId
FindStat(string ownerId , string dataId) 查詢數值,使用StatIdDataId
FindStatsByOwnerId(string ownerId) find stats by ownder , 查詢Owner的所有數值
DeleteAllStat(string ownerId) remove all stats of owner from repository , 從儲存庫中移除所有Owner的數值
FindModifer(string statId , string modifierId) find a modifier , 查詢修改器

Clone this wiki locally