變更
跳至導覽
跳至搜尋
← 較舊編輯
較新編輯 →
模组:常用方法
(檢視原始碼)
於 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
次編輯
導覽菜單
個人工具
建立賬號
登入
命名空間
模组
討論
香港繁體
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
視圖
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
最近修改
未翻译的页面
帮助:编辑入门
隨機頁面
官方链接
官方网站
官方论坛
官方商品
Discord
Reddit
工具
上載檔案
特殊頁面
可打印版