magicdict / hearthstone Goto Github PK
View Code? Open in Web Editor NEWHearthStone C#
HearthStone C#
你的代码都是写给自己看的?
下载下来编译都无法通过的
此外,如果需要协同开发的话,你可以创建一个组织
然后给其他人权限,这样就可以实现协同开发了
case TargetType.Xml:
XmlSerializer xml = new XmlSerializer(typeof(Card.MinionCard));
执行这个的时候出错了
txtCardPath.Text = @"C:\炉石Git\炉石设计\Card";
启动的时候这个 默认路径无效的
这边调用xml文件无效,你的xml文件是什么呀?
foreach (var AbilityXml in Directory.GetFiles(CardXmlFolder + "\Ability"))
{
XmlSerializer xml = new XmlSerializer(typeof(Card.AbilityCard));
Card.AbilityCard ability = (AbilityCard)xml.Deserialize(new StreamReader(AbilityXml));
CardCollections.Add(ability.SN, ability);
}
无法协同开发,请把根目录下.gitignore删除
你现在这种配置把很多文件都取消了同步功能。
有了.csprj文件,是可以自行生成一个.sln文件的
我的是VS2010,需要自己去生成一个sln的
public static int GetInt(String StringInt, int DefaultValue = 0)
{
if (String.IsNullOrEmpty(StringInt)) return DefaultValue;
return int.Parse(StringInt);
}
在进行编译的时候,这个函数,会报错
方便以后查看等,应该使用文本文件好些吧,这个版本控制不支持呢
建议你写一个配置,写出,编译此程序需要什么环境
发现缺少的组件是属于.net framework 4.0的microsoft.csharp.dll
如果可能的话,源代码中可以将这个dll文件纳入版本控制
是否现在已经集成至客户端中,但是使用最新的Excel导出卡牌xml的时候报错,stacktrace如下:
在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
在 Engine.Utility.CardUtility.GetInt(String StringInt, Int32 DefaultValue) 位置 e:\Workspace\Cocos2dx\HearthStone-master\Engine\Utility\CardUtility.cs:行号 489
在 CallSite.Target(Closure , CallSite , Type , Object )
在 System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
在 炉边传说.frmExport.Ability(TargetType target, Object workbook) 位置 e:\Workspace\Cocos2dx\HearthStone-master\炉边传说\frmExport.cs:行号 236
在 CallSite.Target(Closure , CallSite , frmExport , TargetType , Object )
在 System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
在 炉边传说.frmExport.Export(TargetType target) 位置 e:\Workspace\Cocos2dx\HearthStone-master\炉边传说\frmExport.cs:行号 73
在 炉边传说.frmExport.btnExportXml_Click(Object sender, EventArgs e) 位置 e:\Workspace\Cocos2dx\HearthStone-master\炉边传说\frmExport.cs:行号 47
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
在 炉边传说.frmStartGame.btnCreateCard_Click(Object sender, EventArgs e) 位置 e:\Workspace\Cocos2dx\HearthStone-master\炉边传说\frmStartGame.cs:行号 146
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 炉边传说.Program.Main() 位置 e:\Workspace\Cocos2dx\HearthStone-master\炉边传说\Program.cs:行号 18
在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.