Skip to content

Commit 9120e51

Browse files
authored
Merge branch 'PCL-Community:main' into main
2 parents 3aae470 + beed8aa commit 9120e51

File tree

27 files changed

+3365
-657
lines changed

27 files changed

+3365
-657
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: "(非开发人员勿用)Roadmap"
3+
about: Roadmap模板
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
> [!WARNING]
11+
> 如果你不是开发人员却选择了这个issue模板,请**立即退出**,重新选择!
12+
13+
# 概述
14+
> 描述这个条目的内容
15+
16+
# 涉及模块
17+
> 列出涉及的模块
18+
19+
# 修改类型
20+
> 按照”新功能“、”修复“、”文档“、”代码风格“、“重大修改”和“其他”六种进行选择
21+
> 只保留对应的类型,其余的删去
22+
23+
**新功能**
24+
**修复**
25+
**文档**
26+
**代码风格**
27+
**重大修改**
28+
**其他**
29+
30+
# 其他
31+
> 其他的信息
32+
33+
# 负责人员
34+
> 使用`/cc`提及
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Bug 报告
2+
description: (简体中文)提交一个Bug
3+
labels: Bug
4+
title: '[Bug]: '
5+
body:
6+
- type: checkboxes
7+
id: '1'
8+
attributes:
9+
label: 检查项
10+
description: 查看一下检查项
11+
options:
12+
- label: 使用的是最新的PCL.Neo版本
13+
required: true
14+
- label: 使用官方发布的版本(非第三方下载/修改版本)
15+
required: true
16+
- label: 已经查看过PCL.Neo官方文档并使用了所有可能的解决方案
17+
required: true
18+
- label: 已经尝试过重启启动器
19+
required: true
20+
- label: 已经尝试过重启电脑
21+
required: true
22+
- label: 已经浏览过Issues并没有发现重复Issue
23+
required: true
24+
- type: textarea
25+
id: '2'
26+
attributes:
27+
label: Bug现象
28+
description: 简述Bug的现象
29+
validations:
30+
required: true
31+
- type: textarea
32+
id: '3'
33+
attributes:
34+
label: 复现步骤
35+
description: 简述你导致bug的操作步骤
36+
value: |-
37+
1.
38+
2.
39+
3.
40+
validations:
41+
required: true
42+
- type: textarea
43+
id: '4'
44+
attributes:
45+
label: 日志与截图
46+
description: 提供日志/截图/录屏等方便我们查错
47+
placeholder: 先点击这个文本框,然后拖拽文件到上面上传
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: 新功能建议
3+
about: 提供你想到的新功能
4+
title: ''
5+
labels: 新功能
6+
assignees: whitecat346, Hill23333
7+
8+
---
9+
10+
> [!WARNING]
11+
> 由于PCL.Neo为跨平台项目,你提交的功能需要考虑到是否支持在不同的平台上的使用
12+
> 如果不支持**请勿提交**
13+
14+
# 审查项
15+
- [ ] 我已查看过issues列表,确认没有与我的issue重复的issue
16+
- [ ] 我清楚PCL.Neo是由社区进行开发和维护的,无法第一时间提供支持
17+
- [ ] 我将对我的言行进行负责
18+
19+
---
20+
21+
# **你为何需要这个新功能**
22+
> 清晰地描述你需要这个功能地原因
23+
24+
# **描述这个功能的作用**
25+
> 清晰地描述这个功能的作用
26+
27+
# **描述这个功能该如何工作**
28+
> 清晰地描述这个功能地工作流程
29+
30+
# **附加信息**
31+
> 一些其他的信息
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text.Json.Serialization;
4+
5+
namespace PCL.Neo.Core.Models.Profile
6+
{
7+
/// <summary>
8+
/// 游戏档案模型,用于保存不同游戏配置
9+
/// </summary>
10+
public record GameProfile
11+
{
12+
// 基本信息
13+
public required string Id { get; init; } = Guid.NewGuid().ToString();
14+
public required string Name { get; set; }
15+
public string Description { get; set; } = string.Empty;
16+
public DateTime CreatedTime { get; init; } = DateTime.Now;
17+
public DateTime LastUsed { get; set; } = DateTime.Now;
18+
19+
// 游戏版本信息
20+
public string GameVersion { get; set; } = string.Empty;
21+
public string GameType { get; set; } = "Vanilla"; // Vanilla, Forge, Fabric, Quilt等
22+
23+
// 资源设置
24+
public string GameDirectory { get; set; } = string.Empty; // 为空时使用默认目录
25+
public string AssetsDirectory { get; set; } = string.Empty; // 为空时使用默认目录
26+
27+
// Java设置
28+
public string JavaPath { get; set; } = string.Empty; // 为空时使用默认Java
29+
public int JavaMemoryMB { get; set; } = 2048; // 默认2GB内存
30+
public string JavaArguments { get; set; } = string.Empty; // 额外JVM参数
31+
32+
// 模组和资源包
33+
public List<ModInfo> Mods { get; set; } = [];
34+
public List<ResourcePackInfo> ResourcePacks { get; set; } = [];
35+
public List<string> ActiveResourcePacks { get; set; } = []; // 按顺序激活的资源包ID
36+
37+
// 启动器相关设置
38+
public string GameResolution { get; set; } = "854x480"; // 游戏分辨率
39+
public bool FullScreen { get; set; } = false; // 是否全屏
40+
41+
// 自定义启动参数
42+
public string CustomLaunchArguments { get; set; } = string.Empty;
43+
44+
// 快速配置预设
45+
public bool IsPreset { get; set; } = false;
46+
47+
public GameProfile CloneProfile(string newName)
48+
{
49+
return this with
50+
{
51+
Id = Guid.NewGuid().ToString(),
52+
Name = newName,
53+
CreatedTime = DateTime.Now,
54+
LastUsed = DateTime.Now
55+
};
56+
}
57+
}
58+
59+
public record ModInfo
60+
{
61+
public required string Id { get; init; }
62+
public required string Name { get; set; }
63+
public string Version { get; set; } = string.Empty;
64+
public bool Enabled { get; set; } = true;
65+
public string FilePath { get; set; } = string.Empty;
66+
public string Description { get; set; } = string.Empty;
67+
}
68+
69+
public record ResourcePackInfo
70+
{
71+
public required string Id { get; init; }
72+
public required string Name { get; set; }
73+
public string Version { get; set; } = string.Empty;
74+
public string Format { get; set; } = string.Empty;
75+
public string FilePath { get; set; } = string.Empty;
76+
public string Description { get; set; } = string.Empty;
77+
}
78+
}

0 commit comments

Comments
 (0)