更改
跳到导航
跳到搜索
←上一编辑
下一编辑→
模组:常用方法
(查看源代码)
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
工具
上传文件
特殊页面
可打印版本