本文整理匯總了C#中Plasma.hsStream.ReadFloat方法的典型用法代碼示例。如果您正苦於以下問題:C# hsStream.ReadFloat方法的具體用法?C# hsStream.ReadFloat怎麽用?C# hsStream.ReadFloat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plasma.hsStream
的用法示例。
在下文中一共展示了hsStream.ReadFloat方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Read
public void Read(hsStream s)
{
fX = s.ReadFloat();
fY = s.ReadFloat();
fZ = s.ReadFloat();
fW = s.ReadFloat();
}
示例2: ReadRGB
public static Color ReadRGB(hsStream s)
{
float r = s.ReadFloat();
float g = s.ReadFloat();
float b = s.ReadFloat();
return Color.FromArgb(Convert.ToInt32(r * 255.0f),
Convert.ToInt32(g * 255.0f),
Convert.ToInt32(b * 255.0f));
}
示例3: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fType = (NotificationType)s.ReadInt();
fState = s.ReadFloat();
if (s.Version < plVersion.EndOfAges)
fID = s.ReadInt();
else
fID = (int)s.ReadByte();
fEvents.Capacity = s.ReadInt();
for (int i = 0; i < fEvents.Capacity; i++)
fEvents.Add(proEventData.Read(s, mgr));
}
示例4: IRead
protected override void IRead(hsStream s, hsResMgr mgr)
{
fName = s.ReadSafeString();
fDataType = (DataType)s.ReadInt();
fNumber = s.ReadFloat();
fKey = mgr.ReadKey(s);
}
示例5: Read
public override void Read(hsStream s, hsResMgr mgr)
{
base.Read(s, mgr);
fCommand = (Cmd)s.ReadByte();
fUser = s.ReadSafeString();
fPlayerID = s.ReadUInt();
fString = s.ReadSafeWString();
fFlags = (Flags)s.ReadInt();
fDelay = s.ReadFloat();
fValue = s.ReadInt();
}