플레이어 데이터 추가
- 더미 플레이어 데이터 추가
This commit is contained in:
8
Assets/Data/ScriptableObjects/Player.meta
Normal file
8
Assets/Data/ScriptableObjects/Player.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 742538ee5bf65c645ad1f60cacbf3f9b
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
25
Assets/Data/ScriptableObjects/Player/Player001.asset
Normal file
25
Assets/Data/ScriptableObjects/Player/Player001.asset
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 3c7bc1620f10fad4e92a3e3acd46cf8c, type: 3}
|
||||||
|
m_Name: Player001
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::Northbound.Data.PlayerData
|
||||||
|
id: 1
|
||||||
|
memo:
|
||||||
|
moveSpeed: 10
|
||||||
|
visionRadius: 20
|
||||||
|
capacity: 100
|
||||||
|
manpower: 10
|
||||||
|
maxHp: 100
|
||||||
|
atkRange: 6
|
||||||
|
atkDamage: 200
|
||||||
|
atkIntervalSec: 1
|
||||||
|
prefabPath: Assets/Prefabs/Player
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ba3572ed8c121e541bb57c091bbf926f
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
37
Assets/Data/Scripts/DataClasses/PlayerData.cs
Normal file
37
Assets/Data/Scripts/DataClasses/PlayerData.cs
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// 이 파일은 자동 생성되었습니다. 직접 수정하지 마세요!
|
||||||
|
// 생성 스크립트: DataTools/generate_csharp_classes.py
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
using System.Collections.Generic; // 리스트 지원을 위해 추가
|
||||||
|
|
||||||
|
namespace Northbound.Data
|
||||||
|
{
|
||||||
|
[CreateAssetMenu(fileName = "PlayerData", menuName = "Northbound/Player Data")]
|
||||||
|
public class PlayerData : ScriptableObject
|
||||||
|
{
|
||||||
|
[Header("기본 정보")]
|
||||||
|
/// <summary>고유 ID</summary>
|
||||||
|
public int id;
|
||||||
|
/// <summary>기획 메모</summary>
|
||||||
|
public string memo;
|
||||||
|
/// <summary>이동 속도</summary>
|
||||||
|
public float moveSpeed;
|
||||||
|
/// <summary>시야 반경</summary>
|
||||||
|
public float visionRadius;
|
||||||
|
/// <summary>운반 용량</summary>
|
||||||
|
public int capacity;
|
||||||
|
/// <summary>생산 노동량</summary>
|
||||||
|
public float manpower;
|
||||||
|
/// <summary>체력</summary>
|
||||||
|
public int maxHp;
|
||||||
|
/// <summary>사정거리</summary>
|
||||||
|
public int atkRange;
|
||||||
|
/// <summary>데미지</summary>
|
||||||
|
public int atkDamage;
|
||||||
|
/// <summary>공격 주기</summary>
|
||||||
|
public float atkIntervalSec;
|
||||||
|
/// <summary>프리팹/리소스 경로</summary>
|
||||||
|
public string prefabPath;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Data/Scripts/DataClasses/PlayerData.cs.meta
Normal file
2
Assets/Data/Scripts/DataClasses/PlayerData.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3c7bc1620f10fad4e92a3e3acd46cf8c
|
||||||
2
GameData/Player.csv
Normal file
2
GameData/Player.csv
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
id,memo,move_speed,vision_radius,capacity,manpower,max_hp,atk_range,atk_damage,atk_interval_sec,prefab_path
|
||||||
|
1,,10,20,100,10,100,6,200,1,Assets/Prefabs/Player
|
||||||
|
Reference in New Issue
Block a user