本文整理汇总了C#中TYPE类的典型用法代码示例。如果您正苦于以下问题:C# TYPE类的具体用法?C# TYPE怎么用?C# TYPE使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TYPE类属于命名空间,在下文中一共展示了TYPE类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AchievementObject
public AchievementObject (string id, string initVal, string goalVal, double currProgress) {
this.id = id;
this.initValString = initVal;
this.goalValString = goalVal;
this.type = TYPE.STRING;
//this.currValString = currVal;
}
示例2: Tile
public Tile(int x, int y, TYPE type, Char c)
{
_x = x;
_y = y;
this.type = type;
SetCompare(c);
}
示例3: createStamp
public static String createStamp(TYPE type)
{
String descriptor = DateTime.Now.ToString("dd-MM-yyyy HH.mm.ss");
switch (type) {
case TYPE.DEBUG:
descriptor += " [DEBUG]: ";
break;
case TYPE.ERROR:
descriptor += " [ERROR]: ";
break;
case TYPE.FATAL:
descriptor += " [FATAL]: ";
break;
case TYPE.INFO:
descriptor += " [INFO]: ";
break;
case TYPE.WARN:
descriptor += " [WARN]: ";
break;
default:
descriptor = null;
break;
}
return descriptor;
}
示例4: LexerToken
public LexerToken(string rawString, int startCharIdx, int endCharIdx)
{
rawWord = RawWord.new_FromString(rawString);
this.startCharIdx = startCharIdx;
this.endCharIdx = endCharIdx;
tokenType = TYPE.UNCLASSIFIED;
}
示例5: SetScreenPosType
/// <summary>
/// 動態改變TYPE
/// </summary>
/// <param name="type">Type.</param>
public void SetScreenPosType(Camera _cam,KZScreenPos.TYPE type)
{
_type = type;
SetCamera(_cam);
SetVector3 ();
SetScreenPosition(1,1);
}
示例6: Usterki
public Usterki(int carid, TYPE Tryb)
{
InitializeComponent();
this.CARID = carid;
this.TrybPracy = Tryb;
}
示例7: Spell
public Spell(int e_d, int s_r, int s_a, TYPE t)
{
effect_damage = e_d;
spell_range = s_r;
spell_area = s_a;
type = t;
}
示例8: GetCommentOfStore
public async void GetCommentOfStore(TYPEGET typeGet, TYPE type=0)
{
string lastId = "";
int storeId = MediateClass.KiotVM.SelectedStore.StoreId;
if (typeGet == TYPEGET.MORE)
{
if (CommentLstOfStore.Count != 0)
{
if (type == TYPE.OLD)
lastId = CommentLstOfStore.Min(x => x.Id).ToString();
else
lastId = CommentLstOfStore.Max(x => x.Id).ToString();
}
}
else
lastId = "-1";
IDictionary<string, string> param = new Dictionary<string, string>
{
{"storeId" , storeId.ToString()},
{"commentId" , lastId},
{"type" , type.ToString()}
};
if(lastId != "")
await SendData(typeGet, type, param);
}
示例9: LoadMoreStore
public async void LoadMoreStore(TYPEGET typeGet,TYPE type=0)
{
string lastId = "";
int marketId = MediateClass.MarketVM.SelectedMarket.MarketId;
if (typeGet == TYPEGET.MORE)
{
if (KiosList.Count != 0)
{
if (type == TYPE.OLD)
lastId = KiosList.Min(x => x.StoreId).ToString();
else
lastId = KiosList.Max(x => x.StoreId).ToString();
}
}
else
lastId = "-1";
IDictionary<string, string> param = new Dictionary<string, string>
{
{"marketId", marketId.ToString()},
{"storeId" , lastId},
{"type" , type.ToString()}
};
if(lastId != "")
await SendData(typeGet, type, param);
}
示例10: Uzytkownik
public Uzytkownik(string title, string cmdName, TYPE typ)
{
InitializeComponent();
this.Text = title;
cmdDodaj.Text = cmdName;
TrybPracy = typ;
if (typ == TYPE.NEW)
{
comboBox1.SelectedIndex = 0;
}
else if (typ == TYPE.VIEW)
{
cmdDodaj.Visible = false; cmdAnuluj.Text = "Zamknij";
comboBox1.Enabled = false;
txtHaslo.Enabled = false; txtPowtorzHaslo.Enabled = false;
lstPriv.Enabled = false;
}
else if (typ == TYPE.EDIT)
{
cmdDodaj.Text = "Zapisz"; cmdAnuluj.Text = "Anuluj";
txtLogin.Enabled = false; txtImie.Enabled = false;
txtNazwisko.Enabled = false;
}
}
示例11: AddMessage
public void AddMessage(string title, string description, TYPE quest,float time)
{
CancelInvoke("DisablePanel");
//AudioSource.PlayClipAtPoint(Clip, Camera.main.transform.position);
this.gameObject.SetActive(true);
if (quest == TYPE.Error)
{
BackgroundImage.color = ErrorColor;
}
if (quest == TYPE.Warning)
{
BackgroundImage.color = WarningColor;
}
if (quest == TYPE.Access)
{
BackgroundImage.color = AccessColor;
}
if (quest == TYPE.System)
{
BackgroundImage.color = SystemColor;
}
Title.text = title;
Description.text = description;
Invoke("DisablePanel",time);
}
示例12: Start
void Start()
{
if (type==TYPE.RGBDF && rigidBody == null)
{
type=TYPE.TRSPOS;
}
}
示例13: Start
void Start()
{
playerType = TYPE.NONE;
isShieldUp = false;
health = 10;
Damage = 1;
actionReady = false;
}
示例14: clear
public void clear()
{
table = "";
name = "";
type = TYPE.TEXT;
isKey = false;
isName = false;
}
示例15: ProtectorSpell
public ProtectorSpell(int e_d, int s_r, int s_a, TYPE t)
{
effect_damage = e_d;
spell_range = s_r;
spell_area = s_a;
type = t;
effect = "protector_effect";
}