mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 17:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,55 @@
|
||||
package gui
|
||||
{
|
||||
public class PredictiveTextNode
|
||||
{
|
||||
|
||||
public var char:String;
|
||||
|
||||
public var children:Vector.<PredictiveTextNode> = new Vector.<PredictiveTextNode>();
|
||||
|
||||
public var weight:int;
|
||||
|
||||
public var isSpecialCharacter:Boolean;
|
||||
|
||||
public var useType:int;
|
||||
|
||||
public var isSpecialLangChar:Boolean;
|
||||
|
||||
public function PredictiveTextNode(param1:String, param2:int, param3:Vector.<PredictiveTextNode>, param4:Boolean = false, param5:int = 0, param6:Boolean = false)
|
||||
{
|
||||
super();
|
||||
char = param1;
|
||||
weight = param2;
|
||||
children = param3;
|
||||
isSpecialCharacter = param4;
|
||||
useType = param5;
|
||||
isSpecialLangChar = param6;
|
||||
}
|
||||
|
||||
public function destroy() : void
|
||||
{
|
||||
children = null;
|
||||
}
|
||||
|
||||
public function contains(param1:String) : int
|
||||
{
|
||||
var _loc2_:int = 0;
|
||||
var _loc3_:int = 0;
|
||||
if(children != null)
|
||||
{
|
||||
_loc2_ = int(children.length);
|
||||
_loc3_ = 0;
|
||||
while(_loc3_ < _loc2_)
|
||||
{
|
||||
if(children[_loc3_].char == param1)
|
||||
{
|
||||
return _loc3_;
|
||||
}
|
||||
_loc3_++;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user