public void Save(ByamlNodeWriter writer, DictionaryNode objNode, int zoneID) { objNode.AddDynamicValue("Comment", null); objNode.AddDynamicValue("Id", "zone" + zoneID); objNode.AddDynamicValue("IsLinkDest", false); objNode.AddDynamicValue("LayerConfigName", Layer); { objNode.AddDynamicValue("Links", new Dictionary <string, dynamic>(), true); } objNode.AddDynamicValue("ModelName", null); objNode.AddDynamicValue("Rotate", LevelIO.Vector3ToDict(Rotation), true); objNode.AddDynamicValue("Scale", LevelIO.Vector3ToDict(Vector3.One), true); objNode.AddDynamicValue("Translate", LevelIO.Vector3ToDict(Position, 100f), true); objNode.AddDynamicValue("UnitConfig", new Dictionary <string, dynamic> { ["DisplayName"] = "�R�C��(�����O�z�u)", ["DisplayRotate"] = LevelIO.Vector3ToDict(Vector3.Zero), ["DisplayScale"] = LevelIO.Vector3ToDict(Vector3.One), ["DisplayTranslate"] = LevelIO.Vector3ToDict(Vector3.Zero), ["GenerateCategory"] = "", ["ParameterConfigName"] = "Zone", ["PlacementTargetFile"] = "Map" }, true); objNode.AddDynamicValue("UnitConfigName", Zone.StageName); }
public static Dictionary <string, dynamic> CreateUnitConfig(General3dWorldObject obj) => new Dictionary <string, dynamic> { ["DisplayTranslate"] = LevelIO.Vector3ToDict(obj.DisplayTranslation, 100f), ["GenerateCategory"] = "", ["ParameterConfigName"] = obj.ClassName, ["PlacementTargetFile"] = "Map" };
public static Dictionary <string, dynamic> CreateUnitConfig(string className) => new Dictionary <string, dynamic> { ["DisplayName"] = className, ["DisplayTranslate"] = LevelIO.Vector3ToDict(Vector3.Zero), ["GenerateCategory"] = "", ["ParameterConfigName"] = className, ["PlacementTargetFile"] = "Map" };