開啟主選單
首頁
隨機
登入
設定
關於Stardew Valley Wiki
免責聲明
Stardew Valley Wiki
搜尋
變更
← 較舊編輯
較新編輯 →
模组:常用方法
(檢視原始碼)
於 2021年6月9日 (三) 14:24 的修訂
增加 7 位元組
、
2021年6月9日 (三) 14:24
小
無編輯摘要
第23行:
第23行:
</syntaxhighlight>
</syntaxhighlight>
−
'''parentSheetIndex'''为
该物品的ID(储存在 ObjectInformation.xnb 文件中)。
+
参数parentSheetIndex表示
该物品的ID(储存在 ObjectInformation.xnb 文件中)。
===在地上生成物品===
===在地上生成物品===
第57行:
第57行:
===获取所有地点===
===获取所有地点===
−
<
tt
>Game1.locations</
tt
>属性中虽然储存着主要的地点,但是不包括''建筑的室内''(constructed building interiors)。以下这个方法提供了主玩家的所有地点。
+
<
code
>Game1.locations</
code
>属性中虽然储存着主要的地点,但是不包括''建筑的室内''(constructed building interiors)。以下这个方法提供了主玩家的所有地点。
<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
/// <summary>Get all game locations.</summary>
/// <summary>Get all game locations.</summary>
臭美香喷喷
50
次編輯