本文整理汇总了C#中DataNew.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# DataNew.Clone方法的具体用法?C# DataNew.Clone怎么用?C# DataNew.Clone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataNew
的用法示例。
在下文中一共展示了DataNew.Clone方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Card
internal Card(Player owner, int id, ulong key, DataNew.Entities.Card model, bool mySecret)
: base(owner)
{
_id = id;
Type = new CardIdentity(id) {Alias = false, Key = key, Model = model.Clone() , MySecret = mySecret};
// var _definition = def;
All.Add(id, this);
_alternateOf = null;
numberOfSwitchWithAlternatesNotPerformed = 0;
_isAlternateImage = false;
}
示例2: Card
internal Card(Player owner, int id, ulong key, DataNew.Entities.Card model, bool mySecret)
: base(owner)
{
_id = id;
Type = new CardIdentity(id) {Key = key, Model = model.Clone() , MySecret = mySecret};
// var _definition = def;
lock (All)
{
if (All.ContainsKey(id)) All[id] = this;
else All.Add(id, this);
}
_alternateOf = null;
numberOfSwitchWithAlternatesNotPerformed = 0;
_isAlternateImage = false;
_cardMoved = false;
}
示例3: Card
internal Card(Player owner, int id, DataNew.Entities.Card model, bool mySecret, string cardsize)
: base(owner)
{
_id = id;
Type = new CardIdentity(id) { Model = model.Clone() };
// var _definition = def;
lock (All)
{
if (All.ContainsKey(id)) All[id] = this;
else All.Add(id, this);
}
_alternateOf = null;
numberOfSwitchWithAlternatesNotPerformed = 0;
_isAlternateImage = false;
_cardMoved = false;
Size = Program.GameEngine.Definition.CardSizes[cardsize];
}